UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
fix: prettier format
Dillion Vermaa45689e7f3ed
diff --git a/apps/www/__registry__/index.tsx b/apps/www/__registry__/index.tsxindex bf62e540..777e444e 100644--- a/apps/www/__registry__/index.tsx+++ b/apps/www/__registry__/index.tsx@@ -3,7 +3,7 @@// @ts-nocheck// This file is autogenerated by scripts/build-registry.ts// Do not edit this file directly.-import * as React from "react";+import * as React from "react"export const Index: Record<string, any> = {index: {@@ -29,13 +29,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/magic-card.tsx");+ const mod = await import("@/registry/magicui/magic-card.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -52,13 +52,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/android.tsx");+ const mod = await import("@/registry/magicui/android.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -75,13 +75,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/warp-background.tsx");+ const mod = await import("@/registry/magicui/warp-background.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -98,13 +98,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/line-shadow-text.tsx");+ const mod = await import("@/registry/magicui/line-shadow-text.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -121,13 +121,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/aurora-text.tsx");+ const mod = await import("@/registry/magicui/aurora-text.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -144,13 +144,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/morphing-text.tsx");+ const mod = await import("@/registry/magicui/morphing-text.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -167,13 +167,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/scroll-progress.tsx");+ const mod = await import("@/registry/magicui/scroll-progress.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -191,13 +191,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/lens.tsx");+ const mod = await import("@/registry/magicui/lens.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -215,13 +215,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/pointer.tsx");+ const mod = await import("@/registry/magicui/pointer.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -239,13 +239,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/smooth-cursor.tsx");+ const mod = await import("@/registry/magicui/smooth-cursor.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -263,13 +263,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/progressive-blur.tsx");+ const mod = await import("@/registry/magicui/progressive-blur.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -286,13 +286,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/neon-gradient-card.tsx");+ const mod = await import("@/registry/magicui/neon-gradient-card.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -309,13 +309,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/meteors.tsx");+ const mod = await import("@/registry/magicui/meteors.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -333,13 +333,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/grid-pattern.tsx");+ const mod = await import("@/registry/magicui/grid-pattern.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -359,13 +359,13 @@ export const Index: Record<string, any> = {component: React.lazy(async () => {const mod = await import("@/registry/magicui/interactive-grid-pattern.tsx"- );+ )const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -383,13 +383,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/dot-pattern.tsx");+ const mod = await import("@/registry/magicui/dot-pattern.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -407,13 +407,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/flickering-grid.tsx");+ const mod = await import("@/registry/magicui/flickering-grid.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -430,13 +430,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/hero-video-dialog.tsx");+ const mod = await import("@/registry/magicui/hero-video-dialog.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -453,13 +453,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/code-comparison.tsx");+ const mod = await import("@/registry/magicui/code-comparison.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -476,13 +476,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/script-copy-btn.tsx");+ const mod = await import("@/registry/magicui/script-copy-btn.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -500,13 +500,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/marquee.tsx");+ const mod = await import("@/registry/magicui/marquee.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -524,13 +524,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/globe.tsx");+ const mod = await import("@/registry/magicui/globe.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -548,13 +548,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/shimmer-button.tsx");+ const mod = await import("@/registry/magicui/shimmer-button.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -572,13 +572,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/tweet-card.tsx");+ const mod = await import("@/registry/magicui/tweet-card.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -596,13 +596,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/client-tweet-card.tsx");+ const mod = await import("@/registry/magicui/client-tweet-card.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -620,13 +620,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/bento-grid.tsx");+ const mod = await import("@/registry/magicui/bento-grid.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -644,13 +644,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/particles.tsx");+ const mod = await import("@/registry/magicui/particles.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -667,13 +667,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/number-ticker.tsx");+ const mod = await import("@/registry/magicui/number-ticker.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -691,13 +691,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/ripple.tsx");+ const mod = await import("@/registry/magicui/ripple.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -714,13 +714,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/retro-grid.tsx");+ const mod = await import("@/registry/magicui/retro-grid.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -738,13 +738,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/animated-list.tsx");+ const mod = await import("@/registry/magicui/animated-list.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -762,13 +762,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/animated-shiny-text.tsx");+ const mod = await import("@/registry/magicui/animated-shiny-text.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -786,13 +786,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/animated-grid-pattern.tsx");+ const mod = await import("@/registry/magicui/animated-grid-pattern.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -810,13 +810,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/border-beam.tsx");+ const mod = await import("@/registry/magicui/border-beam.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -834,13 +834,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/animated-beam.tsx");+ const mod = await import("@/registry/magicui/animated-beam.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -857,13 +857,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/text-reveal.tsx");+ const mod = await import("@/registry/magicui/text-reveal.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -881,13 +881,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/hyper-text.tsx");+ const mod = await import("@/registry/magicui/hyper-text.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -905,13 +905,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/animated-gradient-text.tsx");+ const mod = await import("@/registry/magicui/animated-gradient-text.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -929,13 +929,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/orbiting-circles.tsx");+ const mod = await import("@/registry/magicui/orbiting-circles.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -953,13 +953,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/dock.tsx");+ const mod = await import("@/registry/magicui/dock.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -976,13 +976,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/word-rotate.tsx");+ const mod = await import("@/registry/magicui/word-rotate.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -999,13 +999,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/avatar-circles.tsx");+ const mod = await import("@/registry/magicui/avatar-circles.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1022,13 +1022,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/typing-animation.tsx");+ const mod = await import("@/registry/magicui/typing-animation.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1046,13 +1046,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/sparkles-text.tsx");+ const mod = await import("@/registry/magicui/sparkles-text.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1070,13 +1070,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/spinning-text.tsx");+ const mod = await import("@/registry/magicui/spinning-text.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1093,13 +1093,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/flip-text.tsx");+ const mod = await import("@/registry/magicui/flip-text.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1116,13 +1116,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/comic-text.tsx");+ const mod = await import("@/registry/magicui/comic-text.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1139,13 +1139,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/icon-cloud.tsx");+ const mod = await import("@/registry/magicui/icon-cloud.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1163,13 +1163,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/text-animate.tsx");+ const mod = await import("@/registry/magicui/text-animate.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1186,13 +1186,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/scroll-based-velocity.tsx");+ const mod = await import("@/registry/magicui/scroll-based-velocity.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1210,13 +1210,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/scratch-to-reveal.tsx");+ const mod = await import("@/registry/magicui/scratch-to-reveal.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1234,13 +1234,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/shiny-button.tsx");+ const mod = await import("@/registry/magicui/shiny-button.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1257,13 +1257,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/box-reveal.tsx");+ const mod = await import("@/registry/magicui/box-reveal.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1280,13 +1280,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/shine-border.tsx");+ const mod = await import("@/registry/magicui/shine-border.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1306,13 +1306,13 @@ export const Index: Record<string, any> = {component: React.lazy(async () => {const mod = await import("@/registry/magicui/animated-circular-progress-bar.tsx"- );+ )const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1330,13 +1330,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/confetti.tsx");+ const mod = await import("@/registry/magicui/confetti.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1356,13 +1356,13 @@ export const Index: Record<string, any> = {component: React.lazy(async () => {const mod = await import("@/registry/magicui/animated-subscribe-button.tsx"- );+ )const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1379,13 +1379,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/cool-mode.tsx");+ const mod = await import("@/registry/magicui/cool-mode.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1403,13 +1403,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/pulsating-button.tsx");+ const mod = await import("@/registry/magicui/pulsating-button.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1426,13 +1426,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/ripple-button.tsx");+ const mod = await import("@/registry/magicui/ripple-button.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1450,13 +1450,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/file-tree.tsx");+ const mod = await import("@/registry/magicui/file-tree.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1474,13 +1474,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/blur-fade.tsx");+ const mod = await import("@/registry/magicui/blur-fade.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1497,13 +1497,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/safari.tsx");+ const mod = await import("@/registry/magicui/safari.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1520,13 +1520,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/iphone-15-pro.tsx");+ const mod = await import("@/registry/magicui/iphone-15-pro.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1543,13 +1543,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/rainbow-button.tsx");+ const mod = await import("@/registry/magicui/rainbow-button.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1568,13 +1568,13 @@ export const Index: Record<string, any> = {component: React.lazy(async () => {const mod = await import("@/registry/magicui/interactive-hover-button.tsx"- );+ )const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1591,13 +1591,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/terminal.tsx");+ const mod = await import("@/registry/magicui/terminal.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1615,13 +1615,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/video-text.tsx");+ const mod = await import("@/registry/magicui/video-text.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1639,13 +1639,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/pixel-image.tsx");+ const mod = await import("@/registry/magicui/pixel-image.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1663,13 +1663,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/highlighter.tsx");+ const mod = await import("@/registry/magicui/highlighter.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1687,13 +1687,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/arc-timeline.tsx");+ const mod = await import("@/registry/magicui/arc-timeline.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1710,13 +1710,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/animated-theme-toggler.tsx");+ const mod = await import("@/registry/magicui/animated-theme-toggler.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1734,13 +1734,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/grid-beams.tsx");+ const mod = await import("@/registry/magicui/grid-beams.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1758,13 +1758,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/magic-card-demo.tsx");+ const mod = await import("@/registry/example/magic-card-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1781,13 +1781,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/android-demo.tsx");+ const mod = await import("@/registry/example/android-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1804,13 +1804,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/android-demo-2.tsx");+ const mod = await import("@/registry/example/android-demo-2.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1827,13 +1827,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/android-demo-3.tsx");+ const mod = await import("@/registry/example/android-demo-3.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1851,13 +1851,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/warp-background-demo.tsx");+ const mod = await import("@/registry/example/warp-background-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1874,13 +1874,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/line-shadow-text-demo.tsx");+ const mod = await import("@/registry/example/line-shadow-text-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1897,13 +1897,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/aurora-text-demo.tsx");+ const mod = await import("@/registry/example/aurora-text-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1920,13 +1920,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/morphing-text-demo.tsx");+ const mod = await import("@/registry/example/morphing-text-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1943,13 +1943,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/scroll-progress-demo.tsx");+ const mod = await import("@/registry/example/scroll-progress-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1966,13 +1966,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/lens-demo.tsx");+ const mod = await import("@/registry/example/lens-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -1989,13 +1989,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/lens-demo-2.tsx");+ const mod = await import("@/registry/example/lens-demo-2.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2012,13 +2012,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/lens-demo-3.tsx");+ const mod = await import("@/registry/example/lens-demo-3.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2035,13 +2035,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/pointer-demo-1.tsx");+ const mod = await import("@/registry/example/pointer-demo-1.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2058,13 +2058,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/smooth-cursor-demo.tsx");+ const mod = await import("@/registry/example/smooth-cursor-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2082,13 +2082,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/progressive-blur-demo.tsx");+ const mod = await import("@/registry/example/progressive-blur-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2105,15 +2105,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import(- "@/registry/example/neon-gradient-card-demo.tsx"- );+ const mod = await import("@/registry/example/neon-gradient-card-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2130,13 +2128,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/meteors-demo.tsx");+ const mod = await import("@/registry/example/meteors-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2153,13 +2151,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/grid-pattern-demo.tsx");+ const mod = await import("@/registry/example/grid-pattern-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2178,13 +2176,13 @@ export const Index: Record<string, any> = {component: React.lazy(async () => {const mod = await import("@/registry/example/grid-pattern-linear-gradient.tsx"- );+ )const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2201,13 +2199,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/grid-pattern-dashed.tsx");+ const mod = await import("@/registry/example/grid-pattern-dashed.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2224,13 +2222,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/dot-pattern-demo.tsx");+ const mod = await import("@/registry/example/dot-pattern-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2249,13 +2247,13 @@ export const Index: Record<string, any> = {component: React.lazy(async () => {const mod = await import("@/registry/example/dot-pattern-linear-gradient.tsx"- );+ )const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2274,13 +2272,13 @@ export const Index: Record<string, any> = {component: React.lazy(async () => {const mod = await import("@/registry/example/dot-pattern-with-glow-effect.tsx"- );+ )const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2297,13 +2295,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/flickering-grid-demo.tsx");+ const mod = await import("@/registry/example/flickering-grid-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2323,13 +2321,13 @@ export const Index: Record<string, any> = {component: React.lazy(async () => {const mod = await import("@/registry/example/flickering-grid-rounded-demo.tsx"- );+ )const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2346,13 +2344,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/hero-video-dialog-demo.tsx");+ const mod = await import("@/registry/example/hero-video-dialog-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2372,13 +2370,13 @@ export const Index: Record<string, any> = {component: React.lazy(async () => {const mod = await import("@/registry/example/hero-video-dialog-demo-top-in-bottom-out.tsx"- );+ )const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2396,13 +2394,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/code-comparison-demo.tsx");+ const mod = await import("@/registry/example/code-comparison-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2419,13 +2417,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/script-copy-btn-demo.tsx");+ const mod = await import("@/registry/example/script-copy-btn-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2442,13 +2440,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/marquee-demo.tsx");+ const mod = await import("@/registry/example/marquee-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2465,13 +2463,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/marquee-demo-vertical.tsx");+ const mod = await import("@/registry/example/marquee-demo-vertical.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2488,13 +2486,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/marquee-logos.tsx");+ const mod = await import("@/registry/example/marquee-logos.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2511,13 +2509,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/marquee-3d.tsx");+ const mod = await import("@/registry/example/marquee-3d.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2534,13 +2532,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/globe-demo.tsx");+ const mod = await import("@/registry/example/globe-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2557,13 +2555,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/tweet-card-demo.tsx");+ const mod = await import("@/registry/example/tweet-card-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2580,13 +2578,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/tweet-card-images.tsx");+ const mod = await import("@/registry/example/tweet-card-images.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2603,15 +2601,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import(- "@/registry/example/tweet-card-meta-preview.tsx"- );+ const mod = await import("@/registry/example/tweet-card-meta-preview.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2628,13 +2624,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/shimmer-button-demo.tsx");+ const mod = await import("@/registry/example/shimmer-button-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2658,13 +2654,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/bento-demo.tsx");+ const mod = await import("@/registry/example/bento-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2681,13 +2677,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/bento-demo-vertical.tsx");+ const mod = await import("@/registry/example/bento-demo-vertical.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2704,13 +2700,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/number-ticker-demo.tsx");+ const mod = await import("@/registry/example/number-ticker-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2727,13 +2723,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/number-ticker-demo-2.tsx");+ const mod = await import("@/registry/example/number-ticker-demo-2.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2752,13 +2748,13 @@ export const Index: Record<string, any> = {component: React.lazy(async () => {const mod = await import("@/registry/example/number-ticker-decimal-demo.tsx"- );+ )const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2775,13 +2771,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/ripple-demo.tsx");+ const mod = await import("@/registry/example/ripple-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2798,13 +2794,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/retro-grid-demo.tsx");+ const mod = await import("@/registry/example/retro-grid-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2821,13 +2817,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/animated-list-demo.tsx");+ const mod = await import("@/registry/example/animated-list-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2846,13 +2842,13 @@ export const Index: Record<string, any> = {component: React.lazy(async () => {const mod = await import("@/registry/example/animated-shiny-text-demo.tsx"- );+ )const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2869,13 +2865,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/particles-demo.tsx");+ const mod = await import("@/registry/example/particles-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2894,13 +2890,13 @@ export const Index: Record<string, any> = {component: React.lazy(async () => {const mod = await import("@/registry/example/animated-grid-pattern-demo.tsx"- );+ )const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2919,13 +2915,13 @@ export const Index: Record<string, any> = {component: React.lazy(async () => {const mod = await import("@/registry/example/interactive-grid-pattern-demo.tsx"- );+ )const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2945,13 +2941,13 @@ export const Index: Record<string, any> = {component: React.lazy(async () => {const mod = await import("@/registry/example/interactive-grid-pattern-demo-2.tsx"- );+ )const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2968,13 +2964,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/border-beam-demo.tsx");+ const mod = await import("@/registry/example/border-beam-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -2991,13 +2987,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/border-beam-demo-2.tsx");+ const mod = await import("@/registry/example/border-beam-demo-2.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3020,13 +3016,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/border-beam-demo-3.tsx");+ const mod = await import("@/registry/example/border-beam-demo-3.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3043,13 +3039,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/border-beam-demo-4.tsx");+ const mod = await import("@/registry/example/border-beam-demo-4.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3066,13 +3062,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/animated-beam-demo.tsx");+ const mod = await import("@/registry/example/animated-beam-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3091,13 +3087,13 @@ export const Index: Record<string, any> = {component: React.lazy(async () => {const mod = await import("@/registry/example/animated-beam-unidirectional.tsx"- );+ )const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3116,13 +3112,13 @@ export const Index: Record<string, any> = {component: React.lazy(async () => {const mod = await import("@/registry/example/animated-beam-bidirectional.tsx"- );+ )const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3141,13 +3137,13 @@ export const Index: Record<string, any> = {component: React.lazy(async () => {const mod = await import("@/registry/example/animated-beam-multiple-inputs.tsx"- );+ )const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3166,13 +3162,13 @@ export const Index: Record<string, any> = {component: React.lazy(async () => {const mod = await import("@/registry/example/animated-beam-multiple-outputs.tsx"- );+ )const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3189,13 +3185,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/text-reveal-demo.tsx");+ const mod = await import("@/registry/example/text-reveal-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3214,13 +3210,13 @@ export const Index: Record<string, any> = {component: React.lazy(async () => {const mod = await import("@/registry/example/animated-gradient-text-demo.tsx"- );+ )const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3240,13 +3236,13 @@ export const Index: Record<string, any> = {component: React.lazy(async () => {const mod = await import("@/registry/example/animated-gradient-text-demo-2.tsx"- );+ )const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3263,13 +3259,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/orbiting-circles-demo.tsx");+ const mod = await import("@/registry/example/orbiting-circles-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3286,13 +3282,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/dock-demo.tsx");+ const mod = await import("@/registry/example/dock-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3309,13 +3305,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/dock-demo-2.tsx");+ const mod = await import("@/registry/example/dock-demo-2.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3332,13 +3328,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/dock-demo-3.tsx");+ const mod = await import("@/registry/example/dock-demo-3.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3355,13 +3351,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/word-rotate-demo.tsx");+ const mod = await import("@/registry/example/word-rotate-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3378,13 +3374,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/hyper-text-demo.tsx");+ const mod = await import("@/registry/example/hyper-text-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3401,13 +3397,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/avatar-circles-demo.tsx");+ const mod = await import("@/registry/example/avatar-circles-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3424,13 +3420,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/typing-animation-demo.tsx");+ const mod = await import("@/registry/example/typing-animation-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3449,13 +3445,13 @@ export const Index: Record<string, any> = {component: React.lazy(async () => {const mod = await import("@/registry/example/scroll-based-velocity-demo.tsx"- );+ )const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3475,13 +3471,13 @@ export const Index: Record<string, any> = {component: React.lazy(async () => {const mod = await import("@/registry/example/scroll-based-velocity-images-demo.tsx"- );+ )const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3498,13 +3494,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/scratch-to-reveal-demo.tsx");+ const mod = await import("@/registry/example/scratch-to-reveal-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3521,13 +3517,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/flip-text-demo.tsx");+ const mod = await import("@/registry/example/flip-text-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3544,13 +3540,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/sparkles-text-demo.tsx");+ const mod = await import("@/registry/example/sparkles-text-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3567,13 +3563,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/spinning-text-demo.tsx");+ const mod = await import("@/registry/example/spinning-text-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3590,13 +3586,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/spinning-text-demo-2.tsx");+ const mod = await import("@/registry/example/spinning-text-demo-2.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3613,13 +3609,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/comic-text-demo.tsx");+ const mod = await import("@/registry/example/comic-text-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3636,13 +3632,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/icon-cloud-demo.tsx");+ const mod = await import("@/registry/example/icon-cloud-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3659,13 +3655,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/icon-cloud-demo-2.tsx");+ const mod = await import("@/registry/example/icon-cloud-demo-2.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3682,13 +3678,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/icon-cloud-demo-3.tsx");+ const mod = await import("@/registry/example/icon-cloud-demo-3.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3705,13 +3701,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/text-animate-demo.tsx");+ const mod = await import("@/registry/example/text-animate-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3728,13 +3724,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/text-animate-demo-2.tsx");+ const mod = await import("@/registry/example/text-animate-demo-2.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3751,13 +3747,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/text-animate-demo-3.tsx");+ const mod = await import("@/registry/example/text-animate-demo-3.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3774,13 +3770,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/text-animate-demo-4.tsx");+ const mod = await import("@/registry/example/text-animate-demo-4.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3797,13 +3793,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/text-animate-demo-5.tsx");+ const mod = await import("@/registry/example/text-animate-demo-5.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3820,13 +3816,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/text-animate-demo-6.tsx");+ const mod = await import("@/registry/example/text-animate-demo-6.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3843,13 +3839,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/text-animate-demo-7.tsx");+ const mod = await import("@/registry/example/text-animate-demo-7.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3866,13 +3862,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/text-animate-demo-8.tsx");+ const mod = await import("@/registry/example/text-animate-demo-8.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3889,13 +3885,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/text-animate-demo-9.tsx");+ const mod = await import("@/registry/example/text-animate-demo-9.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3912,13 +3908,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/shiny-button-demo.tsx");+ const mod = await import("@/registry/example/shiny-button-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3935,13 +3931,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/box-reveal-demo.tsx");+ const mod = await import("@/registry/example/box-reveal-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3960,13 +3956,13 @@ export const Index: Record<string, any> = {component: React.lazy(async () => {const mod = await import("@/registry/example/animated-circular-progress-bar-demo.tsx"- );+ )const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -3983,13 +3979,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/shine-border-demo.tsx");+ const mod = await import("@/registry/example/shine-border-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -4006,13 +4002,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/shine-border-demo-2.tsx");+ const mod = await import("@/registry/example/shine-border-demo-2.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -4029,13 +4025,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/confetti-demo.tsx");+ const mod = await import("@/registry/example/confetti-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -4052,13 +4048,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/confetti-basic-cannon.tsx");+ const mod = await import("@/registry/example/confetti-basic-cannon.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -4077,13 +4073,13 @@ export const Index: Record<string, any> = {component: React.lazy(async () => {const mod = await import("@/registry/example/confetti-random-direction.tsx"- );+ )const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -4100,13 +4096,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/confetti-fireworks.tsx");+ const mod = await import("@/registry/example/confetti-fireworks.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -4123,13 +4119,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/confetti-stars.tsx");+ const mod = await import("@/registry/example/confetti-stars.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -4146,13 +4142,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/confetti-side-cannons.tsx");+ const mod = await import("@/registry/example/confetti-side-cannons.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -4169,13 +4165,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/confetti-custom-shapes.tsx");+ const mod = await import("@/registry/example/confetti-custom-shapes.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -4192,13 +4188,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/confetti-emoji.tsx");+ const mod = await import("@/registry/example/confetti-emoji.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -4218,13 +4214,13 @@ export const Index: Record<string, any> = {component: React.lazy(async () => {const mod = await import("@/registry/example/animated-subscribe-button-demo.tsx"- );+ )const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -4244,13 +4240,13 @@ export const Index: Record<string, any> = {component: React.lazy(async () => {const mod = await import("@/registry/example/animated-subscribe-button-controlled-demo.tsx"- );+ )const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -4267,13 +4263,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/cool-mode-demo.tsx");+ const mod = await import("@/registry/example/cool-mode-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -4290,13 +4286,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/cool-mode-custom.tsx");+ const mod = await import("@/registry/example/cool-mode-custom.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -4313,13 +4309,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/pulsating-button-demo.tsx");+ const mod = await import("@/registry/example/pulsating-button-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -4336,13 +4332,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/ripple-button-demo.tsx");+ const mod = await import("@/registry/example/ripple-button-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -4360,13 +4356,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/file-tree-demo.tsx");+ const mod = await import("@/registry/example/file-tree-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -4383,13 +4379,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/blur-fade-demo.tsx");+ const mod = await import("@/registry/example/blur-fade-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -4406,13 +4402,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/blur-fade-text-demo.tsx");+ const mod = await import("@/registry/example/blur-fade-text-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -4429,13 +4425,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/safari-demo.tsx");+ const mod = await import("@/registry/example/safari-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -4452,13 +4448,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/safari-demo-2.tsx");+ const mod = await import("@/registry/example/safari-demo-2.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -4475,13 +4471,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/safari-demo-3.tsx");+ const mod = await import("@/registry/example/safari-demo-3.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -4498,13 +4494,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/safari-demo-4.tsx");+ const mod = await import("@/registry/example/safari-demo-4.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -4521,13 +4517,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/iphone-15-pro-demo.tsx");+ const mod = await import("@/registry/example/iphone-15-pro-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -4544,13 +4540,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/iphone-15-pro-demo-2.tsx");+ const mod = await import("@/registry/example/iphone-15-pro-demo-2.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -4567,13 +4563,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/iphone-15-pro-demo-3.tsx");+ const mod = await import("@/registry/example/iphone-15-pro-demo-3.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -4590,13 +4586,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/rainbow-button-demo.tsx");+ const mod = await import("@/registry/example/rainbow-button-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -4613,13 +4609,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/rainbow-button-demo-2.tsx");+ const mod = await import("@/registry/example/rainbow-button-demo-2.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -4638,13 +4634,13 @@ export const Index: Record<string, any> = {component: React.lazy(async () => {const mod = await import("@/registry/example/interactive-hover-button-demo.tsx"- );+ )const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -4661,13 +4657,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/terminal-demo.tsx");+ const mod = await import("@/registry/example/terminal-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -4685,13 +4681,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/terminal-demo-2.tsx");+ const mod = await import("@/registry/example/terminal-demo-2.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -4708,13 +4704,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/video-text-demo.tsx");+ const mod = await import("@/registry/example/video-text-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -4731,13 +4727,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/pixel-image-demo.tsx");+ const mod = await import("@/registry/example/pixel-image-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -4759,13 +4755,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/highlighter-demo.tsx");+ const mod = await import("@/registry/example/highlighter-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -4787,13 +4783,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/arc-timeline-demo.tsx");+ const mod = await import("@/registry/example/arc-timeline-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -4812,13 +4808,13 @@ export const Index: Record<string, any> = {component: React.lazy(async () => {const mod = await import("@/registry/example/animated-theme-toggler-demo.tsx"- );+ )const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -4836,13 +4832,13 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/example/grid-beams-demo.tsx");+ const mod = await import("@/registry/example/grid-beams-demo.tsx")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},@@ -4859,14 +4855,14 @@ export const Index: Record<string, any> = {},],component: React.lazy(async () => {- const mod = await import("@/registry/lib/utils.ts");+ const mod = await import("@/registry/lib/utils.ts")const exportName =Object.keys(mod).find((key) =>- typeof mod[key] === "function" || typeof mod[key] === "object",- ) || item.name;- return { default: mod.default || mod[exportName] };+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.name+ return { default: mod.default || mod[exportName] }}),meta: undefined,},-};+}diff --git a/apps/www/app/(blog)/blog/[...slug]/page.tsx b/apps/www/app/(blog)/blog/[...slug]/page.tsxindex f139f3c6..8c550054 100644--- a/apps/www/app/(blog)/blog/[...slug]/page.tsx+++ b/apps/www/app/(blog)/blog/[...slug]/page.tsx@@ -1,49 +1,50 @@-import { BlogTableOfContents } from "@/components/blog/table-of-contents";-import { SidebarCTA } from "@/components/sidebar-cta";-import { buttonVariants } from "@/components/ui/button";-import { siteConfig } from "@/config/site";-import { blogSource } from "@/lib/source";-import { absoluteUrl, calculateReadingTime, formatDate } from "@/lib/utils";-import { mdxComponents } from "@/mdx-components";-import { ArrowLeftIcon } from "lucide-react";-import type { Metadata } from "next";-import Link from "next/link";-import { notFound } from "next/navigation";-import type { BlogPosting, WithContext } from "schema-dts";+import type { Metadata } from "next"+import Link from "next/link"+import { notFound } from "next/navigation"+import { mdxComponents } from "@/mdx-components"+import { ArrowLeftIcon } from "lucide-react"+import type { BlogPosting, WithContext } from "schema-dts"-export const revalidate = false;-export const dynamic = "force-static";-export const dynamicParams = false;+import { siteConfig } from "@/config/site"+import { blogSource } from "@/lib/source"+import { absoluteUrl, calculateReadingTime, formatDate } from "@/lib/utils"+import { buttonVariants } from "@/components/ui/button"+import { BlogTableOfContents } from "@/components/blog/table-of-contents"+import { SidebarCTA } from "@/components/sidebar-cta"++export const revalidate = false+export const dynamic = "force-static"+export const dynamicParams = falseinterface PageProps {params: Promise<{- slug: string[];- }>;+ slug: string[]+ }>}export function generateStaticParams() {- return blogSource.generateParams();+ return blogSource.generateParams()}async function getDocFromParams({ params }: PageProps) {- const { slug } = await params;- const page = blogSource.getPage(slug);- if (!page) notFound();- const doc = page.data;+ const { slug } = await params+ const page = blogSource.getPage(slug)+ if (!page) notFound()+ const doc = page.dataif (!doc.title || !doc.description) {- notFound();+ notFound()}- return { doc, page };+ return { doc, page }}export async function generateMetadata({params,}: PageProps): Promise<Metadata> {- const { doc, page } = await getDocFromParams({ params });+ const { doc, page } = await getDocFromParams({ params })if (!page) {- return {};+ return {}}return {@@ -70,13 +71,13 @@ export async function generateMetadata({images: [doc.image || ""],creator: "@dillionverma",},- };+ }}export default async function BlogPage({ params }: PageProps) {- const { doc, page } = await getDocFromParams({ params });+ const { doc, page } = await getDocFromParams({ params })- const MDX = doc.body;+ const MDX = doc.body// Generate structured data for individual blog postconst structuredData: WithContext<BlogPosting> = {@@ -109,12 +110,12 @@ export default async function BlogPage({ params }: PageProps) {wordCount: doc.content ? doc.content.split(/\s+/).length : 0,timeRequired: `PT${calculateReadingTime(doc.content || "")}M`,keywords: (() => {- const docTag = doc.tag;- if (!docTag) return undefined;- return Array.isArray(docTag) ? docTag : [docTag];+ const docTag = doc.tag+ if (!docTag) return undefined+ return Array.isArray(docTag) ? docTag : [docTag]})(),inLanguage: "en-US",- };+ }return (<>@@ -138,33 +139,33 @@ export default async function BlogPage({ params }: PageProps) {<imgsrc={doc.image}alt={doc.title}- className="size-full rounded-xl border border-border object-cover object-left"+ className="border-border size-full rounded-xl border object-cover object-left"/></div>- <div className="mx-auto flex flex-col items-center justify-center gap-y-2 border-y border-border p-5">+ <div className="border-border mx-auto flex flex-col items-center justify-center gap-y-2 border-y p-5"><div className="mx-auto flex max-w-4xl flex-col items-center justify-center gap-y-2">- <h1 className="text-balance text-center text-3xl font-semibold tracking-tighter md:text-5xl">+ <h1 className="text-center text-3xl font-semibold tracking-tighter text-balance md:text-5xl">{doc.title}</h1>- <p className="text-balance text-center text-secondary-foreground md:text-lg">+ <p className="text-secondary-foreground text-center text-balance md:text-lg">{doc.description}</p>{doc.publishedOn && (- <time className="text-sm text-secondary-foreground">+ <time className="text-secondary-foreground text-sm">{formatDate(doc.publishedOn)}</time>)}</div></div>- <div className="flex items-center justify-center gap-x-2 border-b border-border p-3 text-sm text-secondary-foreground">+ <div className="border-border text-secondary-foreground flex items-center justify-center gap-x-2 border-b p-3 text-sm"><span>{calculateReadingTime(doc.content)} min read</span>{(() => {- const docTag = doc.tag;+ const docTag = doc.tagconst tags = docTag? Array.isArray(docTag)? docTag: [docTag]- : [];+ : []return (tags.length > 0 && (@@ -175,7 +176,7 @@ export default async function BlogPage({ params }: PageProps) {<Linkkey={tag}href={`/blog?tag=${encodeURIComponent(tag)}`}- className="rounded-full border border-border bg-primary/5 px-2.5 py-0.5 transition-colors hover:bg-primary/10"+ className="border-border bg-primary/5 hover:bg-primary/10 rounded-full border px-2.5 py-0.5 transition-colors">{tag}</Link>@@ -183,7 +184,7 @@ export default async function BlogPage({ params }: PageProps) {</div></>)- );+ )})()}</div></div>@@ -192,7 +193,7 @@ export default async function BlogPage({ params }: PageProps) {<div className="article-content col-span-5 p-5 lg:p-10"><MDX components={mdxComponents} /></div>- <div className="sticky top-16 col-span-2 hidden h-fit w-full flex-col items-start justify-start p-5 text-primary lg:flex ">+ <div className="text-primary sticky top-16 col-span-2 hidden h-fit w-full flex-col items-start justify-start p-5 lg:flex"><BlogTableOfContents /><div className="h-10" /><SidebarCTA />@@ -201,5 +202,5 @@ export default async function BlogPage({ params }: PageProps) {</article></div></>- );+ )}diff --git a/apps/www/app/(blog)/blog/layout.tsx b/apps/www/app/(blog)/blog/layout.tsxindex 1b950db0..187cdf71 100644--- a/apps/www/app/(blog)/blog/layout.tsx+++ b/apps/www/app/(blog)/blog/layout.tsx@@ -1,5 +1,5 @@-import { SiteFooter } from "@/components/site-footer";-import { SiteHeader } from "@/components/site-header";+import { SiteFooter } from "@/components/site-footer"+import { SiteHeader } from "@/components/site-header"export default function Layout({ children }: { children: React.ReactNode }) {return (@@ -8,5 +8,5 @@ export default function Layout({ children }: { children: React.ReactNode }) {<main className="min-h-screen w-full">{children}</main><SiteFooter /></>- );+ )}diff --git a/apps/www/app/(blog)/blog/page.tsx b/apps/www/app/(blog)/blog/page.tsxindex 47f14bf9..fb65301b 100644--- a/apps/www/app/(blog)/blog/page.tsx+++ b/apps/www/app/(blog)/blog/page.tsx@@ -1,51 +1,52 @@-import { siteConfig } from "@/config/site";-import { blogSource } from "@/lib/source";+import type { Metadata } from "next"+import Link from "next/link"+import type { Blog, WithContext } from "schema-dts"++import { siteConfig } from "@/config/site"+import { blogSource } from "@/lib/source"import {calculateReadingTime,constructMetadata,formatDate,normalizeTag,pluralize,-} from "@/lib/utils";-import type { Metadata } from "next";-import Link from "next/link";-import type { Blog, WithContext } from "schema-dts";+} from "@/lib/utils"-export const revalidate = false;-export const dynamic = "force-static";-export const dynamicParams = false;+export const revalidate = false+export const dynamic = "force-static"+export const dynamicParams = falseexport function generateStaticParams() {- return [];+ return []}const BLOG_DESCRIPTION =- "Latest articles about UI components, animations, and web development best practices.";+ "Latest articles about UI components, animations, and web development best practices."export const metadata: Metadata = constructMetadata({title: `Blog | ${siteConfig.name}`,description: BLOG_DESCRIPTION,-});+})export default async function Page({searchParams,}: {- searchParams?: Promise<{ tag?: string }>;+ searchParams?: Promise<{ tag?: string }>}) {- const params = await searchParams;- const selectedTag = params?.tag ?? "";+ const params = await searchParams+ const selectedTag = params?.tag ?? ""const posts = blogSource.getPages().sort((a, b) => {- const dateA = new Date(a.data?.publishedOn || 0).getTime();- const dateB = new Date(b.data?.publishedOn || 0).getTime();- return dateB - dateA;- });+ const dateA = new Date(a.data?.publishedOn || 0).getTime()+ const dateB = new Date(b.data?.publishedOn || 0).getTime()+ return dateB - dateA+ })- const allTags = posts.flatMap((p) => normalizeTag(p.data?.tag));- const tags = [...new Set(allTags)].filter(Boolean).sort();+ const allTags = posts.flatMap((p) => normalizeTag(p.data?.tag))+ const tags = [...new Set(allTags)].filter(Boolean).sort()const filteredPosts = selectedTag? posts.filter((p) => normalizeTag(p.data?.tag).includes(selectedTag))- : posts;+ : posts// Generate structured dataconst structuredData: WithContext<Blog> = {@@ -87,7 +88,7 @@ export default async function Page({url: siteConfig.url,},})),- };+ }return (<>@@ -101,13 +102,13 @@ export default async function Page({<header className="mb-8 space-y-4"><div><h1 className="text-3xl font-bold tracking-tight">Blog</h1>- <p className="mt-2 text-lg text-muted-foreground">+ <p className="text-muted-foreground mt-2 text-lg">{BLOG_DESCRIPTION}</p></div>{filteredPosts.length > 0 && (- <p className="text-sm text-muted-foreground">+ <p className="text-muted-foreground text-sm">{selectedTag? `${pluralize(filteredPosts.length, "article")} tagged with "${selectedTag}"`: `${pluralize(filteredPosts.length, "article")} total`}@@ -147,7 +148,7 @@ export default async function Page({{filteredPosts.length === 0 ? (<div className="py-16 text-center">- <p className="text-lg text-muted-foreground">+ <p className="text-muted-foreground text-lg">{selectedTag? `No articles found for "${selectedTag}".`: "No posts yet."}@@ -155,7 +156,7 @@ export default async function Page({{selectedTag && (<Linkhref="/blog"- className="mt-4 inline-flex items-center text-primary hover:underline"+ className="text-primary mt-4 inline-flex items-center hover:underline">View all articles</Link>@@ -166,9 +167,9 @@ export default async function Page({{filteredPosts.map((post) => (<articlekey={post.url}- className="group flex flex-col overflow-hidden rounded-xl border bg-card transition-all duration-200 hover:bg-accent/5"+ className="group bg-card hover:bg-accent/5 flex flex-col overflow-hidden rounded-xl border transition-all duration-200">- <Link href={post.url} className="flex flex-col h-full">+ <Link href={post.url} className="flex h-full flex-col">{post.data?.image && (<div className="aspect-video overflow-hidden"><img@@ -181,19 +182,19 @@ export default async function Page({</div>)}- <div className="flex flex-col flex-1 p-6 space-y-4">+ <div className="flex flex-1 flex-col space-y-4 p-6"><div className="flex-1 space-y-2">- <h2 className="line-clamp-2 text-xl font-semibold leading-tight group-hover:text-primary transition-colors">+ <h2 className="group-hover:text-primary line-clamp-2 text-xl leading-tight font-semibold transition-colors">{post.data?.title ?? post.url}</h2>{post.data?.description && (- <p className="line-clamp-3 text-sm text-muted-foreground leading-relaxed">+ <p className="text-muted-foreground line-clamp-3 text-sm leading-relaxed">{post.data.description}</p>)}</div>- <div className="flex flex-col gap-2 text-xs text-muted-foreground">+ <div className="text-muted-foreground flex flex-col gap-2 text-xs"><div className="flex items-center gap-2">{post.data?.publishedOn && (<time dateTime={post.data.publishedOn}>@@ -213,7 +214,7 @@ export default async function Page({<Linkkey={tag}href={`/blog?tag=${encodeURIComponent(tag)}`}- className="rounded-md border px-2 py-1 text-xs transition-colors hover:bg-accent"+ className="hover:bg-accent rounded-md border px-2 py-1 text-xs transition-colors">{tag}</Link>@@ -229,5 +230,5 @@ export default async function Page({)}</main></>- );+ )}diff --git a/apps/www/app/(docs)/docs/[[...slug]]/page.tsx b/apps/www/app/(docs)/docs/[[...slug]]/page.tsxindex 4795091b..96ca8d10 100644--- a/apps/www/app/(docs)/docs/[[...slug]]/page.tsx+++ b/apps/www/app/(docs)/docs/[[...slug]]/page.tsx@@ -1,64 +1,64 @@-import { DocsCopyPage } from "@/components/docs-copy-page";-import { Badge } from "@/components/ui/badge";-import { absoluteUrl } from "@/lib/utils";--import { Contribute } from "@/components/contribute";-import { DocsTableOfContents } from "@/components/docs-toc";-import { SidebarCTA } from "@/components/sidebar-cta";-import { Button } from "@/components/ui/button";-import { replaceComponentSource } from "@/lib/docs";-import { source } from "@/lib/source";-import { mdxComponents } from "@/mdx-components";+import type { Metadata } from "next"+import Link from "next/link"+import { notFound } from "next/navigation"+import { mdxComponents } from "@/mdx-components"import {IconArrowLeft,IconArrowRight,IconArrowUpRight,-} from "@tabler/icons-react";-import { findNeighbour } from "fumadocs-core/server";-import type { Metadata } from "next";-import Link from "next/link";-import { notFound } from "next/navigation";+} from "@tabler/icons-react"+import { findNeighbour } from "fumadocs-core/server"++import { replaceComponentSource } from "@/lib/docs"+import { source } from "@/lib/source"+import { absoluteUrl } from "@/lib/utils"+import { Badge } from "@/components/ui/badge"+import { Button } from "@/components/ui/button"+import { Contribute } from "@/components/contribute"+import { DocsCopyPage } from "@/components/docs-copy-page"+import { DocsTableOfContents } from "@/components/docs-toc"+import { SidebarCTA } from "@/components/sidebar-cta"-export const revalidate = false;-export const dynamic = "force-static";-export const dynamicParams = false;+export const revalidate = false+export const dynamic = "force-static"+export const dynamicParams = falseexport function generateStaticParams() {- return source.generateParams();+ return source.generateParams()}interface DocPageProps {params: Promise<{- slug: string[];- }>;+ slug: string[]+ }>}async function getDocFromParams({ params }: DocPageProps) {- const { slug } = await params;- const page = source.getPage(slug);- if (!page) notFound();- const doc = page.data;+ const { slug } = await params+ const page = source.getPage(slug)+ if (!page) notFound()+ const doc = page.dataif (!doc.title || !doc.description) {- notFound();+ notFound()}- return { doc, page };+ return { doc, page }}export async function generateMetadata({params,}: DocPageProps): Promise<Metadata> {- const { doc, page } = await getDocFromParams({ params });+ const { doc, page } = await getDocFromParams({ params })if (!doc) {- return {};+ return {}}- const url = process.env.NEXT_PUBLIC_APP_URL;+ const url = process.env.NEXT_PUBLIC_APP_URL- const ogUrl = new URL(`${url}/og`);- ogUrl.searchParams.set("title", doc.title ?? "");- ogUrl.searchParams.set("description", doc.description ?? "");+ const ogUrl = new URL(`${url}/og`)+ ogUrl.searchParams.set("title", doc.title ?? "")+ ogUrl.searchParams.set("description", doc.description ?? "")return {title: `${doc.title} | Magic UI`,@@ -83,14 +83,14 @@ export async function generateMetadata({images: [ogUrl.toString()],creator: "@dillionverma",},- };+ }}export default async function DocPage({ params }: DocPageProps) {- const { doc, page } = await getDocFromParams({ params });- const MDX = doc.body;- const neighbours = findNeighbour(source.pageTree, page.url);- const links = doc.links;+ const { doc, page } = await getDocFromParams({ params })+ const MDX = doc.body+ const neighbours = findNeighbour(source.pageTree, page.url)+ const links = doc.linksreturn (<div@@ -207,5 +207,5 @@ export default async function DocPage({ params }: DocPageProps) {) : null}</div></div>- );+ )}diff --git a/apps/www/app/(docs)/docs/layout.tsx b/apps/www/app/(docs)/docs/layout.tsxindex 4295a952..64e49997 100644--- a/apps/www/app/(docs)/docs/layout.tsx+++ b/apps/www/app/(docs)/docs/layout.tsx@@ -1,10 +1,10 @@-import { DocsSidebar } from "@/components/docs-sidebar";-import { SidebarProvider } from "@/components/ui/sidebar";+import { SidebarProvider } from "@/components/ui/sidebar"+import { DocsSidebar } from "@/components/docs-sidebar"export default function DocsLayout({children,}: {- children: React.ReactNode;+ children: React.ReactNode}) {return (<div className="container-wrapper flex flex-1 flex-col px-2">@@ -13,5 +13,5 @@ export default function DocsLayout({<div className="h-full w-full">{children}</div></SidebarProvider></div>- );+ )}diff --git a/apps/www/app/(docs)/docs/not-found.tsx b/apps/www/app/(docs)/docs/not-found.tsxindex b0ad4c83..e4e227bd 100644--- a/apps/www/app/(docs)/docs/not-found.tsx+++ b/apps/www/app/(docs)/docs/not-found.tsx@@ -1,13 +1,13 @@-"use client";+"use client"-import Link from "next/link";-import { useRouter } from "next/navigation";+import Link from "next/link"+import { useRouter } from "next/navigation"-import { Button, buttonVariants } from "@/components/ui/button";-import { Icons } from "@/components/icons";+import { Button, buttonVariants } from "@/components/ui/button"+import { Icons } from "@/components/icons"export default function NotFound() {- const router = useRouter();+ const router = useRouter()return (<section><div className="container mx-auto flex min-h-[calc(100vh-8rem)] items-center px-6 py-12">@@ -15,7 +15,7 @@ export default function NotFound() {<p className="rounded-full bg-blue-50 p-3 text-sm font-medium dark:bg-gray-800"><Icons.warning className="size-6" /></p>- <h1 className="mt-3 text-2xl font-semibold text-gray-800 dark:text-white md:text-3xl">+ <h1 className="mt-3 text-2xl font-semibold text-gray-800 md:text-3xl dark:text-white">Page not found</h1><p className="mt-4 text-gray-500 dark:text-gray-400">@@ -38,5 +38,5 @@ export default function NotFound() {</div></div></section>- );+ )}diff --git a/apps/www/app/(docs)/layout.tsx b/apps/www/app/(docs)/layout.tsxindex cc78f619..12e15d02 100644--- a/apps/www/app/(docs)/layout.tsx+++ b/apps/www/app/(docs)/layout.tsx@@ -1,9 +1,9 @@-import { SiteBanner } from "@/components/site-banner";-import { SiteFooter } from "@/components/site-footer";-import { SiteHeader } from "@/components/site-header";+import { SiteBanner } from "@/components/site-banner"+import { SiteFooter } from "@/components/site-footer"+import { SiteHeader } from "@/components/site-header"interface MarketingLayoutProps {- children: React.ReactNode;+ children: React.ReactNode}export default async function MarketingLayout({@@ -16,5 +16,5 @@ export default async function MarketingLayout({<main className="flex-1">{children}</main><SiteFooter /></>- );+ )}diff --git a/apps/www/app/(marketing)/layout.tsx b/apps/www/app/(marketing)/layout.tsxindex 95aee163..10a23407 100644--- a/apps/www/app/(marketing)/layout.tsx+++ b/apps/www/app/(marketing)/layout.tsx@@ -1,9 +1,9 @@-import { SiteBanner } from "@/components/site-banner";-import { SiteFooter } from "@/components/site-footer";-import { SiteHeader } from "@/components/site-header";+import { SiteBanner } from "@/components/site-banner"+import { SiteFooter } from "@/components/site-footer"+import { SiteHeader } from "@/components/site-header"interface MarketingLayoutProps {- children: React.ReactNode;+ children: React.ReactNode}export default async function MarketingLayout({@@ -15,7 +15,7 @@ export default async function MarketingLayout({<SiteHeader /><main className="flex-1">{children}</main><SiteFooter />- <div className="pointer-events-none absolute inset-0 h-24 w-full before:absolute before:bottom-[-20%] before:left-1/2 before:z-0 before:h-4/5 before:w-3/5 before:-translate-x-1/2 before:animate-rainbow before:bg-[linear-gradient(90deg,var(--color-1),var(--color-5),var(--color-3),var(--color-4),var(--color-2))] before:bg-[length:200%] before:opacity-20 before:[filter:blur(calc(4*1rem))]" />+ <div className="before:animate-rainbow pointer-events-none absolute inset-0 h-24 w-full before:absolute before:bottom-[-20%] before:left-1/2 before:z-0 before:h-4/5 before:w-3/5 before:-translate-x-1/2 before:bg-[linear-gradient(90deg,var(--color-1),var(--color-5),var(--color-3),var(--color-4),var(--color-2))] before:bg-[length:200%] before:opacity-20 before:[filter:blur(calc(4*1rem))]" /></>- );+ )}diff --git a/apps/www/app/(marketing)/page.tsx b/apps/www/app/(marketing)/page.tsxindex ce54546c..bdb79028 100644--- a/apps/www/app/(marketing)/page.tsx+++ b/apps/www/app/(marketing)/page.tsx@@ -1,7 +1,7 @@-import { Hero } from "@/components/sections/hero";-import { Showcase } from "@/components/sections/showcase";-import { Testimonials } from "@/components/sections/testimonials";-import { VideoTestimonials } from "@/components/sections/video-testimonials";+import { Hero } from "@/components/sections/hero"+import { Showcase } from "@/components/sections/showcase"+import { Testimonials } from "@/components/sections/testimonials"+import { VideoTestimonials } from "@/components/sections/video-testimonials"export default function Home() {return (@@ -11,5 +11,5 @@ export default function Home() {<Testimonials /><VideoTestimonials /></>- );+ )}diff --git a/apps/www/app/(marketing)/showcase/[...slug]/page.tsx b/apps/www/app/(marketing)/showcase/[...slug]/page.tsxindex 21b38aa9..34cdbc67 100644--- a/apps/www/app/(marketing)/showcase/[...slug]/page.tsx+++ b/apps/www/app/(marketing)/showcase/[...slug]/page.tsx@@ -1,50 +1,50 @@-import { ShowcaseCard } from "@/components/sections/showcase";-import { showcaseSource } from "@/lib/source";-import { absoluteUrl } from "@/lib/utils";+import { Metadata } from "next"+import { notFound } from "next/navigation"-import { Metadata } from "next";-import { notFound } from "next/navigation";+import { showcaseSource } from "@/lib/source"+import { absoluteUrl } from "@/lib/utils"+import { ShowcaseCard } from "@/components/sections/showcase"-export const revalidate = false;-export const dynamic = "force-static";-export const dynamicParams = false;+export const revalidate = false+export const dynamic = "force-static"+export const dynamicParams = falseexport function generateStaticParams() {- return showcaseSource.generateParams();+ return showcaseSource.generateParams()}interface PageProps {params: Promise<{- slug: string[];- }>;+ slug: string[]+ }>}async function getDocFromParams({ params }: PageProps) {- const { slug } = await params;- const page = showcaseSource.getPage(slug);- if (!page) notFound();- const doc = page.data;+ const { slug } = await params+ const page = showcaseSource.getPage(slug)+ if (!page) notFound()+ const doc = page.dataif (!doc.title || !doc.description) {- notFound();+ notFound()}- return { doc, page };+ return { doc, page }}export async function generateMetadata({params,}: PageProps): Promise<Metadata> {- const { doc, page } = await getDocFromParams({ params });+ const { doc, page } = await getDocFromParams({ params })if (!page) {- return {};+ return {}}- const url = process.env.NEXT_PUBLIC_APP_URL;+ const url = process.env.NEXT_PUBLIC_APP_URL- const ogUrl = new URL(`${url}/og`);- ogUrl.searchParams.set("title", doc.title ?? "");- ogUrl.searchParams.set("description", doc.description ?? "");+ const ogUrl = new URL(`${url}/og`)+ ogUrl.searchParams.set("title", doc.title ?? "")+ ogUrl.searchParams.set("description", doc.description ?? "")return {title: doc.title,@@ -68,18 +68,18 @@ export async function generateMetadata({description: doc.description,images: [ogUrl.toString()],},- };+ }}export default async function PagePage({ params }: PageProps) {- const { doc, page } = await getDocFromParams({ params });+ const { doc, page } = await getDocFromParams({ params })return (<article className="container max-w-2xl py-14">- <h2 className="mb-4 text-center text-5xl font-bold leading-[1.2] tracking-tighter text-foreground">+ <h2 className="text-foreground mb-4 text-center text-5xl leading-[1.2] font-bold tracking-tighter">{doc.title}</h2>- <h3 className="mx-auto mb-8 text-balance text-center text-lg font-medium tracking-tight text-foreground/80">+ <h3 className="text-foreground/80 mx-auto mb-8 text-center text-lg font-medium tracking-tight text-balance">{doc.title} uses Magic UI to build their landing page.</h3><ShowcaseCard@@ -89,5 +89,5 @@ export default async function PagePage({ params }: PageProps) {affiliation={doc.affiliation ?? ""}/></article>- );+ )}diff --git a/apps/www/app/(marketing)/showcase/page.tsx b/apps/www/app/(marketing)/showcase/page.tsxindex aa784b0b..2deab92c 100644--- a/apps/www/app/(marketing)/showcase/page.tsx+++ b/apps/www/app/(marketing)/showcase/page.tsx@@ -1,15 +1,15 @@-import { ShowcaseCard } from "@/components/sections/showcase";-import { showcaseSource } from "@/lib/source";-import { BlurFade } from "@/registry/magicui/blur-fade";+import { showcaseSource } from "@/lib/source"+import { ShowcaseCard } from "@/components/sections/showcase"+import { BlurFade } from "@/registry/magicui/blur-fade"export default function Page() {- const showcases = showcaseSource.getPages();+ const showcases = showcaseSource.getPages()return (<article className="container max-w-[120ch] py-14">- <h2 className="mb-2 text-center text-5xl font-bold leading-[1.2] tracking-tighter text-foreground">+ <h2 className="text-foreground mb-2 text-center text-5xl leading-[1.2] font-bold tracking-tighter">Showcase</h2>- <h3 className="mx-auto mb-8 text-balance text-center text-lg font-medium tracking-tight text-foreground/80">+ <h3 className="text-foreground/80 mx-auto mb-8 text-center text-lg font-medium tracking-tight text-balance">Companies choose Magic UI to build their landing pages.</h3><div className="grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3">@@ -26,5 +26,5 @@ export default function Page() {))}</div></article>- );+ )}diff --git a/apps/www/app/api/blog-webhook/route.ts b/apps/www/app/api/blog-webhook/route.tsindex 73ea4b47..e2a653f9 100644--- a/apps/www/app/api/blog-webhook/route.ts+++ b/apps/www/app/api/blog-webhook/route.ts@@ -1,19 +1,19 @@-import { NextRequest, NextResponse } from "next/server";+import { NextRequest, NextResponse } from "next/server"-const REPO_OWNER = "magicuidesign";-const REPO_NAME = "magicui";-const BRANCH = "main";-const WORKFLOW_FILE = "publish-article.yml";+const REPO_OWNER = "magicuidesign"+const REPO_NAME = "magicui"+const BRANCH = "main"+const WORKFLOW_FILE = "publish-article.yml"export async function POST(request: NextRequest) {- const auth = request.headers.get("authorization");+ const auth = request.headers.get("authorization")if (!auth || auth !== `Bearer ${process.env.BLOG_WEBHOOK_ACCESS_TOKEN}`) {- return NextResponse.json({ error: "Unauthorized" }, { status: 401 });+ return NextResponse.json({ error: "Unauthorized" }, { status: 401 })}// Get the raw payload from the incoming webhook- const body = await request.json();- const payload = JSON.stringify(body);+ const body = await request.json()+ const payload = JSON.stringify(body)// Call GitHub Actions workflow_dispatchconst ghResp = await fetch(@@ -29,17 +29,17 @@ export async function POST(request: NextRequest) {ref: BRANCH,inputs: { payload },}),- },- );+ }+ )- const text = await ghResp.text();+ const text = await ghResp.text()if (!ghResp.ok) {return NextResponse.json({ error: "GitHub error", details: text },- { status: 500 },- );+ { status: 500 }+ )}- return NextResponse.json({ message: "Workflow dispatched", details: text });+ return NextResponse.json({ message: "Workflow dispatched", details: text })}diff --git a/apps/www/app/layout.tsx b/apps/www/app/layout.tsxindex e1b364cd..c8b87fc2 100644--- a/apps/www/app/layout.tsx+++ b/apps/www/app/layout.tsx@@ -1,22 +1,23 @@-import { Analytics } from "@/components/analytics";-import { PHProvider } from "@/components/posthog-provider";-import { ThemeProvider } from "@/components/theme-provider";-import { Toaster } from "@/components/ui/sonner";-import { TooltipProvider } from "@/components/ui/tooltip";-import { fontVariables } from "@/lib/fonts";-import { absoluteUrl, cn, constructMetadata } from "@/lib/utils";-import { Provider as JotaiProvider } from "jotai";-import type { Viewport } from "next";-import { Metadata } from "next";+import type { Viewport } from "next"+import { Metadata } from "next"+import { Provider as JotaiProvider } from "jotai"-import "@/styles/globals.css";+import { fontVariables } from "@/lib/fonts"+import { absoluteUrl, cn, constructMetadata } from "@/lib/utils"+import { Toaster } from "@/components/ui/sonner"+import { TooltipProvider } from "@/components/ui/tooltip"+import { Analytics } from "@/components/analytics"+import { PHProvider } from "@/components/posthog-provider"+import { ThemeProvider } from "@/components/theme-provider"++import "@/styles/globals.css"export const metadata: Metadata = constructMetadata({title: "Magic UI",description:"Beautiful UI components and templates to make your landing page look stunning.",image: absoluteUrl("/og"),-});+})export const viewport: Viewport = {colorScheme: "dark",@@ -24,12 +25,12 @@ export const viewport: Viewport = {{ media: "(prefers-color-scheme: light)", color: "white" },{ media: "(prefers-color-scheme: dark)", color: "black" },],-};+}export default function RootLayout({children,}: {- children: React.ReactNode;+ children: React.ReactNode}) {return (<html lang="en" suppressHydrationWarning className="layout-fixed">@@ -37,7 +38,7 @@ export default function RootLayout({<bodyclassName={cn("text-foreground group/body overscroll-none font-sans antialiased [--footer-height:calc(var(--spacing)*14)] [--header-height:calc(var(--spacing)*14)] xl:[--footer-height:calc(var(--spacing)*24)]",- fontVariables,+ fontVariables)}><JotaiProvider>@@ -53,5 +54,5 @@ export default function RootLayout({</JotaiProvider></body></html>- );+ )}diff --git a/apps/www/app/llm/[[...slug]]/route.ts b/apps/www/app/llm/[[...slug]]/route.tsindex c948f785..e8810b93 100644--- a/apps/www/app/llm/[[...slug]]/route.ts+++ b/apps/www/app/llm/[[...slug]]/route.ts@@ -1,34 +1,35 @@-import { replaceComponentSource } from "@/lib/docs";-import { source } from "@/lib/source";-import { notFound } from "next/navigation";-import { NextResponse, type NextRequest } from "next/server";+import { notFound } from "next/navigation"+import { NextResponse, type NextRequest } from "next/server"-export const revalidate = false;+import { replaceComponentSource } from "@/lib/docs"+import { source } from "@/lib/source"++export const revalidate = falseexport async function GET(_req: NextRequest,- { params }: { params: Promise<{ slug?: string[] }> },+ { params }: { params: Promise<{ slug?: string[] }> }) {- const slug = (await params).slug;- const page = source.getPage(slug);+ const slug = (await params).slug+ const page = source.getPage(slug)if (!page) {- notFound();+ notFound()}- let mdx = page.data.content as string;+ let mdx = page.data.content as string// Replace component tags with actual source code- mdx = await replaceComponentSource(mdx);+ mdx = await replaceComponentSource(mdx)return new NextResponse(mdx, {headers: {"Content-Type": "text/markdown; charset=utf-8","Cache-Control": "public, s-maxage=60, stale-while-revalidate=300",},- });+ })}export function generateStaticParams() {- return source.generateParams();+ return source.generateParams()}diff --git a/apps/www/app/not-found.tsx b/apps/www/app/not-found.tsxindex b0ad4c83..e4e227bd 100644--- a/apps/www/app/not-found.tsx+++ b/apps/www/app/not-found.tsx@@ -1,13 +1,13 @@-"use client";+"use client"-import Link from "next/link";-import { useRouter } from "next/navigation";+import Link from "next/link"+import { useRouter } from "next/navigation"-import { Button, buttonVariants } from "@/components/ui/button";-import { Icons } from "@/components/icons";+import { Button, buttonVariants } from "@/components/ui/button"+import { Icons } from "@/components/icons"export default function NotFound() {- const router = useRouter();+ const router = useRouter()return (<section><div className="container mx-auto flex min-h-[calc(100vh-8rem)] items-center px-6 py-12">@@ -15,7 +15,7 @@ export default function NotFound() {<p className="rounded-full bg-blue-50 p-3 text-sm font-medium dark:bg-gray-800"><Icons.warning className="size-6" /></p>- <h1 className="mt-3 text-2xl font-semibold text-gray-800 dark:text-white md:text-3xl">+ <h1 className="mt-3 text-2xl font-semibold text-gray-800 md:text-3xl dark:text-white">Page not found</h1><p className="mt-4 text-gray-500 dark:text-gray-400">@@ -38,5 +38,5 @@ export default function NotFound() {</div></div></section>- );+ )}diff --git a/apps/www/app/og/route.tsx b/apps/www/app/og/route.tsxindex 4bcb812e..02a13ee8 100644--- a/apps/www/app/og/route.tsx+++ b/apps/www/app/og/route.tsx@@ -1,6 +1,6 @@-import { ImageResponse } from "next/og";+import { ImageResponse } from "next/og"-import { Icons } from "@/components/icons";+import { Icons } from "@/components/icons"async function loadAssets(): Promise<{ name: string; data: Buffer; weight: 400 | 600; style: "normal" }[]@@ -13,7 +13,7 @@ async function loadAssets(): Promise<import("./geist-regular-otf.json").then((mod) => mod.default || mod),import("./geistmono-regular-otf.json").then((mod) => mod.default || mod),import("./geist-semibold-otf.json").then((mod) => mod.default || mod),- ]);+ ])return [{@@ -34,15 +34,15 @@ async function loadAssets(): Promise<weight: 600 as const,style: "normal" as const,},- ];+ ]}export async function GET(request: Request) {- const { searchParams } = new URL(request.url);- const title = searchParams.get("title");- const description = searchParams.get("description");+ const { searchParams } = new URL(request.url)+ const title = searchParams.get("title")+ const description = searchParams.get("description")- const [fonts] = await Promise.all([loadAssets()]);+ const [fonts] = await Promise.all([loadAssets()])return new ImageResponse((@@ -98,6 +98,6 @@ export async function GET(request: Request) {width: 1200,height: 628,fonts,- },- );+ }+ )}diff --git a/apps/www/app/robots.ts b/apps/www/app/robots.tsindex 4b3a6c1f..d0ec3f85 100644--- a/apps/www/app/robots.ts+++ b/apps/www/app/robots.ts@@ -1,4 +1,4 @@-import { MetadataRoute } from "next";+import { MetadataRoute } from "next"export default function robots(): MetadataRoute.Robots {return {@@ -8,5 +8,5 @@ export default function robots(): MetadataRoute.Robots {disallow: ["/api/", "/_next/", "/public/"],},sitemap: "https://magicui.design/sitemap.xml",- };+ }}diff --git a/apps/www/app/sitemap.ts b/apps/www/app/sitemap.tsindex 3c6094b0..caee31e7 100644--- a/apps/www/app/sitemap.ts+++ b/apps/www/app/sitemap.ts@@ -1,13 +1,14 @@-import { blogSource, source } from "@/lib/source";-import type { MetadataRoute } from "next";-import { headers } from "next/headers";+import type { MetadataRoute } from "next"+import { headers } from "next/headers"++import { blogSource, source } from "@/lib/source"export default async function sitemap(): Promise<MetadataRoute.Sitemap> {- const headersList = await headers();- const domain = headersList.get("host") as string;- const protocol = "https";- const allDocs = source.getPages();- const allBlogs = blogSource.getPages();+ const headersList = await headers()+ const domain = headersList.get("host") as string+ const protocol = "https"+ const allDocs = source.getPages()+ const allBlogs = blogSource.getPages()return [{@@ -22,5 +23,5 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {url: `${protocol}://${domain}${post.url}`,lastModified: post.data.publishedOn,})),- ];+ ]}diff --git a/apps/www/components/analytics.tsx b/apps/www/components/analytics.tsxindex 81490b91..595d7ba9 100644--- a/apps/www/components/analytics.tsx+++ b/apps/www/components/analytics.tsx@@ -1,6 +1,6 @@-"use client";+"use client"-import Script from "next/script";+import Script from "next/script"export function Analytics() {return (@@ -22,5 +22,5 @@ gtag('config', 'G-4CVHZX68BT');`}</Script></>- );+ )}diff --git a/apps/www/components/blog/table-of-contents.tsx b/apps/www/components/blog/table-of-contents.tsxindex 8cd65eb9..6e5be8ef 100644--- a/apps/www/components/blog/table-of-contents.tsx+++ b/apps/www/components/blog/table-of-contents.tsx@@ -1,8 +1,9 @@-"use client";+"use client"-import { Skeleton } from "@/components/ui/skeleton";-import { cn } from "@/lib/utils";-import { useEffect, useState } from "react";+import { useEffect, useState } from "react"++import { cn } from "@/lib/utils"+import { Skeleton } from "@/components/ui/skeleton"// Helper function to generate consistent IDsconst generateHeadingId = (text: string) => {@@ -12,81 +13,79 @@ const generateHeadingId = (text: string) => {.replace(/[^a-z0-9\s-]/g, "").replace(/\s+/g, "-").replace(/-+/g, "-")- .trim();-};+ .trim()+}export function BlogTableOfContents({ className }: { className?: string }) {- const [activeHeading, setActiveHeading] = useState<string>("");- const [headings, setHeadings] = useState<string[]>([]);- const [isLoading, setIsLoading] = useState(true);+ const [activeHeading, setActiveHeading] = useState<string>("")+ const [headings, setHeadings] = useState<string[]>([])+ const [isLoading, setIsLoading] = useState(true)useEffect(() => {// Extract headings from rendered DOMconst extractHeadings = () => {const headingElements =- document.querySelector(".article-content")?.querySelectorAll("h2") ||- [];- const extractedHeadings: string[] = [];+ document.querySelector(".article-content")?.querySelectorAll("h2") || []+ const extractedHeadings: string[] = []headingElements.forEach((element) => {if (element.textContent) {- extractedHeadings.push(element.textContent);+ extractedHeadings.push(element.textContent)}- });- setHeadings(extractedHeadings);- setIsLoading(false);- };+ })+ setHeadings(extractedHeadings)+ setIsLoading(false)+ }// Extract headings after a short delay to ensure content is rendered- const timeoutId = setTimeout(extractHeadings, 100);+ const timeoutId = setTimeout(extractHeadings, 100)const observer = new IntersectionObserver((entries) => {entries.forEach((entry) => {if (entry.isIntersecting) {- setActiveHeading(entry.target.id);+ setActiveHeading(entry.target.id)}- });+ })},{rootMargin: "-100px 0px -66%",threshold: [0, 1],- },- );+ }+ )const headingElements =- document.querySelector(".article-content")?.querySelectorAll("h2") || [];- headingElements.forEach((element) => observer.observe(element));+ document.querySelector(".article-content")?.querySelectorAll("h2") || []+ headingElements.forEach((element) => observer.observe(element))// Also update active heading on scrollconst onScroll = () => {const headings = Array.from(- document.querySelector(".article-content")?.querySelectorAll("h2") ||- [],- );- const middle = window.innerHeight / 2;+ document.querySelector(".article-content")?.querySelectorAll("h2") || []+ )+ const middle = window.innerHeight / 2for (const heading of headings) {- const { top, bottom } = heading.getBoundingClientRect();+ const { top, bottom } = heading.getBoundingClientRect()if (top <= middle && bottom >= middle) {- setActiveHeading(heading.id);- break;+ setActiveHeading(heading.id)+ break}}- };+ }- window.addEventListener("scroll", onScroll, { passive: true });- onScroll(); // Initial check+ window.addEventListener("scroll", onScroll, { passive: true })+ onScroll() // Initial checkreturn () => {- clearTimeout(timeoutId);- headingElements.forEach((element) => observer.unobserve(element));- window.removeEventListener("scroll", onScroll);- };- }, []);+ clearTimeout(timeoutId)+ headingElements.forEach((element) => observer.unobserve(element))+ window.removeEventListener("scroll", onScroll)+ }+ }, [])const handleClick = (headingId: string) => {- setActiveHeading(headingId);- };+ setActiveHeading(headingId)+ }return (<div className={cn("flex flex-col gap-2 p-4 pt-0 text-sm", className)}>@@ -106,10 +105,10 @@ export function BlogTableOfContents({ className }: { className?: string }) {headings.map((heading, i) => {// Get the actual heading element to check its IDconst headingElement = document.querySelector(- `.article-content h2:nth-of-type(${i + 1})`,- );- const headingId = headingElement?.id || generateHeadingId(heading);- const isActive = activeHeading === headingId;+ `.article-content h2:nth-of-type(${i + 1})`+ )+ const headingId = headingElement?.id || generateHeadingId(heading)+ const isActive = activeHeading === headingIdreturn (<a@@ -118,16 +117,16 @@ export function BlogTableOfContents({ className }: { className?: string }) {onClick={() => handleClick(headingId)}className={`block py-1 text-sm transition-colors ${isActive- ? "font-medium text-foreground"+ ? "text-foreground font-medium": "text-muted-foreground hover:text-foreground"}`}>{heading}</a>- );+ )}))}</nav></div>- );+ )}diff --git a/apps/www/components/blur-image.tsx b/apps/www/components/blur-image.tsxindex d6271a9e..24c062f4 100644--- a/apps/www/components/blur-image.tsx+++ b/apps/www/components/blur-image.tsx@@ -1,12 +1,12 @@-"use client";+"use client"-import { useEffect, useState } from "react";-import Image, { ImageProps } from "next/image";+import { useEffect, useState } from "react"+import Image, { ImageProps } from "next/image"export default function BlurImage(props: ImageProps) {- const [loading, setLoading] = useState(true);- const [src, setSrc] = useState(props.src);- useEffect(() => setSrc(props.src), [props.src]); // update the `src` value when the `prop.src` value changes+ const [loading, setLoading] = useState(true)+ const [src, setSrc] = useState(props.src)+ useEffect(() => setSrc(props.src), [props.src]) // update the `src` value when the `prop.src` value changesreturn (<Image@@ -15,11 +15,11 @@ export default function BlurImage(props: ImageProps) {alt={props.alt}className={`${props.className} ${loading ? "blur-[2px]" : "blur-0"}`}onLoadingComplete={async () => {- setLoading(false);+ setLoading(false)}}onError={() => {- setSrc(`https://avatar.vercel.sh/${props.alt}`); // if the image fails to load, use the default avatar+ setSrc(`https://avatar.vercel.sh/${props.alt}`) // if the image fails to load, use the default avatar}}/>- );+ )}diff --git a/apps/www/components/callout.tsx b/apps/www/components/callout.tsxindex 897ac8c0..33a989de 100644--- a/apps/www/components/callout.tsx+++ b/apps/www/components/callout.tsx@@ -1,5 +1,5 @@-import { cn } from "@/lib/utils";-import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";+import { cn } from "@/lib/utils"+import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"export function Callout({title,@@ -12,7 +12,7 @@ export function Callout({<AlertclassName={cn("bg-surface text-surface-foreground mt-6 w-auto border-none md:-mx-1",- className,+ className)}{...props}>@@ -22,5 +22,5 @@ export function Callout({{children}</AlertDescription></Alert>- );+ )}diff --git a/apps/www/components/code-block-command.tsx b/apps/www/components/code-block-command.tsxindex a68c31bd..4118087f 100644--- a/apps/www/components/code-block-command.tsx+++ b/apps/www/components/code-block-command.tsx@@ -1,17 +1,17 @@-"use client";+"use client"-import * as React from "react";-import { CheckIcon, ClipboardIcon, TerminalIcon } from "lucide-react";+import * as React from "react"+import { CheckIcon, ClipboardIcon, TerminalIcon } from "lucide-react"-import { useConfig } from "@/hooks/use-config";-import { copyToClipboardWithMeta } from "@/components/copy-button";-import { Button } from "@/components/ui/button";-import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";+import { useConfig } from "@/hooks/use-config"+import { Button } from "@/components/ui/button"+import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"import {Tooltip,TooltipContent,TooltipTrigger,-} from "@/components/ui/tooltip";+} from "@/components/ui/tooltip"+import { copyToClipboardWithMeta } from "@/components/copy-button"export function CodeBlockCommand({__npm__,@@ -19,36 +19,36 @@ export function CodeBlockCommand({__pnpm__,__bun__,}: React.ComponentProps<"pre"> & {- __npm__?: string;- __yarn__?: string;- __pnpm__?: string;- __bun__?: string;+ __npm__?: string+ __yarn__?: string+ __pnpm__?: string+ __bun__?: string}) {- const [config, setConfig] = useConfig();- const [hasCopied, setHasCopied] = React.useState(false);+ const [config, setConfig] = useConfig()+ const [hasCopied, setHasCopied] = React.useState(false)React.useEffect(() => {if (hasCopied) {- const timer = setTimeout(() => setHasCopied(false), 2000);- return () => clearTimeout(timer);+ const timer = setTimeout(() => setHasCopied(false), 2000)+ return () => clearTimeout(timer)}- }, [hasCopied]);+ }, [hasCopied])- const packageManager = config.packageManager || "pnpm";+ const packageManager = config.packageManager || "pnpm"const tabs = React.useMemo(() => {return {pnpm: __pnpm__,npm: __npm__,yarn: __yarn__,bun: __bun__,- };- }, [__npm__, __pnpm__, __yarn__, __bun__]);+ }+ }, [__npm__, __pnpm__, __yarn__, __bun__])const copyCommand = React.useCallback(() => {- const command = tabs[packageManager];+ const command = tabs[packageManager]if (!command) {- return;+ return}copyToClipboardWithMeta(command, {@@ -57,9 +57,9 @@ export function CodeBlockCommand({command,pm: packageManager,},- });- setHasCopied(true);- }, [packageManager, tabs]);+ })+ setHasCopied(true)+ }, [packageManager, tabs])return (<div className="overflow-x-auto">@@ -70,7 +70,7 @@ export function CodeBlockCommand({setConfig({...config,packageManager: value as "pnpm" | "npm" | "yarn" | "bun",- });+ })}}><div className="border-border/50 flex items-center gap-2 border-b px-3 py-1">@@ -87,7 +87,7 @@ export function CodeBlockCommand({>{key}</TabsTrigger>- );+ )})}</TabsList></div>@@ -104,7 +104,7 @@ export function CodeBlockCommand({</code></pre></TabsContent>- );+ )})}</div></Tabs>@@ -126,5 +126,5 @@ export function CodeBlockCommand({</TooltipContent></Tooltip></div>- );+ )}diff --git a/apps/www/components/code-block-wrapper.tsx b/apps/www/components/code-block-wrapper.tsxindex 54437c90..f7f18c66 100644--- a/apps/www/components/code-block-wrapper.tsx+++ b/apps/www/components/code-block-wrapper.tsx@@ -1,17 +1,17 @@-"use client";+"use client"-import * as React from "react";+import * as React from "react"-import { cn } from "@/lib/utils";-import { Button } from "@/components/ui/button";+import { cn } from "@/lib/utils"+import { Button } from "@/components/ui/button"import {Collapsible,CollapsibleContent,CollapsibleTrigger,-} from "@/components/ui/collapsible";+} from "@/components/ui/collapsible"interface CodeBlockProps extends React.HTMLAttributes<HTMLDivElement> {- expandButtonTitle?: string;+ expandButtonTitle?: string}export function CodeBlockWrapper({@@ -20,7 +20,7 @@ export function CodeBlockWrapper({children,...props}: CodeBlockProps) {- const [isOpened, setIsOpened] = React.useState(false);+ const [isOpened, setIsOpened] = React.useState(false)return (<Collapsible open={isOpened} onOpenChange={setIsOpened}>@@ -32,7 +32,7 @@ export function CodeBlockWrapper({<divclassName={cn("[&_pre]:my-0 [&_pre]:max-h-[650px] [&_pre]:pb-[100px]",- !isOpened ? "[&_pre]:overflow-hidden" : "[&_pre]:overflow-auto]",+ !isOpened ? "[&_pre]:overflow-hidden" : "[&_pre]:overflow-auto]")}>{children}@@ -40,8 +40,8 @@ export function CodeBlockWrapper({</CollapsibleContent><divclassName={cn(- "absolute flex items-center justify-center bg-gradient-to-b from-background/10 to-background to-90% p-2",- isOpened ? "inset-x-0 bottom-0 h-12 from-gray-900/30" : "inset-0 ",+ "from-background/10 to-background absolute flex items-center justify-center bg-gradient-to-b to-90% p-2",+ isOpened ? "inset-x-0 bottom-0 h-12 from-gray-900/30" : "inset-0")}><CollapsibleTrigger asChild>@@ -52,5 +52,5 @@ export function CodeBlockWrapper({</div></div></Collapsible>- );+ )}diff --git a/apps/www/components/code-collapsible-wrapper.tsx b/apps/www/components/code-collapsible-wrapper.tsxindex 8dc2af57..465bf2aa 100644--- a/apps/www/components/code-collapsible-wrapper.tsx+++ b/apps/www/components/code-collapsible-wrapper.tsx@@ -1,22 +1,22 @@-"use client";+"use client"-import * as React from "react";+import * as React from "react"-import { cn } from "@/lib/utils";-import { Button } from "@/components/ui/button";+import { cn } from "@/lib/utils"+import { Button } from "@/components/ui/button"import {Collapsible,CollapsibleContent,CollapsibleTrigger,-} from "@/components/ui/collapsible";-import { Separator } from "@/components/ui/separator";+} from "@/components/ui/collapsible"+import { Separator } from "@/components/ui/separator"export function CodeCollapsibleWrapper({className,children,...props}: React.ComponentProps<typeof Collapsible>) {- const [isOpened, setIsOpened] = React.useState(false);+ const [isOpened, setIsOpened] = React.useState(false)return (<Collapsible@@ -47,5 +47,5 @@ export function CodeCollapsibleWrapper({{isOpened ? "Collapse" : "Expand"}</CollapsibleTrigger></Collapsible>- );+ )}diff --git a/apps/www/components/code-tabs.tsx b/apps/www/components/code-tabs.tsxindex 5d0f1767..6244db50 100644--- a/apps/www/components/code-tabs.tsx+++ b/apps/www/components/code-tabs.tsx@@ -1,16 +1,16 @@-"use client";+"use client"-import * as React from "react";+import * as React from "react"-import { useConfig } from "@/hooks/use-config";-import { Tabs } from "@/components/ui/tabs";+import { useConfig } from "@/hooks/use-config"+import { Tabs } from "@/components/ui/tabs"export function CodeTabs({ children }: React.ComponentProps<typeof Tabs>) {- const [config, setConfig] = useConfig();+ const [config, setConfig] = useConfig()const installationType = React.useMemo(() => {- return config.installationType || "cli";- }, [config]);+ return config.installationType || "cli"+ }, [config])return (<Tabs@@ -22,5 +22,5 @@ export function CodeTabs({ children }: React.ComponentProps<typeof Tabs>) {>{children}</Tabs>- );+ )}diff --git a/apps/www/components/command-menu.tsx b/apps/www/components/command-menu.tsxindex f654c3d8..f4c884fc 100644--- a/apps/www/components/command-menu.tsx+++ b/apps/www/components/command-menu.tsx@@ -1,20 +1,20 @@-"use client";+"use client"-import * as React from "react";-import { useRouter } from "next/navigation";-import { type DialogProps } from "@radix-ui/react-dialog";+import * as React from "react"+import { useRouter } from "next/navigation"+import { type DialogProps } from "@radix-ui/react-dialog"import {CircleIcon,FileIcon,LaptopIcon,MoonIcon,SunIcon,-} from "@radix-ui/react-icons";-import { useTheme } from "next-themes";+} from "@radix-ui/react-icons"+import { useTheme } from "next-themes"-import { docsConfig } from "@/config/docs";-import { cn } from "@/lib/utils";-import { Button } from "@/components/ui/button";+import { docsConfig } from "@/config/docs"+import { cn } from "@/lib/utils"+import { Button } from "@/components/ui/button"import {CommandDialog,CommandEmpty,@@ -23,12 +23,12 @@ import {CommandItem,CommandList,CommandSeparator,-} from "@/components/ui/command";+} from "@/components/ui/command"export function CommandMenu({ ...props }: DialogProps) {- const router = useRouter();- const [open, setOpen] = React.useState(false);- const { setTheme } = useTheme();+ const router = useRouter()+ const [open, setOpen] = React.useState(false)+ const { setTheme } = useTheme()React.useEffect(() => {const down = (e: KeyboardEvent) => {@@ -39,36 +39,36 @@ export function CommandMenu({ ...props }: DialogProps) {e.target instanceof HTMLTextAreaElement ||e.target instanceof HTMLSelectElement) {- return;+ return}- e.preventDefault();- setOpen((open) => !open);+ e.preventDefault()+ setOpen((open) => !open)}- };+ }- document.addEventListener("keydown", down);- return () => document.removeEventListener("keydown", down);- }, []);+ document.addEventListener("keydown", down)+ return () => document.removeEventListener("keydown", down)+ }, [])const runCommand = React.useCallback((command: () => unknown) => {- setOpen(false);- command();- }, []);+ setOpen(false)+ command()+ }, [])return (<><Buttonvariant="outline"className={cn(- "relative h-8 w-full justify-start rounded-[0.5rem] bg-muted/50 text-sm font-normal text-muted-foreground shadow-none sm:pr-12 md:w-40 lg:w-64",+ "bg-muted/50 text-muted-foreground relative h-8 w-full justify-start rounded-[0.5rem] text-sm font-normal shadow-none sm:pr-12 md:w-40 lg:w-64")}onClick={() => setOpen(true)}{...props}><span className="hidden lg:inline-flex">Search documentation...</span><span className="inline-flex lg:hidden">Search...</span>- <kbd className="pointer-events-none absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[10px] font-medium opacity-100 sm:flex">+ <kbd className="bg-muted pointer-events-none absolute top-[0.3rem] right-[0.3rem] hidden h-5 items-center gap-1 rounded border px-1.5 font-mono text-[10px] font-medium opacity-100 select-none sm:flex"><span className="text-xs">⌘</span>K</kbd></Button>@@ -84,7 +84,7 @@ export function CommandMenu({ ...props }: DialogProps) {key={navItem.href}value={navItem.title}onSelect={() => {- runCommand(() => router.push(navItem.href as string));+ runCommand(() => router.push(navItem.href as string))}}><FileIcon className="mr-2 size-4" />@@ -99,7 +99,7 @@ export function CommandMenu({ ...props }: DialogProps) {key={navItem.href}value={navItem.title}onSelect={() => {- runCommand(() => router.push(navItem.href as string));+ runCommand(() => router.push(navItem.href as string))}}><div className="mr-2 flex size-4 items-center justify-center">@@ -128,5 +128,5 @@ export function CommandMenu({ ...props }: DialogProps) {</CommandList></CommandDialog></>- );+ )}diff --git a/apps/www/components/commit-list.tsx b/apps/www/components/commit-list.tsxindex 493d6a52..78b803e0 100644--- a/apps/www/components/commit-list.tsx+++ b/apps/www/components/commit-list.tsx@@ -1,24 +1,24 @@-"use client";+"use client"-import { useEffect, useState } from "react";-import { formatDistanceToNow } from "date-fns";-import { toast } from "sonner";+import { useEffect, useState } from "react"+import { formatDistanceToNow } from "date-fns"+import { toast } from "sonner"-import { Badge } from "@/components/ui/badge";+import { Badge } from "@/components/ui/badge"export default function CommitList({repo,owner,}: {- repo: string;- owner: string;+ repo: string+ owner: string}) {- const [loading, setLoading] = useState(false);- const [commits, setCommits] = useState<any[]>([]);+ const [loading, setLoading] = useState(false)+ const [commits, setCommits] = useState<any[]>([])useEffect(() => {const loadCommits = async () => {- setLoading(true);+ setLoading(true)try {const response = await fetch(`${process.env.NEXT_PUBLIC_APP_URL}/api/repo/commits`,@@ -28,22 +28,22 @@ export default function CommitList({"Content-Type": "application/json",},body: JSON.stringify({ repo, owner }),- },- );+ }+ )if (!response.ok) {- throw new Error(`HTTP error! status: ${response.status}`);+ throw new Error(`HTTP error! status: ${response.status}`)}- const data = await response.json();- setCommits(data.commits);+ const data = await response.json()+ setCommits(data.commits)} catch (error) {- toast.error("Error occurred while loading commits. Please try again.");- console.error("error", error);+ toast.error("Error occurred while loading commits. Please try again.")+ console.error("error", error)} finally {- setLoading(false);+ setLoading(false)}- };- loadCommits();- }, [repo, owner]);+ }+ loadCommits()+ }, [repo, owner])return (<ul>@@ -58,5 +58,5 @@ export default function CommitList({</li>))}</ul>- );+ )}diff --git a/apps/www/components/component-preview-tabs.tsx b/apps/www/components/component-preview-tabs.tsxindex e045a71d..64a67d2b 100644--- a/apps/www/components/component-preview-tabs.tsx+++ b/apps/www/components/component-preview-tabs.tsx@@ -1,12 +1,12 @@-"use client";+"use client"-import * as React from "react";+import * as React from "react"+import { RotateCcw } from "lucide-react"-import { cn } from "@/lib/utils";-import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs";-import { OpenInV0Button } from "@/components/open-in-v0-button";-import { RotateCcw } from "lucide-react";-import { Button } from "@/components/ui/button";+import { cn } from "@/lib/utils"+import { Button } from "@/components/ui/button"+import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs"+import { OpenInV0Button } from "@/components/open-in-v0-button"export function ComponentPreviewTabs({className,@@ -17,14 +17,14 @@ export function ComponentPreviewTabs({source,...props}: React.ComponentProps<"div"> & {- name: string;- align?: "center" | "start" | "end";- hideCode?: boolean;- component: React.ReactNode;- source: React.ReactNode;+ name: string+ align?: "center" | "start" | "end"+ hideCode?: boolean+ component: React.ReactNode+ source: React.ReactNode}) {- const [key, setKey] = React.useState(0);- const [tab, setTab] = React.useState("preview");+ const [key, setKey] = React.useState(0)+ const [tab, setTab] = React.useState("preview")return (<div@@ -62,7 +62,7 @@ export function ComponentPreviewTabs({<divdata-slot="preview"data-active={tab === "preview"}- className="invisible data-[active=true]:visible overflow-hidden"+ className="invisible overflow-hidden data-[active=true]:visible"><div className="flex items-center justify-end gap-2 p-4"><OpenInV0Button url={`https://magicui.design/r/${name}.json`} />@@ -78,7 +78,7 @@ export function ComponentPreviewTabs({key={key}data-align={align}className={cn(- "preview flex min-h-[450px] w-full justify-center p-10 data-[align=center]:items-center data-[align=end]:items-end data-[align=start]:items-start",+ "preview flex min-h-[450px] w-full justify-center p-10 data-[align=center]:items-center data-[align=end]:items-end data-[align=start]:items-start")}>{component}@@ -93,5 +93,5 @@ export function ComponentPreviewTabs({</div></div></div>- );+ )}diff --git a/apps/www/components/component-preview.tsx b/apps/www/components/component-preview.tsxindex 28f80ea8..c9479f6a 100644--- a/apps/www/components/component-preview.tsx+++ b/apps/www/components/component-preview.tsx@@ -1,13 +1,14 @@-import { ComponentPreviewTabs } from "@/components/component-preview-tabs";-import { ComponentSource } from "@/components/component-source";-import { getRegistryComponent } from "@/lib/registry";-import * as React from "react";+import * as React from "react"++import { getRegistryComponent } from "@/lib/registry"+import { ComponentPreviewTabs } from "@/components/component-preview-tabs"+import { ComponentSource } from "@/components/component-source"interface ComponentPreviewProps extends React.HTMLAttributes<HTMLDivElement> {- name: string;- align?: "center" | "start" | "end";- preview?: boolean;- hideCode?: boolean;+ name: string+ align?: "center" | "start" | "end"+ preview?: boolean+ hideCode?: boolean}export function ComponentPreview({@@ -19,7 +20,7 @@ export function ComponentPreview({hideCode = false,...props}: ComponentPreviewProps) {- const Component = getRegistryComponent(name);+ const Component = getRegistryComponent(name)if (!Component) {return (@@ -30,7 +31,7 @@ export function ComponentPreview({</code>{" "}not found in registry.</p>- );+ )}return (<ComponentPreviewTabs@@ -42,5 +43,5 @@ export function ComponentPreview({source={<ComponentSource name={name} collapsible={false} />}{...props}/>- );+ )}diff --git a/apps/www/components/component-source.tsx b/apps/www/components/component-source.tsxindex bd27f3dc..3aefe35f 100644--- a/apps/www/components/component-source.tsx+++ b/apps/www/components/component-source.tsx@@ -1,13 +1,13 @@-import fs from "node:fs/promises";-import path from "node:path";-import * as React from "react";+import fs from "node:fs/promises"+import path from "node:path"+import * as React from "react"-import { highlightCode } from "@/lib/highlight-code";-import { getRegistryItem } from "@/lib/registry";-import { cn } from "@/lib/utils";-import { CodeCollapsibleWrapper } from "@/components/code-collapsible-wrapper";-import { CopyButton } from "@/components/copy-button";-import { getIconForLanguageExtension } from "@/components/icons";+import { highlightCode } from "@/lib/highlight-code"+import { getRegistryItem } from "@/lib/registry"+import { cn } from "@/lib/utils"+import { CodeCollapsibleWrapper } from "@/components/code-collapsible-wrapper"+import { CopyButton } from "@/components/copy-button"+import { getIconForLanguageExtension } from "@/components/icons"export async function ComponentSource({name,@@ -17,34 +17,34 @@ export async function ComponentSource({collapsible = true,className,}: React.ComponentProps<"div"> & {- name?: string;- src?: string;- title?: string;- language?: string;- collapsible?: boolean;+ name?: string+ src?: string+ title?: string+ language?: string+ collapsible?: boolean}) {if (!name && !src) {- return null;+ return null}- let code: string | undefined;+ let code: string | undefinedif (name) {- const item = await getRegistryItem(name);- code = item?.files?.[0]?.content;+ const item = await getRegistryItem(name)+ code = item?.files?.[0]?.content}if (src) {- const file = await fs.readFile(path.join(process.cwd(), src), "utf-8");- code = file;+ const file = await fs.readFile(path.join(process.cwd(), src), "utf-8")+ code = file}if (!code) {- return null;+ return null}- const lang = language ?? title?.split(".").pop() ?? "tsx";- const highlightedCode = await highlightCode(code, lang);+ const lang = language ?? title?.split(".").pop() ?? "tsx"+ const highlightedCode = await highlightCode(code, lang)if (!collapsible) {return (@@ -56,7 +56,7 @@ export async function ComponentSource({title={title}/></div>- );+ )}return (@@ -68,7 +68,7 @@ export async function ComponentSource({title={title}/></CodeCollapsibleWrapper>- );+ )}function ComponentCode({@@ -77,10 +77,10 @@ function ComponentCode({language,title,}: {- code: string;- highlightedCode: string;- language: string;- title: string | undefined;+ code: string+ highlightedCode: string+ language: string+ title: string | undefined}) {return (<figure data-rehype-pretty-code-figure="" className="[&>pre]:max-h-96">@@ -97,5 +97,5 @@ function ComponentCode({<CopyButton value={code} /><div dangerouslySetInnerHTML={{ __html: highlightedCode }} /></figure>- );+ )}diff --git a/apps/www/components/components-list.tsx b/apps/www/components/components-list.tsxindex 9de6e37e..af263902 100644--- a/apps/www/components/components-list.tsx+++ b/apps/www/components/components-list.tsx@@ -1,19 +1,19 @@-import Link from "next/link";+import Link from "next/link"-import { source } from "@/lib/source";+import { source } from "@/lib/source"export function ComponentsList() {const components = source.pageTree.children.find(- (page) => page.$id === "components",- );+ (page) => page.$id === "components"+ )if (components?.type !== "folder") {- return;+ return}const list = components.children.filter(- (component) => component.type === "page",- );+ (component) => component.type === "page"+ )return (<div className="grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-3 md:gap-x-8 lg:gap-x-8 lg:gap-y-6">@@ -27,5 +27,5 @@ export function ComponentsList() {</Link>))}</div>- );+ )}diff --git a/apps/www/components/contribute.tsx b/apps/www/components/contribute.tsxindex c516be6b..715e6b3e 100644--- a/apps/www/components/contribute.tsx+++ b/apps/www/components/contribute.tsx@@ -1,7 +1,8 @@-import { BugIcon, LightbulbIcon, PencilIcon } from "lucide-react";-import Link from "next/link";-import { getGithubFileUrl, getGitHubIssueUrl } from "@/lib/github";-import { Page, PageData } from "fumadocs-core/source";+import Link from "next/link"+import { Page, PageData } from "fumadocs-core/source"+import { BugIcon, LightbulbIcon, PencilIcon } from "lucide-react"++import { getGithubFileUrl, getGitHubIssueUrl } from "@/lib/github"export function Contribute({ page }: { page: Page<PageData> }) {const contributeLinks = [@@ -36,19 +37,19 @@ export function Contribute({ page }: { page: Page<PageData> }) {slug: page.url,}),},- ];+ ]return (<div className="flex flex-col gap-2 p-4">- <p className="text-xs font-medium text-muted-foreground">Contribute</p>- <ul className="m-0 list-none flex flex-col gap-1">+ <p className="text-muted-foreground text-xs font-medium">Contribute</p>+ <ul className="m-0 flex list-none flex-col gap-1">{contributeLinks.map((link, index) => (<li key={index}><Linkhref={link.href}target="_blank"rel="noopener noreferrer"- className="inline-flex items-center gap-1.5 text-xs text-muted-foreground transition-colors hover:text-foreground"+ className="text-muted-foreground hover:text-foreground inline-flex items-center gap-1.5 text-xs transition-colors"><link.icon className="size-3" />{link.text}@@ -57,5 +58,5 @@ export function Contribute({ page }: { page: Page<PageData> }) {))}</ul></div>- );+ )}diff --git a/apps/www/components/copy-button.tsx b/apps/www/components/copy-button.tsxindex 3d43cdfd..02067b39 100644--- a/apps/www/components/copy-button.tsx+++ b/apps/www/components/copy-button.tsx@@ -1,21 +1,21 @@-"use client";+"use client"-import * as React from "react";-import { CheckIcon, ClipboardIcon } from "lucide-react";-import { Event, trackEvent } from "@/lib/events";-import { cn } from "@/lib/utils";-import { Button } from "@/components/ui/button";+import * as React from "react"+import { CheckIcon, ClipboardIcon } from "lucide-react"+import { Event, trackEvent } from "@/lib/events"+import { cn } from "@/lib/utils"+import { Button } from "@/components/ui/button"import {Tooltip,TooltipContent,TooltipTrigger,-} from "@/components/ui/tooltip";+} from "@/components/ui/tooltip"export async function copyToClipboardWithMeta(value: string, event?: Event) {- navigator.clipboard.writeText(value);+ navigator.clipboard.writeText(value)if (event) {- trackEvent(event);+ trackEvent(event)}}@@ -26,17 +26,17 @@ export function CopyButton({event,...props}: React.ComponentProps<typeof Button> & {- value: string;- src?: string;- event?: Event["name"];+ value: string+ src?: string+ event?: Event["name"]}) {- const [hasCopied, setHasCopied] = React.useState(false);+ const [hasCopied, setHasCopied] = React.useState(false)React.useEffect(() => {setTimeout(() => {- setHasCopied(false);- }, 2000);- }, []);+ setHasCopied(false)+ }, 2000)+ }, [])return (<Tooltip>@@ -47,7 +47,7 @@ export function CopyButton({variant={variant}className={cn("bg-code absolute top-3 right-2 z-10 size-7 hover:opacity-100 focus-visible:opacity-100",- className,+ className)}onClick={() => {copyToClipboardWithMeta(@@ -59,9 +59,9 @@ export function CopyButton({code: value,},}- : undefined,- );- setHasCopied(true);+ : undefined+ )+ setHasCopied(true)}}{...props}>@@ -73,5 +73,5 @@ export function CopyButton({{hasCopied ? "Copied" : "Copy to Clipboard"}</TooltipContent></Tooltip>- );+ )}diff --git a/apps/www/components/deal-banner.tsx b/apps/www/components/deal-banner.tsxindex 28df3e1d..262eed70 100644--- a/apps/www/components/deal-banner.tsx+++ b/apps/www/components/deal-banner.tsx@@ -1,13 +1,13 @@-import Link from "next/link";-import { ExternalLink } from "lucide-react";+import Link from "next/link"+import { ExternalLink } from "lucide-react"export function DealBanner() {return (- <div className="relative top-0 bg-background py-3 md:py-0">+ <div className="bg-background relative top-0 py-3 md:py-0"><div className="container flex flex-col items-center justify-center gap-4 md:h-12 md:flex-row"><Linkhref="/pricing"- className="flex flex-row items-center justify-center gap-2 text-center text-sm font-bold leading-loose text-black dark:text-white"+ className="flex flex-row items-center justify-center gap-2 text-center text-sm leading-loose font-bold text-black dark:text-white">{/* ✨<span className="font-bold text-black dark:text-white">@@ -26,5 +26,5 @@ export function DealBanner() {</div><hr className="absolute bottom-0 m-0 h-px w-full bg-neutral-200/30" /></div>- );+ )}diff --git a/apps/www/components/discord-link.tsx b/apps/www/components/discord-link.tsxindex 3ce032de..d244871e 100644--- a/apps/www/components/discord-link.tsx+++ b/apps/www/components/discord-link.tsx@@ -1,17 +1,17 @@-import * as React from "react";-import Link from "next/link";+import * as React from "react"+import Link from "next/link"-import { siteConfig } from "@/config/site";-import { Icons } from "@/components/icons";-import { buttonVariants } from "@/components/ui/button";-import { Skeleton } from "@/components/ui/skeleton";+import { siteConfig } from "@/config/site"+import { cn } from "@/lib/utils"+import { buttonVariants } from "@/components/ui/button"+import { Skeleton } from "@/components/ui/skeleton"import {Tooltip,TooltipContent,TooltipTrigger,-} from "@/components/ui/tooltip";-import { cn } from "@/lib/utils";-import { PingDot } from "@/components/ping-dot";+} from "@/components/ui/tooltip"+import { Icons } from "@/components/icons"+import { PingDot } from "@/components/ping-dot"export function DiscordLink({ className }: { className?: string }) {return (@@ -21,7 +21,7 @@ export function DiscordLink({ className }: { className?: string }) {className={cn(buttonVariants({ variant: "ghost", size: "sm" }),"shadow-none transition-colors",- className,+ className)}href={siteConfig.links.discord}target="_blank"@@ -42,30 +42,30 @@ export function DiscordLink({ className }: { className?: string }) {</React.Suspense></TooltipContent></Tooltip>- );+ )}export async function ActiveMembersCount({className,}: {- className?: string;+ className?: string}) {const data = await fetch("https://discord.com/api/guilds/1151315619246002176/widget.json",{next: { revalidate: 3600 }, // Cache for 1 hour (3600 seconds)- },- );- const json = await data.json();+ }+ )+ const json = await data.json()return (- <div className={cn("inline-flex items-center gap-1 ml-2", className)}>+ <div className={cn("ml-2 inline-flex items-center gap-1", className)}><PingDot />- <span className="text-xs font-medium tabular-nums min-w-[2rem]">+ <span className="min-w-[2rem] text-xs font-medium tabular-nums">{json.presence_count >= 1000? `${(json.presence_count / 1000).toFixed(1)}k`: json.presence_count.toLocaleString()}</span></div>- );+ )}diff --git a/apps/www/components/docs-copy-page.tsx b/apps/www/components/docs-copy-page.tsxindex 67b42493..4ce3735e 100644--- a/apps/www/components/docs-copy-page.tsx+++ b/apps/www/components/docs-copy-page.tsx@@ -1,29 +1,32 @@-"use client";-import { IconCheck, IconChevronDown, IconCopy } from "@tabler/icons-react";-import { useCopyToClipboard } from "@/hooks/use-copy-to-clipboard";-import { Button } from "@/components/ui/button";+"use client"++import { IconCheck, IconChevronDown, IconCopy } from "@tabler/icons-react"++import { useCopyToClipboard } from "@/hooks/use-copy-to-clipboard"+import { Button } from "@/components/ui/button"import {DropdownMenu,DropdownMenuContent,DropdownMenuItem,DropdownMenuTrigger,-} from "@/components/ui/dropdown-menu";+} from "@/components/ui/dropdown-menu"import {Popover,PopoverAnchor,PopoverContent,PopoverTrigger,-} from "@/components/ui/popover";-import { Separator } from "@/components/ui/separator";+} from "@/components/ui/popover"+import { Separator } from "@/components/ui/separator"+function getPromptUrl(baseURL: string, url: string) {return `${baseURL}?q=${encodeURIComponent(`I’m looking at this shadcn/ui documentation: ${url}.Help me understand how to use it. Be ready to explain concepts, give examples, or help debug based on it.- `,- )}`;+ `+ )}`}export function DocsCopyPage({ page, url }: { page: string; url: string }) {- const { copyToClipboard, isCopied } = useCopyToClipboard();+ const { copyToClipboard, isCopied } = useCopyToClipboard()const trigger = (<Buttonvariant="secondary"@@ -32,17 +35,17 @@ export function DocsCopyPage({ page, url }: { page: string; url: string }) {><IconChevronDown className="rotate-180 sm:rotate-0" /></Button>- );+ )- let pathname = "/docs";+ let pathname = "/docs"try {- pathname = new URL(url).pathname;+ pathname = new URL(url).pathname} catch (e) {- console.error(e);+ console.error(e)}const menuItems: Record<string, (url: string) => React.ReactNode> = {viewMarkdown: (_url: string) => {- const mdUrl = `${pathname}.md`;+ const mdUrl = `${pathname}.md`return (<a href={mdUrl} target="_blank" rel="noopener noreferrer"><svg strokeLinejoin="round" viewBox="0 0 22 16">@@ -55,7 +58,7 @@ export function DocsCopyPage({ page, url }: { page: string; url: string }) {</svg>View as Markdown</a>- );+ )},v0: (url: string) => (<a@@ -104,7 +107,7 @@ export function DocsCopyPage({ page, url }: { page: string; url: string }) {Open in Claude</a>),- };+ }return (<Popover><div className="bg-secondary group/buttons relative flex rounded-lg *:[[data-slot=button]]:focus-visible:relative *:[[data-slot=button]]:focus-visible:z-10">@@ -147,7 +150,7 @@ export function DocsCopyPage({ page, url }: { page: string; url: string }) {size="lg"asChildkey={key}- className="*:[svg]:text-muted-foreground w-full justify-start text-base font-normal p-0"+ className="*:[svg]:text-muted-foreground w-full justify-start p-0 text-base font-normal">{value(url)}</Button>@@ -155,5 +158,5 @@ export function DocsCopyPage({ page, url }: { page: string; url: string }) {</PopoverContent></div></Popover>- );+ )}diff --git a/apps/www/components/docs-sidebar.tsx b/apps/www/components/docs-sidebar.tsxindex a732b68d..2e496f19 100644--- a/apps/www/components/docs-sidebar.tsx+++ b/apps/www/components/docs-sidebar.tsx@@ -1,9 +1,12 @@-"use client";+"use client"-import Link from "next/link";-import { usePathname } from "next/navigation";+import Link from "next/link"+import { usePathname } from "next/navigation"+import { NavItemWithChildren } from "@/types"-import { docsConfig } from "@/config/docs";+import { docsConfig } from "@/config/docs"+import { trackEvent } from "@/lib/events"+import { cn } from "@/lib/utils"import {Sidebar,SidebarContent,@@ -13,15 +16,12 @@ import {SidebarMenu,SidebarMenuButton,SidebarMenuItem,-} from "@/components/ui/sidebar";-import { cn } from "@/lib/utils";-import { trackEvent } from "@/lib/events";-import { NavItemWithChildren } from "@/types";+} from "@/components/ui/sidebar"interface DocsSidebarNavItemsProps {- items: NavItemWithChildren[];- pathname: string;- level?: number;+ items: NavItemWithChildren[]+ pathname: string+ level?: number}function DocsSidebarNavItems({@@ -32,8 +32,8 @@ function DocsSidebarNavItems({return (<SidebarMenu className={cn("gap-0.5", level > 0 && "ml-4")}>{items.map((item) => {- const isActive = item.href ? pathname === item.href : false;- const hasChildren = item.items && item.items.length > 0;+ const isActive = item.href ? pathname === item.href : false+ const hasChildren = item.items && item.items.length > 0return (<div key={item.href || item.title}>@@ -85,16 +85,16 @@ function DocsSidebarNavItems({/>)}</div>- );+ )})}</SidebarMenu>- );+ )}export function DocsSidebar({...props}: React.ComponentProps<typeof Sidebar>) {- const pathname = usePathname();+ const pathname = usePathname()return (<Sidebar@@ -117,9 +117,9 @@ export function DocsSidebar({/></SidebarGroupContent></SidebarGroup>- );+ )})}</SidebarContent></Sidebar>- );+ )}diff --git a/apps/www/components/docs-toc.tsx b/apps/www/components/docs-toc.tsxindex 7917c30d..53de8b93 100644--- a/apps/www/components/docs-toc.tsx+++ b/apps/www/components/docs-toc.tsx@@ -1,50 +1,50 @@-"use client";+"use client"-import * as React from "react";-import { IconMenu3 } from "@tabler/icons-react";+import * as React from "react"+import { IconMenu3 } from "@tabler/icons-react"-import { cn } from "@/lib/utils";-import { Button } from "@/components/ui/button";+import { cn } from "@/lib/utils"+import { Button } from "@/components/ui/button"import {DropdownMenu,DropdownMenuContent,DropdownMenuItem,DropdownMenuTrigger,-} from "@/components/ui/dropdown-menu";+} from "@/components/ui/dropdown-menu"function useActiveItem(itemIds: string[]) {- const [activeId, setActiveId] = React.useState<string | null>(null);+ const [activeId, setActiveId] = React.useState<string | null>(null)React.useEffect(() => {const observer = new IntersectionObserver((entries) => {for (const entry of entries) {if (entry.isIntersecting) {- setActiveId(entry.target.id);+ setActiveId(entry.target.id)}}},- { rootMargin: "0% 0% -80% 0%" },- );+ { rootMargin: "0% 0% -80% 0%" }+ )for (const id of itemIds ?? []) {- const element = document.getElementById(id);+ const element = document.getElementById(id)if (element) {- observer.observe(element);+ observer.observe(element)}}return () => {for (const id of itemIds ?? []) {- const element = document.getElementById(id);+ const element = document.getElementById(id)if (element) {- observer.unobserve(element);+ observer.unobserve(element)}}- };- }, [itemIds]);+ }+ }, [itemIds])- return activeId;+ return activeId}export function DocsTableOfContents({@@ -53,22 +53,22 @@ export function DocsTableOfContents({className,}: {toc: {- title?: React.ReactNode;- url: string;- depth: number;- }[];- variant?: "dropdown" | "list";- className?: string;+ title?: React.ReactNode+ url: string+ depth: number+ }[]+ variant?: "dropdown" | "list"+ className?: string}) {- const [open, setOpen] = React.useState(false);+ const [open, setOpen] = React.useState(false)const itemIds = React.useMemo(() => toc.map((item) => item.url.replace("#", "")),- [toc],- );- const activeHeading = useActiveItem(itemIds);+ [toc]+ )+ const activeHeading = useActiveItem(itemIds)if (!toc?.length) {- return null;+ return null}if (variant === "dropdown") {@@ -92,7 +92,7 @@ export function DocsTableOfContents({key={item.url}asChildonClick={() => {- setOpen(false);+ setOpen(false)}}data-depth={item.depth}className="data-[depth=3]:pl-6 data-[depth=4]:pl-8"@@ -102,7 +102,7 @@ export function DocsTableOfContents({))}</DropdownMenuContent></DropdownMenu>- );+ )}return (@@ -122,5 +122,5 @@ export function DocsTableOfContents({</a>))}</div>- );+ )}diff --git a/apps/www/components/github-link.tsx b/apps/www/components/github-link.tsxindex 7c168dbc..a3b540be 100644--- a/apps/www/components/github-link.tsx+++ b/apps/www/components/github-link.tsx@@ -1,16 +1,16 @@-import * as React from "react";-import Link from "next/link";+import * as React from "react"+import Link from "next/link"-import { siteConfig } from "@/config/site";-import { Icons } from "@/components/icons";-import { Button } from "@/components/ui/button";-import { Skeleton } from "@/components/ui/skeleton";+import { siteConfig } from "@/config/site"+import { Button } from "@/components/ui/button"+import { Skeleton } from "@/components/ui/skeleton"import {Tooltip,TooltipContent,TooltipProvider,TooltipTrigger,-} from "@/components/ui/tooltip";+} from "@/components/ui/tooltip"+import { Icons } from "@/components/icons"export function GitHubLink({ className }: { className?: string }) {return (@@ -36,7 +36,7 @@ export function GitHubLink({ className }: { className?: string }) {</TooltipContent></Tooltip></TooltipProvider>- );+ )}export async function StarsCount() {@@ -44,9 +44,9 @@ export async function StarsCount() {"https://api.github.com/repos/magicuidesign/magicui",{next: { revalidate: 86400 }, // Cache for 1 day (86400 seconds)- },- );- const json = await data.json();+ }+ )+ const json = await data.json()return (<span className="text-muted-foreground w-8 text-xs tabular-nums">@@ -59,5 +59,5 @@ export async function StarsCount() {: json.stargazers_count.toLocaleString()}</span></span>- );+ )}diff --git a/apps/www/components/gradient-blur.tsx b/apps/www/components/gradient-blur.tsxindex 946fd3e9..9524e8f1 100644--- a/apps/www/components/gradient-blur.tsx+++ b/apps/www/components/gradient-blur.tsx@@ -1,10 +1,10 @@-import React from "react";+import React from "react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"interface GradientBlurProps {- numberOfLayers?: number;- className?: string;+ numberOfLayers?: number+ className?: string}const GradientBlur: React.FC<GradientBlurProps> = ({@@ -12,12 +12,12 @@ const GradientBlur: React.FC<GradientBlurProps> = ({className = "",}) => {const generateLayers = () => {- const layers = [];+ const layers = []for (let i = 0; i < numberOfLayers; i++) {- const blurAmount = Math.pow(2, i);- const startPercent = (i * 100) / numberOfLayers;- const midPercent = ((i + 1) * 100) / numberOfLayers;- const endPercent = ((i + 2) * 100) / numberOfLayers;+ const blurAmount = Math.pow(2, i)+ const startPercent = (i * 100) / numberOfLayers+ const midPercent = ((i + 1) * 100) / numberOfLayers+ const endPercent = ((i + 2) * 100) / numberOfLayerslayers.push(<divkey={i}@@ -33,14 +33,14 @@ const GradientBlur: React.FC<GradientBlurProps> = ({rgba(0, 0, 0, 0) ${endPercent + (endPercent - midPercent)}%)`,}}- />,- );+ />+ )}- return layers;- };+ return layers+ }return (- <div className={cn(`z-5 pointer-events-none inset-x-0 h-full`, className)}>+ <div className={cn(`pointer-events-none inset-x-0 z-5 h-full`, className)}><divclassName="absolute inset-0"style={{@@ -69,7 +69,7 @@ const GradientBlur: React.FC<GradientBlurProps> = ({}}/></div>- );-};+ )+}-export default GradientBlur;+export default GradientBlurdiff --git a/apps/www/components/icons.tsx b/apps/www/components/icons.tsxindex eec0e4b6..59d3a1e3 100644--- a/apps/www/components/icons.tsx+++ b/apps/www/components/icons.tsx@@ -1,4 +1,4 @@-import { DiscordLogoIcon, InstagramLogoIcon } from "@radix-ui/react-icons";+import { DiscordLogoIcon, InstagramLogoIcon } from "@radix-ui/react-icons"import {AlertTriangle,ArrowRight,@@ -23,9 +23,9 @@ import {Trash,User,X,-} from "lucide-react";+} from "lucide-react"-export type IconProps = React.SVGProps<SVGSVGElement>;+export type IconProps = React.SVGProps<SVGSVGElement>export const Icons = {logo: ({ className, ...props }: IconProps) => (@@ -664,21 +664,21 @@ export const Icons = {></path></svg>),-};+}export function getIconForLanguageExtension(language: string) {switch (language) {case "json":- return <Icons.json />;+ return <Icons.json />case "css":- return <Icons.css className="fill-foreground" />;+ return <Icons.css className="fill-foreground" />case "js":case "jsx":case "ts":case "tsx":case "typescript":- return <Icons.ts className="fill-foreground" />;+ return <Icons.ts className="fill-foreground" />default:- return <FileIcon />;+ return <FileIcon />}}diff --git a/apps/www/components/logo-button.tsx b/apps/www/components/logo-button.tsxindex 4fa3a3b2..1aa89e7c 100644--- a/apps/www/components/logo-button.tsx+++ b/apps/www/components/logo-button.tsx@@ -1,40 +1,40 @@-"use client";+"use client"-import Link from "next/link";+import Link from "next/link"+import { toast } from "sonner"-import { Icons } from "@/components/icons";-import { siteConfig } from "@/config/site";+import { siteConfig } from "@/config/site"import {ContextMenu,- ContextMenuTrigger,ContextMenuContent,ContextMenuItem,-} from "@/components/ui/context-menu";-import { toast } from "sonner";+ ContextMenuTrigger,+} from "@/components/ui/context-menu"+import { Icons } from "@/components/icons"export function LogoButton() {function copyLogoAsSVG(path: string) {fetch(path).then((response) => response.blob()).then((blob) => {- const reader = new FileReader();+ const reader = new FileReader()reader.onload = function (event) {- const svgContent = event.target?.result;- navigator.clipboard.writeText(svgContent as string);- };- reader.readAsText(blob);- toast.success("Logo copied to clipboard");- });+ const svgContent = event.target?.result+ navigator.clipboard.writeText(svgContent as string)+ }+ reader.readAsText(blob)+ toast.success("Logo copied to clipboard")+ })}function copyLogoAsPNG(path: string) {fetch(path).then((response) => response.blob()).then((blob) => {- const item = new ClipboardItem({ "image/png": blob });- navigator.clipboard.write([item]);- toast.success("Logo copied to clipboard");- });+ const item = new ClipboardItem({ "image/png": blob })+ navigator.clipboard.write([item])+ toast.success("Logo copied to clipboard")+ })}return (<ContextMenu>@@ -63,5 +63,5 @@ export function LogoButton() {</ContextMenuItem></ContextMenuContent></ContextMenu>- );+ )}diff --git a/apps/www/components/main-nav.tsx b/apps/www/components/main-nav.tsxindex 078c5cb0..e62ff90f 100644--- a/apps/www/components/main-nav.tsx+++ b/apps/www/components/main-nav.tsx@@ -1,20 +1,21 @@-"use client";+"use client"-import { Button } from "@/components/ui/button";-import { Event, trackEvent } from "@/lib/events";-import { cn } from "@/lib/utils";-import { NavItem } from "@/types";-import Link from "next/link";-import { usePathname } from "next/navigation";+import Link from "next/link"+import { usePathname } from "next/navigation"+import { NavItem } from "@/types"++import { Event, trackEvent } from "@/lib/events"+import { cn } from "@/lib/utils"+import { Button } from "@/components/ui/button"export function MainNav({items,className,...props}: React.ComponentProps<"nav"> & {- items: NavItem[];+ items: NavItem[]}) {- const pathname = usePathname();+ const pathname = usePathname()return (<nav className={cn("items-center gap-0.5", className)} {...props}>@@ -25,7 +26,7 @@ export function MainNav({className={cn(pathname === item.href && "text-primary")}onClick={() => {if (item.event) {- trackEvent({ name: item.event });+ trackEvent({ name: item.event })}}}>@@ -34,5 +35,5 @@ export function MainNav({</Button>))}</nav>- );+ )}diff --git a/apps/www/components/mobile-nav.tsx b/apps/www/components/mobile-nav.tsxindex 49ae6baa..cf9fc4ae 100644--- a/apps/www/components/mobile-nav.tsx+++ b/apps/www/components/mobile-nav.tsx@@ -1,20 +1,20 @@-"use client";+"use client"-import * as React from "react";-import Link, { LinkProps } from "next/link";-import { useRouter } from "next/navigation";+import * as React from "react"+import Link, { LinkProps } from "next/link"+import { useRouter } from "next/navigation"-import { cn } from "@/lib/utils";-import { Button } from "@/components/ui/button";+import { docsConfig } from "@/config/docs"+import { cn } from "@/lib/utils"+import { Button } from "@/components/ui/button"import {Popover,PopoverContent,PopoverTrigger,-} from "@/components/ui/popover";-import { docsConfig } from "@/config/docs";+} from "@/components/ui/popover"export function MobileNav({ className }: { className?: string }) {- const [open, setOpen] = React.useState(false);+ const [open, setOpen] = React.useState(false)return (<Popover open={open} onOpenChange={setOpen}>@@ -23,7 +23,7 @@ export function MobileNav({ className }: { className?: string }) {variant="ghost"className={cn("extend-touch-target h-8 touch-manipulation items-center justify-start gap-2.5 !p-0 hover:bg-transparent focus-visible:bg-transparent focus-visible:ring-0 active:bg-transparent dark:hover:bg-transparent",- className,+ className)}><div className="relative flex h-8 w-4 items-center justify-center">@@ -31,13 +31,13 @@ export function MobileNav({ className }: { className?: string }) {<spanclassName={cn("bg-foreground absolute left-0 block h-0.5 w-4 transition-all duration-100",- open ? "top-[0.4rem] -rotate-45" : "top-1",+ open ? "top-[0.4rem] -rotate-45" : "top-1")}/><spanclassName={cn("bg-foreground absolute left-0 block h-0.5 w-4 transition-all duration-100",- open ? "top-[0.4rem] rotate-45" : "top-2.5",+ open ? "top-[0.4rem] rotate-45" : "top-2.5")}/></div>@@ -83,7 +83,7 @@ export function MobileNav({ className }: { className?: string }) {)}</span></MobileLink>- ),+ ))}</div></div>@@ -120,17 +120,17 @@ export function MobileNav({ className }: { className?: string }) {)}</span></MobileLink>- ),+ ))}</div></div>- );+ )})}</div></div></PopoverContent></Popover>- );+ )}function MobileLink({@@ -140,22 +140,22 @@ function MobileLink({children,...props}: LinkProps & {- onOpenChange?: (open: boolean) => void;- children: React.ReactNode;- className?: string;+ onOpenChange?: (open: boolean) => void+ children: React.ReactNode+ className?: string}) {- const router = useRouter();+ const router = useRouter()return (<Linkhref={href}onClick={() => {- router.push(href.toString());- onOpenChange?.(false);+ router.push(href.toString())+ onOpenChange?.(false)}}className={cn("text-2xl font-medium", className)}{...props}>{children}</Link>- );+ )}diff --git a/apps/www/components/mode-toggle.tsx b/apps/www/components/mode-toggle.tsxindex 147e870c..eac86998 100644--- a/apps/www/components/mode-toggle.tsx+++ b/apps/www/components/mode-toggle.tsx@@ -1,22 +1,22 @@-"use client";+"use client"-import * as React from "react";-import { useTheme } from "next-themes";+import * as React from "react"+import { useTheme } from "next-themes"-import { useMetaColor } from "@/hooks/use-meta-color";-import { Button } from "@/components/ui/button";+import { useMetaColor } from "@/hooks/use-meta-color"+import { Button } from "@/components/ui/button"export function ModeToggle() {- const { setTheme, resolvedTheme } = useTheme();- const { setMetaColor, metaColor } = useMetaColor();+ const { setTheme, resolvedTheme } = useTheme()+ const { setMetaColor, metaColor } = useMetaColor()React.useEffect(() => {- setMetaColor(metaColor);- }, [metaColor, setMetaColor]);+ setMetaColor(metaColor)+ }, [metaColor, setMetaColor])const toggleTheme = React.useCallback(() => {- setTheme(resolvedTheme === "dark" ? "light" : "dark");- }, [resolvedTheme, setTheme]);+ setTheme(resolvedTheme === "dark" ? "light" : "dark")+ }, [resolvedTheme, setTheme])return (<Button@@ -47,5 +47,5 @@ export function ModeToggle() {</svg><span className="sr-only">Toggle theme</span></Button>- );+ )}diff --git a/apps/www/components/open-in-v0-button.tsx b/apps/www/components/open-in-v0-button.tsxindex 6ac8b5dd..763cfcdc 100644--- a/apps/www/components/open-in-v0-button.tsx+++ b/apps/www/components/open-in-v0-button.tsx@@ -1,4 +1,4 @@-import { Button } from "@/components/ui/button";+import { Button } from "@/components/ui/button"export function OpenInV0Button({ url }: { url: string }) {return (@@ -30,5 +30,5 @@ export function OpenInV0Button({ url }: { url: string }) {</svg></a></Button>- );+ )}diff --git a/apps/www/components/ping-dot.tsx b/apps/www/components/ping-dot.tsxindex a8eecc05..02b4baeb 100644--- a/apps/www/components/ping-dot.tsx+++ b/apps/www/components/ping-dot.tsx@@ -4,5 +4,5 @@ export function PingDot() {<span className="absolute size-2 animate-ping rounded-full bg-green-500 opacity-75"></span><span className="relative inline-flex size-2 rounded-full bg-green-500"></span></div>- );+ )}diff --git a/apps/www/components/posthog-provider.tsx b/apps/www/components/posthog-provider.tsxindex 4e5f97bc..f809492e 100644--- a/apps/www/components/posthog-provider.tsx+++ b/apps/www/components/posthog-provider.tsx@@ -1,9 +1,9 @@-"use client";+"use client"-import { usePathname, useSearchParams } from "next/navigation";-import posthog from "posthog-js";-import { PostHogProvider } from "posthog-js/react";-import { useEffect } from "react";+import { useEffect } from "react"+import { usePathname, useSearchParams } from "next/navigation"+import posthog from "posthog-js"+import { PostHogProvider } from "posthog-js/react"if (typeof window !== "undefined") {posthog.init(process.env.NEXT_PUBLIC_POSTHOG_API_KEY!, {@@ -14,30 +14,30 @@ if (typeof window !== "undefined") {},// Enable debug mode in developmentloaded: (posthog) => {- if (process.env.NODE_ENV === "development") posthog.debug();+ if (process.env.NODE_ENV === "development") posthog.debug()},- });+ })}export function PostHogPageview(): React.ReactNode {- const pathname = usePathname();- const searchParams = useSearchParams();+ const pathname = usePathname()+ const searchParams = useSearchParams()useEffect(() => {if (pathname) {- let url = window.origin + pathname;+ let url = window.origin + pathnameif (searchParams && searchParams.toString()) {- url = url + `?${searchParams.toString()}`;+ url = url + `?${searchParams.toString()}`}posthog.capture("$pageview", {$current_url: url,- });+ })}- }, [pathname, searchParams]);+ }, [pathname, searchParams])- return <></>;+ return <></>}export function PHProvider({ children }: { children: React.ReactNode }) {- return <PostHogProvider client={posthog}>{children}</PostHogProvider>;+ return <PostHogProvider client={posthog}>{children}</PostHogProvider>}diff --git a/apps/www/components/sections/component-demos.tsx b/apps/www/components/sections/component-demos.tsxindex a2b01832..e5b12273 100644--- a/apps/www/components/sections/component-demos.tsx+++ b/apps/www/components/sections/component-demos.tsx@@ -1,29 +1,30 @@-import { source } from "@/lib/source";-import { mdxComponents } from "@/mdx-components";-import { notFound } from "next/navigation";+import { notFound } from "next/navigation"+import { mdxComponents } from "@/mdx-components"-const PAGE = "home";+import { source } from "@/lib/source"++const PAGE = "home"export function ComponentDemos() {- const pages = source.getPages();- const page = pages.find((page) => page.url === PAGE);+ const pages = source.getPages()+ const page = pages.find((page) => page.url === PAGE)if (!page) {- notFound();+ notFound()}- const MDX = page.data.body;+ const MDX = page.data.bodyreturn (<section id="component-demos" className="container max-w-5xl py-14">- <h2 className="mb-2 text-center text-5xl font-bold leading-[1.2] tracking-tighter text-foreground">+ <h2 className="text-foreground mb-2 text-center text-5xl leading-[1.2] font-bold tracking-tighter">Component Demos</h2>- <h3 className="mx-auto mb-8 text-balance text-center text-lg font-medium tracking-tight text-foreground/80">+ <h3 className="text-foreground/80 mx-auto mb-8 text-center text-lg font-medium tracking-tight text-balance">Here are some of the components that you can use to build your landingpages.</h3><MDX components={mdxComponents} /></section>- );+ )}diff --git a/apps/www/components/sections/cta.tsx b/apps/www/components/sections/cta.tsxindex 287ff142..64ea43bd 100644--- a/apps/www/components/sections/cta.tsx+++ b/apps/www/components/sections/cta.tsx@@ -1,15 +1,15 @@-import { ChevronRight, HeartHandshake } from "lucide-react";+import { ChevronRight, HeartHandshake } from "lucide-react"-import { cn } from "@/lib/utils";-import { buttonVariants } from "@/components/ui/button";+import { cn } from "@/lib/utils"+import { buttonVariants } from "@/components/ui/button"export function CTASection() {return (<section id="cta"><div className="py-14"><div className="relative flex w-full flex-col items-center justify-center overflow-hidden border-y p-14">- <div className="z-10 mx-auto size-24 rounded-[2rem] border bg-white/10 p-3 shadow-2xl backdrop-blur-md dark:bg-black/10 lg:size-32">- <HeartHandshake className="mx-auto size-16 text-black dark:text-white lg:size-24" />+ <div className="z-10 mx-auto size-24 rounded-[2rem] border bg-white/10 p-3 shadow-2xl backdrop-blur-md lg:size-32 dark:bg-black/10">+ <HeartHandshake className="mx-auto size-16 text-black lg:size-24 dark:text-white" /></div><div className="z-10 mt-4 flex flex-col items-center text-center text-black dark:text-white"><h1 className="text-3xl font-bold lg:text-4xl">@@ -23,7 +23,7 @@ export function CTASection() {size: "lg",variant: "outline",}),- "group mt-4 rounded-[2rem] px-6",+ "group mt-4 rounded-[2rem] px-6")}>Get Magic UI Pro@@ -34,5 +34,5 @@ export function CTASection() {</div></div></section>- );+ )}diff --git a/apps/www/components/sections/expandable-masonary-section.tsx b/apps/www/components/sections/expandable-masonary-section.tsxindex e3f3d0f1..fda2cf3c 100644--- a/apps/www/components/sections/expandable-masonary-section.tsx+++ b/apps/www/components/sections/expandable-masonary-section.tsx@@ -1,27 +1,28 @@-"use client";+"use client"-import { Button } from "@/components/ui/button";-import { AnimatePresence, motion } from "motion/react";-import dynamic from "next/dynamic";-import { useRef, useState } from "react";+import { useRef, useState } from "react"+import dynamic from "next/dynamic"+import { AnimatePresence, motion } from "motion/react"++import { Button } from "@/components/ui/button"const Masonry = dynamic(() => import("masonic").then((mod) => mod.Masonry), {ssr: false,-});+})interface ExpandableMasonarySectionProps {- children: React.ReactNode[];+ children: React.ReactNode[]}export function ExpandableMasonarySection({children,}: ExpandableMasonarySectionProps) {- const [expanded, setExpanded] = useState(false);- const sectionRef = useRef<HTMLDivElement>(null);+ const [expanded, setExpanded] = useState(false)+ const sectionRef = useRef<HTMLDivElement>(null)const handleToggle = () => {- setExpanded(!expanded);- };+ setExpanded(!expanded)+ }return (<>@@ -45,7 +46,7 @@ export function ExpandableMasonarySection({initial={{ opacity: 0 }}animate={{ opacity: 1 }}exit={{ opacity: 0 }}- className="pointer-events-none absolute inset-x-0 bottom-0 h-32 bg-gradient-to-t from-background"+ className="from-background pointer-events-none absolute inset-x-0 bottom-0 h-32 bg-gradient-to-t"/>)}</AnimatePresence>@@ -58,5 +59,5 @@ export function ExpandableMasonarySection({{expanded ? "Show Less" : "Show More"}</Button></>- );+ )}diff --git a/apps/www/components/sections/hero.tsx b/apps/www/components/sections/hero.tsxindex a476bf86..88f50812 100644--- a/apps/www/components/sections/hero.tsx+++ b/apps/www/components/sections/hero.tsx@@ -1,25 +1,26 @@-import { source } from "@/lib/source";-import { ChevronRight } from "lucide-react";-import Link from "next/link";-import { TechStack } from "@/components/tech-stack";-import { buttonVariants } from "@/components/ui/button";-import { Separator } from "@/components/ui/separator";-import { cn } from "@/lib/utils";+import Link from "next/link"+import { ChevronRight } from "lucide-react"++import { source } from "@/lib/source"+import { cn } from "@/lib/utils"+import { buttonVariants } from "@/components/ui/button"+import { Separator } from "@/components/ui/separator"+import { TechStack } from "@/components/tech-stack"export function Hero() {const pages = source.getPages() as Array<{- data?: { title?: string; date?: string };- url?: string;- }>;+ data?: { title?: string; date?: string }+ url?: string+ }>const page = pages.sort((a, b) => {- const dateA = a?.data?.date;- const dateB = b?.data?.date;- if (!dateA && !dateB) return 0;- if (!dateA) return 1;- if (!dateB) return -1;- return new Date(dateB).getTime() - new Date(dateA).getTime();- })[0];- const pageTitle = page?.data?.title;+ const dateA = a?.data?.date+ const dateB = b?.data?.date+ if (!dateA && !dateB) return 0+ if (!dateA) return 1+ if (!dateB) return -1+ return new Date(dateB).getTime() - new Date(dateA).getTime()+ })[0]+ const pageTitle = page?.data?.titlereturn (<section id="hero">@@ -34,27 +35,27 @@ export function Hero() {variant: "outline",size: "sm",}),- "rounded-full",+ "rounded-full")}>🎉 <Separator className="mx-2 h-4" orientation="vertical" />Introducing {pageTitle}- <ChevronRight className="ml-1 size-4 text-muted-foreground" />+ <ChevronRight className="text-muted-foreground ml-1 size-4" /></Link><div className="relative flex flex-col gap-4 md:items-center lg:flex-row"><h1className={cn("text-black dark:text-white",- "relative mx-0 max-w-[43.5rem] pt-5 md:mx-auto md:px-4 md:py-2",- "text-balance text-left font-semibold tracking-tighter md:text-center",- "text-5xl sm:text-7xl md:text-7xl lg:text-7xl",+ "relative mx-0 max-w-[43.5rem] pt-5 md:mx-auto md:px-4 md:py-2",+ "text-left font-semibold tracking-tighter text-balance md:text-center",+ "text-5xl sm:text-7xl md:text-7xl lg:text-7xl")}>UI library for Design Engineers</h1></div>- <p className="max-w-xl text-balance text-left text-base tracking-tight text-primary md:text-center md:text-lg">+ <p className="text-primary max-w-xl text-left text-base tracking-tight text-balance md:text-center md:text-lg">150+ free and open-source animated components and effects builtwith <b className="font-[550] dark:font-[580]">React</b>,{" "}<b className="font-[550] dark:font-[580]">Typescript</b>,{" "}@@ -66,7 +67,7 @@ export function Hero() {<b className="font-[550] dark:font-[580]">shadcn/ui</b>.</p>- <div className="md:mx-auto w-full flex md:max-w-xs flex-col gap-4 gap-y-2 md:flex-row md:justify-center">+ <div className="flex w-full flex-col gap-4 gap-y-2 md:mx-auto md:max-w-xs md:flex-row md:justify-center"><Linkhref="/components"className={cn(@@ -74,11 +75,11 @@ export function Hero() {variant: "rainbow",size: "lg",}),- "w-full gap-2",+ "w-full gap-2")}>Browse Components- <ChevronRight className="ml-1 size-4 shrink-0 transition-all duration-300 ease-out group-hover:translate-x-1" />+ <ChevronRight className="ml-1 size-4 shrink-0 transition-all duration-300 ease-out group-hover:translate-x-1" /></Link><Linkhref="https://pro.magicui.design"@@ -87,7 +88,7 @@ export function Hero() {size: "lg",variant: "rainbow-outline",}),- "w-full gap-2",+ "w-full gap-2")}>Browse Templates@@ -112,5 +113,5 @@ export function Hero() {</div></div></section>- );+ )}diff --git a/apps/www/components/sections/showcase.tsx b/apps/www/components/sections/showcase.tsxindex 5b63148a..12a77f9a 100644--- a/apps/www/components/sections/showcase.tsx+++ b/apps/www/components/sections/showcase.tsx@@ -1,14 +1,14 @@-import { showcaseSource } from "@/lib/source";-import { ChevronRightIcon } from "@radix-ui/react-icons";-import Link from "next/link";+import Link from "next/link"+import { ChevronRightIcon } from "@radix-ui/react-icons"-import { Marquee } from "@/registry/magicui/marquee";+import { showcaseSource } from "@/lib/source"+import { Marquee } from "@/registry/magicui/marquee"export interface ShowcaseCardProps {- title: string;- image: string;- href: string;- affiliation?: string;+ title: string+ image: string+ href: string+ affiliation?: string}export function ShowcaseCard({title,@@ -37,17 +37,17 @@ export function ShowcaseCard({<p className="text-sm text-neutral-400">{affiliation}</p></div></Link>- );+ )}export function Showcase() {- const showcases = showcaseSource.getPages();+ const showcases = showcaseSource.getPages()return (<section id="showcase" className="container py-14">- <h2 className="mb-2 text-center text-5xl font-bold leading-[1.2] tracking-tighter text-foreground">+ <h2 className="text-foreground mb-2 text-center text-5xl leading-[1.2] font-bold tracking-tighter">Showcase</h2>- <h3 className="mx-auto mb-8 text-balance text-center text-lg font-medium tracking-tight text-foreground/80">+ <h3 className="text-foreground/80 mx-auto mb-8 text-center text-lg font-medium tracking-tight text-balance">Companies choose Magic UI to build their landing pages.</h3><div className="relative flex flex-col">@@ -65,9 +65,9 @@ export function Showcase() {/>))}</Marquee>- <div className="pointer-events-none absolute inset-y-0 left-0 h-full w-1/12 bg-gradient-to-r from-background"></div>- <div className="pointer-events-none absolute inset-y-0 right-0 h-full w-1/12 bg-gradient-to-l from-background"></div>+ <div className="from-background pointer-events-none absolute inset-y-0 left-0 h-full w-1/12 bg-gradient-to-r"></div>+ <div className="from-background pointer-events-none absolute inset-y-0 right-0 h-full w-1/12 bg-gradient-to-l"></div></div></section>- );+ )}diff --git a/apps/www/components/sections/testimonials.tsx b/apps/www/components/sections/testimonials.tsxindex 0851966a..b755ebd7 100644--- a/apps/www/components/sections/testimonials.tsx+++ b/apps/www/components/sections/testimonials.tsx@@ -1,7 +1,8 @@-import { ExpandableMasonarySection } from "@/components/sections/expandable-masonary-section";-import { TweetCard } from "@/registry/magicui/tweet-card";-import { ArrowUpRight } from "lucide-react";-import Link from "next/link";+import Link from "next/link"+import { ArrowUpRight } from "lucide-react"++import { ExpandableMasonarySection } from "@/components/sections/expandable-masonary-section"+import { TweetCard } from "@/registry/magicui/tweet-card"const allTweets = ["https://x.com/steventey/status/1722659583464968612",@@ -52,12 +53,12 @@ const allTweets = [// "https://x.com/Star_Knight12/status/1861814034363981989",// "https://x.com/mohamedzamakhan/status/1859810055924895904",// "https://x.com/DutchEngIishman/status/1795888864202043645",-].map((t) => t.split("/").slice(-1)[0]);+].map((t) => t.split("/").slice(-1)[0])export function Testimonials() {return (<section id="testimonials" className="container max-w-screen-xl py-14">- <h2 className="mb-8 text-center text-5xl font-bold leading-[1.2] tracking-tighter text-foreground">+ <h2 className="text-foreground mb-8 text-center text-5xl leading-[1.2] font-bold tracking-tighter">What People Are Saying on Twitter</h2><ExpandableMasonarySection>@@ -69,7 +70,7 @@ export function Testimonials() {><TweetCardid={id}- className="break-inside-avoid overflow-hidden rounded-lg bg-secondary shadow-sm"+ className="bg-secondary break-inside-avoid overflow-hidden rounded-lg shadow-sm"/><span className="absolute inset-0 flex items-center justify-center rounded-lg bg-black/20 p-4 text-lg font-bold text-white opacity-0 transition-opacity duration-300 ease-in-out group-hover:opacity-100"><span className="flex translate-y-[14px] items-center gap-2 transition-transform duration-300 ease-in-out group-hover:translate-y-0">@@ -81,5 +82,5 @@ export function Testimonials() {))}</ExpandableMasonarySection></section>- );+ )}diff --git a/apps/www/components/sections/video-testimonials.tsx b/apps/www/components/sections/video-testimonials.tsxindex 60c0c57e..53ae291a 100644--- a/apps/www/components/sections/video-testimonials.tsx+++ b/apps/www/components/sections/video-testimonials.tsx@@ -1,6 +1,6 @@-"use client";+"use client"-import { motion } from "motion/react";+import { motion } from "motion/react"export function VideoTestimonials() {const videoUrls = [@@ -9,21 +9,21 @@ export function VideoTestimonials() {"https://www.youtube.com/embed/AkN6xJcnVYs","https://www.youtube.com/embed/hlSu_ldrbQw?t=1131s","https://www.youtube.com/embed/ZYvvTehpA5I",- ];+ ]return (<sectionid="video-testimonials"className="container max-w-screen-xl py-14">- <h2 className="mb-8 text-center text-5xl font-bold leading-[1.2] tracking-tighter text-foreground">+ <h2 className="text-foreground mb-8 text-center text-5xl leading-[1.2] font-bold tracking-tighter">Featured on YouTube</h2><div className="grid auto-rows-[300px] grid-cols-1 gap-6 md:auto-rows-[350px] md:grid-cols-4 lg:grid-cols-6">{videoUrls.map((url, index) => (<motion.divkey={index}- className={`group relative overflow-hidden rounded-xl border bg-card shadow-lg hover:shadow-xl transition-all duration-300 ${+ className={`group bg-card relative overflow-hidden rounded-xl border shadow-lg transition-all duration-300 hover:shadow-xl ${index === 0? "md:col-span-2 md:row-span-2 lg:col-span-3 lg:row-span-2": index % 2 === 1@@ -32,7 +32,7 @@ export function VideoTestimonials() {}`}whileHover={{ scale: 1.02 }}>- <div className="absolute inset-0 bg-gradient-to-t from-black/20 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300 z-10 pointer-events-none" />+ <div className="pointer-events-none absolute inset-0 z-10 bg-gradient-to-t from-black/20 to-transparent opacity-0 transition-opacity duration-300 group-hover:opacity-100" /><iframesrc={url}title={`YouTube testimonial ${index + 1}`}@@ -46,5 +46,5 @@ export function VideoTestimonials() {))}</div></section>- );+ )}diff --git a/apps/www/components/sidebar-cta.tsx b/apps/www/components/sidebar-cta.tsxindex 0aff7175..b5ccc1bd 100644--- a/apps/www/components/sidebar-cta.tsx+++ b/apps/www/components/sidebar-cta.tsx@@ -1,42 +1,42 @@-"use client";+"use client"-import { ChevronRight } from "lucide-react";-import Link from "next/link";+import Link from "next/link"+import { ChevronRight } from "lucide-react"+import posthog from "posthog-js"-import { PingDot } from "@/components/ping-dot";-import { Button } from "@/components/ui/button";-import { trackEvent } from "@/lib/events";-import { AnimatedShinyText } from "@/registry/magicui/animated-shiny-text";-import { AuroraText } from "@/registry/magicui/aurora-text";-import { LineShadowText } from "@/registry/magicui/line-shadow-text";-import { TextAnimate } from "@/registry/magicui/text-animate";-import posthog from "posthog-js";+import { trackEvent } from "@/lib/events"+import { Button } from "@/components/ui/button"+import { PingDot } from "@/components/ping-dot"+import { AnimatedShinyText } from "@/registry/magicui/animated-shiny-text"+import { AuroraText } from "@/registry/magicui/aurora-text"+import { LineShadowText } from "@/registry/magicui/line-shadow-text"+import { TextAnimate } from "@/registry/magicui/text-animate"export function ProCTA() {return (- <div className="my-6 flex w-full flex-col gap-4 rounded-xl border border-border p-6">+ <div className="border-border my-6 flex w-full flex-col gap-4 rounded-xl border p-6"><div className="flex items-center gap-2"><PingDot />- <span className="text-xs font-semibold uppercase tracking-wider text-emerald-600">+ <span className="text-xs font-semibold tracking-wider text-emerald-600 uppercase">Limited Time Offer</span></div><div className="space-y-3">- <p className="text-3xl font-bold leading-tight text-foreground">+ <p className="text-foreground text-3xl leading-tight font-bold">Ship{" "}- <LineShadowText className="italic tracking-tighter font-bold">+ <LineShadowText className="font-bold tracking-tighter italic">Faster</LineShadowText>{" "}with <AuroraText>Magic UI Pro</AuroraText></p>- <p className="text-sm leading-relaxed text-muted-foreground">+ <p className="text-muted-foreground text-sm leading-relaxed">Stop building from scratch. <br /> Get{" "}- <span className="font-semibold text-foreground">+ <span className="text-foreground font-semibold">8 production-ready templates</span>{" "}and{" "}- <span className="font-semibold text-foreground">+ <span className="text-foreground font-semibold">50+ premium components</span>{" "}that your users will love.@@ -44,19 +44,19 @@ export function ProCTA() {</div><div className="space-y-2.5">- <div className="flex items-center gap-3 text-sm text-muted-foreground">+ <div className="text-muted-foreground flex items-center gap-3 text-sm"><div className="flex h-5 w-5 items-center justify-center rounded-full bg-emerald-100"><span className="text-xs font-bold text-emerald-600">✓</span></div><span>Next.js 15 + TypeScript ready</span></div>- <div className="flex items-center gap-3 text-sm text-muted-foreground">+ <div className="text-muted-foreground flex items-center gap-3 text-sm"><div className="flex h-5 w-5 items-center justify-center rounded-full bg-emerald-100"><span className="text-xs font-bold text-emerald-600">✓</span></div><span>Copy, paste, customize in minutes</span></div>- <div className="flex items-center gap-3 text-sm text-muted-foreground">+ <div className="text-muted-foreground flex items-center gap-3 text-sm"><div className="flex h-5 w-5 items-center justify-center rounded-full bg-emerald-100"><span className="text-xs font-bold text-emerald-600">✓</span></div>@@ -66,15 +66,15 @@ export function ProCTA() {<div className="space-y-4 pt-2"><div className="flex items-baseline justify-center gap-2">- <span className="text-3xl font-bold text-foreground">$199</span>- <span className="text-sm font-medium text-muted-foreground">+ <span className="text-foreground text-3xl font-bold">$199</span>+ <span className="text-muted-foreground text-sm font-medium">once</span></div><ButtonasChild- className="w-full bg-primary hover:bg-primary/90 text-primary-foreground font-semibold py-3 rounded-lg shadow-sm hover:shadow-md transition-all duration-200"+ className="bg-primary hover:bg-primary/90 text-primary-foreground w-full rounded-lg py-3 font-semibold shadow-sm transition-all duration-200 hover:shadow-md"onClick={() => trackEvent({ name: "sidebar_cta_clicked" })}><Link@@ -89,13 +89,13 @@ export function ProCTA() {</Button><div className="text-center">- <p className="text-xs text-muted-foreground">+ <p className="text-muted-foreground text-xs">Trusted by <span className="font-semibold">5,000+</span> developers</p></div></div></div>- );+ )}export function ProductHuntCTA() {@@ -104,12 +104,12 @@ export function ProductHuntCTA() {href="https://www.producthunt.com/posts/magic-ui-2?utm_source=sidebar-cta&utm_medium=sidebar-cta&utm_campaign=product-hunt-sidebar-cta"target="_blank"onClick={() => posthog.capture("product_hunt_sidebar_cta_clicked")}- className="group my-20 flex w-full flex-col items-center justify-center gap-2 rounded-xl bg-[#ff6154] p-4 text-center text-lg font-medium leading-tight text-white"+ className="group my-20 flex w-full flex-col items-center justify-center gap-2 rounded-xl bg-[#ff6154] p-4 text-center text-lg leading-tight font-medium text-white"><TextAnimate animate="blurInUp" by="word" className="text-2xl">Vote for Magic UI on Product Hunt Today!</TextAnimate>- <AnimatedShinyText className="group inline items-center justify-center whitespace-pre-wrap via-white/80 text-white text-xs">+ <AnimatedShinyText className="group inline items-center justify-center via-white/80 text-xs whitespace-pre-wrap text-white">✨ Show your support and vote for us</AnimatedShinyText>@@ -122,9 +122,9 @@ export function ProductHuntCTA() {className="w-full overflow-hidden rounded-xl shadow-2xl"/></Link>- );+ )}export function SidebarCTA() {- return <ProCTA />;+ return <ProCTA />}diff --git a/apps/www/components/site-banner.tsx b/apps/www/components/site-banner.tsxindex 62fb6992..89c3dabc 100644--- a/apps/www/components/site-banner.tsx+++ b/apps/www/components/site-banner.tsx@@ -1,8 +1,8 @@-"use client";+"use client"-import { ChevronRight } from "lucide-react";-import Link from "next/link";-import posthog from "posthog-js";+import Link from "next/link"+import { ChevronRight } from "lucide-react"+import posthog from "posthog-js"export function ProBanner() {return (@@ -20,12 +20,12 @@ export function ProBanner() {Introducing Magic UI Pro - 50+ blocks and templates to buildbeautiful landing pages in minutes.</span>{" "}- <ChevronRight className="ml-1 mt-[3px] hidden size-4 transition-all duration-300 ease-out group-hover:translate-x-1 lg:inline-block" />+ <ChevronRight className="mt-[3px] ml-1 hidden size-4 transition-all duration-300 ease-out group-hover:translate-x-1 lg:inline-block" /></Link></div><hr className="absolute bottom-0 m-0 h-px w-full bg-neutral-200/30" /></div>- );+ )}export function ProductHuntBanner() {@@ -44,14 +44,14 @@ export function ProductHuntBanner() {Magic UI is live on Product Hunt Today! Show your support and votefor us.</span>{" "}- <ChevronRight className="ml-1 mt-[3px] hidden size-4 transition-all duration-300 ease-out group-hover:translate-x-1 lg:inline-block" />+ <ChevronRight className="mt-[3px] ml-1 hidden size-4 transition-all duration-300 ease-out group-hover:translate-x-1 lg:inline-block" /></Link></div><hr className="absolute bottom-0 m-0 h-px w-full bg-neutral-200/30" /></div>- );+ )}export function SiteBanner() {- return <ProBanner />;+ return <ProBanner />}diff --git a/apps/www/components/site-footer.tsx b/apps/www/components/site-footer.tsxindex 6a10556c..4b24c20c 100644--- a/apps/www/components/site-footer.tsx+++ b/apps/www/components/site-footer.tsx@@ -1,4 +1,4 @@-import { siteConfig } from "@/config/site";+import { siteConfig } from "@/config/site"export function SiteFooter() {return (@@ -29,5 +29,5 @@ export function SiteFooter() {</div></div></footer>- );+ )}diff --git a/apps/www/components/site-header.tsx b/apps/www/components/site-header.tsxindex 862a2728..dc9e2eca 100644--- a/apps/www/components/site-header.tsx+++ b/apps/www/components/site-header.tsx@@ -1,12 +1,12 @@-import { CommandMenu } from "@/components/command-menu";-import { DiscordLink } from "@/components/discord-link";-import { GitHubLink } from "@/components/github-link";-import { LogoButton } from "@/components/logo-button";-import { MainNav } from "@/components/main-nav";-import { MobileNav } from "@/components/mobile-nav";-import { ModeToggle } from "@/components/mode-toggle";-import { Separator } from "@/components/ui/separator";-import { docsConfig } from "@/config/docs";+import { docsConfig } from "@/config/docs"+import { Separator } from "@/components/ui/separator"+import { CommandMenu } from "@/components/command-menu"+import { DiscordLink } from "@/components/discord-link"+import { GitHubLink } from "@/components/github-link"+import { LogoButton } from "@/components/logo-button"+import { MainNav } from "@/components/main-nav"+import { MobileNav } from "@/components/mobile-nav"+import { ModeToggle } from "@/components/mode-toggle"export async function SiteHeader() {return (@@ -35,5 +35,5 @@ export async function SiteHeader() {</div></div></header>- );+ )}diff --git a/apps/www/components/tech-stack.tsx b/apps/www/components/tech-stack.tsxindex 76a285a6..1d475273 100644--- a/apps/www/components/tech-stack.tsx+++ b/apps/www/components/tech-stack.tsx@@ -1,16 +1,16 @@+import { cn } from "@/lib/utils"import {Tooltip,TooltipContent,TooltipTrigger,-} from "@/components/ui/tooltip";-import { cn } from "@/lib/utils";+} from "@/components/ui/tooltip"type TechComponentType = {- name: string;- icon: React.ReactNode;-};+ name: string+ icon: React.ReactNode+}-type TechComponents = Record<string, TechComponentType>;+type TechComponents = Record<string, TechComponentType>const techComponents: TechComponents = {nextjs: {@@ -134,14 +134,14 @@ const techComponents: TechComponents = {</svg>),},-};+}export function TechStack({technologies,className,}: {- technologies: string[];- className?: string;+ technologies: string[]+ className?: string}) {return (<div className={cn("flex flex-row gap-2", className)}>@@ -154,5 +154,5 @@ export function TechStack({</Tooltip>))}</div>- );+ )}diff --git a/apps/www/components/template-open.tsx b/apps/www/components/template-open.tsxindex 97accf39..21608879 100644--- a/apps/www/components/template-open.tsx+++ b/apps/www/components/template-open.tsx@@ -1,14 +1,15 @@-"use client";+"use client"-import { ArrowRightIcon } from "lucide-react";-import Link from "next/link";-import { buttonVariants } from "@/components/ui/button";-import { cn } from "@/lib/utils";-import { GitHubLogoIcon } from "@radix-ui/react-icons";+import Link from "next/link"+import { GitHubLogoIcon } from "@radix-ui/react-icons"+import { ArrowRightIcon } from "lucide-react"++import { cn } from "@/lib/utils"+import { buttonVariants } from "@/components/ui/button"interface TemplateOpenProps {- url: string;- free?: boolean;+ url: string+ free?: boolean}export function TemplateOpen({ url, free = false }: TemplateOpenProps) {@@ -21,13 +22,13 @@ export function TemplateOpen({ url, free = false }: TemplateOpenProps) {buttonVariants({variant: "default",}),- "not-prose group relative w-full gap-2 shrink",+ "not-prose group relative w-full shrink gap-2")}>Download<GitHubLogoIcon className="size-4" /></Link>- );+ )}return (@@ -38,11 +39,11 @@ export function TemplateOpen({ url, free = false }: TemplateOpenProps) {buttonVariants({variant: "default",}),- "not-prose group relative w-full gap-1 shrink",+ "not-prose group relative w-full shrink gap-1")}>Buy Now<ArrowRightIcon className="size-4 transition-all duration-300 ease-out group-hover:translate-x-1" /></Link>- );+ )}diff --git a/apps/www/components/template-preview.tsx b/apps/www/components/template-preview.tsxindex 853cbfe4..91712f01 100644--- a/apps/www/components/template-preview.tsx+++ b/apps/www/components/template-preview.tsx@@ -1,16 +1,16 @@-import { ReactNode } from "react";-import Link from "next/link";-import { ExternalLinkIcon } from "@radix-ui/react-icons";+import { ReactNode } from "react"+import Link from "next/link"+import { ExternalLinkIcon } from "@radix-ui/react-icons"-import { cn } from "@/lib/utils";-import { buttonVariants } from "@/components/ui/button";+import { cn } from "@/lib/utils"+import { buttonVariants } from "@/components/ui/button"export function TemplatePreview({href,children,}: {- href: string;- children: ReactNode;+ href: string+ children: ReactNode}) {return (<Link@@ -18,7 +18,7 @@ export function TemplatePreview({buttonVariants({variant: "outline",}),- "not-prose group relative w-full gap-2 shrink",+ "not-prose group relative w-full shrink gap-2")}href={href}target="_blank"@@ -26,5 +26,5 @@ export function TemplatePreview({{children}<ExternalLinkIcon className="size-4" /></Link>- );+ )}diff --git a/apps/www/components/theme-provider.tsx b/apps/www/components/theme-provider.tsxindex 10a2bf6e..880ced40 100644--- a/apps/www/components/theme-provider.tsx+++ b/apps/www/components/theme-provider.tsx@@ -1,10 +1,10 @@-"use client";+"use client"import {ThemeProvider as NextThemesProvider,ThemeProviderProps,-} from "next-themes";+} from "next-themes"export function ThemeProvider({ children, ...props }: ThemeProviderProps) {- return <NextThemesProvider {...props}>{children}</NextThemesProvider>;+ return <NextThemesProvider {...props}>{children}</NextThemesProvider>}diff --git a/apps/www/components/ui/accordion.tsx b/apps/www/components/ui/accordion.tsxindex 6d60d31e..4a8cca46 100644--- a/apps/www/components/ui/accordion.tsx+++ b/apps/www/components/ui/accordion.tsx@@ -1,15 +1,15 @@-"use client";+"use client"-import * as React from "react";-import * as AccordionPrimitive from "@radix-ui/react-accordion";-import { ChevronDownIcon } from "lucide-react";+import * as React from "react"+import * as AccordionPrimitive from "@radix-ui/react-accordion"+import { ChevronDownIcon } from "lucide-react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"function Accordion({...props}: React.ComponentProps<typeof AccordionPrimitive.Root>) {- return <AccordionPrimitive.Root data-slot="accordion" {...props} />;+ return <AccordionPrimitive.Root data-slot="accordion" {...props} />}function AccordionItem({@@ -22,7 +22,7 @@ function AccordionItem({className={cn("border-b last:border-b-0", className)}{...props}/>- );+ )}function AccordionTrigger({@@ -36,7 +36,7 @@ function AccordionTrigger({data-slot="accordion-trigger"className={cn("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",- className,+ className)}{...props}>@@ -44,7 +44,7 @@ function AccordionTrigger({<ChevronDownIcon className="text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" /></AccordionPrimitive.Trigger></AccordionPrimitive.Header>- );+ )}function AccordionContent({@@ -60,7 +60,7 @@ function AccordionContent({><div className={cn("pt-0 pb-4", className)}>{children}</div></AccordionPrimitive.Content>- );+ )}-export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };+export { Accordion, AccordionItem, AccordionTrigger, AccordionContent }diff --git a/apps/www/components/ui/alert.tsx b/apps/www/components/ui/alert.tsxindex aa7de24d..14213546 100644--- a/apps/www/components/ui/alert.tsx+++ b/apps/www/components/ui/alert.tsx@@ -1,7 +1,7 @@-import * as React from "react";-import { cva, type VariantProps } from "class-variance-authority";+import * as React from "react"+import { cva, type VariantProps } from "class-variance-authority"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"const alertVariants = cva("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",@@ -16,8 +16,8 @@ const alertVariants = cva(defaultVariants: {variant: "default",},- },-);+ }+)function Alert({className,@@ -31,7 +31,7 @@ function Alert({className={cn(alertVariants({ variant }), className)}{...props}/>- );+ )}function AlertTitle({ className, ...props }: React.ComponentProps<"div">) {@@ -40,11 +40,11 @@ function AlertTitle({ className, ...props }: React.ComponentProps<"div">) {data-slot="alert-title"className={cn("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",- className,+ className)}{...props}/>- );+ )}function AlertDescription({@@ -56,11 +56,11 @@ function AlertDescription({data-slot="alert-description"className={cn("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",- className,+ className)}{...props}/>- );+ )}-export { Alert, AlertTitle, AlertDescription };+export { Alert, AlertTitle, AlertDescription }diff --git a/apps/www/components/ui/avatar.tsx b/apps/www/components/ui/avatar.tsxindex c4475c2e..71e428b4 100644--- a/apps/www/components/ui/avatar.tsx+++ b/apps/www/components/ui/avatar.tsx@@ -1,9 +1,9 @@-"use client";+"use client"-import * as React from "react";-import * as AvatarPrimitive from "@radix-ui/react-avatar";+import * as React from "react"+import * as AvatarPrimitive from "@radix-ui/react-avatar"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"function Avatar({className,@@ -14,11 +14,11 @@ function Avatar({data-slot="avatar"className={cn("relative flex size-8 shrink-0 overflow-hidden rounded-full",- className,+ className)}{...props}/>- );+ )}function AvatarImage({@@ -31,7 +31,7 @@ function AvatarImage({className={cn("aspect-square size-full", className)}{...props}/>- );+ )}function AvatarFallback({@@ -43,11 +43,11 @@ function AvatarFallback({data-slot="avatar-fallback"className={cn("bg-muted flex size-full items-center justify-center rounded-full",- className,+ className)}{...props}/>- );+ )}-export { Avatar, AvatarImage, AvatarFallback };+export { Avatar, AvatarImage, AvatarFallback }diff --git a/apps/www/components/ui/badge.tsx b/apps/www/components/ui/badge.tsxindex 58ee670b..b67c8b7c 100644--- a/apps/www/components/ui/badge.tsx+++ b/apps/www/components/ui/badge.tsx@@ -1,8 +1,8 @@-import * as React from "react";-import { Slot } from "@radix-ui/react-slot";-import { cva, type VariantProps } from "class-variance-authority";+import * as React from "react"+import { Slot } from "@radix-ui/react-slot"+import { cva, type VariantProps } from "class-variance-authority"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"const badgeVariants = cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",@@ -22,18 +22,18 @@ const badgeVariants = cva(defaultVariants: {variant: "default",},- },-);+ }+)interface BadgePropsextends React.HTMLAttributes<HTMLSpanElement>,VariantProps<typeof badgeVariants> {- asChild?: boolean;+ asChild?: boolean}const Badge = React.forwardRef<HTMLSpanElement, BadgeProps>(({ className, variant, asChild = false, ...props }, ref) => {- const Comp = asChild ? Slot : "span";+ const Comp = asChild ? Slot : "span"return (<Compdata-slot="badge"@@ -41,10 +41,10 @@ const Badge = React.forwardRef<HTMLSpanElement, BadgeProps>(ref={ref}{...props}/>- );- },-);+ )+ }+)-Badge.displayName = "Badge";+Badge.displayName = "Badge"-export { Badge, badgeVariants, type BadgeProps };+export { Badge, badgeVariants, type BadgeProps }diff --git a/apps/www/components/ui/button.tsx b/apps/www/components/ui/button.tsxindex a54af151..beea7677 100644--- a/apps/www/components/ui/button.tsx+++ b/apps/www/components/ui/button.tsx@@ -1,8 +1,8 @@-import * as React from "react";-import { Slot } from "@radix-ui/react-slot";-import { cva, type VariantProps } from "class-variance-authority";+import * as React from "react"+import { Slot } from "@radix-ui/react-slot"+import { cva, type VariantProps } from "class-variance-authority"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"const buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",@@ -36,8 +36,8 @@ const buttonVariants = cva(variant: "default",size: "default",},- },-);+ }+)function Button({className,@@ -47,9 +47,9 @@ function Button({...props}: React.ComponentProps<"button"> &VariantProps<typeof buttonVariants> & {- asChild?: boolean;+ asChild?: boolean}) {- const Comp = asChild ? Slot : "button";+ const Comp = asChild ? Slot : "button"return (<Comp@@ -57,7 +57,7 @@ function Button({className={cn(buttonVariants({ variant, size, className }))}{...props}/>- );+ )}-export { Button, buttonVariants };+export { Button, buttonVariants }diff --git a/apps/www/components/ui/calendar.tsx b/apps/www/components/ui/calendar.tsxindex 49dc088c..b8df044d 100644--- a/apps/www/components/ui/calendar.tsx+++ b/apps/www/components/ui/calendar.tsx@@ -1,11 +1,11 @@-"use client";+"use client"-import * as React from "react";-import { ChevronLeft, ChevronRight } from "lucide-react";-import { DayPicker } from "react-day-picker";+import * as React from "react"+import { ChevronLeft, ChevronRight } from "lucide-react"+import { DayPicker } from "react-day-picker"-import { cn } from "@/lib/utils";-import { buttonVariants } from "@/components/ui/button";+import { cn } from "@/lib/utils"+import { buttonVariants } from "@/components/ui/button"function Calendar({className,@@ -25,7 +25,7 @@ function Calendar({nav: "flex items-center gap-1",nav_button: cn(buttonVariants({ variant: "outline" }),- "size-7 bg-transparent p-0 opacity-50 hover:opacity-100",+ "size-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous: "absolute left-1",nav_button_next: "absolute right-1",@@ -38,11 +38,11 @@ function Calendar({"relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-range-end)]:rounded-r-md",props.mode === "range"? "[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md"- : "[&:has([aria-selected])]:rounded-md",+ : "[&:has([aria-selected])]:rounded-md"),day: cn(buttonVariants({ variant: "ghost" }),- "size-8 p-0 font-normal aria-selected:opacity-100",+ "size-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start aria-selected:bg-primary aria-selected:text-primary-foreground",@@ -69,7 +69,7 @@ function Calendar({}}{...props}/>- );+ )}-export { Calendar };+export { Calendar }diff --git a/apps/www/components/ui/card.tsx b/apps/www/components/ui/card.tsxindex 113d66c7..d05bbc6c 100644--- a/apps/www/components/ui/card.tsx+++ b/apps/www/components/ui/card.tsx@@ -1,6 +1,6 @@-import * as React from "react";+import * as React from "react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"function Card({ className, ...props }: React.ComponentProps<"div">) {return (@@ -8,11 +8,11 @@ function Card({ className, ...props }: React.ComponentProps<"div">) {data-slot="card"className={cn("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",- className,+ className)}{...props}/>- );+ )}function CardHeader({ className, ...props }: React.ComponentProps<"div">) {@@ -21,11 +21,11 @@ function CardHeader({ className, ...props }: React.ComponentProps<"div">) {data-slot="card-header"className={cn("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",- className,+ className)}{...props}/>- );+ )}function CardTitle({ className, ...props }: React.ComponentProps<"div">) {@@ -35,7 +35,7 @@ function CardTitle({ className, ...props }: React.ComponentProps<"div">) {className={cn("leading-none font-semibold", className)}{...props}/>- );+ )}function CardDescription({ className, ...props }: React.ComponentProps<"div">) {@@ -45,7 +45,7 @@ function CardDescription({ className, ...props }: React.ComponentProps<"div">) {className={cn("text-muted-foreground text-sm", className)}{...props}/>- );+ )}function CardAction({ className, ...props }: React.ComponentProps<"div">) {@@ -54,11 +54,11 @@ function CardAction({ className, ...props }: React.ComponentProps<"div">) {data-slot="card-action"className={cn("col-start-2 row-span-2 row-start-1 self-start justify-self-end",- className,+ className)}{...props}/>- );+ )}function CardContent({ className, ...props }: React.ComponentProps<"div">) {@@ -68,7 +68,7 @@ function CardContent({ className, ...props }: React.ComponentProps<"div">) {className={cn("px-6", className)}{...props}/>- );+ )}function CardFooter({ className, ...props }: React.ComponentProps<"div">) {@@ -78,7 +78,7 @@ function CardFooter({ className, ...props }: React.ComponentProps<"div">) {className={cn("flex items-center px-6 [.border-t]:pt-6", className)}{...props}/>- );+ )}export {@@ -89,4 +89,4 @@ export {CardAction,CardDescription,CardContent,-};+}diff --git a/apps/www/components/ui/collapsible.tsx b/apps/www/components/ui/collapsible.tsxindex 90935c6b..ae9fad04 100644--- a/apps/www/components/ui/collapsible.tsx+++ b/apps/www/components/ui/collapsible.tsx@@ -1,11 +1,11 @@-"use client";+"use client"-import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";+import * as CollapsiblePrimitive from "@radix-ui/react-collapsible"function Collapsible({...props}: React.ComponentProps<typeof CollapsiblePrimitive.Root>) {- return <CollapsiblePrimitive.Root data-slot="collapsible" {...props} />;+ return <CollapsiblePrimitive.Root data-slot="collapsible" {...props} />}function CollapsibleTrigger({@@ -16,7 +16,7 @@ function CollapsibleTrigger({data-slot="collapsible-trigger"{...props}/>- );+ )}function CollapsibleContent({@@ -27,7 +27,7 @@ function CollapsibleContent({data-slot="collapsible-content"{...props}/>- );+ )}-export { Collapsible, CollapsibleTrigger, CollapsibleContent };+export { Collapsible, CollapsibleTrigger, CollapsibleContent }diff --git a/apps/www/components/ui/command.tsx b/apps/www/components/ui/command.tsxindex 33fba92f..4ca53497 100644--- a/apps/www/components/ui/command.tsx+++ b/apps/www/components/ui/command.tsx@@ -1,17 +1,17 @@-"use client";+"use client"-import * as React from "react";-import { Command as CommandPrimitive } from "cmdk";-import { SearchIcon } from "lucide-react";+import * as React from "react"+import { Command as CommandPrimitive } from "cmdk"+import { SearchIcon } from "lucide-react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"import {Dialog,DialogContent,DialogDescription,DialogHeader,DialogTitle,-} from "@/components/ui/dialog";+} from "@/components/ui/dialog"function Command({className,@@ -22,11 +22,11 @@ function Command({data-slot="command"className={cn("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",- className,+ className)}{...props}/>- );+ )}function CommandDialog({@@ -35,8 +35,8 @@ function CommandDialog({children,...props}: React.ComponentProps<typeof Dialog> & {- title?: string;- description?: string;+ title?: string+ description?: string}) {return (<Dialog {...props}>@@ -50,7 +50,7 @@ function CommandDialog({</Command></DialogContent></Dialog>- );+ )}function CommandInput({@@ -67,12 +67,12 @@ function CommandInput({data-slot="command-input"className={cn("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",- className,+ className)}{...props}/></div>- );+ )}function CommandList({@@ -84,11 +84,11 @@ function CommandList({data-slot="command-list"className={cn("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",- className,+ className)}{...props}/>- );+ )}function CommandEmpty({@@ -100,7 +100,7 @@ function CommandEmpty({className="py-6 text-center text-sm"{...props}/>- );+ )}function CommandGroup({@@ -112,11 +112,11 @@ function CommandGroup({data-slot="command-group"className={cn("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",- className,+ className)}{...props}/>- );+ )}function CommandSeparator({@@ -129,7 +129,7 @@ function CommandSeparator({className={cn("bg-border -mx-1 h-px", className)}{...props}/>- );+ )}function CommandItem({@@ -141,11 +141,11 @@ function CommandItem({data-slot="command-item"className={cn("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",- className,+ className)}{...props}/>- );+ )}function CommandShortcut({@@ -157,11 +157,11 @@ function CommandShortcut({data-slot="command-shortcut"className={cn("text-muted-foreground ml-auto text-xs tracking-widest",- className,+ className)}{...props}/>- );+ )}export {@@ -174,4 +174,4 @@ export {CommandItem,CommandShortcut,CommandSeparator,-};+}diff --git a/apps/www/components/ui/context-menu.tsx b/apps/www/components/ui/context-menu.tsxindex 2c9c21ae..e29ad05f 100644--- a/apps/www/components/ui/context-menu.tsx+++ b/apps/www/components/ui/context-menu.tsx@@ -1,15 +1,15 @@-"use client";+"use client"-import * as React from "react";-import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";-import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";+import * as React from "react"+import * as ContextMenuPrimitive from "@radix-ui/react-context-menu"+import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"function ContextMenu({...props}: React.ComponentProps<typeof ContextMenuPrimitive.Root>) {- return <ContextMenuPrimitive.Root data-slot="context-menu" {...props} />;+ return <ContextMenuPrimitive.Root data-slot="context-menu" {...props} />}function ContextMenuTrigger({@@ -17,7 +17,7 @@ function ContextMenuTrigger({}: React.ComponentProps<typeof ContextMenuPrimitive.Trigger>) {return (<ContextMenuPrimitive.Trigger data-slot="context-menu-trigger" {...props} />- );+ )}function ContextMenuGroup({@@ -25,7 +25,7 @@ function ContextMenuGroup({}: React.ComponentProps<typeof ContextMenuPrimitive.Group>) {return (<ContextMenuPrimitive.Group data-slot="context-menu-group" {...props} />- );+ )}function ContextMenuPortal({@@ -33,13 +33,13 @@ function ContextMenuPortal({}: React.ComponentProps<typeof ContextMenuPrimitive.Portal>) {return (<ContextMenuPrimitive.Portal data-slot="context-menu-portal" {...props} />- );+ )}function ContextMenuSub({...props}: React.ComponentProps<typeof ContextMenuPrimitive.Sub>) {- return <ContextMenuPrimitive.Sub data-slot="context-menu-sub" {...props} />;+ return <ContextMenuPrimitive.Sub data-slot="context-menu-sub" {...props} />}function ContextMenuRadioGroup({@@ -50,7 +50,7 @@ function ContextMenuRadioGroup({data-slot="context-menu-radio-group"{...props}/>- );+ )}function ContextMenuSubTrigger({@@ -59,7 +59,7 @@ function ContextMenuSubTrigger({children,...props}: React.ComponentProps<typeof ContextMenuPrimitive.SubTrigger> & {- inset?: boolean;+ inset?: boolean}) {return (<ContextMenuPrimitive.SubTrigger@@ -67,14 +67,14 @@ function ContextMenuSubTrigger({data-inset={inset}className={cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",- className,+ className)}{...props}>{children}<ChevronRightIcon className="ml-auto" /></ContextMenuPrimitive.SubTrigger>- );+ )}function ContextMenuSubContent({@@ -86,11 +86,11 @@ function ContextMenuSubContent({data-slot="context-menu-sub-content"className={cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",- className,+ className)}{...props}/>- );+ )}function ContextMenuContent({@@ -103,12 +103,12 @@ function ContextMenuContent({data-slot="context-menu-content"className={cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",- className,+ className)}{...props}/></ContextMenuPrimitive.Portal>- );+ )}function ContextMenuItem({@@ -117,8 +117,8 @@ function ContextMenuItem({variant = "default",...props}: React.ComponentProps<typeof ContextMenuPrimitive.Item> & {- inset?: boolean;- variant?: "default" | "destructive";+ inset?: boolean+ variant?: "default" | "destructive"}) {return (<ContextMenuPrimitive.Item@@ -127,11 +127,11 @@ function ContextMenuItem({data-variant={variant}className={cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",- className,+ className)}{...props}/>- );+ )}function ContextMenuCheckboxItem({@@ -145,7 +145,7 @@ function ContextMenuCheckboxItem({data-slot="context-menu-checkbox-item"className={cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",- className,+ className)}checked={checked}{...props}@@ -157,7 +157,7 @@ function ContextMenuCheckboxItem({</span>{children}</ContextMenuPrimitive.CheckboxItem>- );+ )}function ContextMenuRadioItem({@@ -170,7 +170,7 @@ function ContextMenuRadioItem({data-slot="context-menu-radio-item"className={cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",- className,+ className)}{...props}>@@ -181,7 +181,7 @@ function ContextMenuRadioItem({</span>{children}</ContextMenuPrimitive.RadioItem>- );+ )}function ContextMenuLabel({@@ -189,7 +189,7 @@ function ContextMenuLabel({inset,...props}: React.ComponentProps<typeof ContextMenuPrimitive.Label> & {- inset?: boolean;+ inset?: boolean}) {return (<ContextMenuPrimitive.Label@@ -197,11 +197,11 @@ function ContextMenuLabel({data-inset={inset}className={cn("text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",- className,+ className)}{...props}/>- );+ )}function ContextMenuSeparator({@@ -214,7 +214,7 @@ function ContextMenuSeparator({className={cn("bg-border -mx-1 my-1 h-px", className)}{...props}/>- );+ )}function ContextMenuShortcut({@@ -226,11 +226,11 @@ function ContextMenuShortcut({data-slot="context-menu-shortcut"className={cn("text-muted-foreground ml-auto text-xs tracking-widest",- className,+ className)}{...props}/>- );+ )}export {@@ -249,4 +249,4 @@ export {ContextMenuSubContent,ContextMenuSubTrigger,ContextMenuRadioGroup,-};+}diff --git a/apps/www/components/ui/dialog.tsx b/apps/www/components/ui/dialog.tsxindex ac2b9bb5..f8b53a19 100644--- a/apps/www/components/ui/dialog.tsx+++ b/apps/www/components/ui/dialog.tsx@@ -1,18 +1,18 @@-"use client";+"use client"-import * as React from "react";-import * as DialogPrimitive from "@radix-ui/react-dialog";-import { X } from "lucide-react";+import * as React from "react"+import * as DialogPrimitive from "@radix-ui/react-dialog"+import { X } from "lucide-react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"-const Dialog = DialogPrimitive.Root;+const Dialog = DialogPrimitive.Root-const DialogTrigger = DialogPrimitive.Trigger;+const DialogTrigger = DialogPrimitive.Trigger-const DialogPortal = DialogPrimitive.Portal;+const DialogPortal = DialogPrimitive.Portal-const DialogClose = DialogPrimitive.Close;+const DialogClose = DialogPrimitive.Closeconst DialogOverlay = React.forwardRef<React.ElementRef<typeof DialogPrimitive.Overlay>,@@ -21,13 +21,13 @@ const DialogOverlay = React.forwardRef<<DialogPrimitive.Overlayref={ref}className={cn(- "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",- className,+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",+ className)}{...props}/>-));-DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;+))+DialogOverlay.displayName = DialogPrimitive.Overlay.displayNameconst DialogContent = React.forwardRef<React.ElementRef<typeof DialogPrimitive.Content>,@@ -38,20 +38,20 @@ const DialogContent = React.forwardRef<<DialogPrimitive.Contentref={ref}className={cn(- "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",- className,+ "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg",+ className)}{...props}>{children}- <DialogPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground">+ <DialogPrimitive.Close className="ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none"><X className="h-4 w-4" /><span className="sr-only">Close</span></DialogPrimitive.Close></DialogPrimitive.Content></DialogPortal>-));-DialogContent.displayName = DialogPrimitive.Content.displayName;+))+DialogContent.displayName = DialogPrimitive.Content.displayNameconst DialogHeader = ({className,@@ -60,12 +60,12 @@ const DialogHeader = ({<divclassName={cn("flex flex-col space-y-1.5 text-center sm:text-left",- className,+ className)}{...props}/>-);-DialogHeader.displayName = "DialogHeader";+)+DialogHeader.displayName = "DialogHeader"const DialogFooter = ({className,@@ -74,12 +74,12 @@ const DialogFooter = ({<divclassName={cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",- className,+ className)}{...props}/>-);-DialogFooter.displayName = "DialogFooter";+)+DialogFooter.displayName = "DialogFooter"const DialogTitle = React.forwardRef<React.ElementRef<typeof DialogPrimitive.Title>,@@ -88,13 +88,13 @@ const DialogTitle = React.forwardRef<<DialogPrimitive.Titleref={ref}className={cn(- "text-lg font-semibold leading-none tracking-tight",- className,+ "text-lg leading-none font-semibold tracking-tight",+ className)}{...props}/>-));-DialogTitle.displayName = DialogPrimitive.Title.displayName;+))+DialogTitle.displayName = DialogPrimitive.Title.displayNameconst DialogDescription = React.forwardRef<React.ElementRef<typeof DialogPrimitive.Description>,@@ -102,11 +102,11 @@ const DialogDescription = React.forwardRef<>(({ className, ...props }, ref) => (<DialogPrimitive.Descriptionref={ref}- className={cn("text-sm text-muted-foreground", className)}+ className={cn("text-muted-foreground text-sm", className)}{...props}/>-));-DialogDescription.displayName = DialogPrimitive.Description.displayName;+))+DialogDescription.displayName = DialogPrimitive.Description.displayNameexport {Dialog,@@ -119,4 +119,4 @@ export {DialogFooter,DialogTitle,DialogDescription,-};+}diff --git a/apps/www/components/ui/dropdown-menu.tsx b/apps/www/components/ui/dropdown-menu.tsxindex 78a751e0..2bb7bf85 100644--- a/apps/www/components/ui/dropdown-menu.tsx+++ b/apps/www/components/ui/dropdown-menu.tsx@@ -1,44 +1,44 @@-"use client";+"use client"-import * as React from "react";-import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";-import { Check, ChevronRight, Circle } from "lucide-react";+import * as React from "react"+import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu"+import { Check, ChevronRight, Circle } from "lucide-react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"-const DropdownMenu = DropdownMenuPrimitive.Root;+const DropdownMenu = DropdownMenuPrimitive.Root-const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;+const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger-const DropdownMenuGroup = DropdownMenuPrimitive.Group;+const DropdownMenuGroup = DropdownMenuPrimitive.Group-const DropdownMenuPortal = DropdownMenuPrimitive.Portal;+const DropdownMenuPortal = DropdownMenuPrimitive.Portal-const DropdownMenuSub = DropdownMenuPrimitive.Sub;+const DropdownMenuSub = DropdownMenuPrimitive.Sub-const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;+const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroupconst DropdownMenuSubTrigger = React.forwardRef<React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {- inset?: boolean;+ inset?: boolean}>(({ className, inset, children, ...props }, ref) => (<DropdownMenuPrimitive.SubTriggerref={ref}className={cn(- "flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",+ "focus:bg-accent data-[state=open]:bg-accent flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",inset && "pl-8",- className,+ className)}{...props}>{children}<ChevronRight className="ml-auto" /></DropdownMenuPrimitive.SubTrigger>-));+))DropdownMenuSubTrigger.displayName =- DropdownMenuPrimitive.SubTrigger.displayName;+ DropdownMenuPrimitive.SubTrigger.displayNameconst DropdownMenuSubContent = React.forwardRef<React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,@@ -47,14 +47,14 @@ const DropdownMenuSubContent = React.forwardRef<<DropdownMenuPrimitive.SubContentref={ref}className={cn(- "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",- className,+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-[--radix-dropdown-menu-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-lg",+ className)}{...props}/>-));+))DropdownMenuSubContent.displayName =- DropdownMenuPrimitive.SubContent.displayName;+ DropdownMenuPrimitive.SubContent.displayNameconst DropdownMenuContent = React.forwardRef<React.ElementRef<typeof DropdownMenuPrimitive.Content>,@@ -65,33 +65,33 @@ const DropdownMenuContent = React.forwardRef<ref={ref}sideOffset={sideOffset}className={cn(- "z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",+ "bg-popover text-popover-foreground z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",- className,+ className)}{...props}/></DropdownMenuPrimitive.Portal>-));-DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;+))+DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayNameconst DropdownMenuItem = React.forwardRef<React.ElementRef<typeof DropdownMenuPrimitive.Item>,React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {- inset?: boolean;+ inset?: boolean}>(({ className, inset, ...props }, ref) => (<DropdownMenuPrimitive.Itemref={ref}className={cn(- "relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",+ "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",inset && "pl-8",- className,+ className)}{...props}/>-));-DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;+))+DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayNameconst DropdownMenuCheckboxItem = React.forwardRef<React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,@@ -100,8 +100,8 @@ const DropdownMenuCheckboxItem = React.forwardRef<<DropdownMenuPrimitive.CheckboxItemref={ref}className={cn(- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",- className,+ "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",+ className)}checked={checked}{...props}@@ -113,9 +113,9 @@ const DropdownMenuCheckboxItem = React.forwardRef<</span>{children}</DropdownMenuPrimitive.CheckboxItem>-));+))DropdownMenuCheckboxItem.displayName =- DropdownMenuPrimitive.CheckboxItem.displayName;+ DropdownMenuPrimitive.CheckboxItem.displayNameconst DropdownMenuRadioItem = React.forwardRef<React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,@@ -124,8 +124,8 @@ const DropdownMenuRadioItem = React.forwardRef<<DropdownMenuPrimitive.RadioItemref={ref}className={cn(- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",- className,+ "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",+ className)}{...props}>@@ -136,13 +136,13 @@ const DropdownMenuRadioItem = React.forwardRef<</span>{children}</DropdownMenuPrimitive.RadioItem>-));-DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;+))+DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayNameconst DropdownMenuLabel = React.forwardRef<React.ElementRef<typeof DropdownMenuPrimitive.Label>,React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {- inset?: boolean;+ inset?: boolean}>(({ className, inset, ...props }, ref) => (<DropdownMenuPrimitive.Label@@ -150,12 +150,12 @@ const DropdownMenuLabel = React.forwardRef<className={cn("px-2 py-1.5 text-sm font-semibold",inset && "pl-8",- className,+ className)}{...props}/>-));-DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;+))+DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayNameconst DropdownMenuSeparator = React.forwardRef<React.ElementRef<typeof DropdownMenuPrimitive.Separator>,@@ -163,11 +163,11 @@ const DropdownMenuSeparator = React.forwardRef<>(({ className, ...props }, ref) => (<DropdownMenuPrimitive.Separatorref={ref}- className={cn("-mx-1 my-1 h-px bg-muted", className)}+ className={cn("bg-muted -mx-1 my-1 h-px", className)}{...props}/>-));-DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;+))+DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayNameconst DropdownMenuShortcut = ({className,@@ -178,9 +178,9 @@ const DropdownMenuShortcut = ({className={cn("ml-auto text-xs tracking-widest opacity-60", className)}{...props}/>- );-};-DropdownMenuShortcut.displayName = "DropdownMenuShortcut";+ )+}+DropdownMenuShortcut.displayName = "DropdownMenuShortcut"export {DropdownMenu,@@ -198,4 +198,4 @@ export {DropdownMenuSubContent,DropdownMenuSubTrigger,DropdownMenuRadioGroup,-};+}diff --git a/apps/www/components/ui/form.tsx b/apps/www/components/ui/form.tsxindex bf4214d8..524b986b 100644--- a/apps/www/components/ui/form.tsx+++ b/apps/www/components/ui/form.tsx@@ -1,8 +1,8 @@-"use client";+"use client"-import * as React from "react";-import * as LabelPrimitive from "@radix-ui/react-label";-import { Slot } from "@radix-ui/react-slot";+import * as React from "react"+import * as LabelPrimitive from "@radix-ui/react-label"+import { Slot } from "@radix-ui/react-slot"import {Controller,FormProvider,@@ -11,23 +11,23 @@ import {type ControllerProps,type FieldPath,type FieldValues,-} from "react-hook-form";+} from "react-hook-form"-import { cn } from "@/lib/utils";-import { Label } from "@/components/ui/label";+import { cn } from "@/lib/utils"+import { Label } from "@/components/ui/label"-const Form = FormProvider;+const Form = FormProvidertype FormFieldContextValue<TFieldValues extends FieldValues = FieldValues,TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,> = {- name: TName;-};+ name: TName+}const FormFieldContext = React.createContext<FormFieldContextValue>(- {} as FormFieldContextValue,-);+ {} as FormFieldContextValue+)const FormField = <TFieldValues extends FieldValues = FieldValues,@@ -39,21 +39,21 @@ const FormField = <<FormFieldContext.Provider value={{ name: props.name }}><Controller {...props} /></FormFieldContext.Provider>- );-};+ )+}const useFormField = () => {- const fieldContext = React.useContext(FormFieldContext);- const itemContext = React.useContext(FormItemContext);- const { getFieldState } = useFormContext();- const formState = useFormState({ name: fieldContext.name });- const fieldState = getFieldState(fieldContext.name, formState);+ const fieldContext = React.useContext(FormFieldContext)+ const itemContext = React.useContext(FormItemContext)+ const { getFieldState } = useFormContext()+ const formState = useFormState({ name: fieldContext.name })+ const fieldState = getFieldState(fieldContext.name, formState)if (!fieldContext) {- throw new Error("useFormField should be used within <FormField>");+ throw new Error("useFormField should be used within <FormField>")}- const { id } = itemContext;+ const { id } = itemContextreturn {id,@@ -62,19 +62,19 @@ const useFormField = () => {formDescriptionId: `${id}-form-item-description`,formMessageId: `${id}-form-item-message`,...fieldState,- };-};+ }+}type FormItemContextValue = {- id: string;-};+ id: string+}const FormItemContext = React.createContext<FormItemContextValue>(- {} as FormItemContextValue,-);+ {} as FormItemContextValue+)function FormItem({ className, ...props }: React.ComponentProps<"div">) {- const id = React.useId();+ const id = React.useId()return (<FormItemContext.Provider value={{ id }}>@@ -84,14 +84,14 @@ function FormItem({ className, ...props }: React.ComponentProps<"div">) {{...props}/></FormItemContext.Provider>- );+ )}function FormLabel({className,...props}: React.ComponentProps<typeof LabelPrimitive.Root>) {- const { error, formItemId } = useFormField();+ const { error, formItemId } = useFormField()return (<Label@@ -101,12 +101,11 @@ function FormLabel({htmlFor={formItemId}{...props}/>- );+ )}function FormControl({ ...props }: React.ComponentProps<typeof Slot>) {- const { error, formItemId, formDescriptionId, formMessageId } =- useFormField();+ const { error, formItemId, formDescriptionId, formMessageId } = useFormField()return (<Slot@@ -120,11 +119,11 @@ function FormControl({ ...props }: React.ComponentProps<typeof Slot>) {aria-invalid={!!error}{...props}/>- );+ )}function FormDescription({ className, ...props }: React.ComponentProps<"p">) {- const { formDescriptionId } = useFormField();+ const { formDescriptionId } = useFormField()return (<p@@ -133,15 +132,15 @@ function FormDescription({ className, ...props }: React.ComponentProps<"p">) {className={cn("text-muted-foreground text-sm", className)}{...props}/>- );+ )}function FormMessage({ className, ...props }: React.ComponentProps<"p">) {- const { error, formMessageId } = useFormField();- const body = error ? String(error?.message ?? "") : props.children;+ const { error, formMessageId } = useFormField()+ const body = error ? String(error?.message ?? "") : props.childrenif (!body) {- return null;+ return null}return (@@ -153,7 +152,7 @@ function FormMessage({ className, ...props }: React.ComponentProps<"p">) {>{body}</p>- );+ )}export {@@ -165,4 +164,4 @@ export {FormDescription,FormMessage,FormField,-};+}diff --git a/apps/www/components/ui/hover-card.tsx b/apps/www/components/ui/hover-card.tsxindex f574b4ad..e7541864 100644--- a/apps/www/components/ui/hover-card.tsx+++ b/apps/www/components/ui/hover-card.tsx@@ -1,14 +1,14 @@-"use client";+"use client"-import * as React from "react";-import * as HoverCardPrimitive from "@radix-ui/react-hover-card";+import * as React from "react"+import * as HoverCardPrimitive from "@radix-ui/react-hover-card"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"function HoverCard({...props}: React.ComponentProps<typeof HoverCardPrimitive.Root>) {- return <HoverCardPrimitive.Root data-slot="hover-card" {...props} />;+ return <HoverCardPrimitive.Root data-slot="hover-card" {...props} />}function HoverCardTrigger({@@ -16,7 +16,7 @@ function HoverCardTrigger({}: React.ComponentProps<typeof HoverCardPrimitive.Trigger>) {return (<HoverCardPrimitive.Trigger data-slot="hover-card-trigger" {...props} />- );+ )}function HoverCardContent({@@ -33,12 +33,12 @@ function HoverCardContent({sideOffset={sideOffset}className={cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",- className,+ className)}{...props}/></HoverCardPrimitive.Portal>- );+ )}-export { HoverCard, HoverCardTrigger, HoverCardContent };+export { HoverCard, HoverCardTrigger, HoverCardContent }diff --git a/apps/www/components/ui/input.tsx b/apps/www/components/ui/input.tsxindex b1a060f5..03295ca6 100644--- a/apps/www/components/ui/input.tsx+++ b/apps/www/components/ui/input.tsx@@ -1,6 +1,6 @@-import * as React from "react";+import * as React from "react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"function Input({ className, type, ...props }: React.ComponentProps<"input">) {return (@@ -11,11 +11,11 @@ function Input({ className, type, ...props }: React.ComponentProps<"input">) {"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",- className,+ className)}{...props}/>- );+ )}-export { Input };+export { Input }diff --git a/apps/www/components/ui/label.tsx b/apps/www/components/ui/label.tsxindex 79d77b4b..fb5fbc3e 100644--- a/apps/www/components/ui/label.tsx+++ b/apps/www/components/ui/label.tsx@@ -1,9 +1,9 @@-"use client";+"use client"-import * as React from "react";-import * as LabelPrimitive from "@radix-ui/react-label";+import * as React from "react"+import * as LabelPrimitive from "@radix-ui/react-label"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"function Label({className,@@ -14,11 +14,11 @@ function Label({data-slot="label"className={cn("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",- className,+ className)}{...props}/>- );+ )}-export { Label };+export { Label }diff --git a/apps/www/components/ui/popover.tsx b/apps/www/components/ui/popover.tsxindex 5d6f78d3..01e468b6 100644--- a/apps/www/components/ui/popover.tsx+++ b/apps/www/components/ui/popover.tsx@@ -1,20 +1,20 @@-"use client";+"use client"-import * as React from "react";-import * as PopoverPrimitive from "@radix-ui/react-popover";+import * as React from "react"+import * as PopoverPrimitive from "@radix-ui/react-popover"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"function Popover({...props}: React.ComponentProps<typeof PopoverPrimitive.Root>) {- return <PopoverPrimitive.Root data-slot="popover" {...props} />;+ return <PopoverPrimitive.Root data-slot="popover" {...props} />}function PopoverTrigger({...props}: React.ComponentProps<typeof PopoverPrimitive.Trigger>) {- return <PopoverPrimitive.Trigger data-slot="popover-trigger" {...props} />;+ return <PopoverPrimitive.Trigger data-slot="popover-trigger" {...props} />}function PopoverContent({@@ -31,18 +31,18 @@ function PopoverContent({sideOffset={sideOffset}className={cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",- className,+ className)}{...props}/></PopoverPrimitive.Portal>- );+ )}function PopoverAnchor({...props}: React.ComponentProps<typeof PopoverPrimitive.Anchor>) {- return <PopoverPrimitive.Anchor data-slot="popover-anchor" {...props} />;+ return <PopoverPrimitive.Anchor data-slot="popover-anchor" {...props} />}-export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };+export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor }diff --git a/apps/www/components/ui/scroll-area.tsx b/apps/www/components/ui/scroll-area.tsxindex 5524f1ca..8e4fa13f 100644--- a/apps/www/components/ui/scroll-area.tsx+++ b/apps/www/components/ui/scroll-area.tsx@@ -1,9 +1,9 @@-"use client";+"use client"-import * as React from "react";-import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";+import * as React from "react"+import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"function ScrollArea({className,@@ -25,7 +25,7 @@ function ScrollArea({<ScrollBar /><ScrollAreaPrimitive.Corner /></ScrollAreaPrimitive.Root>- );+ )}function ScrollBar({@@ -43,7 +43,7 @@ function ScrollBar({"h-full w-2.5 border-l border-l-transparent",orientation === "horizontal" &&"h-2.5 flex-col border-t border-t-transparent",- className,+ className)}{...props}>@@ -52,7 +52,7 @@ function ScrollBar({className="bg-border relative flex-1 rounded-full"/></ScrollAreaPrimitive.ScrollAreaScrollbar>- );+ )}-export { ScrollArea, ScrollBar };+export { ScrollArea, ScrollBar }diff --git a/apps/www/components/ui/select.tsx b/apps/www/components/ui/select.tsxindex 9d26e862..0204cb40 100644--- a/apps/www/components/ui/select.tsx+++ b/apps/www/components/ui/select.tsx@@ -1,27 +1,27 @@-"use client";+"use client"-import * as React from "react";-import * as SelectPrimitive from "@radix-ui/react-select";-import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";+import * as React from "react"+import * as SelectPrimitive from "@radix-ui/react-select"+import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"function Select({...props}: React.ComponentProps<typeof SelectPrimitive.Root>) {- return <SelectPrimitive.Root data-slot="select" {...props} />;+ return <SelectPrimitive.Root data-slot="select" {...props} />}function SelectGroup({...props}: React.ComponentProps<typeof SelectPrimitive.Group>) {- return <SelectPrimitive.Group data-slot="select-group" {...props} />;+ return <SelectPrimitive.Group data-slot="select-group" {...props} />}function SelectValue({...props}: React.ComponentProps<typeof SelectPrimitive.Value>) {- return <SelectPrimitive.Value data-slot="select-value" {...props} />;+ return <SelectPrimitive.Value data-slot="select-value" {...props} />}function SelectTrigger({@@ -30,7 +30,7 @@ function SelectTrigger({children,...props}: React.ComponentProps<typeof SelectPrimitive.Trigger> & {- size?: "sm" | "default";+ size?: "sm" | "default"}) {return (<SelectPrimitive.Trigger@@ -38,18 +38,18 @@ function SelectTrigger({data-size={size}className={cn("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",- className,+ className)}{...props}>{children}<SelectPrimitive.Icon asChild>- <div className="flex items-center justify-center select-icon">+ <div className="select-icon flex items-center justify-center"><ChevronDownIcon className="size-4 opacity-50" /></div></SelectPrimitive.Icon></SelectPrimitive.Trigger>- );+ )}function SelectContent({@@ -66,7 +66,7 @@ function SelectContent({"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",position === "popper" &&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",- className,+ className)}position={position}{...props}@@ -76,7 +76,7 @@ function SelectContent({className={cn("p-1",position === "popper" &&- "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1",+ "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1")}>{children}@@ -84,7 +84,7 @@ function SelectContent({<SelectScrollDownButton /></SelectPrimitive.Content></SelectPrimitive.Portal>- );+ )}function SelectLabel({@@ -97,7 +97,7 @@ function SelectLabel({className={cn("text-muted-foreground px-2 py-1.5 text-xs", className)}{...props}/>- );+ )}function SelectItem({@@ -110,7 +110,7 @@ function SelectItem({data-slot="select-item"className={cn("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",- className,+ className)}{...props}>@@ -121,7 +121,7 @@ function SelectItem({</span><SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText></SelectPrimitive.Item>- );+ )}function SelectSeparator({@@ -134,7 +134,7 @@ function SelectSeparator({className={cn("bg-border pointer-events-none -mx-1 my-1 h-px", className)}{...props}/>- );+ )}function SelectScrollUpButton({@@ -146,13 +146,13 @@ function SelectScrollUpButton({data-slot="select-scroll-up-button"className={cn("flex cursor-default items-center justify-center py-1",- className,+ className)}{...props}><ChevronUpIcon className="size-4" /></SelectPrimitive.ScrollUpButton>- );+ )}function SelectScrollDownButton({@@ -164,13 +164,13 @@ function SelectScrollDownButton({data-slot="select-scroll-down-button"className={cn("flex cursor-default items-center justify-center py-1",- className,+ className)}{...props}><ChevronDownIcon className="size-4" /></SelectPrimitive.ScrollDownButton>- );+ )}export {@@ -184,4 +184,4 @@ export {SelectSeparator,SelectTrigger,SelectValue,-};+}diff --git a/apps/www/components/ui/separator.tsx b/apps/www/components/ui/separator.tsxindex 72c18e33..275381ca 100644--- a/apps/www/components/ui/separator.tsx+++ b/apps/www/components/ui/separator.tsx@@ -1,9 +1,9 @@-"use client";+"use client"-import * as React from "react";-import * as SeparatorPrimitive from "@radix-ui/react-separator";+import * as React from "react"+import * as SeparatorPrimitive from "@radix-ui/react-separator"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"function Separator({className,@@ -18,11 +18,11 @@ function Separator({orientation={orientation}className={cn("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",- className,+ className)}{...props}/>- );+ )}-export { Separator };+export { Separator }diff --git a/apps/www/components/ui/sheet.tsx b/apps/www/components/ui/sheet.tsxindex d30779f4..84649ad0 100644--- a/apps/www/components/ui/sheet.tsx+++ b/apps/www/components/ui/sheet.tsx@@ -1,31 +1,31 @@-"use client";+"use client"-import * as React from "react";-import * as SheetPrimitive from "@radix-ui/react-dialog";-import { XIcon } from "lucide-react";+import * as React from "react"+import * as SheetPrimitive from "@radix-ui/react-dialog"+import { XIcon } from "lucide-react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>) {- return <SheetPrimitive.Root data-slot="sheet" {...props} />;+ return <SheetPrimitive.Root data-slot="sheet" {...props} />}function SheetTrigger({...props}: React.ComponentProps<typeof SheetPrimitive.Trigger>) {- return <SheetPrimitive.Trigger data-slot="sheet-trigger" {...props} />;+ return <SheetPrimitive.Trigger data-slot="sheet-trigger" {...props} />}function SheetClose({...props}: React.ComponentProps<typeof SheetPrimitive.Close>) {- return <SheetPrimitive.Close data-slot="sheet-close" {...props} />;+ return <SheetPrimitive.Close data-slot="sheet-close" {...props} />}function SheetPortal({...props}: React.ComponentProps<typeof SheetPrimitive.Portal>) {- return <SheetPrimitive.Portal data-slot="sheet-portal" {...props} />;+ return <SheetPrimitive.Portal data-slot="sheet-portal" {...props} />}function SheetOverlay({@@ -37,11 +37,11 @@ function SheetOverlay({data-slot="sheet-overlay"className={cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",- className,+ className)}{...props}/>- );+ )}function SheetContent({@@ -50,7 +50,7 @@ function SheetContent({side = "right",...props}: React.ComponentProps<typeof SheetPrimitive.Content> & {- side?: "top" | "right" | "bottom" | "left";+ side?: "top" | "right" | "bottom" | "left"}) {return (<SheetPortal>@@ -67,7 +67,7 @@ function SheetContent({"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",side === "bottom" &&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",- className,+ className)}{...props}>@@ -78,7 +78,7 @@ function SheetContent({</SheetPrimitive.Close></SheetPrimitive.Content></SheetPortal>- );+ )}function SheetHeader({ className, ...props }: React.ComponentProps<"div">) {@@ -88,7 +88,7 @@ function SheetHeader({ className, ...props }: React.ComponentProps<"div">) {className={cn("flex flex-col gap-1.5 p-4", className)}{...props}/>- );+ )}function SheetFooter({ className, ...props }: React.ComponentProps<"div">) {@@ -98,7 +98,7 @@ function SheetFooter({ className, ...props }: React.ComponentProps<"div">) {className={cn("mt-auto flex flex-col gap-2 p-4", className)}{...props}/>- );+ )}function SheetTitle({@@ -111,7 +111,7 @@ function SheetTitle({className={cn("text-foreground font-semibold", className)}{...props}/>- );+ )}function SheetDescription({@@ -124,7 +124,7 @@ function SheetDescription({className={cn("text-muted-foreground text-sm", className)}{...props}/>- );+ )}export {@@ -136,4 +136,4 @@ export {SheetFooter,SheetTitle,SheetDescription,-};+}diff --git a/apps/www/components/ui/sidebar.tsx b/apps/www/components/ui/sidebar.tsxindex ad584ca8..140da1fb 100644--- a/apps/www/components/ui/sidebar.tsx+++ b/apps/www/components/ui/sidebar.tsx@@ -1,64 +1,64 @@-"use client";--import * as React from "react";-import { Slot } from "@radix-ui/react-slot";-import { VariantProps, cva } from "class-variance-authority";-import { PanelLeft } from "lucide-react";--import { useIsMobile } from "@/hooks/use-mobile";-import { cn } from "@/lib/utils";-import { Button } from "@/components/ui/button";-import { Input } from "@/components/ui/input";-import { Separator } from "@/components/ui/separator";+"use client"++import * as React from "react"+import { Slot } from "@radix-ui/react-slot"+import { cva, VariantProps } from "class-variance-authority"+import { PanelLeft } from "lucide-react"++import { cn } from "@/lib/utils"+import { useIsMobile } from "@/hooks/use-mobile"+import { Button } from "@/components/ui/button"+import { Input } from "@/components/ui/input"+import { Separator } from "@/components/ui/separator"import {Sheet,SheetContent,SheetDescription,SheetHeader,SheetTitle,-} from "@/components/ui/sheet";-import { Skeleton } from "@/components/ui/skeleton";+} from "@/components/ui/sheet"+import { Skeleton } from "@/components/ui/skeleton"import {Tooltip,TooltipContent,TooltipProvider,TooltipTrigger,-} from "@/components/ui/tooltip";+} from "@/components/ui/tooltip"-const SIDEBAR_COOKIE_NAME = "sidebar_state";-const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;-const SIDEBAR_WIDTH = "16rem";-const SIDEBAR_WIDTH_MOBILE = "18rem";-const SIDEBAR_WIDTH_ICON = "3rem";-const SIDEBAR_KEYBOARD_SHORTCUT = "b";+const SIDEBAR_COOKIE_NAME = "sidebar_state"+const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7+const SIDEBAR_WIDTH = "16rem"+const SIDEBAR_WIDTH_MOBILE = "18rem"+const SIDEBAR_WIDTH_ICON = "3rem"+const SIDEBAR_KEYBOARD_SHORTCUT = "b"type SidebarContextProps = {- state: "expanded" | "collapsed";- open: boolean;- setOpen: (open: boolean) => void;- openMobile: boolean;- setOpenMobile: (open: boolean) => void;- isMobile: boolean;- toggleSidebar: () => void;-};+ state: "expanded" | "collapsed"+ open: boolean+ setOpen: (open: boolean) => void+ openMobile: boolean+ setOpenMobile: (open: boolean) => void+ isMobile: boolean+ toggleSidebar: () => void+}-const SidebarContext = React.createContext<SidebarContextProps | null>(null);+const SidebarContext = React.createContext<SidebarContextProps | null>(null)function useSidebar() {- const context = React.useContext(SidebarContext);+ const context = React.useContext(SidebarContext)if (!context) {- throw new Error("useSidebar must be used within a SidebarProvider.");+ throw new Error("useSidebar must be used within a SidebarProvider.")}- return context;+ return context}const SidebarProvider = React.forwardRef<HTMLDivElement,React.ComponentProps<"div"> & {- defaultOpen?: boolean;- open?: boolean;- onOpenChange?: (open: boolean) => void;+ defaultOpen?: boolean+ open?: boolean+ onOpenChange?: (open: boolean) => void}>((@@ -71,36 +71,36 @@ const SidebarProvider = React.forwardRef<children,...props},- ref,+ ref) => {- const isMobile = useIsMobile();- const [openMobile, setOpenMobile] = React.useState(false);+ const isMobile = useIsMobile()+ const [openMobile, setOpenMobile] = React.useState(false)// This is the internal state of the sidebar.// We use openProp and setOpenProp for control from outside the component.- const [_open, _setOpen] = React.useState(defaultOpen);- const open = openProp ?? _open;+ const [_open, _setOpen] = React.useState(defaultOpen)+ const open = openProp ?? _openconst setOpen = React.useCallback((value: boolean | ((value: boolean) => boolean)) => {- const openState = typeof value === "function" ? value(open) : value;+ const openState = typeof value === "function" ? value(open) : valueif (setOpenProp) {- setOpenProp(openState);+ setOpenProp(openState)} else {- _setOpen(openState);+ _setOpen(openState)}// This sets the cookie to keep the sidebar state.- document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;+ document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`},- [setOpenProp, open],- );+ [setOpenProp, open]+ )// Helper to toggle the sidebar.const toggleSidebar = React.useCallback(() => {return isMobile? setOpenMobile((open) => !open)- : setOpen((open) => !open);- }, [isMobile, setOpen, setOpenMobile]);+ : setOpen((open) => !open)+ }, [isMobile, setOpen, setOpenMobile])// Adds a keyboard shortcut to toggle the sidebar.React.useEffect(() => {@@ -109,18 +109,18 @@ const SidebarProvider = React.forwardRef<event.key === SIDEBAR_KEYBOARD_SHORTCUT &&(event.metaKey || event.ctrlKey)) {- event.preventDefault();- toggleSidebar();+ event.preventDefault()+ toggleSidebar()}- };+ }- window.addEventListener("keydown", handleKeyDown);- return () => window.removeEventListener("keydown", handleKeyDown);- }, [toggleSidebar]);+ window.addEventListener("keydown", handleKeyDown)+ return () => window.removeEventListener("keydown", handleKeyDown)+ }, [toggleSidebar])// We add a state so that we can do data-state="expanded" or "collapsed".// This makes it easier to style the sidebar with Tailwind classes.- const state = open ? "expanded" : "collapsed";+ const state = open ? "expanded" : "collapsed"const contextValue = React.useMemo<SidebarContextProps>(() => ({@@ -132,16 +132,8 @@ const SidebarProvider = React.forwardRef<setOpenMobile,toggleSidebar,}),- [- state,- open,- setOpen,- isMobile,- openMobile,- setOpenMobile,- toggleSidebar,- ],- );+ [state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]+ )return (<SidebarContext.Provider value={contextValue}>@@ -155,8 +147,8 @@ const SidebarProvider = React.forwardRef<} as React.CSSProperties}className={cn(- "group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",- className,+ "group/sidebar-wrapper has-[[data-variant=inset]]:bg-sidebar flex min-h-svh w-full",+ className)}ref={ref}{...props}@@ -165,17 +157,17 @@ const SidebarProvider = React.forwardRef<</div></TooltipProvider></SidebarContext.Provider>- );- },-);-SidebarProvider.displayName = "SidebarProvider";+ )+ }+)+SidebarProvider.displayName = "SidebarProvider"const Sidebar = React.forwardRef<HTMLDivElement,React.ComponentProps<"div"> & {- side?: "left" | "right";- variant?: "sidebar" | "floating" | "inset";- collapsible?: "offcanvas" | "icon" | "none";+ side?: "left" | "right"+ variant?: "sidebar" | "floating" | "inset"+ collapsible?: "offcanvas" | "icon" | "none"}>((@@ -187,23 +179,23 @@ const Sidebar = React.forwardRef<children,...props},- ref,+ ref) => {- const { isMobile, state, openMobile, setOpenMobile } = useSidebar();+ const { isMobile, state, openMobile, setOpenMobile } = useSidebar()if (collapsible === "none") {return (<divclassName={cn(- "flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",- className,+ "bg-sidebar text-sidebar-foreground flex h-full w-[--sidebar-width] flex-col",+ className)}ref={ref}{...props}>{children}</div>- );+ )}if (isMobile) {@@ -212,7 +204,7 @@ const Sidebar = React.forwardRef<<SheetContentdata-sidebar="sidebar"data-mobile="true"- className="w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden"+ className="bg-sidebar text-sidebar-foreground w-[--sidebar-width] p-0 [&>button]:hidden"style={{"--sidebar-width": SIDEBAR_WIDTH_MOBILE,@@ -227,13 +219,13 @@ const Sidebar = React.forwardRef<<div className="flex h-full w-full flex-col">{children}</div></SheetContent></Sheet>- );+ )}return (<divref={ref}- className="group peer hidden text-sidebar-foreground md:block"+ className="group peer text-sidebar-foreground hidden md:block"data-state={state}data-collapsible={state === "collapsed" ? collapsible : ""}data-variant={variant}@@ -247,7 +239,7 @@ const Sidebar = React.forwardRef<"group-data-[side=right]:rotate-180",variant === "floating" || variant === "inset"? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]"- : "group-data-[collapsible=icon]:w-[--sidebar-width-icon]",+ : "group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}/><div@@ -260,28 +252,28 @@ const Sidebar = React.forwardRef<variant === "floating" || variant === "inset"? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]": "group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",- className,+ className)}{...props}><divdata-sidebar="sidebar"- className="flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow"+ className="bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow">{children}</div></div></div>- );- },-);-Sidebar.displayName = "Sidebar";+ )+ }+)+Sidebar.displayName = "Sidebar"const SidebarTrigger = React.forwardRef<React.ElementRef<typeof Button>,React.ComponentProps<typeof Button>>(({ className, onClick, ...props }, ref) => {- const { toggleSidebar } = useSidebar();+ const { toggleSidebar } = useSidebar()return (<Button@@ -291,23 +283,23 @@ const SidebarTrigger = React.forwardRef<size="icon"className={cn("h-7 w-7", className)}onClick={(event) => {- onClick?.(event);- toggleSidebar();+ onClick?.(event)+ toggleSidebar()}}{...props}><PanelLeft /><span className="sr-only">Toggle Sidebar</span></Button>- );-});-SidebarTrigger.displayName = "SidebarTrigger";+ )+})+SidebarTrigger.displayName = "SidebarTrigger"const SidebarRail = React.forwardRef<HTMLButtonElement,React.ComponentProps<"button">>(({ className, ...props }, ref) => {- const { toggleSidebar } = useSidebar();+ const { toggleSidebar } = useSidebar()return (<button@@ -318,19 +310,19 @@ const SidebarRail = React.forwardRef<onClick={toggleSidebar}title="Toggle Sidebar"className={cn(- "absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex",+ "hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",- "group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar",+ "group-data-[collapsible=offcanvas]:hover:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",- className,+ className)}{...props}/>- );-});-SidebarRail.displayName = "SidebarRail";+ )+})+SidebarRail.displayName = "SidebarRail"const SidebarInset = React.forwardRef<HTMLDivElement,@@ -340,15 +332,15 @@ const SidebarInset = React.forwardRef<<mainref={ref}className={cn(- "relative flex w-full flex-1 flex-col bg-background",- "md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",- className,+ "bg-background relative flex w-full flex-1 flex-col",+ "md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2",+ className)}{...props}/>- );-});-SidebarInset.displayName = "SidebarInset";+ )+})+SidebarInset.displayName = "SidebarInset"const SidebarInput = React.forwardRef<React.ElementRef<typeof Input>,@@ -359,14 +351,14 @@ const SidebarInput = React.forwardRef<ref={ref}data-sidebar="input"className={cn(- "h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",- className,+ "bg-background focus-visible:ring-sidebar-ring h-8 w-full shadow-none focus-visible:ring-2",+ className)}{...props}/>- );-});-SidebarInput.displayName = "SidebarInput";+ )+})+SidebarInput.displayName = "SidebarInput"const SidebarHeader = React.forwardRef<HTMLDivElement,@@ -379,9 +371,9 @@ const SidebarHeader = React.forwardRef<className={cn("flex flex-col gap-2 p-2", className)}{...props}/>- );-});-SidebarHeader.displayName = "SidebarHeader";+ )+})+SidebarHeader.displayName = "SidebarHeader"const SidebarFooter = React.forwardRef<HTMLDivElement,@@ -394,9 +386,9 @@ const SidebarFooter = React.forwardRef<className={cn("flex flex-col gap-2 p-2", className)}{...props}/>- );-});-SidebarFooter.displayName = "SidebarFooter";+ )+})+SidebarFooter.displayName = "SidebarFooter"const SidebarSeparator = React.forwardRef<React.ElementRef<typeof Separator>,@@ -406,12 +398,12 @@ const SidebarSeparator = React.forwardRef<<Separatorref={ref}data-sidebar="separator"- className={cn("mx-2 w-auto bg-sidebar-border", className)}+ className={cn("bg-sidebar-border mx-2 w-auto", className)}{...props}/>- );-});-SidebarSeparator.displayName = "SidebarSeparator";+ )+})+SidebarSeparator.displayName = "SidebarSeparator"const SidebarContent = React.forwardRef<HTMLDivElement,@@ -423,13 +415,13 @@ const SidebarContent = React.forwardRef<data-sidebar="content"className={cn("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",- className,+ className)}{...props}/>- );-});-SidebarContent.displayName = "SidebarContent";+ )+})+SidebarContent.displayName = "SidebarContent"const SidebarGroup = React.forwardRef<HTMLDivElement,@@ -442,53 +434,53 @@ const SidebarGroup = React.forwardRef<className={cn("relative flex w-full min-w-0 flex-col p-2", className)}{...props}/>- );-});-SidebarGroup.displayName = "SidebarGroup";+ )+})+SidebarGroup.displayName = "SidebarGroup"const SidebarGroupLabel = React.forwardRef<HTMLDivElement,React.ComponentProps<"div"> & { asChild?: boolean }>(({ className, asChild = false, ...props }, ref) => {- const Comp = asChild ? Slot : "div";+ const Comp = asChild ? Slot : "div"return (<Compref={ref}data-sidebar="group-label"className={cn(- "flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",+ "text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium transition-[margin,opacity] duration-200 ease-linear outline-none focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",- className,+ className)}{...props}/>- );-});-SidebarGroupLabel.displayName = "SidebarGroupLabel";+ )+})+SidebarGroupLabel.displayName = "SidebarGroupLabel"const SidebarGroupAction = React.forwardRef<HTMLButtonElement,React.ComponentProps<"button"> & { asChild?: boolean }>(({ className, asChild = false, ...props }, ref) => {- const Comp = asChild ? Slot : "button";+ const Comp = asChild ? Slot : "button"return (<Compref={ref}data-sidebar="group-action"className={cn(- "absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",+ "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 transition-transform outline-none focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",// Increases the hit area of the button on mobile."after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",- className,+ className)}{...props}/>- );-});-SidebarGroupAction.displayName = "SidebarGroupAction";+ )+})+SidebarGroupAction.displayName = "SidebarGroupAction"const SidebarGroupContent = React.forwardRef<HTMLDivElement,@@ -500,8 +492,8 @@ const SidebarGroupContent = React.forwardRef<className={cn("w-full text-sm", className)}{...props}/>-));-SidebarGroupContent.displayName = "SidebarGroupContent";+))+SidebarGroupContent.displayName = "SidebarGroupContent"const SidebarMenu = React.forwardRef<HTMLUListElement,@@ -513,8 +505,8 @@ const SidebarMenu = React.forwardRef<className={cn("flex w-full min-w-0 flex-col gap-1", className)}{...props}/>-));-SidebarMenu.displayName = "SidebarMenu";+))+SidebarMenu.displayName = "SidebarMenu"const SidebarMenuItem = React.forwardRef<HTMLLIElement,@@ -526,8 +518,8 @@ const SidebarMenuItem = React.forwardRef<className={cn("group/menu-item relative", className)}{...props}/>-));-SidebarMenuItem.displayName = "SidebarMenuItem";+))+SidebarMenuItem.displayName = "SidebarMenuItem"const sidebarMenuButtonVariants = cva("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",@@ -548,15 +540,15 @@ const sidebarMenuButtonVariants = cva(variant: "default",size: "default",},- },-);+ }+)const SidebarMenuButton = React.forwardRef<HTMLButtonElement,React.ComponentProps<"button"> & {- asChild?: boolean;- isActive?: boolean;- tooltip?: string | React.ComponentProps<typeof TooltipContent>;+ asChild?: boolean+ isActive?: boolean+ tooltip?: string | React.ComponentProps<typeof TooltipContent>} & VariantProps<typeof sidebarMenuButtonVariants>>((@@ -569,10 +561,10 @@ const SidebarMenuButton = React.forwardRef<className,...props},- ref,+ ref) => {- const Comp = asChild ? Slot : "button";- const { isMobile, state } = useSidebar();+ const Comp = asChild ? Slot : "button"+ const { isMobile, state } = useSidebar()const button = (<Comp@@ -583,16 +575,16 @@ const SidebarMenuButton = React.forwardRef<className={cn(sidebarMenuButtonVariants({ variant, size }), className)}{...props}/>- );+ )if (!tooltip) {- return button;+ return button}if (typeof tooltip === "string") {tooltip = {children: tooltip,- };+ }}return (@@ -605,26 +597,26 @@ const SidebarMenuButton = React.forwardRef<{...tooltip}/></Tooltip>- );- },-);-SidebarMenuButton.displayName = "SidebarMenuButton";+ )+ }+)+SidebarMenuButton.displayName = "SidebarMenuButton"const SidebarMenuAction = React.forwardRef<HTMLButtonElement,React.ComponentProps<"button"> & {- asChild?: boolean;- showOnHover?: boolean;+ asChild?: boolean+ showOnHover?: boolean}>(({ className, asChild = false, showOnHover = false, ...props }, ref) => {- const Comp = asChild ? Slot : "button";+ const Comp = asChild ? Slot : "button"return (<Compref={ref}data-sidebar="menu-action"className={cn(- "absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0",+ "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 transition-transform outline-none focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",// Increases the hit area of the button on mobile."after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1",@@ -632,14 +624,14 @@ const SidebarMenuAction = React.forwardRef<"peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",showOnHover &&- "group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",- className,+ "peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",+ className)}{...props}/>- );-});-SidebarMenuAction.displayName = "SidebarMenuAction";+ )+})+SidebarMenuAction.displayName = "SidebarMenuAction"const SidebarMenuBadge = React.forwardRef<HTMLDivElement,@@ -649,29 +641,29 @@ const SidebarMenuBadge = React.forwardRef<ref={ref}data-sidebar="menu-badge"className={cn(- "pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground",+ "text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",- className,+ className)}{...props}/>-));-SidebarMenuBadge.displayName = "SidebarMenuBadge";+))+SidebarMenuBadge.displayName = "SidebarMenuBadge"const SidebarMenuSkeleton = React.forwardRef<HTMLDivElement,React.ComponentProps<"div"> & {- showIcon?: boolean;+ showIcon?: boolean}>(({ className, showIcon = false, ...props }, ref) => {// Random width between 50 to 90%.const width = React.useMemo(() => {- return `${Math.floor(Math.random() * 40) + 50}%`;- }, []);+ return `${Math.floor(Math.random() * 40) + 50}%`+ }, [])return (<div@@ -696,9 +688,9 @@ const SidebarMenuSkeleton = React.forwardRef<}/></div>- );-});-SidebarMenuSkeleton.displayName = "SidebarMenuSkeleton";+ )+})+SidebarMenuSkeleton.displayName = "SidebarMenuSkeleton"const SidebarMenuSub = React.forwardRef<HTMLUListElement,@@ -708,30 +700,30 @@ const SidebarMenuSub = React.forwardRef<ref={ref}data-sidebar="menu-sub"className={cn(- "mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5",+ "border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",- className,+ className)}{...props}/>-));-SidebarMenuSub.displayName = "SidebarMenuSub";+))+SidebarMenuSub.displayName = "SidebarMenuSub"const SidebarMenuSubItem = React.forwardRef<HTMLLIElement,React.ComponentProps<"li">->(({ ...props }, ref) => <li ref={ref} {...props} />);-SidebarMenuSubItem.displayName = "SidebarMenuSubItem";+>(({ ...props }, ref) => <li ref={ref} {...props} />)+SidebarMenuSubItem.displayName = "SidebarMenuSubItem"const SidebarMenuSubButton = React.forwardRef<HTMLAnchorElement,React.ComponentProps<"a"> & {- asChild?: boolean;- size?: "sm" | "md";- isActive?: boolean;+ asChild?: boolean+ size?: "sm" | "md"+ isActive?: boolean}>(({ asChild = false, size = "md", isActive, className, ...props }, ref) => {- const Comp = asChild ? Slot : "a";+ const Comp = asChild ? Slot : "a"return (<Comp@@ -740,18 +732,18 @@ const SidebarMenuSubButton = React.forwardRef<data-size={size}data-active={isActive}className={cn(- "flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground",+ "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",size === "sm" && "text-xs",size === "md" && "text-sm","group-data-[collapsible=icon]:hidden",- className,+ className)}{...props}/>- );-});-SidebarMenuSubButton.displayName = "SidebarMenuSubButton";+ )+})+SidebarMenuSubButton.displayName = "SidebarMenuSubButton"export {Sidebar,@@ -778,4 +770,4 @@ export {SidebarSeparator,SidebarTrigger,useSidebar,-};+}diff --git a/apps/www/components/ui/skeleton.tsx b/apps/www/components/ui/skeleton.tsxindex 01689981..32ea0ef7 100644--- a/apps/www/components/ui/skeleton.tsx+++ b/apps/www/components/ui/skeleton.tsx@@ -1,4 +1,4 @@-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"function Skeleton({ className, ...props }: React.ComponentProps<"div">) {return (@@ -7,7 +7,7 @@ function Skeleton({ className, ...props }: React.ComponentProps<"div">) {className={cn("bg-accent animate-pulse rounded-md", className)}{...props}/>- );+ )}-export { Skeleton };+export { Skeleton }diff --git a/apps/www/components/ui/sonner.tsx b/apps/www/components/ui/sonner.tsxindex f1259836..957524ed 100644--- a/apps/www/components/ui/sonner.tsx+++ b/apps/www/components/ui/sonner.tsx@@ -1,10 +1,10 @@-"use client";+"use client"-import { useTheme } from "next-themes";-import { Toaster as Sonner, ToasterProps } from "sonner";+import { useTheme } from "next-themes"+import { Toaster as Sonner, ToasterProps } from "sonner"const Toaster = ({ ...props }: ToasterProps) => {- const { theme = "system" } = useTheme();+ const { theme = "system" } = useTheme()return (<Sonner@@ -19,7 +19,7 @@ const Toaster = ({ ...props }: ToasterProps) => {}{...props}/>- );-};+ )+}-export { Toaster };+export { Toaster }diff --git a/apps/www/components/ui/switch.tsx b/apps/www/components/ui/switch.tsxindex d63e4b77..6a2b5241 100644--- a/apps/www/components/ui/switch.tsx+++ b/apps/www/components/ui/switch.tsx@@ -1,9 +1,9 @@-"use client";+"use client"-import * as React from "react";-import * as SwitchPrimitive from "@radix-ui/react-switch";+import * as React from "react"+import * as SwitchPrimitive from "@radix-ui/react-switch"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"function Switch({className,@@ -14,18 +14,18 @@ function Switch({data-slot="switch"className={cn("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",- className,+ className)}{...props}><SwitchPrimitive.Thumbdata-slot="switch-thumb"className={cn(- "bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0",+ "bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")}/></SwitchPrimitive.Root>- );+ )}-export { Switch };+export { Switch }diff --git a/apps/www/components/ui/table.tsx b/apps/www/components/ui/table.tsxindex 4b3c98ea..51b74dd5 100644--- a/apps/www/components/ui/table.tsx+++ b/apps/www/components/ui/table.tsx@@ -1,8 +1,8 @@-"use client";+"use client"-import * as React from "react";+import * as React from "react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"function Table({ className, ...props }: React.ComponentProps<"table">) {return (@@ -16,7 +16,7 @@ function Table({ className, ...props }: React.ComponentProps<"table">) {{...props}/></div>- );+ )}function TableHeader({ className, ...props }: React.ComponentProps<"thead">) {@@ -26,7 +26,7 @@ function TableHeader({ className, ...props }: React.ComponentProps<"thead">) {className={cn("[&_tr]:border-b", className)}{...props}/>- );+ )}function TableBody({ className, ...props }: React.ComponentProps<"tbody">) {@@ -36,7 +36,7 @@ function TableBody({ className, ...props }: React.ComponentProps<"tbody">) {className={cn("[&_tr:last-child]:border-0", className)}{...props}/>- );+ )}function TableFooter({ className, ...props }: React.ComponentProps<"tfoot">) {@@ -45,11 +45,11 @@ function TableFooter({ className, ...props }: React.ComponentProps<"tfoot">) {data-slot="table-footer"className={cn("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",- className,+ className)}{...props}/>- );+ )}function TableRow({ className, ...props }: React.ComponentProps<"tr">) {@@ -58,11 +58,11 @@ function TableRow({ className, ...props }: React.ComponentProps<"tr">) {data-slot="table-row"className={cn("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",- className,+ className)}{...props}/>- );+ )}function TableHead({ className, ...props }: React.ComponentProps<"th">) {@@ -71,11 +71,11 @@ function TableHead({ className, ...props }: React.ComponentProps<"th">) {data-slot="table-head"className={cn("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",- className,+ className)}{...props}/>- );+ )}function TableCell({ className, ...props }: React.ComponentProps<"td">) {@@ -84,11 +84,11 @@ function TableCell({ className, ...props }: React.ComponentProps<"td">) {data-slot="table-cell"className={cn("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",- className,+ className)}{...props}/>- );+ )}function TableCaption({@@ -101,7 +101,7 @@ function TableCaption({className={cn("text-muted-foreground mt-4 text-sm", className)}{...props}/>- );+ )}export {@@ -113,4 +113,4 @@ export {TableRow,TableCell,TableCaption,-};+}diff --git a/apps/www/components/ui/tabs.tsx b/apps/www/components/ui/tabs.tsxindex 2125f609..571eb94c 100644--- a/apps/www/components/ui/tabs.tsx+++ b/apps/www/components/ui/tabs.tsx@@ -1,9 +1,9 @@-"use client";+"use client"-import * as React from "react";-import * as TabsPrimitive from "@radix-ui/react-tabs";+import * as React from "react"+import * as TabsPrimitive from "@radix-ui/react-tabs"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"function Tabs({className,@@ -15,7 +15,7 @@ function Tabs({className={cn("flex flex-col gap-2", className)}{...props}/>- );+ )}function TabsList({@@ -27,11 +27,11 @@ function TabsList({data-slot="tabs-list"className={cn("bg-muted text-muted-foreground inline-flex h-9 items-center justify-center rounded-lg p-[3px]",- className,+ className)}{...props}/>- );+ )}/* dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 */@@ -43,12 +43,12 @@ function TabsTrigger({<TabsPrimitive.Triggerdata-slot="tabs-trigger"className={cn(- "data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 ring-offset-background focus-visible:outline-none focus-visible:ring-offset-2 data-[state=active]:text-foreground cursor-pointer",- className,+ "data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground dark:text-muted-foreground ring-offset-background data-[state=active]:text-foreground inline-flex h-[calc(100%-1px)] cursor-pointer items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:ring-offset-2 focus-visible:outline-1 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",+ className)}{...props}/>- );+ )}function TabsContent({@@ -61,7 +61,7 @@ function TabsContent({className={cn("flex-1 outline-none", className)}{...props}/>- );+ )}-export { Tabs, TabsList, TabsTrigger, TabsContent };+export { Tabs, TabsList, TabsTrigger, TabsContent }diff --git a/apps/www/components/ui/toast.tsx b/apps/www/components/ui/toast.tsxindex ce0878f5..a6d9aea1 100644--- a/apps/www/components/ui/toast.tsx+++ b/apps/www/components/ui/toast.tsx@@ -1,11 +1,11 @@-import * as React from "react";-import { Cross2Icon } from "@radix-ui/react-icons";-import * as ToastPrimitives from "@radix-ui/react-toast";-import { cva, type VariantProps } from "class-variance-authority";+import * as React from "react"+import { Cross2Icon } from "@radix-ui/react-icons"+import * as ToastPrimitives from "@radix-ui/react-toast"+import { cva, type VariantProps } from "class-variance-authority"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"-const ToastProvider = ToastPrimitives.Provider;+const ToastProvider = ToastPrimitives.Providerconst ToastViewport = React.forwardRef<React.ElementRef<typeof ToastPrimitives.Viewport>,@@ -14,13 +14,13 @@ const ToastViewport = React.forwardRef<<ToastPrimitives.Viewportref={ref}className={cn(- "fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",- className,+ "fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:top-auto sm:right-0 sm:bottom-0 sm:flex-col md:max-w-[420px]",+ className)}{...props}/>-));-ToastViewport.displayName = ToastPrimitives.Viewport.displayName;+))+ToastViewport.displayName = ToastPrimitives.Viewport.displayNameconst toastVariants = cva("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",@@ -35,8 +35,8 @@ const toastVariants = cva(defaultVariants: {variant: "default",},- },-);+ }+)const Toast = React.forwardRef<React.ElementRef<typeof ToastPrimitives.Root>,@@ -49,9 +49,9 @@ const Toast = React.forwardRef<className={cn(toastVariants({ variant }), className)}{...props}/>- );-});-Toast.displayName = ToastPrimitives.Root.displayName;+ )+})+Toast.displayName = ToastPrimitives.Root.displayNameconst ToastAction = React.forwardRef<React.ElementRef<typeof ToastPrimitives.Action>,@@ -60,13 +60,13 @@ const ToastAction = React.forwardRef<<ToastPrimitives.Actionref={ref}className={cn(- "inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",- className,+ "hover:bg-secondary focus:ring-ring group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors focus:ring-1 focus:outline-none disabled:pointer-events-none disabled:opacity-50",+ className)}{...props}/>-));-ToastAction.displayName = ToastPrimitives.Action.displayName;+))+ToastAction.displayName = ToastPrimitives.Action.displayNameconst ToastClose = React.forwardRef<React.ElementRef<typeof ToastPrimitives.Close>,@@ -75,16 +75,16 @@ const ToastClose = React.forwardRef<<ToastPrimitives.Closeref={ref}className={cn(- "absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",- className,+ "text-foreground/50 hover:text-foreground absolute top-1 right-1 rounded-md p-1 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:ring-1 focus:outline-none group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",+ className)}toast-close=""{...props}><Cross2Icon className="size-4" /></ToastPrimitives.Close>-));-ToastClose.displayName = ToastPrimitives.Close.displayName;+))+ToastClose.displayName = ToastPrimitives.Close.displayNameconst ToastTitle = React.forwardRef<React.ElementRef<typeof ToastPrimitives.Title>,@@ -95,8 +95,8 @@ const ToastTitle = React.forwardRef<className={cn("text-sm font-semibold [&+div]:text-xs", className)}{...props}/>-));-ToastTitle.displayName = ToastPrimitives.Title.displayName;+))+ToastTitle.displayName = ToastPrimitives.Title.displayNameconst ToastDescription = React.forwardRef<React.ElementRef<typeof ToastPrimitives.Description>,@@ -107,12 +107,12 @@ const ToastDescription = React.forwardRef<className={cn("text-sm opacity-90", className)}{...props}/>-));-ToastDescription.displayName = ToastPrimitives.Description.displayName;+))+ToastDescription.displayName = ToastPrimitives.Description.displayName-type ToastProps = React.ComponentPropsWithoutRef<typeof Toast>;+type ToastProps = React.ComponentPropsWithoutRef<typeof Toast>-type ToastActionElement = React.ReactElement<typeof ToastAction>;+type ToastActionElement = React.ReactElement<typeof ToastAction>export {type ToastProps,@@ -124,4 +124,4 @@ export {ToastDescription,ToastClose,ToastAction,-};+}diff --git a/apps/www/components/ui/toaster.tsx b/apps/www/components/ui/toaster.tsxindex 7d82ed55..e2233852 100644--- a/apps/www/components/ui/toaster.tsx+++ b/apps/www/components/ui/toaster.tsx@@ -1,4 +1,4 @@-"use client";+"use client"import {Toast,@@ -7,11 +7,11 @@ import {ToastProvider,ToastTitle,ToastViewport,-} from "@/components/ui/toast";-import { useToast } from "@/components/ui/use-toast";+} from "@/components/ui/toast"+import { useToast } from "@/components/ui/use-toast"export function Toaster() {- const { toasts } = useToast();+ const { toasts } = useToast()return (<ToastProvider>@@ -27,9 +27,9 @@ export function Toaster() {{action}<ToastClose /></Toast>- );+ )})}<ToastViewport /></ToastProvider>- );+ )}diff --git a/apps/www/components/ui/tooltip.tsx b/apps/www/components/ui/tooltip.tsxindex bf4a342a..4ee26b38 100644--- a/apps/www/components/ui/tooltip.tsx+++ b/apps/www/components/ui/tooltip.tsx@@ -1,9 +1,9 @@-"use client";+"use client"-import * as React from "react";-import * as TooltipPrimitive from "@radix-ui/react-tooltip";+import * as React from "react"+import * as TooltipPrimitive from "@radix-ui/react-tooltip"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"function TooltipProvider({delayDuration = 0,@@ -15,7 +15,7 @@ function TooltipProvider({delayDuration={delayDuration}{...props}/>- );+ )}function Tooltip({@@ -25,13 +25,13 @@ function Tooltip({<TooltipProvider><TooltipPrimitive.Root data-slot="tooltip" {...props} /></TooltipProvider>- );+ )}function TooltipTrigger({...props}: React.ComponentProps<typeof TooltipPrimitive.Trigger>) {- return <TooltipPrimitive.Trigger data-slot="tooltip-trigger" {...props} />;+ return <TooltipPrimitive.Trigger data-slot="tooltip-trigger" {...props} />}function TooltipContent({@@ -47,7 +47,7 @@ function TooltipContent({sideOffset={sideOffset}className={cn("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",- className,+ className)}{...props}>@@ -55,7 +55,7 @@ function TooltipContent({<TooltipPrimitive.Arrow className="bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" /></TooltipPrimitive.Content></TooltipPrimitive.Portal>- );+ )}-export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };+export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }diff --git a/apps/www/components/ui/use-toast.ts b/apps/www/components/ui/use-toast.tsindex ac0aff3e..2c94c2d4 100644--- a/apps/www/components/ui/use-toast.ts+++ b/apps/www/components/ui/use-toast.ts@@ -1,73 +1,73 @@// Inspired by react-hot-toast library-import * as React from "react";+import * as React from "react"-import type { ToastActionElement, ToastProps } from "@/components/ui/toast";+import type { ToastActionElement, ToastProps } from "@/components/ui/toast"-const TOAST_LIMIT = 1;-const TOAST_REMOVE_DELAY = 1000000;+const TOAST_LIMIT = 1+const TOAST_REMOVE_DELAY = 1000000type ToasterToast = ToastProps & {- id: string;- title?: React.ReactNode;- description?: React.ReactNode;- action?: ToastActionElement;-};+ id: string+ title?: React.ReactNode+ description?: React.ReactNode+ action?: ToastActionElement+}const actionTypes = {ADD_TOAST: "ADD_TOAST",UPDATE_TOAST: "UPDATE_TOAST",DISMISS_TOAST: "DISMISS_TOAST",REMOVE_TOAST: "REMOVE_TOAST",-} as const;+} as const-let count = 0;+let count = 0function genId() {- count = (count + 1) % Number.MAX_VALUE;- return count.toString();+ count = (count + 1) % Number.MAX_VALUE+ return count.toString()}-type ActionType = typeof actionTypes;+type ActionType = typeof actionTypestype Action =| {- type: ActionType["ADD_TOAST"];- toast: ToasterToast;+ type: ActionType["ADD_TOAST"]+ toast: ToasterToast}| {- type: ActionType["UPDATE_TOAST"];- toast: Partial<ToasterToast>;+ type: ActionType["UPDATE_TOAST"]+ toast: Partial<ToasterToast>}| {- type: ActionType["DISMISS_TOAST"];- toastId?: ToasterToast["id"];+ type: ActionType["DISMISS_TOAST"]+ toastId?: ToasterToast["id"]}| {- type: ActionType["REMOVE_TOAST"];- toastId?: ToasterToast["id"];- };+ type: ActionType["REMOVE_TOAST"]+ toastId?: ToasterToast["id"]+ }interface State {- toasts: ToasterToast[];+ toasts: ToasterToast[]}-const toastTimeouts = new Map<string, ReturnType<typeof setTimeout>>();+const toastTimeouts = new Map<string, ReturnType<typeof setTimeout>>()const addToRemoveQueue = (toastId: string) => {if (toastTimeouts.has(toastId)) {- return;+ return}const timeout = setTimeout(() => {- toastTimeouts.delete(toastId);+ toastTimeouts.delete(toastId)dispatch({type: "REMOVE_TOAST",toastId: toastId,- });- }, TOAST_REMOVE_DELAY);+ })+ }, TOAST_REMOVE_DELAY)- toastTimeouts.set(toastId, timeout);-};+ toastTimeouts.set(toastId, timeout)+}export const reducer = (state: State, action: Action): State => {switch (action.type) {@@ -75,27 +75,27 @@ export const reducer = (state: State, action: Action): State => {return {...state,toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT),- };+ }case "UPDATE_TOAST":return {...state,toasts: state.toasts.map((t) =>- t.id === action.toast.id ? { ...t, ...action.toast } : t,+ t.id === action.toast.id ? { ...t, ...action.toast } : t),- };+ }case "DISMISS_TOAST": {- const { toastId } = action;+ const { toastId } = action// ! Side effects ! - This could be extracted into a dismissToast() action,// but I'll keep it here for simplicityif (toastId) {- addToRemoveQueue(toastId);+ addToRemoveQueue(toastId)} else {state.toasts.forEach((toast) => {- addToRemoveQueue(toast.id);- });+ addToRemoveQueue(toast.id)+ })}return {@@ -106,46 +106,46 @@ export const reducer = (state: State, action: Action): State => {...t,open: false,}- : t,+ : t),- };+ }}case "REMOVE_TOAST":if (action.toastId === undefined) {return {...state,toasts: [],- };+ }}return {...state,toasts: state.toasts.filter((t) => t.id !== action.toastId),- };+ }}-};+}-const listeners: Array<(state: State) => void> = [];+const listeners: Array<(state: State) => void> = []-let memoryState: State = { toasts: [] };+let memoryState: State = { toasts: [] }function dispatch(action: Action) {- memoryState = reducer(memoryState, action);+ memoryState = reducer(memoryState, action)listeners.forEach((listener) => {- listener(memoryState);- });+ listener(memoryState)+ })}-type Toast = Omit<ToasterToast, "id">;+type Toast = Omit<ToasterToast, "id">function toast({ ...props }: Toast) {- const id = genId();+ const id = genId()const update = (props: ToasterToast) =>dispatch({type: "UPDATE_TOAST",toast: { ...props, id },- });- const dismiss = () => dispatch({ type: "DISMISS_TOAST", toastId: id });+ })+ const dismiss = () => dispatch({ type: "DISMISS_TOAST", toastId: id })dispatch({type: "ADD_TOAST",@@ -154,36 +154,36 @@ function toast({ ...props }: Toast) {id,open: true,onOpenChange: (open) => {- if (!open) dismiss();+ if (!open) dismiss()},},- });+ })return {id: id,dismiss,update,- };+ }}function useToast() {- const [state, setState] = React.useState<State>(memoryState);+ const [state, setState] = React.useState<State>(memoryState)React.useEffect(() => {- listeners.push(setState);+ listeners.push(setState)return () => {- const index = listeners.indexOf(setState);+ const index = listeners.indexOf(setState)if (index > -1) {- listeners.splice(index, 1);+ listeners.splice(index, 1)}- };- }, [state]);+ }+ }, [state])return {...state,toast,dismiss: (toastId?: string) => dispatch({ type: "DISMISS_TOAST", toastId }),- };+ }}-export { useToast, toast };+export { useToast, toast }diff --git a/apps/www/components/version-select.tsx b/apps/www/components/version-select.tsxindex 6c50e752..144b558f 100644--- a/apps/www/components/version-select.tsx+++ b/apps/www/components/version-select.tsx@@ -1,39 +1,40 @@-"use client";+"use client"+import * as React from "react"+import { CheckIcon, ChevronDownIcon } from "@radix-ui/react-icons"++import { cn } from "@/lib/utils"import {DropdownMenu,DropdownMenuContent,DropdownMenuItem,DropdownMenuTrigger,-} from "@/components/ui/dropdown-menu";-import { cn } from "@/lib/utils";-import { CheckIcon, ChevronDownIcon } from "@radix-ui/react-icons";-import * as React from "react";+} from "@/components/ui/dropdown-menu"const DOMAINS = {v3: "https://v3.magicui.design",v4: "https://magicui.design",-} as const;+} as constexport function VersionSelect({ className }: { className?: string }) {- const [version, setVersion] = React.useState<keyof typeof DOMAINS>("v4");+ const [version, setVersion] = React.useState<keyof typeof DOMAINS>("v4")const handleVersionChange = (value: keyof typeof DOMAINS) => {- setVersion(value);- window.location.href = DOMAINS[value];- };+ setVersion(value)+ window.location.href = DOMAINS[value]+ }return (<DropdownMenu><DropdownMenuTriggerclassName={cn(- "flex h-7 w-14 cursor-pointer items-center justify-between rounded-full border bg-background py-1 pl-2 pr-0.5 text-sm font-medium text-foreground hover:bg-accent hover:text-accent-foreground",- className,+ "bg-background text-foreground hover:bg-accent hover:text-accent-foreground flex h-7 w-14 cursor-pointer items-center justify-between rounded-full border py-1 pr-0.5 pl-2 text-sm font-medium",+ className)}>{version}<div className="flex size-5 items-center justify-center rounded-full border">- <ChevronDownIcon className="size-4 text-muted-foreground" />+ <ChevronDownIcon className="text-muted-foreground size-4" /></div></DropdownMenuTrigger><DropdownMenuContent align="start" className="min-w-[120px]">@@ -41,7 +42,7 @@ export function VersionSelect({ className }: { className?: string }) {onClick={() => handleVersionChange("v3")}className={cn("flex justify-between",- version === "v3" && "bg-accent text-accent-foreground",+ version === "v3" && "bg-accent text-accent-foreground")}>Tailwind v3@@ -51,7 +52,7 @@ export function VersionSelect({ className }: { className?: string }) {onClick={() => handleVersionChange("v4")}className={cn("flex justify-between",- version === "v4" && "bg-accent text-accent-foreground",+ version === "v4" && "bg-accent text-accent-foreground")}>Tailwind v4@@ -59,5 +60,5 @@ export function VersionSelect({ className }: { className?: string }) {</DropdownMenuItem></DropdownMenuContent></DropdownMenu>- );+ )}diff --git a/apps/www/config/docs.ts b/apps/www/config/docs.tsindex f64c2ac1..5fe8a7b5 100644--- a/apps/www/config/docs.ts+++ b/apps/www/config/docs.ts@@ -1,8 +1,8 @@-import { NavItem, NavItemWithChildren } from "@/types";+import { NavItem, NavItemWithChildren } from "@/types"interface DocsConfig {- mainNav: NavItem[];- sidebarNav: NavItemWithChildren[];+ mainNav: NavItem[]+ sidebarNav: NavItemWithChildren[]}export const docsConfig: DocsConfig = {@@ -578,4 +578,4 @@ export const docsConfig: DocsConfig = {],},],-};+}diff --git a/apps/www/config/site.ts b/apps/www/config/site.tsindex e4ef134b..4503c7c0 100644--- a/apps/www/config/site.ts+++ b/apps/www/config/site.ts@@ -18,6 +18,6 @@ export const siteConfig = {"Components","Next.js",],-};+}-export type SiteConfig = typeof siteConfig;+export type SiteConfig = typeof siteConfigdiff --git a/apps/www/content/blog/animation-libraries.mdx b/apps/www/content/blog/animation-libraries.mdxindex 2e5170b9..4fb921ee 100644--- a/apps/www/content/blog/animation-libraries.mdx+++ b/apps/www/content/blog/animation-libraries.mdx@@ -323,7 +323,7 @@ npm install magicuiImport the desired MagicUI components into your React components:```javascript-import { Button, Card, Modal } from "magicui";+import { Button, Card, Modal } from "magicui"```#### Customizationdiff --git a/apps/www/content/blog/install-tailwind-react.mdx b/apps/www/content/blog/install-tailwind-react.mdxindex 3dd6663c..106e3b84 100644--- a/apps/www/content/blog/install-tailwind-react.mdx+++ b/apps/www/content/blog/install-tailwind-react.mdx@@ -87,7 +87,7 @@ module.exports = {extend: {},},plugins: [],-};+}```Now, include Tailwind in your CSS by importing it into your main CSS file. Open `src/index.css` and replace its contents with:@@ -103,7 +103,7 @@ This will import Tailwind’s base styles, components, and utility classes intoTo make sure it's included for our entire project, import it into the `App.tsx` like so:```javascript-import "./index.css";+import "./index.css"```Now we're ready to start playing around with Tailwind. About time right?@@ -145,17 +145,20 @@ export default Card;Now, we can import this into the `App.tsx` file:```javascript-import "./App.css";-import Card from "./components/Card";-import "./index.css";+import "./App.css"++import Card from "./components/Card"++import "./index.css"+function App() {return (- <div className="w-full flex flex-col items-center justify-center h-screen bg-gray-100">+ <div className="flex h-screen w-full flex-col items-center justify-center bg-gray-100"><Card /></div>- );+ )}-export default App;+export default App```Start the server with `npm run start` and verify that your screen looks like below.@@ -183,7 +186,7 @@ module.exports = {}: {}),},-};+}```This will purge your Tailwind classes but only in Production. In Dev, you keep all of them to make it easier to play around with styling.diff --git a/apps/www/content/blog/mui-box.mdx b/apps/www/content/blog/mui-box.mdxindex b2f1a786..93589d3e 100644--- a/apps/www/content/blog/mui-box.mdx+++ b/apps/www/content/blog/mui-box.mdx@@ -94,35 +94,36 @@ Once the MUI library is installed successfully, you can utilize Material UI compTo import the Material-UI Box component, you can use the following code snippet:```javascript-import { Box } from "@mui/system";+import { Box } from "@mui/system"export default function BoxExample() {return (<Box component="section" m={1}>This is a box</Box>- );+ )}```In the following example, a Box component is imported from the Material-UI library, and a basic function component is created that renders a box with the component prop set to section. The box includes some margin around it.```jsx-import React from "react";-import ReactDOM from "react-dom";-import { Box } from "@material-ui/core";-import "./styles.css";+import React from "react"+import { Box } from "@material-ui/core"+import ReactDOM from "react-dom"++import "./styles.css"function App() {return (<Box component="section" sx={{ p: 20, border: "1px dashed grey" }}>This is an MUI Box</Box>- );+ )}-const rootElement = document.getElementById("root");-ReactDOM.render(<App />, rootElement);+const rootElement = document.getElementById("root")+ReactDOM.render(<App />, rootElement)```In this example, a functional component called App is created, and an MUI Box is rendered with custom styling, such as padding and a dashed border.@@ -198,16 +199,16 @@ On the other hand, the Typography component can display text in various forms, iThe Box component in MUI serves as a wrapper element for your components. By default, it generates a new DOM element, specifically a `<div>`. This default functionality can be altered by utilizing the component prop. For instance, if you wish to utilize a `<span>` instead, you can simply set the component prop to "span":```jsx-import * as React from "react";-import Box from "@mui/material/Box";-import Button from "@mui/material/Button";+import * as React from "react"+import Box from "@mui/material/Box"+import Button from "@mui/material/Button"export default function BoxComponent() {return (<Box component="span" sx={{ p: 2, border: "1px dashed grey" }}><Button>Save</Button></Box>- );+ )}```diff --git a/apps/www/content/blog/mui-card.mdx b/apps/www/content/blog/mui-card.mdxindex 7a2a7a90..d08a6eec 100644--- a/apps/www/content/blog/mui-card.mdx+++ b/apps/www/content/blog/mui-card.mdx@@ -92,11 +92,12 @@ Material UI card is made up of a list of components such as:The CardActionArea component in Material UI makes an area within a card clickable by wrapping contents within a card that should be interactive. The code snippet below shows how to use CardActionArea in combination with a Card component:```jsx-import { CardActionArea } from "@mui/material";-import Card from "@mui/material/Card";-<Card>+import { CardActionArea } from "@mui/material"+import Card from "@mui/material/Card"++;<Card><CardActionArea>{/* Card Contents */}</CardActionArea>-</Card>;+</Card>```### CardHeader@@ -104,16 +105,17 @@ import Card from "@mui/material/Card";The Material UI CardHeader provides context to a card by adding a header. It can display a title, an avatar, a subheader, and an action within a card. The example code below shows how to use a CardHeader component.```jsx-import { CardHeader, Avatar, IconButton } from "@mui/material";-import Card from "@mui/material/Card";-<Card>+import { Avatar, CardHeader, IconButton } from "@mui/material"+import Card from "@mui/material/Card"++;<Card><CardHeaderavatar={<Avatar aria-label="card-name">C</Avatar>}title="Card Title"subheader="Subheader"action={<IconButton aria-label="settings"></IconButton>}/>-</Card>;+</Card>```### CardMedia@@ -135,11 +137,12 @@ The CardMedia component in Material UI allows adding images, videos, icons, andThe CardContent component is used to wrap the core contents of the Card component. The code snippet below illustrates how to use the CardContent component:```jsx-import { CardContent } from "@mui/material";-import Card from "@mui/material/Card";-<Card>+import { CardContent } from "@mui/material"+import Card from "@mui/material/Card"++;<Card><CardContent>{/* Card Contents */}</CardContent>-</Card>;+</Card>```### CardActions@@ -147,13 +150,14 @@ import Card from "@mui/material/Card";In material UI, the CardActions component is used to add card actions. The code snippet below shows how to use CardActions in combination with a Card component:```jsx-import { CardActions, Button } from "@mui/material";-import Card from "@mui/material/Card";-<Card>+import { Button, CardActions } from "@mui/material"+import Card from "@mui/material/Card"++;<Card><CardActions><Button>Click here</Button></CardActions>-</Card>;+</Card>```## Getting Started With Material UI Card@@ -174,13 +178,14 @@ The provided code snippet below showcases an example of creating a straightforwa```jsximport {+ Button,Card,CardActions,CardContent,- Button,Typography,-} from "@mui/material";-import "./styles.css";+} from "@mui/material"++import "./styles.css"const BasicCard = () => {return (@@ -210,8 +215,8 @@ const BasicCard = () => {<Button size="small">Read More</Button></CardActions></Card>- );-};+ )+}const App = () => {return (@@ -219,10 +224,10 @@ const App = () => {<h1>Basic card</h1><BasicCard /></div>- );-};+ )+}-export default App;+export default App```You can create your own Material UI card component by following these steps and using the provided code snippet. The framework offers a straightforward way to structure and style information, making it visually appealing and structured for your webpage or application.diff --git a/apps/www/content/blog/mui-transitions.mdx b/apps/www/content/blog/mui-transitions.mdxindex 398c542f..410cd013 100644--- a/apps/www/content/blog/mui-transitions.mdx+++ b/apps/www/content/blog/mui-transitions.mdx@@ -61,11 +61,11 @@ The easing prop defines the timing function of the animation. It controls how thThe following example demonstrates a simple implementation of an MUI transition. In this case, a fade transition is used to animate the appearance and disappearance of a piece of text when a button is clicked.```javascript-import { Transition } from "@mui/material";-import { useState } from "react";+import { useState } from "react"+import { Transition } from "@mui/material"function MyComponent() {- const [show, setShow] = useState(false);+ const [show, setShow] = useState(false)return (<div>@@ -74,7 +74,7 @@ function MyComponent() {<div>This component will fade in and out.</div></Transition></div>- );+ )}```@@ -144,7 +144,7 @@ Refer to the official MUI documentation for troubleshooting tips and known issue[Creating MUI transitions](https://mui.com/material-ui/transitions/) starts with importing the Transition component from MUI's @mui/material/transitions package. You can import the component into your project using the code snippet below.```javascript-import { Transition } from "@mui/material/transitions";+import { Transition } from "@mui/material/transitions"```### Set Up the In Prop for Your MUI Transition@@ -478,20 +478,20 @@ You can create custom transitions by combining the Transition component with CSS```javascriptfunction handleEnter(node) {- node.style.transform = "scale(0.8)";+ node.style.transform = "scale(0.8)"setTimeout(() => {- node.style.transform = "scale(1)";- }, 100);+ node.style.transform = "scale(1)"+ }, 100)}``````javascriptfunction handleExit(node) {- node.style.transform = "scale(1)";+ node.style.transform = "scale(1)"setTimeout(() => {- node.style.transform = "scale(0.8)";- }, 100);+ node.style.transform = "scale(0.8)"+ }, 100)}```@@ -544,8 +544,8 @@ MagicUI, a [free and open-source UI](https://pro.magicui.design/docs/templates/s#### Example```javascript-import { Button } from "@mui/material";-import { MagicUIButton } from "@magicui/react";+import { MagicUIButton } from "@magicui/react"+import { Button } from "@mui/material"function MyComponent() {return (@@ -553,7 +553,7 @@ function MyComponent() {<Button variant="contained">MUI Button</Button><MagicUIButton variant="primary">MagicUI Button</MagicUIButton></div>- );+ )}```diff --git a/apps/www/content/blog/react-bootstrap.mdx b/apps/www/content/blog/react-bootstrap.mdxindex 274d12be..fa21244b 100644--- a/apps/www/content/blog/react-bootstrap.mdx+++ b/apps/www/content/blog/react-bootstrap.mdx@@ -153,7 +153,8 @@ One of the best methods for integrating Bootstrap into a React app is to utilizeTo get started, you can install the React Bootstrap package and import components like `Container`, `Row`, and `Col`. Here’s an example code snippet to demonstrate:```javascript-import { Container, Row, Col } from "react-bootstrap";+import { Col, Container, Row } from "react-bootstrap"+function App() {return (<Container>@@ -162,9 +163,9 @@ function App() {<Col>Column 2</Col></Row></Container>- );+ )}-export default App;+export default App```### Building Custom Components with Bootstrap Classesdiff --git a/apps/www/content/blog/react-design-patterns.mdx b/apps/www/content/blog/react-design-patterns.mdxindex 72e1694a..fd384b9b 100644--- a/apps/www/content/blog/react-design-patterns.mdx+++ b/apps/www/content/blog/react-design-patterns.mdx@@ -79,15 +79,16 @@ For instance, you have an “Apply now” button in your React application; youCode Structure of High Order Components:```tsx-import React, { Component } from "react";+import React, { Component } from "react"+const HigherOrderComponent = (DecoratedComponent) => {class HOC extends Component {render() {- return <DecoratedComponent />;+ return <DecoratedComponent />}}- return HOC;-};+ return HOC+}```### 2\. The Provider Pattern@@ -97,18 +98,20 @@ You must understand that the Reacts provider pattern is quite a powerful conceptYet again, this pattern is useful when designing a complex app since it solves several problems. The provider pattern uses a provider component that stores global data and distributes it to consumers or custom hooks through the application's component tree. Frameworks like MobX and React Redux also use the provider pattern, making it clear that the provider approach is not just used by React. Let's now examine the code that demonstrates how the provider pattern for React Redux is setup.```tsx-import React from "react";-import ReactDOM from "react-dom";-import { Provider } from "react-redux";-import store from "./store";-import App from "./App";-const rootElement = document.getElementById("root");+import React from "react"+import ReactDOM from "react-dom"+import { Provider } from "react-redux"++import App from "./App"+import store from "./store"++const rootElement = document.getElementById("root")ReactDOM.render(<Provider store={store}><App /></Provider>,- rootElement,-);+ rootElement+)```When it comes down to React, the provider pattern is implemented in the React context API. React is well known for supporting a unilateral downward data flow from a parent component to its children by default.@@ -122,21 +125,23 @@ On the other hand, container components handle tasks like fetching data from serCode Structure of Presentational and Container Components:```tsx-import React, { Component } from "react";-import PresentationalComponent from "./PresentationalComponent";+import React, { Component } from "react"++import PresentationalComponent from "./PresentationalComponent"+class ContainerComponent extends Component {constructor(props) {- super(props);+ super(props)this.state = {// Initialize state- };+ }}componentDidMount() {// Fetch data or perform initialization logic}handleEvent = () => {// Handle events and update state if needed- };+ }render() {return (<div>@@ -146,10 +151,10 @@ class ContainerComponent extends Component {onClick={this.handleEvent}/></div>- );+ )}}-export default ContainerComponent;+export default ContainerComponent```### 4\. Conditional Rendering Pattern@@ -162,16 +167,16 @@ Example:```tsxexport default function App() {- let [products, setProducts] = useState([]);+ let [products, setProducts] = useState([])useEffect(() => {// fetch a list of products from the server- }, []);+ }, [])return (<div className="App"><h1>Products</h1>{products.length > 0 ? doSomething() : <p>No products</p>}</div>- );+ )}```@@ -183,12 +188,12 @@ The strategy design pattern is a way to change some behavior dynamically from th```tsxconst Strategy = ({ children }) => {- return <div>{children}</div>;-};+ return <div>{children}</div>+}const ChildComp = () => {- return <div>ChildComp</div>;-};-<Strategy children={<ChildComp />} />;+ return <div>ChildComp</div>+}+;<Strategy children={<ChildComp />} />```As the open-closed principle is the dominant strategy of object-oriented design, the strategy design pattern is one way to conform to OOP principles and still achieve runtime flexibility.@@ -202,17 +207,19 @@ In React hooks components, the useState hook handles data updates, the useEffectCode Structure of React Hooks Components:```tsx-import React from "react";-import MyHooksComponent from "./MyHooksComponent";+import React from "react"++import MyHooksComponent from "./MyHooksComponent"+const App = () => {return (<div><h1>React Hooks Example</h1><MyHooksComponent /></div>- );-};-export default App;+ )+}+export default App```### 7\. Compound Component Pattern@@ -224,18 +231,20 @@ As a result, the user-friendly interface increases user interaction time with yoCode Structure of Compound Component Pattern:```tsx-import React from "react";-import CompoundComponentParent from "./CompoundComponentParent";-import { CompoundComponentA, CompoundComponentB } from "./CompoundComponents";+import React from "react"++import CompoundComponentParent from "./CompoundComponentParent"+import { CompoundComponentA, CompoundComponentB } from "./CompoundComponents"+const App = () => {return (<CompoundComponentParent><CompoundComponentA propA="Value for A" /><CompoundComponentB propB="Value for B" /></CompoundComponentParent>- );-};-export default App;+ )+}+export default App```### 8\. Render Prop Pattern@@ -249,17 +258,17 @@ For instance, you might wish to add a temperature conversion input field that alThese props take an input value and convert it to a corrected temperature in either K or °F.```tsx-import React, { useState } from "react";+import React, { useState } from "react"function Input(props) {- const [value, setValue] = useState("");+ const [value, setValue] = useState("")return (<><input value={value} onChange={(e) => setValue(e.target.value)} />{props.renderKelvin({ value: value + 273.15 })}{props.renderFahrenheit({ value: (value * 9) / 5 + 32 })}</>- );+ )}export default function App() {@@ -268,7 +277,7 @@ export default function App() {renderKelvin={({ value }) => <div className="temp">{value}K</div>}renderFahrenheit={({ value }) => <div className="temp">{value}°F</div>}/>- );+ )}```diff --git a/apps/www/content/blog/react-hero-component.mdx b/apps/www/content/blog/react-hero-component.mdxindex b4d88e38..5df34bb5 100644--- a/apps/www/content/blog/react-hero-component.mdx+++ b/apps/www/content/blog/react-hero-component.mdx@@ -226,7 +226,7 @@ Create `.css` files inside your project’s `src` directory for styling.[Import CSS files](https://www.w3schools.com/html/html_css.asp) into your React components using:```tsx-import "./App.css";+import "./App.css"```#### 4\. Apply Styles@@ -256,7 +256,7 @@ Change `.css` files to `.scss`.Import `.scss` files into React components with:```tsx-import "./App.scss";+import "./App.scss"```#### 5\. Compile Sass@@ -290,8 +290,9 @@ Styling a React Hero component using CSS is simple once you know how to do it. ATo start, we need to create a Hero component. Below is an example of a simple Hero Component built with React.```javascript-import React from "react";-import "./Hero.css";+import React from "react"++import "./Hero.css"const Hero = () => (<div className="hero">@@ -299,9 +300,9 @@ const Hero = () => (<p className="hero-subtitle">Discover amazing content</p> {" "}<button className="hero-cta">Get Started</button> {" "}</div>-);+)-export default Hero;+export default Hero```The first step is to import React and create a functional component. Next, we define the structure of the Hero component. In this example, the Hero Component contains a title, a subtitle, and a call to action button. We export the component so we can import and use it in other files.diff --git a/apps/www/content/blog/react-projects-for-beginners.mdx b/apps/www/content/blog/react-projects-for-beginners.mdxindex 73347012..b63a7f9f 100644--- a/apps/www/content/blog/react-projects-for-beginners.mdx+++ b/apps/www/content/blog/react-projects-for-beginners.mdx@@ -1,5 +1,5 @@----title: 'Top React Projects for Beginners in 2025: Start Building Today'+title: "Top React Projects for Beginners in 2025: Start Building Today"description: >-Discover the best react projects for beginners in 2025. Get inspired and startyour coding journey with these easy, impactful projects!@@ -12,9 +12,10 @@ tags:- beginner react- learn react- portfolio projects-publishedOn: '2025-09-24T06:58:18.209185+00:00'+publishedOn: "2025-09-24T06:58:18.209185+00:00"featured: true---+Starting with React can feel like navigating a vast ocean of components, hooks, and state management. The key to mastering it isn't just theory—it's building. Creating practical, hands-on projects solidifies your understanding, sharpens your skills, and builds a portfolio that speaks volumes. But where do you find the right projects? This guide cuts through the noise, rounding up the seven most effective platforms and resources for **react projects for beginners**.We'll explore each option, detailing what makes it unique, the skills you'll gain, and how to leverage it to accelerate your learning. To complement your project-based work, consider implementing other [strategies to master software development](https://deskcove.com/top-strategies-to-master-software-development-fast/) that can further enhance your progress.@@ -31,9 +32,9 @@ Magic UI distinguishes itself by providing developers with a vast toolkit of oveWhat truly sets Magic UI apart is its collection of over 150 free, open-source animated components. These elements empower you to add dynamic, engaging micro-interactions and effects that capture user attention and elevate the overall user experience. This focus on aesthetic and functional quality is why Magic UI has gained the trust of notable investors like Google Ventures and Y Combinator startups.-* **Modern Technology Stack:** Built with React, TypeScript, and Tailwind CSS, ensuring high performance, type safety, and a utility-first styling workflow.-* **Rapid Development:** The extensive library of blocks and templates significantly cuts down on development time for landing pages and UIs.-* **Dynamic Components:** Access a rich collection of free animated components to create visually dynamic and engaging interfaces. If you're looking for inspiration, you can explore the collection of [free React components available on their blog](https://magicui.design/blog/free-react-components).+- **Modern Technology Stack:** Built with React, TypeScript, and Tailwind CSS, ensuring high performance, type safety, and a utility-first styling workflow.+- **Rapid Development:** The extensive library of blocks and templates significantly cuts down on development time for landing pages and UIs.+- **Dynamic Components:** Access a rich collection of free animated components to create visually dynamic and engaging interfaces. If you're looking for inspiration, you can explore the collection of [free React components available on their blog](https://magicui.design/blog/free-react-components).### Practical Considerations@@ -57,12 +58,12 @@ The platform’s user experience is straightforward, with lifetime access to ove### Pros and Cons-| **Pros** | **Cons** |-| --- | --- |-| **Comprehensive Curriculum:** Covers React, Hooks, Redux, Next.js, and more. | **Overwhelming Scope:** The sheer volume of content might feel daunting for absolute novices. |-| **Project-Heavy:** Includes numerous guided projects to build a solid portfolio. | **Variable Pricing:** Cost can fluctuate significantly based on Udemy’s sales cycles. |-| **Active Community:** Large Q&A section provides robust student and instructor support. | |-| **Lifetime Access:** A one-time purchase grants permanent access to all future updates. | |+| **Pros** | **Cons** |+| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |+| **Comprehensive Curriculum:** Covers React, Hooks, Redux, Next.js, and more. | **Overwhelming Scope:** The sheer volume of content might feel daunting for absolute novices. |+| **Project-Heavy:** Includes numerous guided projects to build a solid portfolio. | **Variable Pricing:** Cost can fluctuate significantly based on Udemy’s sales cycles. |+| **Active Community:** Large Q&A section provides robust student and instructor support. | |+| **Lifetime Access:** A one-time purchase grants permanent access to all future updates. | |Ultimately, Udemy provides a well-trodden, reliable path for mastering React through hands-on projects, backed by a massive community and an expert instructor.@@ -84,12 +85,12 @@ The platform’s user experience is built for active participation. The free "Le### Pros and Cons-| **Pros** | **Cons** |-| --- | --- |-| **Very Beginner-Friendly:** The interactive learn-by-doing format is excellent for novices. | **Gated Content:** Some of the most valuable, career-oriented projects are behind the Pro paywall. |+| **Pros** | **Cons** |+| ------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |+| **Very Beginner-Friendly:** The interactive learn-by-doing format is excellent for novices. | **Gated Content:** Some of the most valuable, career-oriented projects are behind the Pro paywall. || **Clear, Progressive Curriculum:** Starts with basics and builds complexity through practical projects. | **Variable Pricing:** Subscription costs can vary by region and are only visible after creating an account. |-| **Engaged and Supportive Community:** Active Discord server for help and peer interaction. | |-| **Hands-On Learning:** In-lesson coding makes concepts stick better than passive video watching. | |+| **Engaged and Supportive Community:** Active Discord server for help and peer interaction. | |+| **Hands-On Learning:** In-lesson coding makes concepts stick better than passive video watching. | |In essence, Scrimba provides an engaging and highly effective path for beginners to master React by building a series of fun and functional projects, all within a single, interactive interface.@@ -111,12 +112,12 @@ Frontend Mentor's user experience is centered around its library of challenges,### Pros and Cons-| **Pros** | **Cons** |-| --- | --- |-| **Realistic Projects:** Build from professional designs, creating portfolio-worthy pieces. | **No Guided Learning:** Requires foundational knowledge of React; it's a practice platform, not a tutorial site. |-| **Active Community Feedback:** Get constructive criticism on your code and design implementation. | **Premium Features:** Access to Figma files and more complex challenges requires a Pro subscription. |-| **Free Tier Available:** Many high-quality challenges are available for free to get you started. | |-| **Builds Practical Skills:** Directly translates tutorial knowledge into real-world application building. | |+| **Pros** | **Cons** |+| --------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |+| **Realistic Projects:** Build from professional designs, creating portfolio-worthy pieces. | **No Guided Learning:** Requires foundational knowledge of React; it's a practice platform, not a tutorial site. |+| **Active Community Feedback:** Get constructive criticism on your code and design implementation. | **Premium Features:** Access to Figma files and more complex challenges requires a Pro subscription. |+| **Free Tier Available:** Many high-quality challenges are available for free to get you started. | |+| **Builds Practical Skills:** Directly translates tutorial knowledge into real-world application building. | |Ultimately, Frontend Mentor is the go-to platform for aspiring front-end developers looking to hone their React skills on realistic projects and build a compelling [React portfolio template](https://magicui.design/blog/react-portfolio-template).@@ -138,12 +139,12 @@ freeCodeCamp’s self-paced environment includes workshops, labs, and a fully up### Pros and Cons-| **Pros** | **Cons** |-| --- | --- |-| **100% Free Access:** No paywalls or hidden costs for any content or certificates. | **Lags on Cutting-Edge Updates:** May not always feature the absolute latest React features immediately. |-| **Build-As-You-Learn Exercises:** Interactive coding challenges reinforce concepts instantly. | **More Foundational:** Focuses heavily on fundamentals rather than advanced, complex architectures. |-| **Provides Free Certificates:** Showcase your achievements to potential employers. | |-| **Massive Global Community:** Get support and collaborate with peers from around the world. | |+| **Pros** | **Cons** |+| --------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |+| **100% Free Access:** No paywalls or hidden costs for any content or certificates. | **Lags on Cutting-Edge Updates:** May not always feature the absolute latest React features immediately. |+| **Build-As-You-Learn Exercises:** Interactive coding challenges reinforce concepts instantly. | **More Foundational:** Focuses heavily on fundamentals rather than advanced, complex architectures. |+| **Provides Free Certificates:** Showcase your achievements to potential employers. | |+| **Massive Global Community:** Get support and collaborate with peers from around the world. | |Ultimately, freeCodeCamp offers the most accessible and community-supported way to learn React. By following its curriculum, you’ll not only learn the library but also adopt some of the [best practices for React development](https://magicui.design/blog/react-best-practices) through hands-on, practical application.@@ -165,12 +166,12 @@ The platform is entirely text-based, presenting lessons and assignments in a cle### Pros and Cons-| **Pros** | **Cons** |-| --- | --- |-| **Completely Free:** No fees or subscriptions required for full access. | **Self-Directed Pacing:** Requires a high level of discipline and motivation to complete. |-| **Strongly Project-Oriented:** Builds portfolio-ready projects as part of the curriculum. | **Text-Based Learning:** May not suit learners who prefer video-based instruction. |+| **Pros** | **Cons** |+| -------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |+| **Completely Free:** No fees or subscriptions required for full access. | **Self-Directed Pacing:** Requires a high level of discipline and motivation to complete. |+| **Strongly Project-Oriented:** Builds portfolio-ready projects as part of the curriculum. | **Text-Based Learning:** May not suit learners who prefer video-based instruction. || **Active Community Support:** Large, helpful community on Discord for assistance and code reviews. | **Less Frequent Updates:** As a free resource, it may lag slightly behind the latest React features. |-| **Teaches Modern Tools:** Emphasizes current best practices and tools like Vite. | |+| **Teaches Modern Tools:** Emphasizes current best practices and tools like Vite. | |Ultimately, The Odin Project is an unparalleled free resource for disciplined beginners who want to learn React by doing, building a strong foundation and an impressive portfolio along the way.@@ -192,12 +193,12 @@ Packt provides flexible access options tailored to different needs. You can purc### Pros and Cons-| **Pros** | **Cons** |-| --- | --- |-| **Clear, Concrete Project Builds:** Ideal for offline reading and quick reference. | **Potential for Outdated Content:** Some editions may be a few years old, requiring minor updates. |-| **Flexible Buying Options:** Choose between a single book or full library subscription. | **Print Delivery Times:** Physical copies can take 10-15 business days to arrive in the US. |-| **Broad Topic Coverage:** Includes advanced concepts like PWAs and full-stack patterns. | |-| **Official Code Repository:** All project code is readily available on GitHub for easy access. | |+| **Pros** | **Cons** |+| ---------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |+| **Clear, Concrete Project Builds:** Ideal for offline reading and quick reference. | **Potential for Outdated Content:** Some editions may be a few years old, requiring minor updates. |+| **Flexible Buying Options:** Choose between a single book or full library subscription. | **Print Delivery Times:** Physical copies can take 10-15 business days to arrive in the US. |+| **Broad Topic Coverage:** Includes advanced concepts like PWAs and full-stack patterns. | |+| **Official Code Repository:** All project code is readily available on GitHub for easy access. | |Ultimately, Packt offers a focused, text-based path for developers who prefer to learn by reading and doing. It's a solid, self-paced alternative to video tutorials for building a strong foundation in React project development.@@ -205,15 +206,15 @@ Ultimately, Packt offers a focused, text-based path for developers who prefer to## Beginner React Project Platforms Comparison-| Item | Implementation Complexity 🔄 | Resource Requirements ⚡ | Expected Outcomes 📊 | Ideal Use Cases 💡 | Key Advantages ⭐ |-|-----------------|-------------------------------------|---------------------------------------|-------------------------------------------|-----------------------------------------------------|-------------------------------------------|-| Magic UI | Moderate: Familiarity with React & Tailwind beneficial | Moderate: Modern stack and UI blocks | High-quality, responsive web UI quickly | Rapid landing page creation for developers/designers | Rich customizable components, high performance, visually dynamic |-| Udemy | Moderate-High: Wide topic coverage | Moderate: Time investment for 70+ hrs | Solid React foundation & advanced skills | Structured course-based learning from beginner to advanced | Comprehensive, project-heavy, lifetime access, updated content |-| Scrimba | Low-Moderate: Interactive & beginner-friendly | Low: Hands-on coding environment | Practical coding skills with projects | Beginners seeking interactive, learn-by-doing courses | Interactive coding, clear progression, supportive community |-| Frontend Mentor | Low: No instruction, focused on practice | Low: Access to challenges, some free | Portfolio-ready real-world React projects | Practice React with professional UI/UX briefs | Real-world challenges, community feedback, free projects available |-| freeCodeCamp | Low-Moderate: Self-paced, requires self-motivation | Low: Entirely free with large community | Foundational React skills, certificates | Cost-free learning with structured React content | 100% free, massive community, up-to-date curriculum |-| The Odin Project| Moderate: Self-directed project-based | Low: Free access with community support | Portfolio projects with modern React tools| Learners wanting free, guided projects without cost | Project-oriented, modern tools, community help |-| Packt | Moderate: Reader-driven, project-based | Low-Moderate: Purchase needed | Referenceable project builds offline | Learners preferring structured, written project guides | Concrete projects, offline access, broad topic coverage |+| Item | Implementation Complexity 🔄 | Resource Requirements ⚡ | Expected Outcomes 📊 | Ideal Use Cases 💡 | Key Advantages ⭐ |+| ---------------- | ------------------------------------------------------ | --------------------------------------- | ------------------------------------------ | ---------------------------------------------------------- | ------------------------------------------------------------------ |+| Magic UI | Moderate: Familiarity with React & Tailwind beneficial | Moderate: Modern stack and UI blocks | High-quality, responsive web UI quickly | Rapid landing page creation for developers/designers | Rich customizable components, high performance, visually dynamic |+| Udemy | Moderate-High: Wide topic coverage | Moderate: Time investment for 70+ hrs | Solid React foundation & advanced skills | Structured course-based learning from beginner to advanced | Comprehensive, project-heavy, lifetime access, updated content |+| Scrimba | Low-Moderate: Interactive & beginner-friendly | Low: Hands-on coding environment | Practical coding skills with projects | Beginners seeking interactive, learn-by-doing courses | Interactive coding, clear progression, supportive community |+| Frontend Mentor | Low: No instruction, focused on practice | Low: Access to challenges, some free | Portfolio-ready real-world React projects | Practice React with professional UI/UX briefs | Real-world challenges, community feedback, free projects available |+| freeCodeCamp | Low-Moderate: Self-paced, requires self-motivation | Low: Entirely free with large community | Foundational React skills, certificates | Cost-free learning with structured React content | 100% free, massive community, up-to-date curriculum |+| The Odin Project | Moderate: Self-directed project-based | Low: Free access with community support | Portfolio projects with modern React tools | Learners wanting free, guided projects without cost | Project-oriented, modern tools, community help |+| Packt | Moderate: Reader-driven, project-based | Low-Moderate: Purchase needed | Referenceable project builds offline | Learners preferring structured, written project guides | Concrete projects, offline access, broad topic coverage |## Your Next Steps: Building Beyond the Tutorial@@ -225,9 +226,9 @@ The journey from a beginner to a proficient React developer is paved with consisSelecting the right starting point is crucial. Your decision should be guided by what you want to achieve.-* **For Structured, Guided Learning:** If you thrive with video-based instruction and a clear, step-by-step curriculum, platforms like **Udemy**, **Scrimba**, and **Packt** offer comprehensive courses that hold your hand through complex projects.-* **For Community-Driven, In-Depth Education:** If you prefer a more rigorous, self-paced, and text-based approach that mimics a full-stack curriculum, **The Odin Project** and **freeCodeCamp** are unparalleled. They foster a deep, fundamental understanding from the ground up.-* **For Real-World Practice and Portfolio Building:** **Frontend Mentor** is the ideal choice when you want to bridge the gap between tutorials and professional work. It provides professional designs and challenges you to build pixel-perfect applications, a skill highly valued by employers.+- **For Structured, Guided Learning:** If you thrive with video-based instruction and a clear, step-by-step curriculum, platforms like **Udemy**, **Scrimba**, and **Packt** offer comprehensive courses that hold your hand through complex projects.+- **For Community-Driven, In-Depth Education:** If you prefer a more rigorous, self-paced, and text-based approach that mimics a full-stack curriculum, **The Odin Project** and **freeCodeCamp** are unparalleled. They foster a deep, fundamental understanding from the ground up.+- **For Real-World Practice and Portfolio Building:** **Frontend Mentor** is the ideal choice when you want to bridge the gap between tutorials and professional work. It provides professional designs and challenges you to build pixel-perfect applications, a skill highly valued by employers.As you move beyond these initial projects, you will inevitably encounter challenges that tutorials don't cover. This is a natural part of the development process. When you get stuck on a tricky bug or a complex implementation detail, turning to community resources is essential. Invaluable platforms like [Stack Overflow](https://hyud.app/block-website/stack-overflow/google-chrome) offer a vast repository of questions and expert-verified solutions that can help you overcome any coding hurdle.@@ -239,4 +240,4 @@ Your portfolio is a testament to your growth. Start with one project, build it,----Ready to build stunning, modern UIs without the hassle? **Magic UI** offers a free, open-source library of animated components that you can drop directly into your React projects. Elevate your portfolio and impress employers by visiting [Magic UI](https://magicui.design) to get started.\ No newline at end of file+Ready to build stunning, modern UIs without the hassle? **Magic UI** offers a free, open-source library of animated components that you can drop directly into your React projects. Elevate your portfolio and impress employers by visiting [Magic UI](https://magicui.design) to get started.diff --git a/apps/www/content/blog/shadcn-ui.mdx b/apps/www/content/blog/shadcn-ui.mdxindex 22ff00d6..7f90c5ca 100644--- a/apps/www/content/blog/shadcn-ui.mdx+++ b/apps/www/content/blog/shadcn-ui.mdx@@ -124,7 +124,7 @@ import {DialogHeader,DialogTitle,DialogTrigger,-} from "@/components/ui/dialog";+} from "@/components/ui/dialog"function MyComponent() {return (@@ -140,7 +140,7 @@ function MyComponent() {</DialogHeader></DialogContent></Dialog>- );+ )}```@@ -252,17 +252,17 @@ Run that, and you'll see a new file, `button.tsx` (or `.jsx`), appear in your `cNow, you can import and use this button just like any other component you'd write from scratch.```jsx-import { Button } from "@/components/ui/button";+import { Button } from "@/components/ui/button"function MyFirstComponent() {return (<div className="p-4"><Button>Click me</Button></div>- );+ )}-export default MyFirstComponent;+export default MyFirstComponent```This simple workflow—initialize once, then add components as you need them—is the heart and soul of working with Shadcn UI.diff --git a/apps/www/content/blog/tailwind-border-radius.mdx b/apps/www/content/blog/tailwind-border-radius.mdxindex 2438f505..a720fc04 100644--- a/apps/www/content/blog/tailwind-border-radius.mdx+++ b/apps/www/content/blog/tailwind-border-radius.mdx@@ -34,18 +34,19 @@ First, make sure that your React project has Tailwind CSS properly configured. NLet's add a button to the `App.tsx`. We will apply just the base level of roundedness with `rounded`.```tsx-import "./App.css";-import "./index.css";+import "./App.css"+import "./index.css"+function App() {return (- <div className="w-full flex flex-rows items-center justify-center h-screen bg-gray-100 gap-4">- <button className="bg-blue-500 text-white px-4 py-2 rounded">+ <div className="flex-rows flex h-screen w-full items-center justify-center gap-4 bg-gray-100">+ <button className="rounded bg-blue-500 px-4 py-2 text-white">'rounded'</button></div>- );+ )}-export default App;+export default App```When rendered, this is what the button looks like - very aesthetically pleasing, right?@@ -55,27 +56,28 @@ When rendered, this is what the button looks like - very aesthetically pleasing,Let's add more rounded variations and see side-by-side how they compare.```tsx-import "./App.css";-import "./index.css";+import "./App.css"+import "./index.css"+function App() {return (- <div className="w-full flex flex-rows items-center justify-center h-screen bg-gray-100 gap-4">- <button className="bg-blue-500 text-white px-4 py-2">+ <div className="flex-rows flex h-screen w-full items-center justify-center gap-4 bg-gray-100">+ <button className="bg-blue-500 px-4 py-2 text-white">No Round Corners</button>- <button className="bg-blue-500 text-white px-4 py-2 rounded">+ <button className="rounded bg-blue-500 px-4 py-2 text-white">'rounded' Corners</button>- <button className="bg-blue-500 text-white px-4 py-2 rounded-md">+ <button className="rounded-md bg-blue-500 px-4 py-2 text-white">'rounded-md' Corners</button>- <button className="bg-blue-500 text-white px-4 py-2 rounded-full">+ <button className="rounded-full bg-blue-500 px-4 py-2 text-white">'rounded-full' Corners</button></div>- );+ )}-export default App;+export default App```Notice the different rounded utility classes added to each button element.@@ -89,19 +91,20 @@ When creating complex layouts, you can add more interactivity to your elements bHere's a sample React card that has `rounded-lg` applied at the start but when the user hovers over it, it changes to `rounded-none` giving the element sharp edges.```tsx-import "./App.css";-import "./index.css";+import "./App.css"+import "./index.css"+function App() {return (- <div className="w-full flex flex-rows items-center justify-center h-screen bg-gray-100 gap-4">- <div className="bg-white p-6 rounded-lg shadow-md hover:rounded-none">+ <div className="flex-rows flex h-screen w-full items-center justify-center gap-4 bg-gray-100">+ <div className="rounded-lg bg-white p-6 shadow-md hover:rounded-none"><h2 className="text-xl font-bold">Card Title</h2><p className="text-gray-700">This is a card with a border radius.</p></div></div>- );+ )}-export default App;+export default App```This is what it looks like when rendered:@@ -115,21 +118,22 @@ As with all the classes in Tailwind, you can apply different rounded classes basFor smaller screens, the card below will have medium roundedness applied. It will switch to Large [at the Medium breakpoint](https://tailwindcss.com/docs/screens) and then stay Extra Large for all of the bigger screens.```tsx-import "./App.css";-import "./index.css";+import "./App.css"+import "./index.css"+function App() {return (- <div className="w-full flex flex-rows items-center justify-center h-screen bg-gray-100 gap-4">- <div className="bg-white p-6 rounded-md md:rounded-lg lg:rounded-xl shadow-md">+ <div className="flex-rows flex h-screen w-full items-center justify-center gap-4 bg-gray-100">+ <div className="rounded-md bg-white p-6 shadow-md md:rounded-lg lg:rounded-xl"><h2 className="text-xl font-bold">Responsive Card Title</h2><p className="text-gray-700">This card adjusts its border radius based on the screen size.</p></div></div>- );+ )}-export default App;+export default App```## Next Stepsdiff --git a/apps/www/content/blog/tailwind-cdn-html.mdx b/apps/www/content/blog/tailwind-cdn-html.mdxindex 4f79946f..cf4a640a 100644--- a/apps/www/content/blog/tailwind-cdn-html.mdx+++ b/apps/www/content/blog/tailwind-cdn-html.mdx@@ -87,13 +87,13 @@ Create a basic HTML structure with some elements. Here’s an example:</head><body><div class="container mx-auto p-4">- <h1 class="text-4xl font-bold text-center text-gray-800">+ <h1 class="text-center text-4xl font-bold text-gray-800">Hello, Tailwind!</h1><p class="mt-4 text-lg text-gray-600">This is a paragraph styled with Tailwind CSS.</p>- <button class="mt-4 px-4 py-2 bg-blue-500 text-white rounded">+ <button class="mt-4 rounded bg-blue-500 px-4 py-2 text-white">Click Me</button></div>diff --git a/apps/www/content/blog/tailwind-css-grid.mdx b/apps/www/content/blog/tailwind-css-grid.mdxindex 0fac38cf..d191fc92 100644--- a/apps/www/content/blog/tailwind-css-grid.mdx+++ b/apps/www/content/blog/tailwind-css-grid.mdx@@ -77,33 +77,34 @@ Let's start by creating a simple Card component that we will use as the items inCreate a new file called `src/components/Card.tsx` :```tsx-import { FC } from "react";+import { FC } from "react"+const Card: FC<any> = () => {return (- <div className="max-w-sm rounded overflow-hidden shadow-md bg-white">+ <div className="max-w-sm overflow-hidden rounded bg-white shadow-md"><div className="px-6 py-4">- <div className="font-bold text-xl mb-2">Mountain Sunset</div>- <p className="text-gray-700 text-base">+ <div className="mb-2 text-xl font-bold">Mountain Sunset</div>+ <p className="text-base text-gray-700">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatibusquia, nulla! Maiores et perferendis eaque, exercitationem praesentiumnihil.</p></div><div className="px-6 pt-4 pb-2">- <span className="inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mr-2 mb-2">+ <span className="mr-2 mb-2 inline-block rounded-full bg-gray-200 px-3 py-1 text-sm font-semibold text-gray-700">#photography</span>- <span className="inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mr-2 mb-2">+ <span className="mr-2 mb-2 inline-block rounded-full bg-gray-200 px-3 py-1 text-sm font-semibold text-gray-700">#travel</span>- <span className="inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mb-2">+ <span className="mb-2 inline-block rounded-full bg-gray-200 px-3 py-1 text-sm font-semibold text-gray-700">#winter</span></div></div>- );-};-export default Card;+ )+}+export default Card```Add it to your `App.tsx` to see what it looks like when it's rendered. It should be something like this.@@ -117,19 +118,21 @@ Now is the fun part - setting up a grid component to hold all the cards.Create a new file called `src/components/CardGallery.tsx````tsx-import { FC } from "react";-import Card from "./Card";+import { FC } from "react"++import Card from "./Card"+const CardGallery: FC<any> = () => {return (- <div className="grid grid-col-3">+ <div className="grid-col-3 grid"><Card /><Card /><Card /><Card /></div>- );-};-export default CardGallery;+ )+}+export default CardGallery```Notice how we added the `grid` class to the parent div; this tells Tailwind to treat the children as grid items. With `grid-cols-3` , they get stacked horizontally one after another.@@ -141,19 +144,21 @@ I added a 4th Card to show how they they are ordered.They are a little too close, right? Let's add a gap.```tsx-import { FC } from "react";-import Card from "./Card";+import { FC } from "react"++import Card from "./Card"+const CardGallery: FC<any> = () => {return (- <div className="grid grid-col-3 gap-4">+ <div className="grid-col-3 grid gap-4"><Card /><Card /><Card /><Card /></div>- );-};-export default CardGallery;+ )+}+export default CardGallery```Much better, no?@@ -165,19 +170,21 @@ Much better, no?We can switch the layout to row-first like so. This will stack 3 cards vertically and then move to the next row.```tsx-import { FC } from "react";-import Card from "./Card";+import { FC } from "react"++import Card from "./Card"+const CardGallery: FC<any> = () => {return (- <div className="grid grid-rows-3 grid-flow-col gap-4">+ <div className="grid grid-flow-col grid-rows-3 gap-4"><Card /><Card /><Card /><Card /></div>- );-};-export default CardGallery;+ )+}+export default CardGallery```Here's what that looks like.diff --git a/apps/www/content/blog/tailwind-css-templates-free.mdx b/apps/www/content/blog/tailwind-css-templates-free.mdxindex 2b39a8c3..5bcfeda6 100644--- a/apps/www/content/blog/tailwind-css-templates-free.mdx+++ b/apps/www/content/blog/tailwind-css-templates-free.mdx@@ -12,9 +12,10 @@ tags:- free tailwind css- tailwind ui kits- react templates-publishedOn: '2025-09-23T07:03:28.298103+00:00'+publishedOn: "2025-09-23T07:03:28.298103+00:00"featured: true---+Tailwind CSS has revolutionized front-end development with its utility-first approach, but starting a new project from a blank slate can still be a significant time investment. That's where a solid template foundation comes in. High-quality templates provide the structural and design groundwork, saving you countless hours of initial setup and styling. The challenge, however, is navigating the vast number of online resources to find genuinely useful and well-coded **tailwind css templates free** of charge. This guide is designed to solve that problem.We have curated a definitive list of the 12 best platforms and collections offering free Tailwind templates. For each resource, you'll find a detailed analysis covering its ideal use cases, technical strengths, and any potential limitations to consider. Whether you're a freelancer building a portfolio, a startup launching a SaaS product, or a developer creating a complex admin dashboard, this list provides a vetted starting point to accelerate your workflow.@@ -31,18 +32,18 @@ While it offers comprehensive paid templates, its core strength for those seekin### Key Strengths & Use Cases-- **Component-Driven Design:** Instead of just providing static page templates, Magic UI delivers individual, animated components. This is ideal for developers who want to integrate unique, eye-catching elements like animated grids or meteor effects into an existing project without overhauling the entire design.-- **Modern Tech Stack:** Built for the React ecosystem, it’s a perfect fit for projects using Next.js or similar frameworks. The use of Typescript ensures type safety and better developer experience, reducing potential runtime errors.-- **Rapid Prototyping:** The copy-and-paste functionality is seamless. You can find a component, copy the code, and have a complex animation running in your local development environment in minutes, dramatically accelerating the prototyping phase.+- **Component-Driven Design:** Instead of just providing static page templates, Magic UI delivers individual, animated components. This is ideal for developers who want to integrate unique, eye-catching elements like animated grids or meteor effects into an existing project without overhauling the entire design.+- **Modern Tech Stack:** Built for the React ecosystem, it’s a perfect fit for projects using Next.js or similar frameworks. The use of Typescript ensures type safety and better developer experience, reducing potential runtime errors.+- **Rapid Prototyping:** The copy-and-paste functionality is seamless. You can find a component, copy the code, and have a complex animation running in your local development environment in minutes, dramatically accelerating the prototyping phase.----| Feature Analysis | Assessment |-| ----------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |-| **Free Offerings** | Excellent. The 150+ free animated components are high-quality and provide immense value, making it a top-tier resource. |-| **Technology Integration** | Specialized. Tailored for the React/Typescript/Tailwind ecosystem, which is a pro for developers in that niche but a potential barrier for others. |-| **Ease of Use** | Very Good. The platform is clean, and components are easy to find and implement. Familiarity with React and `npm`/`yarn` is necessary for smooth integration. |-| **Community & Support** | Growing. Backed by prominent investors, the project has strong momentum and an active community, ensuring future updates and support. |+| Feature Analysis | Assessment |+| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |+| **Free Offerings** | Excellent. The 150+ free animated components are high-quality and provide immense value, making it a top-tier resource. |+| **Technology Integration** | Specialized. Tailored for the React/Typescript/Tailwind ecosystem, which is a pro for developers in that niche but a potential barrier for others. |+| **Ease of Use** | Very Good. The platform is clean, and components are easy to find and implement. Familiarity with React and `npm`/`yarn` is necessary for smooth integration. |+| **Community & Support** | Growing. Backed by prominent investors, the project has strong momentum and an active community, ensuring future updates and support. |**Website:** [https://magicui.design](https://magicui.design)@@ -53,9 +54,10 @@ Tailwind Toolbox stands out as a foundational, community-driven hub for **tailwiThe user experience is clean and efficient. You can filter templates by categories like "Admin," "Landing Page," or "Blog," and each entry provides a live preview and a direct link to the GitHub repository. This transparency is a key differentiator; you can inspect the code, check for dependencies, and fork the project in seconds without creating an account. While some designs are minimalist and may target older Tailwind versions, they serve as perfect, lightweight boilerplates for custom projects.### Core Offerings & Use Cases-* **Starter Templates:** A diverse gallery of templates ideal for rapid prototyping or as a clean base for a new project.-* **Practical Use:** Best suited for developers who want a simple starting point to build upon, rather than a fully-featured, ready-to-deploy solution.-* **Pricing:** All resources are 100% free and open-source.++- **Starter Templates:** A diverse gallery of templates ideal for rapid prototyping or as a clean base for a new project.+- **Practical Use:** Best suited for developers who want a simple starting point to build upon, rather than a fully-featured, ready-to-deploy solution.+- **Pricing:** All resources are 100% free and open-source.**Website:** [Tailwind Toolbox](https://www.tailwindtoolbox.com/starter-templates?utm_source=openai)@@ -66,9 +68,10 @@ Creative Tim elevates the landscape of **tailwind css templates free** by offeriThe user experience is highly organized, allowing you to filter by technology like React, Vue, Next.js, and Angular, in addition to standard HTML. Each template comes with a comprehensive live preview and detailed documentation, which is a significant advantage. While account registration is typically required for downloads, the process is quick. The free versions are robust, but it's important to note they are often feature-limited to encourage upgrading to a PRO version, which unlocks more components and pages.### Core Offerings & Use Cases-* **Polished UI Kits & Dashboards:** A large collection of free templates that look and feel premium, perfect for building admin panels, SaaS interfaces, and presentation websites.-* **Framework-Specific Starters:** Best for developers committed to a specific JavaScript framework who want a pre-configured, well-documented starting point.-* **Pricing:** Offers a generous selection of free templates, with paid PRO versions available for expanded features and support.++- **Polished UI Kits & Dashboards:** A large collection of free templates that look and feel premium, perfect for building admin panels, SaaS interfaces, and presentation websites.+- **Framework-Specific Starters:** Best for developers committed to a specific JavaScript framework who want a pre-configured, well-documented starting point.+- **Pricing:** Offers a generous selection of free templates, with paid PRO versions available for expanded features and support.**Website:** [Creative Tim – Tailwind Free Templates](https://www.creative-tim.com/templates/tailwind-free?utm_source=openai)@@ -81,9 +84,10 @@ Cruip specializes in high-quality, production-ready landing pages and dashboardsThe user experience on the site is stellar, with clear live demos and direct access to GitHub repositories for each free template. A unique benefit is that some free offerings include accompanying Figma design files, which is a massive advantage for teams that want to customize visuals before coding. The primary trade-off is that more advanced pages and components are reserved for the paid versions, but the free templates are more than capable for single-page marketing sites or simple dashboard MVPs.### Core Offerings & Use Cases-* **Lite Templates:** A curated collection of landing pages and dashboards with modern UX/UI, available for multiple tech stacks.-* **Practical Use:** Ideal for developers building marketing websites for startups, SaaS products, or modern web applications that require a visually impressive and conversion-focused design.-* **Pricing:** "Lite" templates are completely free, with full-featured premium versions available for purchase.++- **Lite Templates:** A curated collection of landing pages and dashboards with modern UX/UI, available for multiple tech stacks.+- **Practical Use:** Ideal for developers building marketing websites for startups, SaaS products, or modern web applications that require a visually impressive and conversion-focused design.+- **Pricing:** "Lite" templates are completely free, with full-featured premium versions available for purchase.**Website:** [Cruip – Free Tailwind Templates](https://cruip.com/free-templates/?utm_source=openai)@@ -96,9 +100,10 @@ The platform excels at providing accessible, best-practice-driven code snippets### Core Offerings & Use Cases-* **Component-Driven Pages:** Free access to fully-coded application pages like pricing, login, and maintenance screens built with the core Flowbite component library.-* **Practical Use:** Ideal for developers who need to quickly assemble standard application views or want to learn how to structure pages using a component-based system.-* **Pricing:** The core component library and select page templates are free and open-source. Full template kits and Figma files are available via paid tiers.++- **Component-Driven Pages:** Free access to fully-coded application pages like pricing, login, and maintenance screens built with the core Flowbite component library.+- **Practical Use:** Ideal for developers who need to quickly assemble standard application views or want to learn how to structure pages using a component-based system.+- **Pricing:** The core component library and select page templates are free and open-source. Full template kits and Figma files are available via paid tiers.**Website:** [Flowbite](https://flowbite.com/application-ui/demo/pages/pricing/?utm_source=openai)@@ -111,9 +116,10 @@ The platform is exceptionally developer-friendly, with a clean interface that al### Core Offerings & Use Cases-* **Component Collections:** Hundreds of free, unstyled components for alerts, forms, navigation, marketing sections, and more.-* **Practical Use:** Ideal for developers building custom web applications or websites who need a wide variety of individual UI elements rather than a single cohesive theme.-* **Pricing:** Completely free and open-source under the MIT license.++- **Component Collections:** Hundreds of free, unstyled components for alerts, forms, navigation, marketing sections, and more.+- **Practical Use:** Ideal for developers building custom web applications or websites who need a wide variety of individual UI elements rather than a single cohesive theme.+- **Pricing:** Completely free and open-source under the MIT license.**Website:** [HyperUI](https://www.hyperui.dev/components/application?utm_source=openai)@@ -126,9 +132,10 @@ TailAdmin is a specialized powerhouse for developers needing a robust, open-sourThe user experience is developer-centric, with clear documentation and an active GitHub community. The free community edition is remarkably generous, offering dozens of pre-built UI components, charts, and essential dashboard layouts. While its focus is strictly on admin interfaces rather than marketing sites, this specialization is its core strength. Advanced features and more complex dashboards are reserved for the PRO version, but the free tier provides more than enough for building professional-grade backends. For more information, you can learn about building a SaaS with templates like [TailAdmin](https://magicui.design/docs/templates/saas).### Core Offerings & Use Cases-* **Multi-Framework Dashboards:** Offers consistent, high-quality dashboard templates for most popular frontend frameworks.-* **Practical Use:** Ideal for developers building data-rich applications like SaaS backends, e-commerce admin panels, or internal management systems.-* **Pricing:** A powerful free community edition is available, with a one-time payment for PRO features and additional components.++- **Multi-Framework Dashboards:** Offers consistent, high-quality dashboard templates for most popular frontend frameworks.+- **Practical Use:** Ideal for developers building data-rich applications like SaaS backends, e-commerce admin panels, or internal management systems.+- **Pricing:** A powerful free community edition is available, with a one-time payment for PRO features and additional components.**Website:** [TailAdmin](https://tailadmin.com/?utm_source=openai)@@ -141,9 +148,10 @@ UIdeck specializes in providing polished, business-oriented **tailwind css templThe user experience is straightforward, presenting templates in a clean gallery format with live previews and download links. While many high-quality templates are genuinely free, it's worth noting that some act as "lite" versions to upsell a more feature-rich pro kit. This is a fair trade-off, as the free versions are often more than sufficient for launching a new product or marketing campaign. The code is clean, responsive, and easy to customize, making it simple to adapt a template to a specific brand identity.### Core Offerings & Use Cases-* **Business & SaaS Templates:** A strong collection of landing pages and multi-page sites designed for commercial use.-* **Practical Use:** Ideal for entrepreneurs and marketing teams needing a professional-looking website quickly without designing from scratch.-* **Pricing:** Offers a mix of completely free templates and free "lite" versions of premium products.++- **Business & SaaS Templates:** A strong collection of landing pages and multi-page sites designed for commercial use.+- **Practical Use:** Ideal for entrepreneurs and marketing teams needing a professional-looking website quickly without designing from scratch.+- **Pricing:** Offers a mix of completely free templates and free "lite" versions of premium products.**Website:** [UIdeck](https://uideck.com/tailwind-templates?utm_source=openai)@@ -156,9 +164,10 @@ TailwindFlex operates as a massive, community-powered library focused on individThe user experience is built around a rapid copy-and-paste workflow. You find a component you like, view the code, and drop it directly into your project. While the open contribution model means design quality and consistency can vary, the platform's "trending" and "weekly" lists help surface the best and most popular submissions. This makes it an invaluable resource for breaking out of design ruts and discovering novel ways to apply Tailwind CSS utilities.### Core Offerings & Use Cases-* **Component Library:** An extensive collection of over 2,000 free, copy-paste-ready UI components and blocks.-* **Practical Use:** Ideal for developers who prefer to build pages piece by piece or need quick design patterns and inspiration for specific sections of a website.-* **Pricing:** All components are completely free for both personal and commercial projects.++- **Component Library:** An extensive collection of over 2,000 free, copy-paste-ready UI components and blocks.+- **Practical Use:** Ideal for developers who prefer to build pages piece by piece or need quick design patterns and inspiration for specific sections of a website.+- **Pricing:** All components are completely free for both personal and commercial projects.**Website:** [TailwindFlex](https://tailwindflex.com/?utm_source=openai)@@ -169,9 +178,10 @@ TailwindTemplate.co is a lean and efficient hub offering **tailwind css templateThe user experience is direct and uncluttered. Navigating the site is effortless, with clear previews and immediate access to the code. This direct-to-source approach is perfect for developers who want to grab a responsive layout and start customizing immediately without navigating complex dependencies or build tools. While its library is more modest compared to larger aggregators, the quality and minimalism of its offerings ensure that each template is a solid, unbloated foundation.### Core Offerings & Use Cases-* **Multi-Framework Snippets:** Provides ready-to-use code for HTML, React (using `className`), Vue, and Svelte, streamlining integration.-* **Practical Use:** Excellent for building quick, responsive landing pages, simple marketing sites, or starter UIs where minimal dependencies are a priority.-* **Pricing:** All templates and components are completely free and open-source.++- **Multi-Framework Snippets:** Provides ready-to-use code for HTML, React (using `className`), Vue, and Svelte, streamlining integration.+- **Practical Use:** Excellent for building quick, responsive landing pages, simple marketing sites, or starter UIs where minimal dependencies are a priority.+- **Pricing:** All templates and components are completely free and open-source.**Website:** TailwindTemplate.co@@ -184,9 +194,10 @@ Meraki UI offers a refined collection of **tailwind css templates free** to use,The platform is exceptionally developer-friendly, providing components compatible with modern frameworks like Vue 3 and Alpine.js, as well as Laravel Blade. Instead of offering monolithic templates, Meraki UI encourages a component-first approach, where you assemble a custom interface from its clean and modern building blocks. This method gives you more control and results in a more tailored final product. For a deeper dive into modern template options, you can explore more about [portfolio templates for developers](https://magicui.design/docs/templates/portfolio).### Core Offerings & Use Cases-* **RTL & Dark Mode Components:** A rich library of components with built-in support for RTL languages and dark themes, perfect for global applications.-* **Practical Use:** Ideal for developers who need to build accessible, multilingual websites or prefer to construct their UI from a set of well-designed, individual components.-* **Pricing:** All components and templates are completely free and open-source.++- **RTL & Dark Mode Components:** A rich library of components with built-in support for RTL languages and dark themes, perfect for global applications.+- **Practical Use:** Ideal for developers who need to build accessible, multilingual websites or prefer to construct their UI from a set of well-designed, individual components.+- **Pricing:** All components and templates are completely free and open-source.**Website:** [Meraki UI](https://merakiui.com/?utm_source=openai)@@ -199,30 +210,29 @@ While not a direct provider of full templates, daisyUI has become an essential eThe primary advantage of daisyUI is its use of semantic class names (e.g., `className="btn btn-primary"`) which significantly reduces HTML bloat and improves code readability. It's highly customizable with a powerful theme generator, dark mode support, and works seamlessly with any JavaScript framework. While you won't find complete, downloadable website templates here, its comprehensive component library empowers you to build them from scratch far more efficiently than with vanilla Tailwind alone.### Core Offerings & Use Cases-* **Component Library:** An extensive collection of pure CSS components that plug directly into Tailwind.-* **Practical Use:** Ideal for developers who want to maintain the power of utility classes but speed up development with pre-styled, semantic, and highly themeable UI elements.-* **Pricing:** Completely free and open-source.-**Website:** [daisyUI](https://daisyui.com/?utm_source=openai)+- **Component Library:** An extensive collection of pure CSS components that plug directly into Tailwind.+- **Practical Use:** Ideal for developers who want to maintain the power of utility classes but speed up development with pre-styled, semantic, and highly themeable UI elements.+- **Pricing:** Completely free and open-source.+**Website:** [daisyUI](https://daisyui.com/?utm_source=openai)## Comparison of 12 Free Tailwind CSS Template Sources-| Product | Core Features / Tech ✨ | User Experience ★★★★☆ | Value 💰 | Target Audience 👥 | Unique Selling Points 🏆 |-|------------------------------|----------------------------------------------------------|--------------------------------------------|----------------------------|--------------------------------|------------------------------------------------------|-| magicui Homepage | 50+ customizable blocks, React, TS, Tailwind CSS | High performance, responsive, intuitive | Premium-grade, sustained by investors 💰💰 | Developers & designers (all levels) 👥 | 150+ animated open-source components ✨ |-| Tailwind Toolbox | Free starter templates, GitHub links, live previews | Lightweight, easy to customize | Completely free 💰 | Beginners & quick template users 👥 | Simple, curated starter templates |-| Creative Tim – Tailwind Free| Free dashboards & UI kits, multi-framework support | Professional design quality ★★★★☆ | Free + paid upgrade options 💰 | Developers seeking polished multi-framework kits 👥 | Professional docs & wide framework support |-| Cruip – Free Tailwind | Multi-stack (Next.js, React, Vue, Laravel), Figma files | Modern UX, production-ready | Free Lite + paid versions 💰 | Marketing & admin dashboards users 👥 | Multi-stack support & Figma resources ✨ |-| Flowbite | UI components, prebuilt pages, accessibility focus | Extensive UI coverage, quick workflow | Free core + premium packs 💰 | Rapid UI builders & accessibility-focused devs 👥 | Ecosystem variants (React, Svelte) |-| HyperUI | Copy-paste small components, categorized by use case | Developer-friendly, modular | Fully free & open-source 💰 | Custom builders & tailwind v4 users 👥 | MIT licensed, no install needed |-| TailAdmin | Admin dashboards, multi-framework, updated regularly | Solid IA & docs, active community | Free base + PRO upgrades 💰 | Admin tool developers & dashboards 👥 | Multi-framework, strong admin focus |-| UIdeck – Free Tailwind | Business & startup landing templates | Responsive, modern, quick solutions | Mostly free, some paid kits 💰 | Startups, SaaS marketers 👥 | Frequent template updates |-| TailwindFlex | 2000+ components/examples, weekly updates | Huge variety for inspiration | 100% free 💰 | Designers & developers needing inspiration 👥 | Massive community-driven library |-| TailwindTemplate.co | Responsive templates, multi-framework examples | Simple, minimal dependencies | Fully free 💰 | Fast prototyping & minimalists 👥 | Lightweight, multi-framework snippets |-| Meraki UI | RTL & dark mode support, marketing & app UI components | Clean, modern, accessible | Free 💰 | Multilingual & RTL interface developers 👥 | Strong RTL support & Vue/Alpine.js/Laravel templates |-| daisyUI | 60+ pre-themed semantic components, theme generator | Fast assembly, reduced className bloat | Free & open-source 💰 | Developers preferring CSS plugins 👥 | Theme generator, dark mode support |-+| Product | Core Features / Tech ✨ | User Experience ★★★★☆ | Value 💰 | Target Audience 👥 | Unique Selling Points 🏆 |+| ---------------------------- | ------------------------------------------------------- | --------------------------------------- | ------------------------------------------ | --------------------------------------------------- | ---------------------------------------------------- |+| magicui Homepage | 50+ customizable blocks, React, TS, Tailwind CSS | High performance, responsive, intuitive | Premium-grade, sustained by investors 💰💰 | Developers & designers (all levels) 👥 | 150+ animated open-source components ✨ |+| Tailwind Toolbox | Free starter templates, GitHub links, live previews | Lightweight, easy to customize | Completely free 💰 | Beginners & quick template users 👥 | Simple, curated starter templates |+| Creative Tim – Tailwind Free | Free dashboards & UI kits, multi-framework support | Professional design quality ★★★★☆ | Free + paid upgrade options 💰 | Developers seeking polished multi-framework kits 👥 | Professional docs & wide framework support |+| Cruip – Free Tailwind | Multi-stack (Next.js, React, Vue, Laravel), Figma files | Modern UX, production-ready | Free Lite + paid versions 💰 | Marketing & admin dashboards users 👥 | Multi-stack support & Figma resources ✨ |+| Flowbite | UI components, prebuilt pages, accessibility focus | Extensive UI coverage, quick workflow | Free core + premium packs 💰 | Rapid UI builders & accessibility-focused devs 👥 | Ecosystem variants (React, Svelte) |+| HyperUI | Copy-paste small components, categorized by use case | Developer-friendly, modular | Fully free & open-source 💰 | Custom builders & tailwind v4 users 👥 | MIT licensed, no install needed |+| TailAdmin | Admin dashboards, multi-framework, updated regularly | Solid IA & docs, active community | Free base + PRO upgrades 💰 | Admin tool developers & dashboards 👥 | Multi-framework, strong admin focus |+| UIdeck – Free Tailwind | Business & startup landing templates | Responsive, modern, quick solutions | Mostly free, some paid kits 💰 | Startups, SaaS marketers 👥 | Frequent template updates |+| TailwindFlex | 2000+ components/examples, weekly updates | Huge variety for inspiration | 100% free 💰 | Designers & developers needing inspiration 👥 | Massive community-driven library |+| TailwindTemplate.co | Responsive templates, multi-framework examples | Simple, minimal dependencies | Fully free 💰 | Fast prototyping & minimalists 👥 | Lightweight, multi-framework snippets |+| Meraki UI | RTL & dark mode support, marketing & app UI components | Clean, modern, accessible | Free 💰 | Multilingual & RTL interface developers 👥 | Strong RTL support & Vue/Alpine.js/Laravel templates |+| daisyUI | 60+ pre-themed semantic components, theme generator | Fast assembly, reduced className bloat | Free & open-source 💰 | Developers preferring CSS plugins 👥 | Theme generator, dark mode support |## Choosing the Right Free Template for Your Next Project@@ -234,10 +244,10 @@ Your choice should be a strategic one. For a startup needing a polished marketinBefore committing to a template, use this simple checklist to guide your decision-making process. A few minutes of upfront analysis can save you hours of refactoring down the line.-* **Project Scope:** Is this a single landing page, a multi-page marketing site, a web application, or a full-blown SaaS dashboard? A component library like HyperUI or Meraki UI is ideal for custom builds, while a full-site template is better for standard projects.-* **Technical Stack:** Does the template offer variants for your chosen framework (React, Vue, Svelte)? While plain HTML templates like those from Tailwind Toolbox are universally adaptable, a framework-specific version can save significant integration time.-* **Design Customization:** How much do you plan to alter the design? Some templates are highly opinionated, making them difficult to restyle. Others, like daisyUI, offer extensive theming capabilities, providing a solid, customizable design system from the start. To truly understand what makes a great design, explore [stellar website layout design examples](https://feather.so/blog/website-layout-design-examples) that can inspire your template selection process.-* **Component Needs:** Do you require complex, interactive elements like animated components? If so, a resource like Magic UI is specifically built for that purpose, offering components that would be time-consuming to build from scratch.+- **Project Scope:** Is this a single landing page, a multi-page marketing site, a web application, or a full-blown SaaS dashboard? A component library like HyperUI or Meraki UI is ideal for custom builds, while a full-site template is better for standard projects.+- **Technical Stack:** Does the template offer variants for your chosen framework (React, Vue, Svelte)? While plain HTML templates like those from Tailwind Toolbox are universally adaptable, a framework-specific version can save significant integration time.+- **Design Customization:** How much do you plan to alter the design? Some templates are highly opinionated, making them difficult to restyle. Others, like daisyUI, offer extensive theming capabilities, providing a solid, customizable design system from the start. To truly understand what makes a great design, explore [stellar website layout design examples](https://feather.so/blog/website-layout-design-examples) that can inspire your template selection process.+- **Component Needs:** Do you require complex, interactive elements like animated components? If so, a resource like Magic UI is specifically built for that purpose, offering components that would be time-consuming to build from scratch.### Final Thoughts: From Template to Launch@@ -245,6 +255,6 @@ The true power of using **tailwind css templates free** lies in their ability toExperiment with the options on this list. Clone a repository, play with the components, and see how a template feels within your own workflow. The right resource will not only speed up your current project but will also teach you new patterns and best practices, making you a more efficient and effective developer in the future.-***+----Ready to elevate your projects with stunning, production-ready animated components? **Magic UI** offers a library of over 100 free, open-source components built with Tailwind CSS, Framer Motion, and React. Go beyond static templates and start building dynamic, memorable user experiences today by visiting [Magic UI](https://magicui.design).\ No newline at end of file+Ready to elevate your projects with stunning, production-ready animated components? **Magic UI** offers a library of over 100 free, open-source components built with Tailwind CSS, Framer Motion, and React. Go beyond static templates and start building dynamic, memorable user experiences today by visiting [Magic UI](https://magicui.design).diff --git a/apps/www/content/blog/tailwind-font-size.mdx b/apps/www/content/blog/tailwind-font-size.mdxindex aa6d120d..42d5bba9 100644--- a/apps/www/content/blog/tailwind-font-size.mdx+++ b/apps/www/content/blog/tailwind-font-size.mdx@@ -54,11 +54,12 @@ Open [http://localhost:3000](http://localhost:3000) in your browser to see yourLet's start by adding some text and applying the pre-defined font sizes to them. Edit your `App.tsx` with:```tsx-import "./App.css";-import "./index.css";+import "./App.css"+import "./index.css"+function App() {return (- <div className="w-full flex flex-col items-center justify-center h-screen bg-gray-100 gap-4">+ <div className="flex h-screen w-full flex-col items-center justify-center gap-4 bg-gray-100"><p className="text-xs">Text size xs</p><p className="text-sm">Text size sm</p><p className="text-base">Text size base</p>@@ -73,9 +74,9 @@ function App() {<p className="text-8xl">Text size 8xl</p><p className="text-9xl">Text size 9xl</p></div>- );+ )}-export default App;+export default App```This is how the sizes look like when previewed.@@ -85,13 +86,14 @@ This is how the sizes look like when previewed.By combining font sizes with other text styles, you can start creating more complex layouts like so:```tsx-import "./App.css";-import "./index.css";+import "./App.css"+import "./index.css"+function App() {return (- <div className="w-full flex flex-col items-center justify-center h-screen bg-gray-100 gap-4">+ <div className="flex h-screen w-full flex-col items-center justify-center gap-4 bg-gray-100"><div className="max-w-xl text-center">- <h1 className="text-5xl font-bold underline text-center mb-4">+ <h1 className="mb-4 text-center text-5xl font-bold underline">Welcome to Tailwind CSS</h1><p className="text-xl text-gray-600">@@ -99,15 +101,15 @@ function App() {framework for rapidly building custom designs.</p><div className="mt-2">- <button className="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">+ <button className="rounded bg-blue-500 px-4 py-2 font-bold text-white hover:bg-blue-700">Get Started</button></div></div></div>- );+ )}-export default App;+export default App```This is what it looks like with a heading text up top, then a description followed by a button.@@ -123,13 +125,14 @@ Tailwind lets you easily change font sizes to ensure that your text is readableWe can make the above text layout responsive by adding in the `md:` utility class with bigger font sizes so that on mobile, the font size would be `3xl` but on a bigger screen, it will scale to `5xl`.```tsx-import "./App.css";-import "./index.css";+import "./App.css"+import "./index.css"+function App() {return (- <div className="w-full flex flex-col items-center justify-center h-screen bg-gray-100 gap-4">+ <div className="flex h-screen w-full flex-col items-center justify-center gap-4 bg-gray-100"><div className="max-w-xl text-center">- <h1 className="text-3xl font-bold underline text-center mb-4 md:text-5xl">+ <h1 className="mb-4 text-center text-3xl font-bold underline md:text-5xl">Welcome to Tailwind CSS</h1><p className="text-lg text-gray-600 md:text-2xl">@@ -137,15 +140,15 @@ function App() {framework for rapidly building custom designs.</p><div className="mt-2">- <button className="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">+ <button className="rounded bg-blue-500 px-4 py-2 font-bold text-white hover:bg-blue-700">Get Started</button></div></div></div>- );+ )}-export default App;+export default App```Test this out by opening DevTools (Cmd + Shift + C on Mac) and varying the screen size. You will see that the 2 text lines will change their respective sizes.@@ -168,7 +171,7 @@ module.exports = {},},},-};+}```The new sizes will then be available for use like this.@@ -180,9 +183,9 @@ function CustomFontSizeComponent() {<p className="text-xxs">This is extra extra small text.</p><p className="text-xxl">This is extra extra large text.</p></div>- );+ )}-export default CustomFontSizeComponent;+export default CustomFontSizeComponent```## Next Stepsdiff --git a/apps/www/content/blog/tailwind-landing-page.mdx b/apps/www/content/blog/tailwind-landing-page.mdxindex 957b7842..e2d04ae8 100644--- a/apps/www/content/blog/tailwind-landing-page.mdx+++ b/apps/www/content/blog/tailwind-landing-page.mdx@@ -124,8 +124,8 @@ Create the main sections of your landing page such as Header, Hero, Features, CaTo style your landing page using Tailwind CSS utility classes, you can add various classes to your HTML elements. For example:```html-<header class="bg-gray-800 text-white py-4">- <nav class="container mx-auto flex justify-between items-center">+<header class="bg-gray-800 py-4 text-white">+ <nav class="container mx-auto flex items-center justify-between"><a href="#" class="text-xl font-bold">Your Logo</a><ul class="flex space-x-4"><li><a href="#" class="hover:text-gray-400">Home</a></li>diff --git a/apps/www/content/blog/text-animation-css.mdx b/apps/www/content/blog/text-animation-css.mdxindex c58a3c2b..7e8b4080 100644--- a/apps/www/content/blog/text-animation-css.mdx+++ b/apps/www/content/blog/text-animation-css.mdx@@ -310,7 +310,7 @@ Render the components in your JSX code to display the animated text elements on### Example```javascript-import { FadeIn, Typewriter } from "magicui";+import { FadeIn, Typewriter } from "magicui"function MyComponent() {return (@@ -318,6 +318,6 @@ function MyComponent() {<FadeIn>Welcome to my website!</FadeIn><Typewriter text="This is a typing effect." /></div>- );+ )}```diff --git a/apps/www/content/blog/ui-animation.mdx b/apps/www/content/blog/ui-animation.mdxindex 45f749f3..fd9a2885 100644--- a/apps/www/content/blog/ui-animation.mdx+++ b/apps/www/content/blog/ui-animation.mdx@@ -176,14 +176,15 @@ Disadvantages#### Example (using Framer Motion)```javascript-import { motion } from "framer-motion";+import { motion } from "framer-motion"+const Button = () => {return (<motion.button whileHover={{ scale: 1.1 }} whileTap={{ scale: 0.9 }}>Click me</motion.button>- );-};+ )+}```#### Use Code With Caution.@@ -205,10 +206,11 @@ Disadvantages#### Example (using MagicUI)```javascript-import { Button } from "magicui";+import { Button } from "magicui"+const MyComponent = () => {- return <Button variant="primary">Click me</Button>;-};+ return <Button variant="primary">Click me</Button>+}```#### Use Code With Caution.diff --git a/apps/www/content/docs/components/android.mdx b/apps/www/content/docs/components/android.mdxindex 7c77c7c2..06876dc0 100644--- a/apps/www/content/docs/components/android.mdx+++ b/apps/www/content/docs/components/android.mdx@@ -51,7 +51,7 @@ npx shadcn@latest add @magicui/android## Usage```tsx showLineNumbers-import { Android } from "@/components/magicui/android";+import { Android } from "@/components/magicui/android"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/animated-beam.mdx b/apps/www/content/docs/components/animated-beam.mdxindex 61f15b62..58fd4585 100644--- a/apps/www/content/docs/components/animated-beam.mdx+++ b/apps/www/content/docs/components/animated-beam.mdx@@ -62,7 +62,7 @@ npx shadcn@latest add @magicui/animated-beam## Usage```tsx showLineNumbers-import { AnimatedBeam } from "@/components/magicui/animated-beam";+import { AnimatedBeam } from "@/components/magicui/animated-beam"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/animated-circular-progress-bar.mdx b/apps/www/content/docs/components/animated-circular-progress-bar.mdxindex 566ec99c..4544a4d5 100644--- a/apps/www/content/docs/components/animated-circular-progress-bar.mdx+++ b/apps/www/content/docs/components/animated-circular-progress-bar.mdx@@ -43,7 +43,7 @@ npx shadcn@latest add @magicui/animated-circular-progress-bar## Usage```tsx showLineNumbers-import { AnimatedCircularProgressBar } from "@/components/magicui/animated-circular-progress-bar";+import { AnimatedCircularProgressBar } from "@/components/magicui/animated-circular-progress-bar"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/animated-gradient-text.mdx b/apps/www/content/docs/components/animated-gradient-text.mdxindex 862e8aff..9e38731e 100644--- a/apps/www/content/docs/components/animated-gradient-text.mdx+++ b/apps/www/content/docs/components/animated-gradient-text.mdx@@ -66,7 +66,7 @@ Add the following animations to your global CSS file.### Usage```tsx showLineNumbers-import { AnimatedGradientText } from "@/components/magicui/animated-gradient-text";+import { AnimatedGradientText } from "@/components/magicui/animated-gradient-text"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/animated-grid-pattern.mdx b/apps/www/content/docs/components/animated-grid-pattern.mdxindex 65095935..c1e83661 100644--- a/apps/www/content/docs/components/animated-grid-pattern.mdx+++ b/apps/www/content/docs/components/animated-grid-pattern.mdx@@ -43,7 +43,7 @@ npx shadcn@latest add @magicui/animated-grid-pattern## Usage```tsx showLineNumbers-import { AnimatedGridPattern } from "@/components/magicui/animated-grid-pattern";+import { AnimatedGridPattern } from "@/components/magicui/animated-grid-pattern"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/animated-list.mdx b/apps/www/content/docs/components/animated-list.mdxindex 19c91003..d8ace862 100644--- a/apps/www/content/docs/components/animated-list.mdx+++ b/apps/www/content/docs/components/animated-list.mdx@@ -43,7 +43,7 @@ npx shadcn@latest add @magicui/animated-list## Usage```tsx showLineNumbers-import { AnimatedList } from "@/components/magicui/animated-list";+import { AnimatedList } from "@/components/magicui/animated-list"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/animated-shiny-text.mdx b/apps/www/content/docs/components/animated-shiny-text.mdxindex a502f6b0..ed04433a 100644--- a/apps/www/content/docs/components/animated-shiny-text.mdx+++ b/apps/www/content/docs/components/animated-shiny-text.mdx@@ -66,7 +66,7 @@ Add the following animations to your global CSS file.## Usage```tsx showLineNumbers-import { AnimatedShinyText } from "@/components/magicui/animated-shiny-text";+import { AnimatedShinyText } from "@/components/magicui/animated-shiny-text"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/animated-subscribe-button.mdx b/apps/www/content/docs/components/animated-subscribe-button.mdxindex 0f5e54d8..619436eb 100644--- a/apps/www/content/docs/components/animated-subscribe-button.mdx+++ b/apps/www/content/docs/components/animated-subscribe-button.mdx@@ -43,7 +43,7 @@ npx shadcn@latest add @magicui/animated-subscribe-button## Usage```tsx showLineNumbers-import { AnimatedSubscribeButton } from "@/components/magicui/animated-subscribe-button";+import { AnimatedSubscribeButton } from "@/components/magicui/animated-subscribe-button"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/animated-theme-toggler.mdx b/apps/www/content/docs/components/animated-theme-toggler.mdxindex e7e82972..938cc6d7 100644--- a/apps/www/content/docs/components/animated-theme-toggler.mdx+++ b/apps/www/content/docs/components/animated-theme-toggler.mdx@@ -53,7 +53,7 @@ npx shadcn@latest add @magicui/animated-theme-toggler## Usage```tsx showLineNumbers-import { AnimatedThemeToggler } from "@/components/magicui/animated-theme-toggler";+import { AnimatedThemeToggler } from "@/components/magicui/animated-theme-toggler"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/arc-timeline.mdx b/apps/www/content/docs/components/arc-timeline.mdxindex c6837372..ade83a27 100644--- a/apps/www/content/docs/components/arc-timeline.mdx+++ b/apps/www/content/docs/components/arc-timeline.mdx@@ -41,7 +41,7 @@ npx shadcn@latest add @magicui/arc-timeline## Usage```tsx showLineNumbers-import { ArcTimeline } from "@/components/magicui/arc-timeline";+import { ArcTimeline } from "@/components/magicui/arc-timeline"``````tsx showLineNumbers@@ -57,9 +57,9 @@ const data = [time: "2026",steps: [{ icon: <span>📈</span>, content: "Growth" }],},-];+]-<ArcTimeline data={data} />;+;<ArcTimeline data={data} />```## Propsdiff --git a/apps/www/content/docs/components/aurora-text.mdx b/apps/www/content/docs/components/aurora-text.mdxindex 21c5bf1d..5bf31010 100644--- a/apps/www/content/docs/components/aurora-text.mdx+++ b/apps/www/content/docs/components/aurora-text.mdx@@ -76,7 +76,7 @@ Add the following animations to your global CSS file.## Usage```tsx showLineNumbers-import { AuroraText } from "@/components/magicui/aurora-text";+import { AuroraText } from "@/components/magicui/aurora-text"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/avatar-circles.mdx b/apps/www/content/docs/components/avatar-circles.mdxindex ab724701..4cca9f17 100644--- a/apps/www/content/docs/components/avatar-circles.mdx+++ b/apps/www/content/docs/components/avatar-circles.mdx@@ -43,7 +43,7 @@ npx shadcn@latest add @magicui/avatar-circles## Usage```tsx showLineNumbers-import { AvatarCircles } from "@/components/magicui/avatar-circles";+import { AvatarCircles } from "@/components/magicui/avatar-circles"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/bento-grid.mdx b/apps/www/content/docs/components/bento-grid.mdxindex cbf4a125..797fa140 100644--- a/apps/www/content/docs/components/bento-grid.mdx+++ b/apps/www/content/docs/components/bento-grid.mdx@@ -47,7 +47,7 @@ npx shadcn@latest add @magicui/bento-grid## Usage```tsx showLineNumbers-import { BentoCard, BentoGrid } from "@/components/magicui/bento-grid";+import { BentoCard, BentoGrid } from "@/components/magicui/bento-grid"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/blur-fade.mdx b/apps/www/content/docs/components/blur-fade.mdxindex 39a97dac..1f953d32 100644--- a/apps/www/content/docs/components/blur-fade.mdx+++ b/apps/www/content/docs/components/blur-fade.mdx@@ -47,7 +47,7 @@ npx shadcn@latest add @magicui/blur-fade## Usage```tsx showLineNumbers-import { BlurFade } from "@/components/magicui/blur-fade";+import { BlurFade } from "@/components/magicui/blur-fade"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/border-beam.mdx b/apps/www/content/docs/components/border-beam.mdxindex 3724ac67..4f28036a 100644--- a/apps/www/content/docs/components/border-beam.mdx+++ b/apps/www/content/docs/components/border-beam.mdx@@ -56,7 +56,7 @@ npx shadcn@latest add @magicui/border-beam## Usage```tsx showLineNumbers-import { BorderBeam } from "@/components/magicui/border-beam";+import { BorderBeam } from "@/components/magicui/border-beam"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/box-reveal.mdx b/apps/www/content/docs/components/box-reveal.mdxindex adcf112e..2072dc56 100644--- a/apps/www/content/docs/components/box-reveal.mdx+++ b/apps/www/content/docs/components/box-reveal.mdx@@ -43,7 +43,7 @@ npx shadcn@latest add @magicui/box-reveal## Usage```tsx showLineNumbers-import { BoxReveal } from "@/components/magicui/box-reveal";+import { BoxReveal } from "@/components/magicui/box-reveal"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/code-comparison.mdx b/apps/www/content/docs/components/code-comparison.mdxindex 0b969b3e..389ee979 100644--- a/apps/www/content/docs/components/code-comparison.mdx+++ b/apps/www/content/docs/components/code-comparison.mdx@@ -41,7 +41,7 @@ npx shadcn@latest add @magicui/code-comparison## Usage```tsx showLineNumbers-import { CodeComparison } from "@/components/magicui/code-comparison";+import { CodeComparison } from "@/components/magicui/code-comparison"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/comic-text.mdx b/apps/www/content/docs/components/comic-text.mdxindex 128fd38e..efad78f9 100644--- a/apps/www/content/docs/components/comic-text.mdx+++ b/apps/www/content/docs/components/comic-text.mdx@@ -43,7 +43,7 @@ npx shadcn@latest add @magicui/comic-text## Usage```tsx showLineNumbers-import { ComicText } from "@/components/magicui/comic-text";+import { ComicText } from "@/components/magicui/comic-text"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/confetti.mdx b/apps/www/content/docs/components/confetti.mdxindex b33bf4e0..9026eba2 100644--- a/apps/www/content/docs/components/confetti.mdx+++ b/apps/www/content/docs/components/confetti.mdx@@ -79,7 +79,7 @@ npm install canvas-confetti### Usage```tsx showLineNumbers-import { Confetti } from "@/components/magicui/confetti";+import { Confetti } from "@/components/magicui/confetti"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/cool-mode.mdx b/apps/www/content/docs/components/cool-mode.mdxindex ffbf24fc..4b8d2ac3 100644--- a/apps/www/content/docs/components/cool-mode.mdx+++ b/apps/www/content/docs/components/cool-mode.mdx@@ -49,7 +49,7 @@ npx shadcn@latest add @magicui/cool-mode### Usage```tsx showLineNumbers-import { CoolMode } from "@/components/magicui/cool-mode";+import { CoolMode } from "@/components/magicui/cool-mode"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/dock.mdx b/apps/www/content/docs/components/dock.mdxindex 73b896b2..4a280e85 100644--- a/apps/www/content/docs/components/dock.mdx+++ b/apps/www/content/docs/components/dock.mdx@@ -54,8 +54,9 @@ npx shadcn@latest add @magicui/dock## Usage```tsx showLineNumbers-import { Dock, DockIcon } from "@/components/magicui/dock";-import { Home, Settings, Search } from "lucide-react";+import { Home, Search, Settings } from "lucide-react"++import { Dock, DockIcon } from "@/components/magicui/dock"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/dot-pattern.mdx b/apps/www/content/docs/components/dot-pattern.mdxindex cc7e023b..8d2aa5b4 100644--- a/apps/www/content/docs/components/dot-pattern.mdx+++ b/apps/www/content/docs/components/dot-pattern.mdx@@ -54,7 +54,7 @@ npx shadcn@latest add @magicui/dot-pattern### Usage```tsx showLineNumbers-import { DotPattern } from "@/components/magicui/dot-pattern";+import { DotPattern } from "@/components/magicui/dot-pattern"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/file-tree.mdx b/apps/www/content/docs/components/file-tree.mdxindex 3da84b46..9baab909 100644--- a/apps/www/content/docs/components/file-tree.mdx+++ b/apps/www/content/docs/components/file-tree.mdx@@ -43,7 +43,7 @@ npx shadcn@latest add @magicui/file-tree## Usage```tsx showLineNumbers-import { File, Folder, Tree } from "@/components/magicui/file-tree";+import { File, Folder, Tree } from "@/components/magicui/file-tree"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/flickering-grid.mdx b/apps/www/content/docs/components/flickering-grid.mdxindex d5207380..a26445b1 100644--- a/apps/www/content/docs/components/flickering-grid.mdx+++ b/apps/www/content/docs/components/flickering-grid.mdx@@ -49,7 +49,7 @@ npx shadcn@latest add @magicui/flickering-grid### Usage```tsx showLineNumbers-import { FlickeringGrid } from "@/components/magicui/flickering-grid";+import { FlickeringGrid } from "@/components/magicui/flickering-grid"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/flip-text.mdx b/apps/www/content/docs/components/flip-text.mdxindex c71c17b5..eb0339a8 100644--- a/apps/www/content/docs/components/flip-text.mdx+++ b/apps/www/content/docs/components/flip-text.mdx@@ -43,7 +43,7 @@ npx shadcn@latest add @magicui/flip-text## Usage```tsx showLineNumbers-import { FlipText } from "@/components/magicui/flip-text";+import { FlipText } from "@/components/magicui/flip-text"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/globe.mdx b/apps/www/content/docs/components/globe.mdxindex c44f2345..eb58fe9e 100644--- a/apps/www/content/docs/components/globe.mdx+++ b/apps/www/content/docs/components/globe.mdx@@ -50,7 +50,7 @@ npm install cobe motion## Usage```tsx showLineNumbers-import { Globe } from "@/components/magicui/globe";+import { Globe } from "@/components/magicui/globe"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/grid-beams.mdx b/apps/www/content/docs/components/grid-beams.mdxindex 15dbd467..9d9b8449 100644--- a/apps/www/content/docs/components/grid-beams.mdx+++ b/apps/www/content/docs/components/grid-beams.mdx@@ -43,7 +43,7 @@ npx shadcn@latest add @magicui/grid-beams## Usage```tsx showLineNumbers-import { GridBeams } from "@/components/magicui/grid-beams";+import { GridBeams } from "@/components/magicui/grid-beams"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/grid-pattern.mdx b/apps/www/content/docs/components/grid-pattern.mdxindex f89cb780..d20ff670 100644--- a/apps/www/content/docs/components/grid-pattern.mdx+++ b/apps/www/content/docs/components/grid-pattern.mdx@@ -54,7 +54,7 @@ npx shadcn@latest add @magicui/grid-pattern### Usage```tsx showLineNumbers-import { GridPattern } from "@/components/magicui/grid-pattern";+import { GridPattern } from "@/components/magicui/grid-pattern"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/hero-video-dialog.mdx b/apps/www/content/docs/components/hero-video-dialog.mdxindex 4e6b356c..f368d226 100644--- a/apps/www/content/docs/components/hero-video-dialog.mdx+++ b/apps/www/content/docs/components/hero-video-dialog.mdx@@ -49,7 +49,7 @@ npx shadcn@latest add @magicui/hero-video-dialog## Usage```tsx showLineNumbers-import { HeroVideoDialog } from "@/components/magicui/hero-video-dialog";+import { HeroVideoDialog } from "@/components/magicui/hero-video-dialog"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/highlighter.mdx b/apps/www/content/docs/components/highlighter.mdxindex 9b845574..d3c0922d 100644--- a/apps/www/content/docs/components/highlighter.mdx+++ b/apps/www/content/docs/components/highlighter.mdx@@ -41,7 +41,7 @@ npx shadcn@latest add @magicui/highlighter## Usage```tsx showLineNumbers-import { Highlighter } from "@/components/magicui/highlighter";+import { Highlighter } from "@/components/magicui/highlighter"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/hyper-text.mdx b/apps/www/content/docs/components/hyper-text.mdxindex 23fc0b8c..7a3e2287 100644--- a/apps/www/content/docs/components/hyper-text.mdx+++ b/apps/www/content/docs/components/hyper-text.mdx@@ -49,7 +49,7 @@ npm install motion## Usage```tsx showLineNumbers-import { HyperText } from "@/components/magicui/hyper-text";+import { HyperText } from "@/components/magicui/hyper-text"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/icon-cloud.mdx b/apps/www/content/docs/components/icon-cloud.mdxindex ebd405fe..48118634 100644--- a/apps/www/content/docs/components/icon-cloud.mdx+++ b/apps/www/content/docs/components/icon-cloud.mdx@@ -49,7 +49,7 @@ npx shadcn@latest add @magicui/icon-cloud## Usage```tsx showLineNumbers-import { IconCloud } from "@/components/magicui/icon-cloud";+import { IconCloud } from "@/components/magicui/icon-cloud"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/interactive-grid-pattern.mdx b/apps/www/content/docs/components/interactive-grid-pattern.mdxindex d11a6ead..822d04e8 100644--- a/apps/www/content/docs/components/interactive-grid-pattern.mdx+++ b/apps/www/content/docs/components/interactive-grid-pattern.mdx@@ -49,7 +49,7 @@ npx shadcn@latest add @magicui/interactive-grid-pattern### Usage```tsx showLineNumbers-import { InteractiveGridPattern } from "@/components/magicui/interactive-grid-pattern";+import { InteractiveGridPattern } from "@/components/magicui/interactive-grid-pattern"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/interactive-hover-button.mdx b/apps/www/content/docs/components/interactive-hover-button.mdxindex fb538c10..1ce198fd 100644--- a/apps/www/content/docs/components/interactive-hover-button.mdx+++ b/apps/www/content/docs/components/interactive-hover-button.mdx@@ -43,7 +43,7 @@ npx shadcn@latest add @magicui/interactive-hover-button## Usage```tsx showLineNumbers-import { InteractiveHoverButton } from "@/components/magicui/interactive-hover-button";+import { InteractiveHoverButton } from "@/components/magicui/interactive-hover-button"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/iphone-15-pro.mdx b/apps/www/content/docs/components/iphone-15-pro.mdxindex 0426cdce..5e61ea7b 100644--- a/apps/www/content/docs/components/iphone-15-pro.mdx+++ b/apps/www/content/docs/components/iphone-15-pro.mdx@@ -53,7 +53,7 @@ npx shadcn@latest add @magicui/iphone-15-pro## Usage```tsx showLineNumbers-import { Iphone15Pro } from "@/components/magicui/iphone-15-pro";+import { Iphone15Pro } from "@/components/magicui/iphone-15-pro"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/lens.mdx b/apps/www/content/docs/components/lens.mdxindex 6face8b1..90247f80 100644--- a/apps/www/content/docs/components/lens.mdx+++ b/apps/www/content/docs/components/lens.mdx@@ -53,7 +53,7 @@ npx shadcn@latest add @magicui/lens## Usage```tsx showLineNumbers-import { Lens } from "@/components/magicui/lens";+import { Lens } from "@/components/magicui/lens"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/line-shadow-text.mdx b/apps/www/content/docs/components/line-shadow-text.mdxindex 916c2c12..fb5393c3 100644--- a/apps/www/content/docs/components/line-shadow-text.mdx+++ b/apps/www/content/docs/components/line-shadow-text.mdx@@ -62,7 +62,7 @@ Add the following animations to your global CSS file.## Usage```tsx showLineNumbers-import { LineShadowText } from "@/components/magicui/line-shadow-text";+import { LineShadowText } from "@/components/magicui/line-shadow-text"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/magic-card.mdx b/apps/www/content/docs/components/magic-card.mdxindex f807f9e2..03e79315 100644--- a/apps/www/content/docs/components/magic-card.mdx+++ b/apps/www/content/docs/components/magic-card.mdx@@ -43,7 +43,7 @@ npx shadcn@latest add @magicui/magic-card## Usage```tsx showLineNumbers-import { MagicCard } from "@/registry/magicui/magic-card";+import { MagicCard } from "@/registry/magicui/magic-card"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/marquee.mdx b/apps/www/content/docs/components/marquee.mdxindex 802397e3..6d79503d 100644--- a/apps/www/content/docs/components/marquee.mdx+++ b/apps/www/content/docs/components/marquee.mdx@@ -82,7 +82,7 @@ Add the following animations to your global CSS file.## Usage```tsx showLineNumbers-import { Marquee } from "@/components/magicui/marquee";+import { Marquee } from "@/components/magicui/marquee"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/meteors.mdx b/apps/www/content/docs/components/meteors.mdxindex 6b2696c0..527ae763 100644--- a/apps/www/content/docs/components/meteors.mdx+++ b/apps/www/content/docs/components/meteors.mdx@@ -68,11 +68,11 @@ Add the following animations to your global CSS file.## Usage```tsx showLineNumbers-import { Meteors } from "@/components/magicui/meteors";+import { Meteors } from "@/components/magicui/meteors"``````tsx showLineNumbers-<div className="relative overflow-hidden h-[500px] w-full">+<div className="relative h-[500px] w-full overflow-hidden"><Meteors /></div>```diff --git a/apps/www/content/docs/components/morphing-text.mdx b/apps/www/content/docs/components/morphing-text.mdxindex a3e99b8a..7866cca9 100644--- a/apps/www/content/docs/components/morphing-text.mdx+++ b/apps/www/content/docs/components/morphing-text.mdx@@ -41,7 +41,7 @@ npx shadcn@latest add @magicui/morphing-text## Usage```tsx showLineNumbers-import { MorphingText } from "@/components/magicui/morphing-text";+import { MorphingText } from "@/components/magicui/morphing-text"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/neon-gradient-card.mdx b/apps/www/content/docs/components/neon-gradient-card.mdxindex 74e91591..c53ca806 100644--- a/apps/www/content/docs/components/neon-gradient-card.mdx+++ b/apps/www/content/docs/components/neon-gradient-card.mdx@@ -63,7 +63,7 @@ Add the following animations to your global CSS file .## Usage```tsx showLineNumbers-import { NeonGradientCard } from "@/components/magicui/neon-gradient-card";+import { NeonGradientCard } from "@/components/magicui/neon-gradient-card"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/number-ticker.mdx b/apps/www/content/docs/components/number-ticker.mdxindex ccb287b5..83a2f987 100644--- a/apps/www/content/docs/components/number-ticker.mdx+++ b/apps/www/content/docs/components/number-ticker.mdx@@ -54,7 +54,7 @@ npx shadcn@latest add @magicui/number-ticker### Usage```tsx showLineNumbers-import { NumberTicker } from "@/components/magicui/number-ticker";+import { NumberTicker } from "@/components/magicui/number-ticker"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/orbiting-circles.mdx b/apps/www/content/docs/components/orbiting-circles.mdxindex 837f65d9..ce5e701f 100644--- a/apps/www/content/docs/components/orbiting-circles.mdx+++ b/apps/www/content/docs/components/orbiting-circles.mdx@@ -66,12 +66,13 @@ Add the following animations to your global CSS file.## Usage```tsx showLineNumbers-import { OrbitingCircles } from "@/components/magicui/orbiting-circles";-import { File, Settings, Search } from "lucide-react";+import { File, Search, Settings } from "lucide-react"++import { OrbitingCircles } from "@/components/magicui/orbiting-circles"``````tsx showLineNumbers-<div className="relative overflow-hidden h-[500px] w-full">+<div className="relative h-[500px] w-full overflow-hidden"><OrbitingCircles><File /><Settings />diff --git a/apps/www/content/docs/components/particles.mdx b/apps/www/content/docs/components/particles.mdxindex 410e1ece..22569a71 100644--- a/apps/www/content/docs/components/particles.mdx+++ b/apps/www/content/docs/components/particles.mdx@@ -43,11 +43,11 @@ npx shadcn@latest add @magicui/particles## Usage```tsx showLineNumbers-import { Particles } from "@/components/magicui/particles";+import { Particles } from "@/components/magicui/particles"``````tsx showLineNumbers-<div className="relative overflow-hidden h-[500px] w-full">+<div className="relative h-[500px] w-full overflow-hidden"><Particles /></div>```diff --git a/apps/www/content/docs/components/pixel-image.mdx b/apps/www/content/docs/components/pixel-image.mdxindex 5dd14ecf..eb442ef8 100644--- a/apps/www/content/docs/components/pixel-image.mdx+++ b/apps/www/content/docs/components/pixel-image.mdx@@ -51,7 +51,7 @@ npx shadcn@latest add @magicui/pixel-image## Usage```tsx showLineNumbers-import { PixelImage } from "@/registry/magicui/pixel-image";+import { PixelImage } from "@/registry/magicui/pixel-image"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/pointer.mdx b/apps/www/content/docs/components/pointer.mdxindex 8eb7630f..083c307f 100644--- a/apps/www/content/docs/components/pointer.mdx+++ b/apps/www/content/docs/components/pointer.mdx@@ -43,7 +43,7 @@ npx shadcn@latest add @magicui/pointer## Usage```tsx showLineNumbers-import { Pointer } from "@/components/magicui/pointer";+import { Pointer } from "@/components/magicui/pointer"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/progressive-blur.mdx b/apps/www/content/docs/components/progressive-blur.mdxindex 8bff27e5..b21c8d81 100644--- a/apps/www/content/docs/components/progressive-blur.mdx+++ b/apps/www/content/docs/components/progressive-blur.mdx@@ -43,13 +43,13 @@ npx shadcn@latest add @magicui/progressive-blur## Usage```tsx showLineNumbers-import { ProgressiveBlur } from "@/components/magicui/progressive-blur";+import { ProgressiveBlur } from "@/components/magicui/progressive-blur"``````tsx showLineNumbers<div className="relative h-[400px] w-full overflow-auto">{/* Your scrollable content */}- <div className="p-4 space-y-4">{/* Content items */}</div>+ <div className="space-y-4 p-4">{/* Content items */}</div><ProgressiveBlur height="50%" position="bottom" /></div>diff --git a/apps/www/content/docs/components/pulsating-button.mdx b/apps/www/content/docs/components/pulsating-button.mdxindex 2f9ab4a7..442d9ec6 100644--- a/apps/www/content/docs/components/pulsating-button.mdx+++ b/apps/www/content/docs/components/pulsating-button.mdx@@ -63,7 +63,7 @@ Add the following animations to your global CSS file.## Usage```tsx showLineNumbers-import { PulsatingButton } from "@/components/magicui/pulsating-button";+import { PulsatingButton } from "@/components/magicui/pulsating-button"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/rainbow-button.mdx b/apps/www/content/docs/components/rainbow-button.mdxindex aa86d3dd..4c4821e5 100644--- a/apps/www/content/docs/components/rainbow-button.mdx+++ b/apps/www/content/docs/components/rainbow-button.mdx@@ -82,7 +82,7 @@ Add the following animations to your global CSS file.## Usage```tsx showLineNumbers-import { RainbowButton } from "@/components/magicui/rainbow-button";+import { RainbowButton } from "@/components/magicui/rainbow-button"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/retro-grid.mdx b/apps/www/content/docs/components/retro-grid.mdxindex bb0bfd97..ba8c6b7e 100644--- a/apps/www/content/docs/components/retro-grid.mdx+++ b/apps/www/content/docs/components/retro-grid.mdx@@ -63,7 +63,7 @@ Add the following animations to your global CSS file.## Usage```tsx showLineNumbers-import { RetroGrid } from "@/components/magicui/retro-grid";+import { RetroGrid } from "@/components/magicui/retro-grid"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/ripple-button.mdx b/apps/www/content/docs/components/ripple-button.mdxindex 6e86c152..05f070d9 100644--- a/apps/www/content/docs/components/ripple-button.mdx+++ b/apps/www/content/docs/components/ripple-button.mdx@@ -63,7 +63,7 @@ Add the following animations to your global CSS file.## Usage```tsx showLineNumbers-import { RippleButton } from "@/components/magicui/ripple-button";+import { RippleButton } from "@/components/magicui/ripple-button"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/ripple.mdx b/apps/www/content/docs/components/ripple.mdxindex 4a27c7ff..9a806bce 100644--- a/apps/www/content/docs/components/ripple.mdx+++ b/apps/www/content/docs/components/ripple.mdx@@ -65,7 +65,7 @@ Add the following animations to your global CSS file.## Usage```tsx showLineNumbers-import { Ripple } from "@/components/magicui/ripple";+import { Ripple } from "@/components/magicui/ripple"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/safari.mdx b/apps/www/content/docs/components/safari.mdxindex bbc2c8fa..8eb3eda0 100644--- a/apps/www/content/docs/components/safari.mdx+++ b/apps/www/content/docs/components/safari.mdx@@ -57,7 +57,7 @@ npx shadcn@latest add @magicui/safari## Usage```tsx showLineNumbers-import { Safari } from "@/components/magicui/safari";+import { Safari } from "@/components/magicui/safari"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/scratch-to-reveal.mdx b/apps/www/content/docs/components/scratch-to-reveal.mdxindex a04f3753..b2b6c410 100644--- a/apps/www/content/docs/components/scratch-to-reveal.mdx+++ b/apps/www/content/docs/components/scratch-to-reveal.mdx@@ -41,7 +41,7 @@ npx shadcn@latest add @magicui/scratch-to-reveal## Usage```tsx showLineNumbers-import { ScratchToReveal } from "@/components/magicui/scratch-to-reveal";+import { ScratchToReveal } from "@/components/magicui/scratch-to-reveal"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/script-copy-btn.mdx b/apps/www/content/docs/components/script-copy-btn.mdxindex 10429925..5ea048e7 100644--- a/apps/www/content/docs/components/script-copy-btn.mdx+++ b/apps/www/content/docs/components/script-copy-btn.mdx@@ -41,7 +41,7 @@ npx shadcn@latest add @magicui/script-copy-btn## Usage```tsx showLineNumbers-import { ScriptCopyBtn } from "@/components/magicui/script-copy-btn";+import { ScriptCopyBtn } from "@/components/magicui/script-copy-btn"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/scroll-based-velocity.mdx b/apps/www/content/docs/components/scroll-based-velocity.mdxindex 1bd65d3e..371c0029 100644--- a/apps/www/content/docs/components/scroll-based-velocity.mdx+++ b/apps/www/content/docs/components/scroll-based-velocity.mdx@@ -54,11 +54,11 @@ npm install motionimport {ScrollVelocityContainer,ScrollVelocityRow,-} from "@/components/magicui/scroll-based-velocity";+} from "@/components/magicui/scroll-based-velocity"``````tsx showLineNumbers-<ScrollVelocityContainer className="text-4xl md:text-7xl font-bold">+<ScrollVelocityContainer className="text-4xl font-bold md:text-7xl"><ScrollVelocityRow baseVelocity={20} direction={1}>Velocity Scroll</ScrollVelocityRow>diff --git a/apps/www/content/docs/components/scroll-progress.mdx b/apps/www/content/docs/components/scroll-progress.mdxindex 861d948d..d5ab3ffb 100644--- a/apps/www/content/docs/components/scroll-progress.mdx+++ b/apps/www/content/docs/components/scroll-progress.mdx@@ -40,7 +40,7 @@ npx shadcn@latest add @magicui/scroll-progress## Usage```tsx showLineNumbers-import { ScrollProgress } from "@/components/magicui/scroll-progress";+import { ScrollProgress } from "@/components/magicui/scroll-progress"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/shimmer-button.mdx b/apps/www/content/docs/components/shimmer-button.mdxindex 9be5b2c2..6a7233dc 100644--- a/apps/www/content/docs/components/shimmer-button.mdx+++ b/apps/www/content/docs/components/shimmer-button.mdx@@ -78,7 +78,7 @@ Add the following animations to your global CSS file.## Usage```tsx showLineNumbers-import { ShimmerButton } from "@/components/magicui/shimmer-button";+import { ShimmerButton } from "@/components/magicui/shimmer-button"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/shine-border.mdx b/apps/www/content/docs/components/shine-border.mdxindex d1a9dcf5..7a0be3af 100644--- a/apps/www/content/docs/components/shine-border.mdx+++ b/apps/www/content/docs/components/shine-border.mdx@@ -71,7 +71,7 @@ Add the following animations to your global CSS file.## Usage```tsx showLineNumbers-import { ShineBorder } from "@/registry/magicui/shine-border";+import { ShineBorder } from "@/registry/magicui/shine-border"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/shiny-button.mdx b/apps/www/content/docs/components/shiny-button.mdxindex dbc41e19..7616db2b 100644--- a/apps/www/content/docs/components/shiny-button.mdx+++ b/apps/www/content/docs/components/shiny-button.mdx@@ -43,7 +43,7 @@ npx shadcn@latest add @magicui/shiny-button## Usage```tsx showLineNumbers-import { ShinyButton } from "@/components/magicui/shiny-button";+import { ShinyButton } from "@/components/magicui/shiny-button"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/smooth-cursor.mdx b/apps/www/content/docs/components/smooth-cursor.mdxindex 4ba582dd..daf1d396 100644--- a/apps/www/content/docs/components/smooth-cursor.mdx+++ b/apps/www/content/docs/components/smooth-cursor.mdx@@ -43,7 +43,7 @@ npx shadcn@latest add @magicui/smooth-cursor<Step>Add the component to your page or layout.</Step>```tsx showLineNumbers-import { SmoothCursor } from "@/components/ui/smooth-cursor";+import { SmoothCursor } from "@/components/ui/smooth-cursor"export default function Page() {return (@@ -51,7 +51,7 @@ export default function Page() {<SmoothCursor />{/* Your page content */}</>- );+ )}```@@ -64,7 +64,7 @@ export default function Page() {## Usage```tsx showLineNumbers-import { SmoothCursor } from "@/components/ui/smooth-cursor";+import { SmoothCursor } from "@/components/ui/smooth-cursor"``````tsx showLineNumbers@@ -111,10 +111,10 @@ select {```typescript showLineNumbersinterface SpringConfig {- damping: number; // Controls how quickly the animation settles- stiffness: number; // Controls the spring stiffness- mass: number; // Controls the virtual mass of the animated object- restDelta: number; // Controls the threshold at which animation is considered complete+ damping: number // Controls how quickly the animation settles+ stiffness: number // Controls the spring stiffness+ mass: number // Controls the virtual mass of the animated object+ restDelta: number // Controls the threshold at which animation is considered complete}```@@ -126,7 +126,7 @@ const defaultSpringConfig = {stiffness: 400,mass: 1,restDelta: 0.001,-};+}```## Browser Supportdiff --git a/apps/www/content/docs/components/sparkles-text.mdx b/apps/www/content/docs/components/sparkles-text.mdxindex f06cddad..c507a405 100644--- a/apps/www/content/docs/components/sparkles-text.mdx+++ b/apps/www/content/docs/components/sparkles-text.mdx@@ -43,7 +43,7 @@ npx shadcn@latest add @magicui/sparkles-text## Usage```tsx showLineNumbers-import { SparklesText } from "@/components/magicui/sparkles-text";+import { SparklesText } from "@/components/magicui/sparkles-text"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/spinning-text.mdx b/apps/www/content/docs/components/spinning-text.mdxindex 6e1c8331..ef24cdd7 100644--- a/apps/www/content/docs/components/spinning-text.mdx+++ b/apps/www/content/docs/components/spinning-text.mdx@@ -50,7 +50,7 @@ npx shadcn@latest add @magicui/spinning-text### Usage```tsx showLineNumbers-import { SpinningText } from "@/components/magicui/spinning-text";+import { SpinningText } from "@/components/magicui/spinning-text"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/terminal.mdx b/apps/www/content/docs/components/terminal.mdxindex 17202176..a5153532 100644--- a/apps/www/content/docs/components/terminal.mdx+++ b/apps/www/content/docs/components/terminal.mdx@@ -51,7 +51,7 @@ import {AnimatedSpan,Terminal,TypingAnimation,-} from "@/components/magicui/terminal";+} from "@/components/magicui/terminal"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/text-animate.mdx b/apps/www/content/docs/components/text-animate.mdxindex 0105266a..68dbf2c3 100644--- a/apps/www/content/docs/components/text-animate.mdx+++ b/apps/www/content/docs/components/text-animate.mdx@@ -77,7 +77,7 @@ npx shadcn@latest add @magicui/text-animate## Usage```tsx showLineNumbers-import { TextAnimate } from "@/components/magicui/text-animate";+import { TextAnimate } from "@/components/magicui/text-animate"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/text-reveal.mdx b/apps/www/content/docs/components/text-reveal.mdxindex 1b1585fe..be23e639 100644--- a/apps/www/content/docs/components/text-reveal.mdx+++ b/apps/www/content/docs/components/text-reveal.mdx@@ -44,7 +44,7 @@ npx shadcn@latest add @magicui/text-reveal## Usage```tsx showLineNumbers-import { TextReveal } from "@/components/magicui/text-reveal";+import { TextReveal } from "@/components/magicui/text-reveal"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/tweet-card.mdx b/apps/www/content/docs/components/tweet-card.mdxindex 70a08fb9..c1141780 100644--- a/apps/www/content/docs/components/tweet-card.mdx+++ b/apps/www/content/docs/components/tweet-card.mdx@@ -60,22 +60,22 @@ Copy and paste the following code into your project.To render on server side using RSC (Next.js 13):```tsx showLineNumbers-import { TweetCard } from "@/components/magicui/tweet-card";+import { TweetCard } from "@/components/magicui/tweet-card"export default async function App() {- return <TweetCard id="1441032681968212480" />;+ return <TweetCard id="1441032681968212480" />}```To render on client side:```tsx showLineNumbers-"use client";+"use client"-import { ClientTweetCard } from "@/components/magicui/client-tweet-card";+import { ClientTweetCard } from "@/components/magicui/client-tweet-card"export default function App() {- return <ClientTweetCard id="1441032681968212480" />;+ return <ClientTweetCard id="1441032681968212480" />}```diff --git a/apps/www/content/docs/components/typing-animation.mdx b/apps/www/content/docs/components/typing-animation.mdxindex f7139b40..ed28dfd4 100644--- a/apps/www/content/docs/components/typing-animation.mdx+++ b/apps/www/content/docs/components/typing-animation.mdx@@ -43,7 +43,7 @@ npx shadcn@latest add @magicui/typing-animation## Usage```tsx showLineNumbers-import { TypingAnimation } from "@/components/magicui/typing-animation";+import { TypingAnimation } from "@/components/magicui/typing-animation"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/video-text.mdx b/apps/www/content/docs/components/video-text.mdxindex 72695da0..b9d5ca3e 100644--- a/apps/www/content/docs/components/video-text.mdx+++ b/apps/www/content/docs/components/video-text.mdx@@ -41,7 +41,7 @@ npx shadcn@latest add @magicui/video-text## Usage```tsx showLineNumbers-import { VideoText } from "@/registry/magicui/video-text";+import { VideoText } from "@/registry/magicui/video-text"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/warp-background.mdx b/apps/www/content/docs/components/warp-background.mdxindex 0dd1dbc9..da5ed60b 100644--- a/apps/www/content/docs/components/warp-background.mdx+++ b/apps/www/content/docs/components/warp-background.mdx@@ -43,7 +43,7 @@ npx shadcn@latest add @magicui/warp-background## Usage```tsx showLineNumbers-import { WarpBackground } from "@/components/magicui/warp-background";+import { WarpBackground } from "@/components/magicui/warp-background"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/components/word-rotate.mdx b/apps/www/content/docs/components/word-rotate.mdxindex 8cad5e98..50711170 100644--- a/apps/www/content/docs/components/word-rotate.mdx+++ b/apps/www/content/docs/components/word-rotate.mdx@@ -49,7 +49,7 @@ npm install motion## Usage```tsx showLineNumbers-import { WordRotate } from "@/components/magicui/word-rotate";+import { WordRotate } from "@/components/magicui/word-rotate"``````tsx showLineNumbersdiff --git a/apps/www/content/docs/installation/index.mdx b/apps/www/content/docs/installation/index.mdxindex e744a263..0f7fc73f 100644--- a/apps/www/content/docs/installation/index.mdx+++ b/apps/www/content/docs/installation/index.mdx@@ -33,10 +33,10 @@ npx shadcn@latest add @magicui/globeThe command above will add the `Globe` component to your project. You can then import it like this:```tsx {1,6} showLineNumbers-import { Globe } from "@/components/ui/globe";+import { Globe } from "@/components/ui/globe"export default function Home() {- return <Globe />;+ return <Globe />}```diff --git a/apps/www/content/docs/story.mdx b/apps/www/content/docs/story.mdxindex 4601ee44..d458176e 100644--- a/apps/www/content/docs/story.mdx+++ b/apps/www/content/docs/story.mdx@@ -23,7 +23,7 @@ I started building the foundations of this site as well as a few components andPeople seem to love it and we're just getting started.-<div className="columns-3 gap-4 [&>*]:mb-4 mt-4">+<div className="mt-4 columns-3 gap-4 [&>*]:mb-4"><Tweet id="1722659583464968612" /><Tweet id="1668442365625790465" /><Tweet id="1684613797984800768" />diff --git a/apps/www/hooks/use-config.ts b/apps/www/hooks/use-config.tsindex f356f91c..4c00c0fe 100644--- a/apps/www/hooks/use-config.ts+++ b/apps/www/hooks/use-config.ts@@ -1,16 +1,16 @@-import { useAtom } from "jotai";-import { atomWithStorage } from "jotai/utils";+import { useAtom } from "jotai"+import { atomWithStorage } from "jotai/utils"type Config = {- packageManager: "npm" | "yarn" | "pnpm" | "bun";- installationType: "cli" | "manual";-};+ packageManager: "npm" | "yarn" | "pnpm" | "bun"+ installationType: "cli" | "manual"+}const configAtom = atomWithStorage<Config>("config", {packageManager: "pnpm",installationType: "cli",-});+})export function useConfig() {- return useAtom(configAtom);+ return useAtom(configAtom)}diff --git a/apps/www/hooks/use-copy-to-clipboard.ts b/apps/www/hooks/use-copy-to-clipboard.tsindex 2c6820b0..366942f0 100644--- a/apps/www/hooks/use-copy-to-clipboard.ts+++ b/apps/www/hooks/use-copy-to-clipboard.ts@@ -1,37 +1,37 @@-"use client";+"use client"-import * as React from "react";+import * as React from "react"export function useCopyToClipboard({timeout = 2000,onCopy,}: {- timeout?: number;- onCopy?: () => void;+ timeout?: number+ onCopy?: () => void} = {}) {- const [isCopied, setIsCopied] = React.useState(false);+ const [isCopied, setIsCopied] = React.useState(false)const copyToClipboard = (value: string) => {if (typeof window === "undefined" || !navigator.clipboard.writeText) {- return;+ return}- if (!value) return;+ if (!value) returnnavigator.clipboard.writeText(value).then(() => {- setIsCopied(true);+ setIsCopied(true)if (onCopy) {- onCopy();+ onCopy()}if (timeout !== 0) {setTimeout(() => {- setIsCopied(false);- }, timeout);+ setIsCopied(false)+ }, timeout)}- }, console.error);- };+ }, console.error)+ }- return { isCopied, copyToClipboard };+ return { isCopied, copyToClipboard }}diff --git a/apps/www/hooks/use-is-mac.ts b/apps/www/hooks/use-is-mac.tsindex 655ddbad..ee749b9b 100644--- a/apps/www/hooks/use-is-mac.ts+++ b/apps/www/hooks/use-is-mac.ts@@ -1,11 +1,11 @@-import { useEffect, useState } from "react";+import { useEffect, useState } from "react"export function useIsMac() {- const [isMac, setIsMac] = useState(true);+ const [isMac, setIsMac] = useState(true)useEffect(() => {- setIsMac(navigator.platform.toUpperCase().includes("MAC"));- }, []);+ setIsMac(navigator.platform.toUpperCase().includes("MAC"))+ }, [])- return isMac;+ return isMac}diff --git a/apps/www/hooks/use-meta-color.ts b/apps/www/hooks/use-meta-color.tsindex cffaf749..2cfbd171 100644--- a/apps/www/hooks/use-meta-color.ts+++ b/apps/www/hooks/use-meta-color.ts@@ -1,28 +1,28 @@-import * as React from "react";-import { useTheme } from "next-themes";+import * as React from "react"+import { useTheme } from "next-themes"export const META_THEME_COLORS = {light: "#ffffff",dark: "#0a0a0a",-};+}export function useMetaColor() {- const { resolvedTheme } = useTheme();+ const { resolvedTheme } = useTheme()const metaColor = React.useMemo(() => {return resolvedTheme !== "dark"? META_THEME_COLORS.light- : META_THEME_COLORS.dark;- }, [resolvedTheme]);+ : META_THEME_COLORS.dark+ }, [resolvedTheme])const setMetaColor = React.useCallback((color: string) => {document.querySelector('meta[name="theme-color"]')- ?.setAttribute("content", color);- }, []);+ ?.setAttribute("content", color)+ }, [])return {metaColor,setMetaColor,- };+ }}diff --git a/apps/www/hooks/use-mobile.ts b/apps/www/hooks/use-mobile.tsindex a93d5839..2b0fe1df 100644--- a/apps/www/hooks/use-mobile.ts+++ b/apps/www/hooks/use-mobile.ts@@ -1,21 +1,19 @@-import * as React from "react";+import * as React from "react"-const MOBILE_BREAKPOINT = 768;+const MOBILE_BREAKPOINT = 768export function useIsMobile() {- const [isMobile, setIsMobile] = React.useState<boolean | undefined>(- undefined,- );+ const [isMobile, setIsMobile] = React.useState<boolean | undefined>(undefined)React.useEffect(() => {- const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);+ const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`)const onChange = () => {- setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);- };- mql.addEventListener("change", onChange);- setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);- return () => mql.removeEventListener("change", onChange);- }, []);+ setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)+ }+ mql.addEventListener("change", onChange)+ setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)+ return () => mql.removeEventListener("change", onChange)+ }, [])- return !!isMobile;+ return !!isMobile}diff --git a/apps/www/hooks/use-mounted.ts b/apps/www/hooks/use-mounted.tsindex 57bb851e..3a20c62a 100644--- a/apps/www/hooks/use-mounted.ts+++ b/apps/www/hooks/use-mounted.ts@@ -1,11 +1,11 @@-import * as React from "react";+import * as React from "react"export function useMounted() {- const [mounted, setMounted] = React.useState(false);+ const [mounted, setMounted] = React.useState(false)React.useEffect(() => {- setMounted(true);- }, []);+ setMounted(true)+ }, [])- return mounted;+ return mounted}diff --git a/apps/www/hooks/use-mutation-observer.ts b/apps/www/hooks/use-mutation-observer.tsindex 59894201..aed3cded 100644--- a/apps/www/hooks/use-mutation-observer.ts+++ b/apps/www/hooks/use-mutation-observer.ts@@ -1,4 +1,4 @@-import * as React from "react";+import * as React from "react"export const useMutationObserver = (ref: React.RefObject<HTMLElement | null>,@@ -8,13 +8,13 @@ export const useMutationObserver = (characterData: true,childList: true,subtree: true,- },+ }) => {React.useEffect(() => {if (ref.current) {- const observer = new MutationObserver(callback);- observer.observe(ref.current, options);- return () => observer.disconnect();+ const observer = new MutationObserver(callback)+ observer.observe(ref.current, options)+ return () => observer.disconnect()}- }, [ref, callback, options]);-};+ }, [ref, callback, options])+}diff --git a/apps/www/lib/docs.ts b/apps/www/lib/docs.tsindex e412ff73..e296642f 100644--- a/apps/www/lib/docs.ts+++ b/apps/www/lib/docs.ts@@ -1,4 +1,4 @@-import { getRegistryItem } from "@/lib/registry";+import { getRegistryItem } from "@/lib/registry"/*** Replaces ComponentSource tags in content with actual source code from the registry.@@ -22,17 +22,17 @@ export const replaceComponentSource = async (content: string) => {// Replace <ComponentSource name="XXXXX" ... > with actual source codeconst componentSourceMatches = [...content.matchAll(/<ComponentSource\s+name="([^"]+)"[^>]*>/g),- ];+ ]for (const [fullMatch, name] of componentSourceMatches) {- const component = await getRegistryItem(name);+ const component = await getRegistryItem(name)if (component?.files?.[0]?.content) {- const sourceCode = component.files[0].content;- const replacement = `\`\`\`tsx\n${sourceCode}\n\`\`\``;- content = content.replace(fullMatch, replacement);+ const sourceCode = component.files[0].content+ const replacement = `\`\`\`tsx\n${sourceCode}\n\`\`\``+ content = content.replace(fullMatch, replacement)} else {- content = content.replace(fullMatch, fullMatch);+ content = content.replace(fullMatch, fullMatch)}}- return content;-};+ return content+}diff --git a/apps/www/lib/events.ts b/apps/www/lib/events.tsindex bfc3c96c..fb9b8d4f 100644--- a/apps/www/lib/events.ts+++ b/apps/www/lib/events.ts@@ -1,5 +1,5 @@-import posthog from "posthog-js";-import { z } from "zod";+import posthog from "posthog-js"+import { z } from "zod"const eventSchema = z.object({name: z.enum([@@ -23,16 +23,16 @@ const eventSchema = z.object({properties: z.record(z.string(),- z.union([z.string(), z.number(), z.boolean(), z.null()]),+ z.union([z.string(), z.number(), z.boolean(), z.null()])).optional(),-});+})-export type Event = z.infer<typeof eventSchema>;+export type Event = z.infer<typeof eventSchema>export function trackEvent(input: Event): void {- const event = eventSchema.parse(input);+ const event = eventSchema.parse(input)if (event) {- posthog.capture(event.name, event.properties);+ posthog.capture(event.name, event.properties)}}diff --git a/apps/www/lib/fonts.ts b/apps/www/lib/fonts.tsindex 52ac214f..74918cbb 100644--- a/apps/www/lib/fonts.ts+++ b/apps/www/lib/fonts.ts@@ -2,28 +2,28 @@ import {Geist_Mono as FontMono,Geist as FontSans,Inter,-} from "next/font/google";+} from "next/font/google"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"const fontSans = FontSans({subsets: ["latin"],variable: "--font-sans",-});+})const fontMono = FontMono({subsets: ["latin"],variable: "--font-mono",weight: ["400"],-});+})const fontInter = Inter({subsets: ["latin"],variable: "--font-inter",-});+})export const fontVariables = cn(fontSans.variable,fontMono.variable,- fontInter.variable,-);+ fontInter.variable+)diff --git a/apps/www/lib/github.ts b/apps/www/lib/github.tsindex c85b8edf..00835097 100644--- a/apps/www/lib/github.ts+++ b/apps/www/lib/github.ts@@ -1,13 +1,13 @@interface GitHubIssueUrlParams {- owner: string;- repo: string;- title?: string;- body?: string;- labels?: string[];- template?: string;- projects?: string[];- assignees?: string[];- milestone?: string;+ owner: string+ repo: string+ title?: string+ body?: string+ labels?: string[]+ template?: string+ projects?: string[]+ assignees?: string[]+ milestone?: string}/**@@ -27,30 +27,30 @@ interface GitHubIssueUrlParams {* @returns A string containing the generated GitHub issue URL.*/export function getGitHubIssueUrl(params: GitHubIssueUrlParams): string {- const { owner, repo, ...issueParams } = params;- const baseUrl = `https://github.com/${owner}/${repo}/issues/new`;- const urlParams = new URLSearchParams();+ const { owner, repo, ...issueParams } = params+ const baseUrl = `https://github.com/${owner}/${repo}/issues/new`+ const urlParams = new URLSearchParams()Object.entries(issueParams).forEach(([key, value]) => {if (Array.isArray(value)) {- value.forEach((item) => urlParams.append(key, item));+ value.forEach((item) => urlParams.append(key, item))} else if (value !== undefined) {- urlParams.append(key, value.toString());+ urlParams.append(key, value.toString())}- });+ })- return `${baseUrl}?${urlParams.toString()}`;+ return `${baseUrl}?${urlParams.toString()}`}interface GithubFileUrlParams {- owner: string;- repo: string;- slug: string;+ owner: string+ repo: string+ slug: string}export function getGithubFileUrl(params: GithubFileUrlParams) {- const { owner, repo, slug } = params;+ const { owner, repo, slug } = paramsreturn `https://github.com/${owner}/${repo}/edit/main/apps/www/content${slug === "/docs" ? "/docs/index" : slug- }.mdx`;+ }.mdx`}diff --git a/apps/www/lib/highlight-code.ts b/apps/www/lib/highlight-code.tsindex 55cc5043..5519ff89 100644--- a/apps/www/lib/highlight-code.ts+++ b/apps/www/lib/highlight-code.ts@@ -1,66 +1,60 @@-import { codeToHtml } from "shiki";-import type { ShikiTransformer } from "shiki";+import { codeToHtml } from "shiki"+import type { ShikiTransformer } from "shiki"export const transformers = [{code(node) {if (node.tagName === "code") {- const raw = this.source;- node.properties["__raw__"] = raw;+ const raw = this.source+ node.properties["__raw__"] = rawif (raw.startsWith("npm install")) {- node.properties["__npm__"] = raw;- node.properties["__yarn__"] = raw.replace("npm install", "yarn add");- node.properties["__pnpm__"] = raw.replace("npm install", "pnpm add");- node.properties["__bun__"] = raw.replace("npm install", "bun add");+ node.properties["__npm__"] = raw+ node.properties["__yarn__"] = raw.replace("npm install", "yarn add")+ node.properties["__pnpm__"] = raw.replace("npm install", "pnpm add")+ node.properties["__bun__"] = raw.replace("npm install", "bun add")}if (raw.startsWith("npx create-")) {- node.properties["__npm__"] = raw;+ node.properties["__npm__"] = rawnode.properties["__yarn__"] = raw.replace("npx create-",- "yarn create ",- );+ "yarn create "+ )node.properties["__pnpm__"] = raw.replace("npx create-",- "pnpm create ",- );- node.properties["__bun__"] = raw.replace("npx", "bunx --bun");+ "pnpm create "+ )+ node.properties["__bun__"] = raw.replace("npx", "bunx --bun")}// npm create.if (raw.startsWith("npm create")) {- node.properties["__npm__"] = raw;- node.properties["__yarn__"] = raw.replace(- "npm create",- "yarn create",- );- node.properties["__pnpm__"] = raw.replace(- "npm create",- "pnpm create",- );- node.properties["__bun__"] = raw.replace("npm create", "bun create");+ node.properties["__npm__"] = raw+ node.properties["__yarn__"] = raw.replace("npm create", "yarn create")+ node.properties["__pnpm__"] = raw.replace("npm create", "pnpm create")+ node.properties["__bun__"] = raw.replace("npm create", "bun create")}// npx.if (raw.startsWith("npx")) {- node.properties["__npm__"] = raw;- node.properties["__yarn__"] = raw.replace("npx", "yarn");- node.properties["__pnpm__"] = raw.replace("npx", "pnpm dlx");- node.properties["__bun__"] = raw.replace("npx", "bunx --bun");+ node.properties["__npm__"] = raw+ node.properties["__yarn__"] = raw.replace("npx", "yarn")+ node.properties["__pnpm__"] = raw.replace("npx", "pnpm dlx")+ node.properties["__bun__"] = raw.replace("npx", "bunx --bun")}// npm run.if (raw.startsWith("npm run")) {- node.properties["__npm__"] = raw;- node.properties["__yarn__"] = raw.replace("npm run", "yarn");- node.properties["__pnpm__"] = raw.replace("npm run", "pnpm");- node.properties["__bun__"] = raw.replace("npm run", "bun");+ node.properties["__npm__"] = raw+ node.properties["__yarn__"] = raw.replace("npm run", "yarn")+ node.properties["__pnpm__"] = raw.replace("npm run", "pnpm")+ node.properties["__bun__"] = raw.replace("npm run", "bun")}}},},-] as ShikiTransformer[];+] as ShikiTransformer[]export async function highlightCode(code: string, language: string = "tsx") {const html = await codeToHtml(code, {@@ -73,17 +67,17 @@ export async function highlightCode(code: string, language: string = "tsx") {{pre(node) {node.properties["class"] =- "no-scrollbar min-w-0 overflow-x-auto px-4 py-3.5 outline-none has-[[data-highlighted-line]]:px-0 has-[[data-line-numbers]]:px-0 has-[[data-slot=tabs]]:p-0 !bg-transparent";+ "no-scrollbar min-w-0 overflow-x-auto px-4 py-3.5 outline-none has-[[data-highlighted-line]]:px-0 has-[[data-line-numbers]]:px-0 has-[[data-slot=tabs]]:p-0 !bg-transparent"},code(node) {- node.properties["data-line-numbers"] = "";+ node.properties["data-line-numbers"] = ""},line(node) {- node.properties["data-line"] = "";+ node.properties["data-line"] = ""},},],- });+ })- return html;+ return html}diff --git a/apps/www/lib/registry.ts b/apps/www/lib/registry.tsindex 6c50cd90..6226c810 100644--- a/apps/www/lib/registry.ts+++ b/apps/www/lib/registry.ts@@ -1,216 +1,216 @@// @ts-nocheck - Temporary disable type checking because of zod 4 type inference with z.infer.-import fs from "node:fs/promises";-import { tmpdir } from "os";-import path from "path";-import { registryItemFileSchema, registryItemSchema } from "shadcn/schema";-import { Project, ScriptKind } from "ts-morph";-import { z } from "zod";+import fs from "node:fs/promises"+import { tmpdir } from "os"+import path from "path"+import { registryItemFileSchema, registryItemSchema } from "shadcn/schema"+import { Project, ScriptKind } from "ts-morph"+import { z } from "zod"-import { Index } from "@/registry/__index__";+import { Index } from "@/registry/__index__"export function getRegistryComponent(name: string) {- return Index[name]?.component;+ return Index[name]?.component}export async function getRegistryItem(name: string) {- const item = Index[name];+ const item = Index[name]if (!item) {- return null;+ return null}// Convert all file paths to object.// TODO: remove when we migrate to new registry.item.files = item.files.map((file: unknown) =>- typeof file === "string" ? { path: file } : file,- );+ typeof file === "string" ? { path: file } : file+ )// Fail early before doing expensive file operations.- const result = registryItemSchema.safeParse(item);+ const result = registryItemSchema.safeParse(item)if (!result.success) {- return null;+ return null}- let files: typeof result.data.files = [];+ let files: typeof result.data.files = []for (const file of item.files) {- const content = await getFileContent(file);- const relativePath = path.relative(process.cwd(), file.path);+ const content = await getFileContent(file)+ const relativePath = path.relative(process.cwd(), file.path)files.push({...file,path: relativePath,content,- });+ })}// Fix file paths.- files = fixFilePaths(files);+ files = fixFilePaths(files)const parsed = registryItemSchema.safeParse({...result.data,files,- });+ })if (!parsed.success) {- console.error(parsed.error.message);- return null;+ console.error(parsed.error.message)+ return null}- return parsed.data;+ return parsed.data}async function getFileContent(file: z.infer<typeof registryItemFileSchema>) {- const raw = await fs.readFile(file.path, "utf-8");+ const raw = await fs.readFile(file.path, "utf-8")const project = new Project({compilerOptions: {},- });+ })- const tempFile = await createTempSourceFile(file.path);+ const tempFile = await createTempSourceFile(file.path)const sourceFile = project.createSourceFile(tempFile, raw, {scriptKind: ScriptKind.TSX,- });+ })// Remove meta variables.// removeVariable(sourceFile, "iframeHeight")// removeVariable(sourceFile, "containerClassName")// removeVariable(sourceFile, "description")- let code = sourceFile.getFullText();+ let code = sourceFile.getFullText()// Some registry items uses default export.// We want to use named export instead.// TODO: do we really need this? - @shadcn.if (file.type !== "registry:page") {- code = code.replaceAll("export default", "export");+ code = code.replaceAll("export default", "export")}// Fix imports.- code = fixImport(code);+ code = fixImport(code)- return code;+ return code}function getFileTarget(file: z.infer<typeof registryItemFileSchema>) {- let target = file.target;+ let target = file.targetif (!target || target === "") {- const fileName = file.path.split("/").pop();+ const fileName = file.path.split("/").pop()if (file.type === "registry:block" ||file.type === "registry:component" ||file.type === "registry:example") {- target = `components/${fileName}`;+ target = `components/${fileName}`}if (file.type === "registry:ui") {- target = `components/ui/${fileName}`;+ target = `components/ui/${fileName}`}if (file.type === "registry:hook") {- target = `hooks/${fileName}`;+ target = `hooks/${fileName}`}if (file.type === "registry:lib") {- target = `lib/${fileName}`;+ target = `lib/${fileName}`}}- return target ?? "";+ return target ?? ""}async function createTempSourceFile(filename: string) {- const dir = await fs.mkdtemp(path.join(tmpdir(), "shadcn-"));- return path.join(dir, filename);+ const dir = await fs.mkdtemp(path.join(tmpdir(), "shadcn-"))+ return path.join(dir, filename)}function fixFilePaths(files: z.infer<typeof registryItemSchema>["files"]) {if (!files) {- return [];+ return []}// Resolve all paths relative to the first file's directory.- const firstFilePath = files[0].path;- const firstFilePathDir = path.dirname(firstFilePath);+ const firstFilePath = files[0].path+ const firstFilePathDir = path.dirname(firstFilePath)return files.map((file) => {return {...file,path: path.relative(firstFilePathDir, file.path),target: getFileTarget(file),- };- });+ }+ })}export function fixImport(content: string) {- const regex = /@\/(.+?)\/((?:.*?\/)?(?:components|ui|hooks|lib))\/([\w-]+)/g;+ const regex = /@\/(.+?)\/((?:.*?\/)?(?:components|ui|hooks|lib))\/([\w-]+)/gconst replacement = (match: string,path: string,type: string,- component: string,+ component: string) => {if (type.endsWith("components")) {- return `@/components/${component}`;+ return `@/components/${component}`} else if (type.endsWith("ui")) {- return `@/components/ui/${component}`;+ return `@/components/ui/${component}`} else if (type.endsWith("hooks")) {- return `@/hooks/${component}`;+ return `@/hooks/${component}`} else if (type.endsWith("lib")) {- return `@/lib/${component}`;+ return `@/lib/${component}`}- return match;- };+ return match+ }- return content.replace(regex, replacement);+ return content.replace(regex, replacement)}export type FileTree = {- name: string;- path?: string;- children?: FileTree[];-};+ name: string+ path?: string+ children?: FileTree[]+}export function createFileTreeForRegistryItemFiles(- files: Array<{ path: string; target?: string }>,+ files: Array<{ path: string; target?: string }>) {- const root: FileTree[] = [];+ const root: FileTree[] = []for (const file of files) {- const path = file.target ?? file.path;- const parts = path.split("/");- let currentLevel = root;+ const path = file.target ?? file.path+ const parts = path.split("/")+ let currentLevel = rootfor (let i = 0; i < parts.length; i++) {- const part = parts[i];- const isFile = i === parts.length - 1;- const existingNode = currentLevel.find((node) => node.name === part);+ const part = parts[i]+ const isFile = i === parts.length - 1+ const existingNode = currentLevel.find((node) => node.name === part)if (existingNode) {if (isFile) {// Update existing file node with full path- existingNode.path = path;+ existingNode.path = path} else {// Move to next level in the tree- currentLevel = existingNode.children!;+ currentLevel = existingNode.children!}} else {const newNode: FileTree = isFile? { name: part, path }- : { name: part, children: [] };+ : { name: part, children: [] }- currentLevel.push(newNode);+ currentLevel.push(newNode)if (!isFile) {- currentLevel = newNode.children!;+ currentLevel = newNode.children!}}}}- return root;+ return root}diff --git a/apps/www/lib/rehype-component.ts b/apps/www/lib/rehype-component.tsindex d259ec2c..e399f4be 100644--- a/apps/www/lib/rehype-component.ts+++ b/apps/www/lib/rehype-component.ts@@ -1,10 +1,10 @@-import fs from "fs";-import path from "path";-import { UnistNode, UnistTree } from "types/unist";-import { u } from "unist-builder";-import { visit } from "unist-util-visit";+import fs from "fs"+import path from "path"+import { UnistNode, UnistTree } from "types/unist"+import { u } from "unist-builder"+import { visit } from "unist-util-visit"-import { Index } from "@/registry/__index__";+import { Index } from "@/registry/__index__"export function rehypeComponent() {return async (tree: UnistTree) => {@@ -12,50 +12,50 @@ export function rehypeComponent() {// src prop overrides both name and fileName.const { value: srcPath } =(getNodeAttributeByName(node, "src") as {- name: string;- value?: string;- type?: string;- }) || {};+ name: string+ value?: string+ type?: string+ }) || {}if (node.name === "ComponentSource") {- const name = getNodeAttributeByName(node, "name")?.value as string;+ const name = getNodeAttributeByName(node, "name")?.value as stringconst fileName = getNodeAttributeByName(node, "fileName")?.value as| string- | undefined;+ | undefinedif (!name && !srcPath) {- return null;+ return null}try {- let src: string;+ let src: stringif (srcPath) {- src = path.join(process.cwd(), srcPath);+ src = path.join(process.cwd(), srcPath)} else {- const component = Index[name];+ const component = Index[name]src = fileName? component.files.find((file: unknown) => {if (typeof file === "string") {return (file.endsWith(`${fileName}.tsx`) ||file.endsWith(`${fileName}.ts`)- );+ )}- return false;+ return false}) || component.files[0]?.path- : component.files[0]?.path;+ : component.files[0]?.path}// Read the source file.- const filePath = src;- let source = fs.readFileSync(filePath, "utf8");+ const filePath = src+ let source = fs.readFileSync(filePath, "utf8")// Replace imports.// TODO: Use @swc/core and a visitor to replace this.// For now a simple regex should do.- source = source.replaceAll(`@/registry/${name}/`, "@/components/");- source = source.replaceAll("export default", "export");+ source = source.replaceAll(`@/registry/${name}/`, "@/components/")+ source = source.replaceAll("export default", "export")// Add code as children so that rehype can take over at build time.node.children?.push(@@ -86,33 +86,33 @@ export function rehypeComponent() {],}),],- }),- );+ })+ )} catch (error) {- console.error(error);+ console.error(error)}}if (node.name === "ComponentPreview") {- const name = getNodeAttributeByName(node, "name")?.value as string;+ const name = getNodeAttributeByName(node, "name")?.value as stringif (!name) {- return null;+ return null}try {- const component = Index[name];- const src = component.files[0]?.path;+ const component = Index[name]+ const src = component.files[0]?.path// Read the source file.- const filePath = src;- let source = fs.readFileSync(filePath, "utf8");+ const filePath = src+ let source = fs.readFileSync(filePath, "utf8")// Replace imports.// TODO: Use @swc/core and a visitor to replace this.// For now a simple regex should do.- source = source.replaceAll(`@/registry/${name}/`, "@/components/");- source = source.replaceAll("export default", "export");+ source = source.replaceAll(`@/registry/${name}/`, "@/components/")+ source = source.replaceAll("export default", "export")// Add code as children so that rehype can take over at build time.node.children?.push(@@ -135,16 +135,16 @@ export function rehypeComponent() {],}),],- }),- );+ })+ )} catch (error) {- console.error(error);+ console.error(error)}}- });- };+ })+ }}function getNodeAttributeByName(node: UnistNode, name: string) {- return node.attributes?.find((attribute) => attribute.name === name);+ return node.attributes?.find((attribute) => attribute.name === name)}diff --git a/apps/www/lib/rehype-npm-command.ts b/apps/www/lib/rehype-npm-command.tsindex 71ffa8d8..b4f38e7b 100644--- a/apps/www/lib/rehype-npm-command.ts+++ b/apps/www/lib/rehype-npm-command.ts@@ -1,65 +1,65 @@-import { UnistNode, UnistTree } from "types/unist";-import { visit } from "unist-util-visit";+import { UnistNode, UnistTree } from "types/unist"+import { visit } from "unist-util-visit"export function rehypeNpmCommand() {return (tree: UnistTree) => {visit(tree, (node: UnistNode) => {if (node.type !== "element" || node?.tagName !== "pre") {- return;+ return}// npm install.if (node.properties?.["__rawString__"]?.startsWith("npm install")) {- const npmCommand = node.properties?.["__rawString__"];- node.properties["__npmCommand__"] = npmCommand;+ const npmCommand = node.properties?.["__rawString__"]+ node.properties["__npmCommand__"] = npmCommandnode.properties["__yarnCommand__"] = npmCommand.replace("npm install",- "yarn add",- );+ "yarn add"+ )node.properties["__pnpmCommand__"] = npmCommand.replace("npm install",- "pnpm add",- );+ "pnpm add"+ )node.properties["__bunCommand__"] = npmCommand.replace("npm install",- "bun add",- );+ "bun add"+ )}// npx create-.if (node.properties?.["__rawString__"]?.startsWith("npx create-")) {- const npmCommand = node.properties?.["__rawString__"];- node.properties["__npmCommand__"] = npmCommand;+ const npmCommand = node.properties?.["__rawString__"]+ node.properties["__npmCommand__"] = npmCommandnode.properties["__yarnCommand__"] = npmCommand.replace("npx create-",- "yarn create ",- );+ "yarn create "+ )node.properties["__pnpmCommand__"] = npmCommand.replace("npx create-",- "pnpm create ",- );+ "pnpm create "+ )node.properties["__bunCommand__"] = npmCommand.replace("npx",- "bun x --bun",- );+ "bun x --bun"+ )}// npm create.if (node.properties?.["__rawString__"]?.startsWith("npm create")) {- const npmCommand = node.properties?.["__rawString__"];- node.properties["__npmCommand__"] = npmCommand;+ const npmCommand = node.properties?.["__rawString__"]+ node.properties["__npmCommand__"] = npmCommandnode.properties["__yarnCommand__"] = npmCommand.replace("npm create",- "yarn create",- );+ "yarn create"+ )node.properties["__pnpmCommand__"] = npmCommand.replace("npm create",- "pnpm create",- );+ "pnpm create"+ )node.properties["__bunCommand__"] = npmCommand.replace("npm create",- "bun create",- );+ "bun create"+ )}// npx.@@ -67,36 +67,33 @@ export function rehypeNpmCommand() {node.properties?.["__rawString__"]?.startsWith("npx") &&!node.properties?.["__rawString__"]?.startsWith("npx create-")) {- const npmCommand = node.properties?.["__rawString__"];- node.properties["__npmCommand__"] = npmCommand;- node.properties["__yarnCommand__"] = npmCommand;+ const npmCommand = node.properties?.["__rawString__"]+ node.properties["__npmCommand__"] = npmCommand+ node.properties["__yarnCommand__"] = npmCommandnode.properties["__pnpmCommand__"] = npmCommand.replace("npx",- "pnpm dlx",- );+ "pnpm dlx"+ )node.properties["__bunCommand__"] = npmCommand.replace("npx",- "bun x --bun",- );+ "bun x --bun"+ )}// npm run.if (node.properties?.["__rawString__"]?.startsWith("npm run")) {- const npmCommand = node.properties?.["__rawString__"];- node.properties["__npmCommand__"] = npmCommand;+ const npmCommand = node.properties?.["__rawString__"]+ node.properties["__npmCommand__"] = npmCommandnode.properties["__yarnCommand__"] = npmCommand.replace("npm run",- "yarn",- );+ "yarn"+ )node.properties["__pnpmCommand__"] = npmCommand.replace("npm run",- "pnpm",- );- node.properties["__bunCommand__"] = npmCommand.replace(- "npm run",- "bun",- );+ "pnpm"+ )+ node.properties["__bunCommand__"] = npmCommand.replace("npm run", "bun")}- });- };+ })+ }}diff --git a/apps/www/lib/source.ts b/apps/www/lib/source.tsindex 4cb5aa1f..eebfbdbe 100644--- a/apps/www/lib/source.ts+++ b/apps/www/lib/source.ts@@ -1,17 +1,17 @@-import { blog, docs, showcase } from "@/.source";-import { loader } from "fumadocs-core/source";+import { blog, docs, showcase } from "@/.source"+import { loader } from "fumadocs-core/source"export const source = loader({baseUrl: "/docs",source: docs.toFumadocsSource(),-});+})export const blogSource = loader({baseUrl: "/blog",source: blog.toFumadocsSource(),-});+})export const showcaseSource = loader({baseUrl: "/showcase",source: showcase.toFumadocsSource(),-});+})diff --git a/apps/www/lib/types.ts b/apps/www/lib/types.tsindex 7564d31b..7add2dc4 100644--- a/apps/www/lib/types.ts+++ b/apps/www/lib/types.ts@@ -1,22 +1,22 @@export type SiteConfig = {- avatar?: string;- siteUrl: string;- siteName: string;- siteDescription: string;- siteThumbnail: string;- nav: Array<{ label: string; href: string }>;+ avatar?: string+ siteUrl: string+ siteName: string+ siteDescription: string+ siteThumbnail: string+ nav: Array<{ label: string; href: string }>social?: {- github?: string;- twitter?: string;- linkedin?: string;- instagram?: string;- };-};+ github?: string+ twitter?: string+ linkedin?: string+ instagram?: string+ }+}export type MDXFrontMatter = {- slug: string;- title: string;- description?: string;- date: string;- tags?: Array<string>;-};+ slug: string+ title: string+ description?: string+ date: string+ tags?: Array<string>+}diff --git a/apps/www/lib/utils.ts b/apps/www/lib/utils.tsindex 20246e14..38a896b4 100644--- a/apps/www/lib/utils.ts+++ b/apps/www/lib/utils.ts@@ -1,14 +1,14 @@-import clsx, { ClassValue } from "clsx";-import { Metadata } from "next";-import process from "process";-import { twMerge } from "tailwind-merge";+import process from "process"+import { Metadata } from "next"+import clsx, { ClassValue } from "clsx"+import { twMerge } from "tailwind-merge"export function cn(...inputs: ClassValue[]) {- return twMerge(clsx(inputs));+ return twMerge(clsx(inputs))}export const pluralize = (count: number, word: string) =>- `${count} ${word}${count === 1 ? "" : "s"}`;+ `${count} ${word}${count === 1 ? "" : "s"}`export function humanize(name: string): string {return name@@ -17,16 +17,16 @@ export function humanize(name: string): string {.trim().split(/\s+/).map((word) => word[0].toUpperCase() + word.substring(1).toLowerCase())- .join(" ");+ .join(" ")}export const truncate = (str: string | null, length: number) => {- if (!str || str.length <= length) return str;- return `${str.slice(0, length - 3)}...`;-};+ if (!str || str.length <= length) return str+ return `${str.slice(0, length - 3)}...`+}export const fetcher = (...args: Parameters<typeof fetch>) =>- fetch(...args).then((res) => res.json());+ fetch(...args).then((res) => res.json())/*** Capitalizes first letters of words in string.@@ -41,32 +41,32 @@ export const fetcher = (...args: Parameters<typeof fetch>) =>*/export const capitalize = (str: string, lower = false) =>(lower ? str.toLowerCase() : str).replace(/(?:^|\s|["'([{])+\S/g, (match) =>- match.toUpperCase(),- );+ match.toUpperCase()+ )export function formatDate(input: string | number): string {- const date = new Date(input);+ const date = new Date(input)return date.toLocaleDateString("en-US", {month: "long",day: "numeric",year: "numeric",- });+ })}export const calculateReadingTime = (content: string): number => {- const words = content.trim().split(/\s+/).filter(Boolean).length;- return Math.max(1, Math.ceil(words / 200));-};+ const words = content.trim().split(/\s+/).filter(Boolean).length+ return Math.max(1, Math.ceil(words / 200))+}export const normalizeTag = (tag: unknown): string[] => {- if (!tag) return [];+ if (!tag) return []return Array.isArray(tag)? tag.filter((t): t is string => typeof t === "string")- : [String(tag)];-};+ : [String(tag)]+}export function absoluteUrl(path: string) {- return `${process.env.NEXT_PUBLIC_APP_URL}${path}`;+ return `${process.env.NEXT_PUBLIC_APP_URL}${path}`}export function constructMetadata({@@ -75,10 +75,10 @@ export function constructMetadata({image = absoluteUrl("/og"),...props}: {- title?: string;- description?: string;- image?: string;- [key: string]: Metadata[keyof Metadata];+ title?: string+ description?: string+ image?: string+ [key: string]: Metadata[keyof Metadata]}): Metadata {return {title,@@ -120,5 +120,5 @@ export function constructMetadata({],creator: "dillionverma",...props,- };+ }}diff --git a/apps/www/mdx-components.tsx b/apps/www/mdx-components.tsxindex 7756766c..f6d311a6 100644--- a/apps/www/mdx-components.tsx+++ b/apps/www/mdx-components.tsx@@ -1,37 +1,37 @@-import * as React from "react";-import Image from "next/image";-import Link from "next/link";+import * as React from "react"+import Image from "next/image"+import Link from "next/link"-import { cn } from "@/lib/utils";-import { Callout } from "@/components/callout";-import { CodeBlockCommand } from "@/components/code-block-command";-import { CodeCollapsibleWrapper } from "@/components/code-collapsible-wrapper";-import { CodeTabs } from "@/components/code-tabs";-import { ComponentPreview } from "@/components/component-preview";-import { ComponentSource } from "@/components/component-source";-import { ComponentsList } from "@/components/components-list";-import { CopyButton } from "@/components/copy-button";-import { getIconForLanguageExtension } from "@/components/icons";+import { cn } from "@/lib/utils"import {Accordion,AccordionContent,AccordionItem,AccordionTrigger,-} from "@/components/ui/accordion";-import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";-import { Button } from "@/components/ui/button";-import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";-import { TemplateOpen } from "@/components/template-open";-import { TemplatePreview } from "@/components/template-preview";-import { TechStack } from "@/components/tech-stack";-import { TweetCard } from "@/registry/magicui/tweet-card";+} from "@/components/ui/accordion"+import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"+import { Button } from "@/components/ui/button"+import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"+import { Callout } from "@/components/callout"+import { CodeBlockCommand } from "@/components/code-block-command"+import { CodeCollapsibleWrapper } from "@/components/code-collapsible-wrapper"+import { CodeTabs } from "@/components/code-tabs"+import { ComponentPreview } from "@/components/component-preview"+import { ComponentSource } from "@/components/component-source"+import { ComponentsList } from "@/components/components-list"+import { CopyButton } from "@/components/copy-button"+import { getIconForLanguageExtension } from "@/components/icons"+import { TechStack } from "@/components/tech-stack"+import { TemplateOpen } from "@/components/template-open"+import { TemplatePreview } from "@/components/template-preview"+import { TweetCard } from "@/registry/magicui/tweet-card"export const mdxComponents = {h1: ({ className, ...props }: React.ComponentProps<"h1">) => (<h1className={cn("font-heading mt-2 scroll-m-28 text-3xl font-bold tracking-tight",- className,+ className)}{...props}/>@@ -47,17 +47,17 @@ export const mdxComponents = {.toLowerCase()}className={cn("font-heading mt-8 scroll-m-28 text-xl font-medium tracking-tight first:mt-0 lg:mt-8 [&+p]:!mt-4 *:[code]:text-xl",- className,+ className)}{...props}/>- );+ )},h3: ({ className, ...props }: React.ComponentProps<"h3">) => (<h3className={cn("font-heading mt-8 scroll-m-28 text-lg font-medium tracking-tight *:[code]:text-xl",- className,+ className)}{...props}/>@@ -66,7 +66,7 @@ export const mdxComponents = {<h4className={cn("font-heading mt-8 scroll-m-28 text-base font-medium tracking-tight",- className,+ className)}{...props}/>@@ -75,7 +75,7 @@ export const mdxComponents = {<h5className={cn("mt-8 scroll-m-28 text-base font-medium tracking-tight",- className,+ className)}{...props}/>@@ -84,7 +84,7 @@ export const mdxComponents = {<h6className={cn("mt-8 scroll-m-28 text-base font-medium tracking-tight",- className,+ className)}{...props}/>@@ -131,7 +131,7 @@ export const mdxComponents = {<tableclassName={cn("relative w-full overflow-hidden border-none text-sm",- className,+ className)}{...props}/>@@ -147,7 +147,7 @@ export const mdxComponents = {<thclassName={cn("px-4 py-2 text-left font-bold [&[align=center]]:text-center [&[align=right]]:text-right",- className,+ className)}{...props}/>@@ -156,7 +156,7 @@ export const mdxComponents = {<tdclassName={cn("px-4 py-2 text-left [&[align=center]]:text-center [&[align=right]]:text-right",- className,+ className)}{...props}/>@@ -166,16 +166,16 @@ export const mdxComponents = {<preclassName={cn("no-scrollbar min-w-0 overflow-x-auto px-4 py-3.5 outline-none has-[[data-highlighted-line]]:px-0 has-[[data-line-numbers]]:px-0 has-[[data-slot=tabs]]:p-0",- className,+ className)}{...props}>{children}</pre>- );+ )},figure: ({ className, ...props }: React.ComponentProps<"figure">) => {- return <figure className={cn(className)} {...props} />;+ return <figure className={cn(className)} {...props} />},figcaption: ({className,@@ -185,20 +185,20 @@ export const mdxComponents = {const iconExtension ="data-language" in props && typeof props["data-language"] === "string"? getIconForLanguageExtension(props["data-language"])- : null;+ : nullreturn (<figcaptionclassName={cn("text-code-foreground [&_svg]:text-code-foreground flex items-center gap-2 [&_svg]:size-4 [&_svg]:opacity-70",- className,+ className)}{...props}>{iconExtension}{children}</figcaption>- );+ )},code: ({className,@@ -210,12 +210,12 @@ export const mdxComponents = {__bun__,...props}: React.ComponentProps<"code"> & {- __raw__?: string;- __src__?: string;- __npm__?: string;- __yarn__?: string;- __pnpm__?: string;- __bun__?: string;+ __raw__?: string+ __src__?: string+ __npm__?: string+ __yarn__?: string+ __pnpm__?: string+ __bun__?: string}) => {// Inline Code.if (typeof props.children === "string") {@@ -223,15 +223,15 @@ export const mdxComponents = {<codeclassName={cn("bg-muted relative rounded-md px-[0.3rem] py-[0.2rem] font-mono text-[0.8rem] break-words outline-none",- className,+ className)}{...props}/>- );+ )}// npm command.- const isNpmCommand = __npm__ && __yarn__ && __pnpm__ && __bun__;+ const isNpmCommand = __npm__ && __yarn__ && __pnpm__ && __bun__if (isNpmCommand) {return (<CodeBlockCommand@@ -240,7 +240,7 @@ export const mdxComponents = {__pnpm__={__pnpm__}__bun__={__bun__}/>- );+ )}// Default codeblock.@@ -249,13 +249,13 @@ export const mdxComponents = {{__raw__ && <CopyButton value={__raw__} src={__src__} />}<code {...props} /></>- );+ )},Step: ({ className, ...props }: React.ComponentProps<"h3">) => (<h3className={cn("font-heading mt-8 scroll-m-32 text-xl font-medium tracking-tight",- className,+ className)}{...props}/>@@ -281,9 +281,7 @@ export const mdxComponents = {/>),Tabs: ({ className, ...props }: React.ComponentProps<typeof Tabs>) => {- return (- <Tabs className={cn("relative mt-6 w-full", className)} {...props} />- );+ return <Tabs className={cn("relative mt-6 w-full", className)} {...props} />},TabsList: ({className,@@ -292,7 +290,7 @@ export const mdxComponents = {<TabsListclassName={cn("justify-start gap-4 rounded-none bg-transparent px-0",- className,+ className)}{...props}/>@@ -304,7 +302,7 @@ export const mdxComponents = {<TabsTriggerclassName={cn("text-muted-foreground data-[state=active]:text-foreground data-[state=active]:border-primary dark:data-[state=active]:border-primary hover:text-primary rounded-none border-0 border-b-2 border-transparent bg-transparent px-0 pb-3 text-base data-[state=active]:bg-transparent data-[state=active]:shadow-none dark:data-[state=active]:bg-transparent",- className,+ className)}{...props}/>@@ -316,7 +314,7 @@ export const mdxComponents = {<TabsContentclassName={cn("relative [&_h3.font-heading]:text-base [&_h3.font-heading]:font-medium *:[figure]:first:mt-0 [&>.steps]:mt-6",- className,+ className)}{...props}/>@@ -348,7 +346,7 @@ export const mdxComponents = {<LinkclassName={cn("bg-surface text-surface-foreground hover:bg-surface/80 flex w-full flex-col items-center rounded-xl p-6 transition-colors sm:p-10",- className,+ className)}{...props}/>@@ -359,4 +357,4 @@ export const mdxComponents = {Tweet: ({ id, className }: { id: string; className?: string }) => (<TweetCard id={id} className={cn("mx-auto", className)} />),-};+}diff --git a/apps/www/middleware.ts b/apps/www/middleware.tsindex 3ba7afd6..d4342331 100644--- a/apps/www/middleware.ts+++ b/apps/www/middleware.ts@@ -1,7 +1,7 @@-import type { NextRequest } from "next/server";+import type { NextRequest } from "next/server"export const config = {matcher: ["/((?!_next|api|[\\w-]+\\.\\w+).*)"],-};+}export default async function middleware(req: NextRequest) {}diff --git a/apps/www/registry/__index__.tsx b/apps/www/registry/__index__.tsxindex 211769d8..777e444e 100644--- a/apps/www/registry/__index__.tsx+++ b/apps/www/registry/__index__.tsx@@ -6,7 +6,7 @@import * as React from "react"export const Index: Record<string, any> = {- "index": {+ index: {name: "index",description: "",type: "registry:style",@@ -17,34 +17,47 @@ export const Index: Record<string, any> = {},"magic-card": {name: "magic-card",- description: "A spotlight effect that follows your mouse cursor and highlights borders on hover.",+ description:+ "A spotlight effect that follows your mouse cursor and highlights borders on hover.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/magic-card.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/magic-card.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/magic-card.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},- "android": {+ android: {name: "android",description: "A mockup of an Android device.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/android.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/android.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/android.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -54,14 +67,20 @@ export const Index: Record<string, any> = {description: "A card with a time warping background effect.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/warp-background.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/warp-background.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/warp-background.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -71,14 +90,20 @@ export const Index: Record<string, any> = {description: "A text component with a moving line shadow.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/line-shadow-text.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/line-shadow-text.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/line-shadow-text.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -88,14 +113,20 @@ export const Index: Record<string, any> = {description: "A beautiful aurora text effect",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/aurora-text.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/aurora-text.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/aurora-text.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -105,14 +136,20 @@ export const Index: Record<string, any> = {description: "A dynamic text morphing component for Magic UI.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/morphing-text.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/morphing-text.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/morphing-text.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -122,82 +159,116 @@ export const Index: Record<string, any> = {description: "Animated Scroll Progress for your pages",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/scroll-progress.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/scroll-progress.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/scroll-progress.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},- "lens": {+ lens: {name: "lens",- description: "A interactive component that enables zooming into images, videos and other elements.",+ description:+ "A interactive component that enables zooming into images, videos and other elements.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/lens.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/lens.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/lens.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},- "pointer": {+ pointer: {name: "pointer",- description: "A component that displays a pointer when hovering over an element",+ description:+ "A component that displays a pointer when hovering over an element",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/pointer.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/pointer.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/pointer.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"smooth-cursor": {name: "smooth-cursor",- description: "A customizable, physics-based smooth cursor animation component with spring animations and rotation effects",+ description:+ "A customizable, physics-based smooth cursor animation component with spring animations and rotation effects",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/smooth-cursor.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/smooth-cursor.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/smooth-cursor.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"progressive-blur": {name: "progressive-blur",- description: "The Progressive Blur component adds a smooth blur gradient effect to scrollable content, indicating more content below or above.",+ description:+ "The Progressive Blur component adds a smooth blur gradient effect to scrollable content, indicating more content below or above.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/progressive-blur.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/progressive-blur.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/progressive-blur.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -207,99 +278,141 @@ export const Index: Record<string, any> = {description: "A beautiful neon card effect",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/neon-gradient-card.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/neon-gradient-card.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/neon-gradient-card.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},- "meteors": {+ meteors: {name: "meteors",description: "A meteor shower effect.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/meteors.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/meteors.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/meteors.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"grid-pattern": {name: "grid-pattern",- description: "A background grid pattern made with SVGs, fully customizable using Tailwind CSS.",+ description:+ "A background grid pattern made with SVGs, fully customizable using Tailwind CSS.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/grid-pattern.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/grid-pattern.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/grid-pattern.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"interactive-grid-pattern": {name: "interactive-grid-pattern",- description: "A interactive background grid pattern made with SVGs, fully customizable using Tailwind CSS.",+ description:+ "A interactive background grid pattern made with SVGs, fully customizable using Tailwind CSS.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/interactive-grid-pattern.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/interactive-grid-pattern.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/interactive-grid-pattern.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const mod = await import(+ "@/registry/magicui/interactive-grid-pattern.tsx"+ )+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"dot-pattern": {name: "dot-pattern",- description: "A background dot pattern made with SVGs, fully customizable using Tailwind CSS.",+ description:+ "A background dot pattern made with SVGs, fully customizable using Tailwind CSS.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/dot-pattern.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/dot-pattern.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/dot-pattern.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"flickering-grid": {name: "flickering-grid",- description: "A flickering grid background made with SVGs, fully customizable using Tailwind CSS.",+ description:+ "A flickering grid background made with SVGs, fully customizable using Tailwind CSS.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/flickering-grid.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/flickering-grid.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/flickering-grid.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -309,14 +422,20 @@ export const Index: Record<string, any> = {description: "A hero video dialog component.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/hero-video-dialog.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/hero-video-dialog.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/hero-video-dialog.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -326,14 +445,20 @@ export const Index: Record<string, any> = {description: "A component which compares two code snippets.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/code-comparison.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/code-comparison.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/code-comparison.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -343,133 +468,188 @@ export const Index: Record<string, any> = {description: "Copy code to clipboard",type: "registry:ui",registryDependencies: ["button"],- files: [{- path: "registry/magicui/script-copy-btn.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/script-copy-btn.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/script-copy-btn.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},- "marquee": {+ marquee: {name: "marquee",- description: "An infinite scrolling component that can be used to display text, images, or videos.",+ description:+ "An infinite scrolling component that can be used to display text, images, or videos.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/marquee.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/marquee.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/marquee.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},- "globe": {+ globe: {name: "globe",- description: "An autorotating, interactive, and highly performant globe made using WebGL.",+ description:+ "An autorotating, interactive, and highly performant globe made using WebGL.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/globe.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/globe.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/globe.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"shimmer-button": {name: "shimmer-button",- description: "A button with a shimmering light which travels around the perimeter.",+ description:+ "A button with a shimmering light which travels around the perimeter.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/shimmer-button.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/shimmer-button.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/shimmer-button.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"tweet-card": {name: "tweet-card",- description: "A card that displays a tweet with the author's name, handle, and profile picture.",+ description:+ "A card that displays a tweet with the author's name, handle, and profile picture.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/tweet-card.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/tweet-card.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/tweet-card.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"client-tweet-card": {name: "client-tweet-card",- description: "A client-side version of the tweet card that displays a tweet with the author's name, handle, and profile picture.",+ description:+ "A client-side version of the tweet card that displays a tweet with the author's name, handle, and profile picture.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/client-tweet-card.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/client-tweet-card.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/client-tweet-card.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"bento-grid": {name: "bento-grid",- description: "Bento grid is a layout used to showcase the features of a product in a simple and elegant way.",+ description:+ "Bento grid is a layout used to showcase the features of a product in a simple and elegant way.",type: "registry:ui",registryDependencies: ["button"],- files: [{- path: "registry/magicui/bento-grid.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/bento-grid.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/bento-grid.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},- "particles": {+ particles: {name: "particles",- description: "Particles are a fun way to add some visual flair to your website. They can be used to create a sense of depth, movement, and interactivity.",+ description:+ "Particles are a fun way to add some visual flair to your website. They can be used to create a sense of depth, movement, and interactivity.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/particles.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/particles.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/particles.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -479,31 +659,44 @@ export const Index: Record<string, any> = {description: "Animate numbers to count up or down to a target number",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/number-ticker.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/number-ticker.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/number-ticker.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},- "ripple": {+ ripple: {name: "ripple",- description: "An animated ripple effect typically used behind elements to emphasize them.",+ description:+ "An animated ripple effect typically used behind elements to emphasize them.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/ripple.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/ripple.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/ripple.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -513,99 +706,140 @@ export const Index: Record<string, any> = {description: "An animated scrolling retro grid effect",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/retro-grid.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/retro-grid.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/retro-grid.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"animated-list": {name: "animated-list",- description: "A list that animates each item in sequence with a delay. Used to showcase notifications or events on your landing page.",+ description:+ "A list that animates each item in sequence with a delay. Used to showcase notifications or events on your landing page.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/animated-list.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/animated-list.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/animated-list.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"animated-shiny-text": {name: "animated-shiny-text",- description: "A light glare effect which pans across text making it appear as if it is shimmering.",+ description:+ "A light glare effect which pans across text making it appear as if it is shimmering.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/animated-shiny-text.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/animated-shiny-text.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/animated-shiny-text.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"animated-grid-pattern": {name: "animated-grid-pattern",- description: "A animated background grid pattern made with SVGs, fully customizable using Tailwind CSS.",+ description:+ "A animated background grid pattern made with SVGs, fully customizable using Tailwind CSS.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/animated-grid-pattern.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/animated-grid-pattern.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/animated-grid-pattern.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"border-beam": {name: "border-beam",- description: "An animated beam of light which travels along the border of its container.",+ description:+ "An animated beam of light which travels along the border of its container.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/border-beam.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/border-beam.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/border-beam.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"animated-beam": {name: "animated-beam",- description: "An animated beam of light which travels along a path. Useful for showcasing the integration features of a website.",+ description:+ "An animated beam of light which travels along a path. Useful for showcasing the integration features of a website.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/animated-beam.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/animated-beam.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/animated-beam.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -615,82 +849,116 @@ export const Index: Record<string, any> = {description: "Fade in text as you scroll down the page.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/text-reveal.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/text-reveal.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/text-reveal.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"hyper-text": {name: "hyper-text",- description: "A text animation that scrambles letters before revealing the final text.",+ description:+ "A text animation that scrambles letters before revealing the final text.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/hyper-text.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/hyper-text.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/hyper-text.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"animated-gradient-text": {name: "animated-gradient-text",- description: "An animated gradient background which transitions between colors for text.",+ description:+ "An animated gradient background which transitions between colors for text.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/animated-gradient-text.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/animated-gradient-text.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/animated-gradient-text.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"orbiting-circles": {name: "orbiting-circles",- description: "A collection of circles which move in orbit along a circular path",+ description:+ "A collection of circles which move in orbit along a circular path",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/orbiting-circles.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/orbiting-circles.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/orbiting-circles.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},- "dock": {+ dock: {name: "dock",- description: "An implementation of the MacOS dock using react + tailwindcss + motion",+ description:+ "An implementation of the MacOS dock using react + tailwindcss + motion",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/dock.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/dock.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/dock.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -700,14 +968,20 @@ export const Index: Record<string, any> = {description: "A vertical rotation of words",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/word-rotate.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/word-rotate.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/word-rotate.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -717,14 +991,20 @@ export const Index: Record<string, any> = {description: "Overlapping circles of avatars.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/avatar-circles.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/avatar-circles.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/avatar-circles.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -734,48 +1014,68 @@ export const Index: Record<string, any> = {description: "Characters appearing in typed animation",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/typing-animation.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/typing-animation.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/typing-animation.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"sparkles-text": {name: "sparkles-text",- description: "A dynamic text that generates continuous sparkles with smooth transitions, perfect for highlighting text with animated stars.",+ description:+ "A dynamic text that generates continuous sparkles with smooth transitions, perfect for highlighting text with animated stars.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/sparkles-text.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/sparkles-text.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/sparkles-text.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"spinning-text": {name: "spinning-text",- description: "The Spinning Text component animates text in a circular motion with customizable speed, direction, color, and transitions for dynamic and engaging effects.",+ description:+ "The Spinning Text component animates text in a circular motion with customizable speed, direction, color, and transitions for dynamic and engaging effects.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/spinning-text.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/spinning-text.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/spinning-text.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -785,14 +1085,20 @@ export const Index: Record<string, any> = {description: "Text flipping character animation",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/flip-text.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/flip-text.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/flip-text.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -802,14 +1108,20 @@ export const Index: Record<string, any> = {description: "Comic text animation",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/comic-text.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/comic-text.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/comic-text.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -819,31 +1131,44 @@ export const Index: Record<string, any> = {description: "An interactive 3D tag cloud component",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/icon-cloud.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/icon-cloud.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/icon-cloud.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"text-animate": {name: "text-animate",- description: "A text animation component that animates text using a variety of different animations.",+ description:+ "A text animation component that animates text using a variety of different animations.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/text-animate.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/text-animate.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/text-animate.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -853,48 +1178,68 @@ export const Index: Record<string, any> = {description: "Scrolling text whose speed changes based on scroll speed",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/scroll-based-velocity.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/scroll-based-velocity.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/scroll-based-velocity.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"scratch-to-reveal": {name: "scratch-to-reveal",- description: "The ScratchToReveal component creates an interactive scratch-off effect with customizable dimensions and animations, revealing hidden content beneath.",+ description:+ "The ScratchToReveal component creates an interactive scratch-off effect with customizable dimensions and animations, revealing hidden content beneath.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/scratch-to-reveal.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/scratch-to-reveal.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/scratch-to-reveal.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"shiny-button": {name: "shiny-button",- description: "A shiny button component with dynamic styles in the dark mode or light mode.",+ description:+ "A shiny button component with dynamic styles in the dark mode or light mode.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/shiny-button.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/shiny-button.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/shiny-button.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -904,14 +1249,20 @@ export const Index: Record<string, any> = {description: "Sliding box animation that reveals text behind it.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/box-reveal.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/box-reveal.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/box-reveal.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -921,65 +1272,96 @@ export const Index: Record<string, any> = {description: "Shine border is an animated background border effect.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/shine-border.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/shine-border.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/shine-border.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"animated-circular-progress-bar": {name: "animated-circular-progress-bar",- description: "Animated Circular Progress Bar 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.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/animated-circular-progress-bar.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/animated-circular-progress-bar.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/animated-circular-progress-bar.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const mod = await import(+ "@/registry/magicui/animated-circular-progress-bar.tsx"+ )+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},- "confetti": {+ confetti: {name: "confetti",- description: "Confetti animations are best used to delight your users when something special happens",+ description:+ "Confetti animations are best used to delight your users when something special happens",type: "registry:ui",registryDependencies: ["button"],- files: [{- path: "registry/magicui/confetti.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/confetti.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/confetti.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"animated-subscribe-button": {name: "animated-subscribe-button",- description: "An animated subscribe button useful for showing a micro animation from intial to final result.",+ description:+ "An animated subscribe button useful for showing a micro animation from intial to final result.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/animated-subscribe-button.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/animated-subscribe-button.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/animated-subscribe-button.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const mod = await import(+ "@/registry/magicui/animated-subscribe-button.tsx"+ )+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -989,31 +1371,44 @@ export const Index: Record<string, any> = {description: "Cool mode effect for buttons, links, and other DOMs",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/cool-mode.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/cool-mode.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/cool-mode.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"pulsating-button": {name: "pulsating-button",- description: "An animated pulsating button useful for capturing attention of users.",+ description:+ "An animated pulsating button useful for capturing attention of users.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/pulsating-button.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/pulsating-button.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/pulsating-button.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1023,65 +1418,91 @@ export const Index: Record<string, any> = {description: "An animated button with ripple useful for user engagement.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/ripple-button.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/ripple-button.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/ripple-button.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"file-tree": {name: "file-tree",- description: "A component used to showcase the folder and file structure of a directory.",+ description:+ "A component used to showcase the folder and file structure of a directory.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/file-tree.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/file-tree.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/file-tree.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"blur-fade": {name: "blur-fade",- description: "Blur fade in and out animation. Used to smoothly fade in and out content.",+ description:+ "Blur fade in and out animation. Used to smoothly fade in and out content.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/blur-fade.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/blur-fade.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/blur-fade.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},- "safari": {+ safari: {name: "safari",description: "A safari browser mockup to showcase your website.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/safari.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/safari.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/safari.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1091,14 +1512,20 @@ export const Index: Record<string, any> = {description: "A mockup of the iPhone 15 Pro",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/iphone-15-pro.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/iphone-15-pro.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/iphone-15-pro.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1108,14 +1535,20 @@ export const Index: Record<string, any> = {description: "An animated button with a rainbow effect.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/rainbow-button.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/rainbow-button.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/rainbow-button.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1125,99 +1558,141 @@ export const Index: Record<string, any> = {description: "",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/interactive-hover-button.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/interactive-hover-button.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {- const mod = await import("@/registry/magicui/interactive-hover-button.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const mod = await import(+ "@/registry/magicui/interactive-hover-button.tsx"+ )+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},- "terminal": {+ terminal: {name: "terminal",description: "A terminal component",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/terminal.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/terminal.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/terminal.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"video-text": {name: "video-text",- description: "A component that displays text with a video playing in the background.",+ description:+ "A component that displays text with a video playing in the background.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/video-text.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/video-text.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/video-text.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"pixel-image": {name: "pixel-image",- description: "A component that displays an image with a pixelated effect, creating a retro aesthetic.",+ description:+ "A component that displays an image with a pixelated effect, creating a retro aesthetic.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/pixel-image.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/pixel-image.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/pixel-image.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},- "highlighter": {+ highlighter: {name: "highlighter",- description: "A text highlighter that mimics the effect of a human-drawn marker stroke.",+ description:+ "A text highlighter that mimics the effect of a human-drawn marker stroke.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/highlighter.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/highlighter.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/highlighter.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"arc-timeline": {name: "arc-timeline",- description: "A curved timeline that elegantly visualizes key milestones, perfect for Web3 and AI roadmaps.",+ description:+ "A curved timeline that elegantly visualizes key milestones, perfect for Web3 and AI roadmaps.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/arc-timeline.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/arc-timeline.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/arc-timeline.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1227,48 +1702,68 @@ export const Index: Record<string, any> = {description: "A component for theme changing animation.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/animated-theme-toggler.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/animated-theme-toggler.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/animated-theme-toggler.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"grid-beams": {name: "grid-beams",- description: "A dynamic grid background with animated light beams rays and grid patterns.",+ description:+ "A dynamic grid background with animated light beams rays and grid patterns.",type: "registry:ui",registryDependencies: undefined,- files: [{- path: "registry/magicui/grid-beams.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/magicui/grid-beams.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/magicui/grid-beams.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"magic-card-demo": {name: "magic-card-demo",- description: "Example showing a spotlight effect that follows your mouse cursor and highlights borders on hover.",+ description:+ "Example showing a spotlight effect that follows your mouse cursor and highlights borders on hover.",type: "registry:example",registryDependencies: ["@magicui/magic-card"],- files: [{- path: "registry/example/magic-card-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/magic-card-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/magic-card-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1278,14 +1773,20 @@ export const Index: Record<string, any> = {description: "Example showing a mockup of an Android device.",type: "registry:example",registryDependencies: ["@magicui/android"],- files: [{- path: "registry/example/android-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/android-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/android-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1295,14 +1796,20 @@ export const Index: Record<string, any> = {description: "Second example showing a mockup of an Android device.",type: "registry:example",registryDependencies: ["@magicui/android"],- files: [{- path: "registry/example/android-demo-2.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/android-demo-2.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/android-demo-2.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1312,31 +1819,44 @@ export const Index: Record<string, any> = {description: "Third example showing a mockup of an Android device.",type: "registry:example",registryDependencies: ["@magicui/android"],- files: [{- path: "registry/example/android-demo-3.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/android-demo-3.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/android-demo-3.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"warp-background-demo": {name: "warp-background-demo",- description: "Example showing a card with a time warping background effect.",+ description:+ "Example showing a card with a time warping background effect.",type: "registry:example",registryDependencies: ["@magicui/warp-background"],- files: [{- path: "registry/example/warp-background-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/warp-background-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/warp-background-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1346,14 +1866,20 @@ export const Index: Record<string, any> = {description: "Example showing a text component with a moving line shadow.",type: "registry:example",registryDependencies: ["@magicui/line-shadow-text"],- files: [{- path: "registry/example/line-shadow-text-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/line-shadow-text-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/line-shadow-text-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1363,14 +1889,20 @@ export const Index: Record<string, any> = {description: "Example showing a beautiful aurora text effect.",type: "registry:example",registryDependencies: ["@magicui/aurora-text"],- files: [{- path: "registry/example/aurora-text-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/aurora-text-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/aurora-text-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1380,14 +1912,20 @@ export const Index: Record<string, any> = {description: "Example showing a dynamic text morphing component.",type: "registry:example",registryDependencies: ["@magicui/morphing-text"],- files: [{- path: "registry/example/morphing-text-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/morphing-text-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/morphing-text-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1397,14 +1935,20 @@ export const Index: Record<string, any> = {description: "Example showing animated scroll progress for your pages.",type: "registry:example",registryDependencies: ["@magicui/scroll-progress"],- files: [{- path: "registry/example/scroll-progress-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/scroll-progress-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/scroll-progress-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1413,15 +1957,21 @@ export const Index: Record<string, any> = {name: "lens-demo",description: "Example showing a lens effect component",type: "registry:example",- registryDependencies: ["button","card","@magicui/lens"],- files: [{- path: "registry/example/lens-demo.tsx",- type: "registry:example",- target: ""- }],+ registryDependencies: ["button", "card", "@magicui/lens"],+ files: [+ {+ path: "registry/example/lens-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/lens-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1430,15 +1980,21 @@ export const Index: Record<string, any> = {name: "lens-demo-2",description: "Second example showing a lens effect component",type: "registry:example",- registryDependencies: ["button","card","@magicui/lens"],- files: [{- path: "registry/example/lens-demo-2.tsx",- type: "registry:example",- target: ""- }],+ registryDependencies: ["button", "card", "@magicui/lens"],+ files: [+ {+ path: "registry/example/lens-demo-2.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/lens-demo-2.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1447,15 +2003,21 @@ export const Index: Record<string, any> = {name: "lens-demo-3",description: "Third example showing a lens effect component",type: "registry:example",- registryDependencies: ["button","card","@magicui/lens"],- files: [{- path: "registry/example/lens-demo-3.tsx",- type: "registry:example",- target: ""- }],+ registryDependencies: ["button", "card", "@magicui/lens"],+ files: [+ {+ path: "registry/example/lens-demo-3.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/lens-demo-3.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1465,14 +2027,20 @@ export const Index: Record<string, any> = {description: "Example showing a pointer effect component",type: "registry:example",registryDependencies: ["@magicui/pointer"],- files: [{- path: "registry/example/pointer-demo-1.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/pointer-demo-1.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/pointer-demo-1.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1482,31 +2050,44 @@ export const Index: Record<string, any> = {description: "Basic smooth cursor example",type: "registry:example",registryDependencies: ["@magicui/smooth-cursor"],- files: [{- path: "registry/example/smooth-cursor-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/smooth-cursor-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/smooth-cursor-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"progressive-blur-demo": {name: "progressive-blur-demo",- description: "Example showing progressive blur effect for scrollable content.",+ description:+ "Example showing progressive blur effect for scrollable content.",type: "registry:example",registryDependencies: ["@magicui/progressive-blur"],- files: [{- path: "registry/example/progressive-blur-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/progressive-blur-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/progressive-blur-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1516,14 +2097,20 @@ export const Index: Record<string, any> = {description: "Example showing a beautiful neon card effect.",type: "registry:example",registryDependencies: ["@magicui/neon-gradient-card"],- files: [{- path: "registry/example/neon-gradient-card-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/neon-gradient-card-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/neon-gradient-card-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1533,14 +2120,20 @@ export const Index: Record<string, any> = {description: "Example showing a meteor shower effect.",type: "registry:example",registryDependencies: ["@magicui/meteors"],- files: [{- path: "registry/example/meteors-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/meteors-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/meteors-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1550,14 +2143,20 @@ export const Index: Record<string, any> = {description: "Example showing a background grid pattern made with SVGs.",type: "registry:example",registryDependencies: ["@magicui/grid-pattern"],- files: [{- path: "registry/example/grid-pattern-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/grid-pattern-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/grid-pattern-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1567,14 +2166,22 @@ export const Index: Record<string, any> = {description: "Example showing a grid pattern with linear gradient effects.",type: "registry:example",registryDependencies: ["@magicui/grid-pattern"],- files: [{- path: "registry/example/grid-pattern-linear-gradient.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/grid-pattern-linear-gradient.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {- const mod = await import("@/registry/example/grid-pattern-linear-gradient.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const mod = await import(+ "@/registry/example/grid-pattern-linear-gradient.tsx"+ )+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1584,14 +2191,20 @@ export const Index: Record<string, any> = {description: "Example showing a dashed grid pattern.",type: "registry:example",registryDependencies: ["@magicui/grid-pattern"],- files: [{- path: "registry/example/grid-pattern-dashed.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/grid-pattern-dashed.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/grid-pattern-dashed.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1601,14 +2214,20 @@ export const Index: Record<string, any> = {description: "Example showing a background dot pattern made with SVGs.",type: "registry:example",registryDependencies: ["@magicui/dot-pattern"],- files: [{- path: "registry/example/dot-pattern-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/dot-pattern-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/dot-pattern-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1618,14 +2237,22 @@ export const Index: Record<string, any> = {description: "Example showing a dot pattern with linear gradient effects.",type: "registry:example",registryDependencies: ["@magicui/dot-pattern"],- files: [{- path: "registry/example/dot-pattern-linear-gradient.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/dot-pattern-linear-gradient.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {- const mod = await import("@/registry/example/dot-pattern-linear-gradient.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const mod = await import(+ "@/registry/example/dot-pattern-linear-gradient.tsx"+ )+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1635,14 +2262,22 @@ export const Index: Record<string, any> = {description: "Example showing a dot pattern with glow effect",type: "registry:example",registryDependencies: ["@magicui/dot-pattern"],- files: [{- path: "registry/example/dot-pattern-with-glow-effect.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/dot-pattern-with-glow-effect.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {- const mod = await import("@/registry/example/dot-pattern-with-glow-effect.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const mod = await import(+ "@/registry/example/dot-pattern-with-glow-effect.tsx"+ )+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1652,31 +2287,46 @@ export const Index: Record<string, any> = {description: "Example showing a flickering grid background.",type: "registry:example",registryDependencies: ["@magicui/flickering-grid"],- files: [{- path: "registry/example/flickering-grid-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/flickering-grid-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/flickering-grid-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"flickering-grid-rounded-demo": {name: "flickering-grid-rounded-demo",- description: "Example showing a flickering grid background with rounded corners.",+ description:+ "Example showing a flickering grid background with rounded corners.",type: "registry:example",registryDependencies: ["@magicui/flickering-grid"],- files: [{- path: "registry/example/flickering-grid-rounded-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/flickering-grid-rounded-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {- const mod = await import("@/registry/example/flickering-grid-rounded-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const mod = await import(+ "@/registry/example/flickering-grid-rounded-demo.tsx"+ )+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1686,48 +2336,70 @@ export const Index: Record<string, any> = {description: "Example showing a hero video dialog component.",type: "registry:example",registryDependencies: ["@magicui/hero-video-dialog"],- files: [{- path: "registry/example/hero-video-dialog-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/hero-video-dialog-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/hero-video-dialog-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"hero-video-dialog-demo-top-in-bottom-out": {name: "hero-video-dialog-demo-top-in-bottom-out",- description: "Example showing a hero video dialog with top-in bottom-out animation.",+ description:+ "Example showing a hero video dialog with top-in bottom-out animation.",type: "registry:example",registryDependencies: ["@magicui/hero-video-dialog"],- files: [{- path: "registry/example/hero-video-dialog-demo-top-in-bottom-out.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/hero-video-dialog-demo-top-in-bottom-out.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {- const mod = await import("@/registry/example/hero-video-dialog-demo-top-in-bottom-out.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const mod = await import(+ "@/registry/example/hero-video-dialog-demo-top-in-bottom-out.tsx"+ )+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"code-comparison-demo": {name: "code-comparison-demo",- description: "Example showing a component which compares two code snippets.",+ description:+ "Example showing a component which compares two code snippets.",type: "registry:example",registryDependencies: ["@magicui/code-comparison"],- files: [{- path: "registry/example/code-comparison-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/code-comparison-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/code-comparison-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1737,14 +2409,20 @@ export const Index: Record<string, any> = {description: "Example showing how to copy code to clipboard.",type: "registry:example",registryDependencies: ["@magicui/script-copy-btn"],- files: [{- path: "registry/example/script-copy-btn-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/script-copy-btn-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/script-copy-btn-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1754,14 +2432,20 @@ export const Index: Record<string, any> = {description: "Example showing an infinite scrolling component.",type: "registry:example",registryDependencies: ["@magicui/marquee"],- files: [{- path: "registry/example/marquee-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/marquee-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/marquee-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1771,14 +2455,20 @@ export const Index: Record<string, any> = {description: "Example showing a vertical infinite scrolling component.",type: "registry:example",registryDependencies: ["@magicui/marquee"],- files: [{- path: "registry/example/marquee-demo-vertical.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/marquee-demo-vertical.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/marquee-demo-vertical.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1788,14 +2478,20 @@ export const Index: Record<string, any> = {description: "Example showing an infinite scrolling logo carousel.",type: "registry:example",registryDependencies: ["@magicui/marquee"],- files: [{- path: "registry/example/marquee-logos.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/marquee-logos.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/marquee-logos.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1805,14 +2501,20 @@ export const Index: Record<string, any> = {description: "Example showing a 3D infinite scrolling component.",type: "registry:example",registryDependencies: ["@magicui/marquee"],- files: [{- path: "registry/example/marquee-3d.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/marquee-3d.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/marquee-3d.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1822,14 +2524,20 @@ export const Index: Record<string, any> = {description: "Example showing an autorotating, interactive WebGL globe.",type: "registry:example",registryDependencies: ["@magicui/globe"],- files: [{- path: "registry/example/globe-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/globe-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/globe-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1839,14 +2547,20 @@ export const Index: Record<string, any> = {description: "Example showing a tweet card with author info.",type: "registry:example",registryDependencies: ["@magicui/tweet-card"],- files: [{- path: "registry/example/tweet-card-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/tweet-card-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/tweet-card-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1856,14 +2570,20 @@ export const Index: Record<string, any> = {description: "Example showing a tweet card with images.",type: "registry:example",registryDependencies: ["@magicui/tweet-card"],- files: [{- path: "registry/example/tweet-card-images.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/tweet-card-images.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/tweet-card-images.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1873,14 +2593,20 @@ export const Index: Record<string, any> = {description: "Example showing a tweet card with meta preview.",type: "registry:example",registryDependencies: ["@magicui/tweet-card"],- files: [{- path: "registry/example/tweet-card-meta-preview.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/tweet-card-meta-preview.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/tweet-card-meta-preview.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1890,14 +2616,20 @@ export const Index: Record<string, any> = {description: "Example showing a button with a shimmering light effect.",type: "registry:example",registryDependencies: ["@magicui/shimmer-button"],- files: [{- path: "registry/example/shimmer-button-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/shimmer-button-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/shimmer-button-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1906,15 +2638,28 @@ export const Index: Record<string, any> = {name: "bento-demo",description: "Example showing a bento grid layout for showcasing features.",type: "registry:example",- registryDependencies: ["button","calendar","@magicui/marquee","@magicui/bento-grid","@magicui/animated-list-demo","@magicui/animated-beam-multiple-outputs"],- files: [{- path: "registry/example/bento-demo.tsx",- type: "registry:example",- target: ""- }],+ registryDependencies: [+ "button",+ "calendar",+ "@magicui/marquee",+ "@magicui/bento-grid",+ "@magicui/animated-list-demo",+ "@magicui/animated-beam-multiple-outputs",+ ],+ files: [+ {+ path: "registry/example/bento-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/bento-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1924,14 +2669,20 @@ export const Index: Record<string, any> = {description: "Example showing a vertical bento grid layout.",type: "registry:example",registryDependencies: ["@magicui/bento-grid"],- files: [{- path: "registry/example/bento-demo-vertical.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/bento-demo-vertical.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/bento-demo-vertical.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1941,14 +2692,20 @@ export const Index: Record<string, any> = {description: "Example showing animated counting numbers.",type: "registry:example",registryDependencies: ["@magicui/number-ticker"],- files: [{- path: "registry/example/number-ticker-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/number-ticker-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/number-ticker-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1958,14 +2715,20 @@ export const Index: Record<string, any> = {description: "Example showing animated counting numbers.",type: "registry:example",registryDependencies: ["@magicui/number-ticker"],- files: [{- path: "registry/example/number-ticker-demo-2.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/number-ticker-demo-2.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/number-ticker-demo-2.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1975,14 +2738,22 @@ export const Index: Record<string, any> = {description: "Example showing animated counting decimal numbers.",type: "registry:example",registryDependencies: ["@magicui/number-ticker"],- files: [{- path: "registry/example/number-ticker-decimal-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/number-ticker-decimal-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {- const mod = await import("@/registry/example/number-ticker-decimal-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const mod = await import(+ "@/registry/example/number-ticker-decimal-demo.tsx"+ )+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -1992,14 +2763,20 @@ export const Index: Record<string, any> = {description: "Example showing an animated ripple effect.",type: "registry:example",registryDependencies: ["@magicui/ripple"],- files: [{- path: "registry/example/ripple-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/ripple-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/ripple-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2009,14 +2786,20 @@ export const Index: Record<string, any> = {description: "Example showing an animated scrolling retro grid effect.",type: "registry:example",registryDependencies: ["@magicui/retro-grid"],- files: [{- path: "registry/example/retro-grid-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/retro-grid-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/retro-grid-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2026,14 +2809,20 @@ export const Index: Record<string, any> = {description: "Example showing a list with sequenced item animations.",type: "registry:example",registryDependencies: ["@magicui/animated-list"],- files: [{- path: "registry/example/animated-list-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/animated-list-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/animated-list-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2043,14 +2832,22 @@ export const Index: Record<string, any> = {description: "Example showing text with a shimmering light effect.",type: "registry:example",registryDependencies: ["@magicui/animated-shiny-text"],- files: [{- path: "registry/example/animated-shiny-text-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/animated-shiny-text-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {- const mod = await import("@/registry/example/animated-shiny-text-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const mod = await import(+ "@/registry/example/animated-shiny-text-demo.tsx"+ )+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2060,14 +2857,20 @@ export const Index: Record<string, any> = {description: "Example showing interactive particle effects.",type: "registry:example",registryDependencies: ["@magicui/particles"],- files: [{- path: "registry/example/particles-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/particles-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/particles-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2077,14 +2880,22 @@ export const Index: Record<string, any> = {description: "Example showing an animated grid pattern background.",type: "registry:example",registryDependencies: ["@magicui/animated-grid-pattern"],- files: [{- path: "registry/example/animated-grid-pattern-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/animated-grid-pattern-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {- const mod = await import("@/registry/example/animated-grid-pattern-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const mod = await import(+ "@/registry/example/animated-grid-pattern-demo.tsx"+ )+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2094,31 +2905,48 @@ export const Index: Record<string, any> = {description: "Example showing an interactive grid pattern background.",type: "registry:example",registryDependencies: ["@magicui/interactive-grid-pattern"],- files: [{- path: "registry/example/interactive-grid-pattern-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/interactive-grid-pattern-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {- const mod = await import("@/registry/example/interactive-grid-pattern-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const mod = await import(+ "@/registry/example/interactive-grid-pattern-demo.tsx"+ )+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"interactive-grid-pattern-demo-2": {name: "interactive-grid-pattern-demo-2",- description: "Second example showing an interactive grid pattern background.",+ description:+ "Second example showing an interactive grid pattern background.",type: "registry:example",registryDependencies: ["@magicui/interactive-grid-pattern"],- files: [{- path: "registry/example/interactive-grid-pattern-demo-2.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/interactive-grid-pattern-demo-2.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {- const mod = await import("@/registry/example/interactive-grid-pattern-demo-2.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const mod = await import(+ "@/registry/example/interactive-grid-pattern-demo-2.tsx"+ )+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2128,14 +2956,20 @@ export const Index: Record<string, any> = {description: "Example showing an animated border beam effect.",type: "registry:example",registryDependencies: ["@magicui/border-beam"],- files: [{- path: "registry/example/border-beam-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/border-beam-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/border-beam-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2144,15 +2978,21 @@ export const Index: Record<string, any> = {name: "border-beam-demo-2",description: "Example showing an animated border beam effect.",type: "registry:example",- registryDependencies: ["button","card","@magicui/border-beam"],- files: [{- path: "registry/example/border-beam-demo-2.tsx",- type: "registry:example",- target: ""- }],+ registryDependencies: ["button", "card", "@magicui/border-beam"],+ files: [+ {+ path: "registry/example/border-beam-demo-2.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/border-beam-demo-2.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2161,15 +3001,27 @@ export const Index: Record<string, any> = {name: "border-beam-demo-3",description: "Example showing an animated border beam effect.",type: "registry:example",- registryDependencies: ["button","card","input","label","@magicui/border-beam"],- files: [{- path: "registry/example/border-beam-demo-3.tsx",- type: "registry:example",- target: ""- }],+ registryDependencies: [+ "button",+ "card",+ "input",+ "label",+ "@magicui/border-beam",+ ],+ files: [+ {+ path: "registry/example/border-beam-demo-3.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/border-beam-demo-3.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2178,15 +3030,21 @@ export const Index: Record<string, any> = {name: "border-beam-demo-4",description: "Example showing an animated border beam effect.",type: "registry:example",- registryDependencies: ["button","@magicui/border-beam"],- files: [{- path: "registry/example/border-beam-demo-4.tsx",- type: "registry:example",- target: ""- }],+ registryDependencies: ["button", "@magicui/border-beam"],+ files: [+ {+ path: "registry/example/border-beam-demo-4.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/border-beam-demo-4.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2196,14 +3054,20 @@ export const Index: Record<string, any> = {description: "Example showing an animated beam of light effect.",type: "registry:example",registryDependencies: ["@magicui/animated-beam"],- files: [{- path: "registry/example/animated-beam-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/animated-beam-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/animated-beam-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2213,14 +3077,22 @@ export const Index: Record<string, any> = {description: "Example showing a unidirectional animated beam effect.",type: "registry:example",registryDependencies: ["@magicui/animated-beam"],- files: [{- path: "registry/example/animated-beam-unidirectional.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/animated-beam-unidirectional.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {- const mod = await import("@/registry/example/animated-beam-unidirectional.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const mod = await import(+ "@/registry/example/animated-beam-unidirectional.tsx"+ )+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2230,14 +3102,22 @@ export const Index: Record<string, any> = {description: "Example showing a bidirectional animated beam effect.",type: "registry:example",registryDependencies: ["@magicui/animated-beam"],- files: [{- path: "registry/example/animated-beam-bidirectional.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/animated-beam-bidirectional.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {- const mod = await import("@/registry/example/animated-beam-bidirectional.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const mod = await import(+ "@/registry/example/animated-beam-bidirectional.tsx"+ )+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2247,14 +3127,22 @@ export const Index: Record<string, any> = {description: "Example showing animated beams with multiple input points.",type: "registry:example",registryDependencies: ["@magicui/animated-beam"],- files: [{- path: "registry/example/animated-beam-multiple-inputs.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/animated-beam-multiple-inputs.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {- const mod = await import("@/registry/example/animated-beam-multiple-inputs.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const mod = await import(+ "@/registry/example/animated-beam-multiple-inputs.tsx"+ )+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2264,14 +3152,22 @@ export const Index: Record<string, any> = {description: "Example showing animated beams with multiple output points.",type: "registry:example",registryDependencies: ["@magicui/animated-beam"],- files: [{- path: "registry/example/animated-beam-multiple-outputs.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/animated-beam-multiple-outputs.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {- const mod = await import("@/registry/example/animated-beam-multiple-outputs.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const mod = await import(+ "@/registry/example/animated-beam-multiple-outputs.tsx"+ )+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2281,14 +3177,20 @@ export const Index: Record<string, any> = {description: "Example showing text that fades in on scroll.",type: "registry:example",registryDependencies: ["@magicui/text-reveal"],- files: [{- path: "registry/example/text-reveal-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/text-reveal-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/text-reveal-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2298,31 +3200,48 @@ export const Index: Record<string, any> = {description: "Example showing text with animated gradient backgrounds.",type: "registry:example",registryDependencies: ["@magicui/animated-gradient-text"],- files: [{- path: "registry/example/animated-gradient-text-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/animated-gradient-text-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {- const mod = await import("@/registry/example/animated-gradient-text-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const mod = await import(+ "@/registry/example/animated-gradient-text-demo.tsx"+ )+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"animated-gradient-text-demo-2": {name: "animated-gradient-text-demo-2",- description: "Second example showing text with animated gradient backgrounds.",+ description:+ "Second example showing text with animated gradient backgrounds.",type: "registry:example",registryDependencies: ["@magicui/animated-gradient-text"],- files: [{- path: "registry/example/animated-gradient-text-demo-2.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/animated-gradient-text-demo-2.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {- const mod = await import("@/registry/example/animated-gradient-text-demo-2.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const mod = await import(+ "@/registry/example/animated-gradient-text-demo-2.tsx"+ )+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2332,14 +3251,20 @@ export const Index: Record<string, any> = {description: "Example showing circles moving in orbital paths.",type: "registry:example",registryDependencies: ["@magicui/orbiting-circles"],- files: [{- path: "registry/example/orbiting-circles-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/orbiting-circles-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/orbiting-circles-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2348,15 +3273,21 @@ export const Index: Record<string, any> = {name: "dock-demo",description: "Example showing a MacOS-style dock implementation.",type: "registry:example",- registryDependencies: ["button","@magicui/dock"],- files: [{- path: "registry/example/dock-demo.tsx",- type: "registry:example",- target: ""- }],+ registryDependencies: ["button", "@magicui/dock"],+ files: [+ {+ path: "registry/example/dock-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/dock-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2366,14 +3297,20 @@ export const Index: Record<string, any> = {description: "Second example showing a MacOS-style dock implementation.",type: "registry:example",registryDependencies: ["@magicui/dock"],- files: [{- path: "registry/example/dock-demo-2.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/dock-demo-2.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/dock-demo-2.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2383,14 +3320,20 @@ export const Index: Record<string, any> = {description: "Third example showing a MacOS-style dock implementation.",type: "registry:example",registryDependencies: ["@magicui/dock"],- files: [{- path: "registry/example/dock-demo-3.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/dock-demo-3.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/dock-demo-3.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2400,14 +3343,20 @@ export const Index: Record<string, any> = {description: "Example showing vertical word rotation animation.",type: "registry:example",registryDependencies: ["@magicui/word-rotate"],- files: [{- path: "registry/example/word-rotate-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/word-rotate-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/word-rotate-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2417,14 +3366,20 @@ export const Index: Record<string, any> = {description: "Example showing text with scrambling letter animations.",type: "registry:example",registryDependencies: ["@magicui/hyper-text"],- files: [{- path: "registry/example/hyper-text-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/hyper-text-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/hyper-text-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2434,14 +3389,20 @@ export const Index: Record<string, any> = {description: "Example showing overlapping avatar circles.",type: "registry:example",registryDependencies: ["@magicui/avatar-circles"],- files: [{- path: "registry/example/avatar-circles-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/avatar-circles-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/avatar-circles-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2451,14 +3412,20 @@ export const Index: Record<string, any> = {description: "Example showing typed character animations.",type: "registry:example",registryDependencies: ["@magicui/typing-animation"],- files: [{- path: "registry/example/typing-animation-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/typing-animation-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/typing-animation-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2468,31 +3435,48 @@ export const Index: Record<string, any> = {description: "Example showing text speed changes based on scroll velocity.",type: "registry:example",registryDependencies: ["@magicui/scroll-based-velocity"],- files: [{- path: "registry/example/scroll-based-velocity-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/scroll-based-velocity-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {- const mod = await import("@/registry/example/scroll-based-velocity-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const mod = await import(+ "@/registry/example/scroll-based-velocity-demo.tsx"+ )+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"scroll-based-velocity-images-demo": {name: "scroll-based-velocity-images-demo",- description: "Example showing Unsplash images scrolling with speed reacting to scroll velocity.",+ description:+ "Example showing Unsplash images scrolling with speed reacting to scroll velocity.",type: "registry:example",registryDependencies: ["@magicui/scroll-based-velocity"],- files: [{- path: "registry/example/scroll-based-velocity-images-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/scroll-based-velocity-images-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {- const mod = await import("@/registry/example/scroll-based-velocity-images-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const mod = await import(+ "@/registry/example/scroll-based-velocity-images-demo.tsx"+ )+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2502,14 +3486,20 @@ export const Index: Record<string, any> = {description: "Example showing an interactive scratch-off reveal effect.",type: "registry:example",registryDependencies: ["@magicui/scratch-to-reveal"],- files: [{- path: "registry/example/scratch-to-reveal-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/scratch-to-reveal-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/scratch-to-reveal-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2519,14 +3509,20 @@ export const Index: Record<string, any> = {description: "Example showing text with character flip animations.",type: "registry:example",registryDependencies: ["@magicui/flip-text"],- files: [{- path: "registry/example/flip-text-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/flip-text-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/flip-text-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2536,14 +3532,20 @@ export const Index: Record<string, any> = {description: "Example showing text with animated sparkle effects.",type: "registry:example",registryDependencies: ["@magicui/sparkles-text"],- files: [{- path: "registry/example/sparkles-text-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/sparkles-text-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/sparkles-text-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2553,14 +3555,20 @@ export const Index: Record<string, any> = {description: "Example showing spinning text animation.",type: "registry:example",registryDependencies: ["@magicui/spinning-text"],- files: [{- path: "registry/example/spinning-text-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/spinning-text-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/spinning-text-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2570,14 +3578,20 @@ export const Index: Record<string, any> = {description: "Example showing spinning text animation.",type: "registry:example",registryDependencies: ["@magicui/spinning-text"],- files: [{- path: "registry/example/spinning-text-demo-2.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/spinning-text-demo-2.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/spinning-text-demo-2.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2587,14 +3601,20 @@ export const Index: Record<string, any> = {description: "Example showing comic text animation.",type: "registry:example",registryDependencies: ["@magicui/comic-text"],- files: [{- path: "registry/example/comic-text-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/comic-text-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/comic-text-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2604,14 +3624,20 @@ export const Index: Record<string, any> = {description: "Example showing an interactive 3D icon cloud.",type: "registry:example",registryDependencies: ["@magicui/icon-cloud"],- files: [{- path: "registry/example/icon-cloud-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/icon-cloud-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/icon-cloud-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2621,14 +3647,20 @@ export const Index: Record<string, any> = {description: "Second example showing an interactive 3D icon cloud.",type: "registry:example",registryDependencies: ["@magicui/icon-cloud"],- files: [{- path: "registry/example/icon-cloud-demo-2.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/icon-cloud-demo-2.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/icon-cloud-demo-2.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2638,14 +3670,20 @@ export const Index: Record<string, any> = {description: "Third example showing an interactive 3D icon cloud.",type: "registry:example",registryDependencies: ["@magicui/icon-cloud"],- files: [{- path: "registry/example/icon-cloud-demo-3.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/icon-cloud-demo-3.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/icon-cloud-demo-3.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2655,14 +3693,20 @@ export const Index: Record<string, any> = {description: "Example showing various text animations.",type: "registry:example",registryDependencies: ["@magicui/text-animate"],- files: [{- path: "registry/example/text-animate-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/text-animate-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/text-animate-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2672,14 +3716,20 @@ export const Index: Record<string, any> = {description: "Second example showing various text animations.",type: "registry:example",registryDependencies: ["@magicui/text-animate"],- files: [{- path: "registry/example/text-animate-demo-2.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/text-animate-demo-2.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/text-animate-demo-2.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2689,14 +3739,20 @@ export const Index: Record<string, any> = {description: "Third example showing various text animations.",type: "registry:example",registryDependencies: ["@magicui/text-animate"],- files: [{- path: "registry/example/text-animate-demo-3.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/text-animate-demo-3.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/text-animate-demo-3.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2706,14 +3762,20 @@ export const Index: Record<string, any> = {description: "Fourth example showing various text animations.",type: "registry:example",registryDependencies: ["@magicui/text-animate"],- files: [{- path: "registry/example/text-animate-demo-4.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/text-animate-demo-4.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/text-animate-demo-4.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2723,14 +3785,20 @@ export const Index: Record<string, any> = {description: "Fifth example showing various text animations.",type: "registry:example",registryDependencies: ["@magicui/text-animate"],- files: [{- path: "registry/example/text-animate-demo-5.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/text-animate-demo-5.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/text-animate-demo-5.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2740,14 +3808,20 @@ export const Index: Record<string, any> = {description: "Sixth example showing various text animations.",type: "registry:example",registryDependencies: ["@magicui/text-animate"],- files: [{- path: "registry/example/text-animate-demo-6.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/text-animate-demo-6.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/text-animate-demo-6.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2757,14 +3831,20 @@ export const Index: Record<string, any> = {description: "Seventh example showing various text animations.",type: "registry:example",registryDependencies: ["@magicui/text-animate"],- files: [{- path: "registry/example/text-animate-demo-7.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/text-animate-demo-7.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/text-animate-demo-7.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2774,14 +3854,20 @@ export const Index: Record<string, any> = {description: "Eighth example showing various text animations.",type: "registry:example",registryDependencies: ["@magicui/text-animate"],- files: [{- path: "registry/example/text-animate-demo-8.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/text-animate-demo-8.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/text-animate-demo-8.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2791,14 +3877,20 @@ export const Index: Record<string, any> = {description: "Ninth example showing various text animations.",type: "registry:example",registryDependencies: ["@magicui/text-animate"],- files: [{- path: "registry/example/text-animate-demo-9.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/text-animate-demo-9.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/text-animate-demo-9.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2808,14 +3900,20 @@ export const Index: Record<string, any> = {description: "Example showing a shiny button with dynamic styles.",type: "registry:example",registryDependencies: ["@magicui/shiny-button"],- files: [{- path: "registry/example/shiny-button-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/shiny-button-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/shiny-button-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2825,14 +3923,20 @@ export const Index: Record<string, any> = {description: "Example showing a sliding box text reveal animation.",type: "registry:example",registryDependencies: ["@magicui/box-reveal"],- files: [{- path: "registry/example/box-reveal-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/box-reveal-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/box-reveal-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2842,14 +3946,22 @@ export const Index: Record<string, any> = {description: "Example showing an animated circular progress gauge.",type: "registry:example",registryDependencies: ["@magicui/animated-circular-progress-bar"],- files: [{- path: "registry/example/animated-circular-progress-bar-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/animated-circular-progress-bar-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {- const mod = await import("@/registry/example/animated-circular-progress-bar-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const mod = await import(+ "@/registry/example/animated-circular-progress-bar-demo.tsx"+ )+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2859,14 +3971,20 @@ export const Index: Record<string, any> = {description: "Example showing an animated shining border effect.",type: "registry:example",registryDependencies: ["@magicui/shine-border"],- files: [{- path: "registry/example/shine-border-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/shine-border-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/shine-border-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2876,14 +3994,20 @@ export const Index: Record<string, any> = {description: "Second example showing an animated shining border effect.",type: "registry:example",registryDependencies: ["@magicui/shine-border"],- files: [{- path: "registry/example/shine-border-demo-2.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/shine-border-demo-2.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/shine-border-demo-2.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2893,14 +4017,20 @@ export const Index: Record<string, any> = {description: "Example showing confetti animations for celebrations.",type: "registry:example",registryDependencies: ["@magicui/confetti"],- files: [{- path: "registry/example/confetti-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/confetti-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/confetti-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2910,14 +4040,20 @@ export const Index: Record<string, any> = {description: "Example showing basic confetti cannon animation.",type: "registry:example",registryDependencies: ["@magicui/confetti"],- files: [{- path: "registry/example/confetti-basic-cannon.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/confetti-basic-cannon.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/confetti-basic-cannon.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2927,14 +4063,22 @@ export const Index: Record<string, any> = {description: "Example showing confetti with random directions.",type: "registry:example",registryDependencies: ["@magicui/confetti"],- files: [{- path: "registry/example/confetti-random-direction.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/confetti-random-direction.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {- const mod = await import("@/registry/example/confetti-random-direction.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const mod = await import(+ "@/registry/example/confetti-random-direction.tsx"+ )+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2944,14 +4088,20 @@ export const Index: Record<string, any> = {description: "Example showing fireworks-style confetti animation.",type: "registry:example",registryDependencies: ["@magicui/confetti"],- files: [{- path: "registry/example/confetti-fireworks.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/confetti-fireworks.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/confetti-fireworks.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2961,14 +4111,20 @@ export const Index: Record<string, any> = {description: "Example showing star-shaped confetti animation.",type: "registry:example",registryDependencies: ["@magicui/confetti"],- files: [{- path: "registry/example/confetti-stars.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/confetti-stars.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/confetti-stars.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2978,14 +4134,20 @@ export const Index: Record<string, any> = {description: "Example showing side-mounted confetti cannons.",type: "registry:example",registryDependencies: ["@magicui/confetti"],- files: [{- path: "registry/example/confetti-side-cannons.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/confetti-side-cannons.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/confetti-side-cannons.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -2995,14 +4157,20 @@ export const Index: Record<string, any> = {description: "Example showing confetti with custom shape particles.",type: "registry:example",registryDependencies: ["@magicui/confetti"],- files: [{- path: "registry/example/confetti-custom-shapes.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/confetti-custom-shapes.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/confetti-custom-shapes.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -3012,48 +4180,72 @@ export const Index: Record<string, any> = {description: "Example showing confetti with emoji particles.",type: "registry:example",registryDependencies: ["@magicui/confetti"],- files: [{- path: "registry/example/confetti-emoji.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/confetti-emoji.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/confetti-emoji.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"animated-subscribe-button-demo": {name: "animated-subscribe-button-demo",- description: "Example showing an animated subscribe button with micro animations.",+ description:+ "Example showing an animated subscribe button with micro animations.",type: "registry:example",registryDependencies: ["@magicui/animated-subscribe-button"],- files: [{- path: "registry/example/animated-subscribe-button-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/animated-subscribe-button-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {- const mod = await import("@/registry/example/animated-subscribe-button-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const mod = await import(+ "@/registry/example/animated-subscribe-button-demo.tsx"+ )+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"animated-subscribe-button-controlled-demo": {name: "animated-subscribe-button-controlled-demo",- description: "Controlled example showing async behavior for AnimatedSubscribeButton.",+ description:+ "Controlled example showing async behavior for AnimatedSubscribeButton.",type: "registry:example",registryDependencies: ["@magicui/animated-subscribe-button"],- files: [{- path: "registry/example/animated-subscribe-button-controlled-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/animated-subscribe-button-controlled-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {- const mod = await import("@/registry/example/animated-subscribe-button-controlled-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const mod = await import(+ "@/registry/example/animated-subscribe-button-controlled-demo.tsx"+ )+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -3063,14 +4255,20 @@ export const Index: Record<string, any> = {description: "Example showing cool mode effect for buttons and links.",type: "registry:example",registryDependencies: ["@magicui/cool-mode"],- files: [{- path: "registry/example/cool-mode-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/cool-mode-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/cool-mode-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -3080,14 +4278,20 @@ export const Index: Record<string, any> = {description: "Example showing customized cool mode effects.",type: "registry:example",registryDependencies: ["@magicui/cool-mode"],- files: [{- path: "registry/example/cool-mode-custom.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/cool-mode-custom.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/cool-mode-custom.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -3097,14 +4301,20 @@ export const Index: Record<string, any> = {description: "Example showing an animated pulsating button.",type: "registry:example",registryDependencies: ["@magicui/pulsating-button"],- files: [{- path: "registry/example/pulsating-button-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/pulsating-button-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/pulsating-button-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -3114,31 +4324,44 @@ export const Index: Record<string, any> = {description: "Example showing an animated button with ripple effect.",type: "registry:example",registryDependencies: ["@magicui/ripple-button"],- files: [{- path: "registry/example/ripple-button-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/ripple-button-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/ripple-button-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"file-tree-demo": {name: "file-tree-demo",- description: "Example showing a component that displays folder and file structure.",+ description:+ "Example showing a component that displays folder and file structure.",type: "registry:example",registryDependencies: ["@magicui/file-tree"],- files: [{- path: "registry/example/file-tree-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/file-tree-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/file-tree-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -3148,14 +4371,20 @@ export const Index: Record<string, any> = {description: "Example showing blur fade in and out animations.",type: "registry:example",registryDependencies: ["@magicui/blur-fade"],- files: [{- path: "registry/example/blur-fade-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/blur-fade-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/blur-fade-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -3165,14 +4394,20 @@ export const Index: Record<string, any> = {description: "Example showing blur fade animations with text.",type: "registry:example",registryDependencies: ["@magicui/blur-fade"],- files: [{- path: "registry/example/blur-fade-text-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/blur-fade-text-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/blur-fade-text-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -3182,14 +4417,20 @@ export const Index: Record<string, any> = {description: "Example showing a Safari browser mockup.",type: "registry:example",registryDependencies: ["@magicui/safari"],- files: [{- path: "registry/example/safari-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/safari-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/safari-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -3199,14 +4440,20 @@ export const Index: Record<string, any> = {description: "Second example showing a Safari browser mockup.",type: "registry:example",registryDependencies: ["@magicui/safari"],- files: [{- path: "registry/example/safari-demo-2.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/safari-demo-2.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/safari-demo-2.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -3216,14 +4463,20 @@ export const Index: Record<string, any> = {description: "Third example showing a Safari browser mockup.",type: "registry:example",registryDependencies: ["@magicui/safari"],- files: [{- path: "registry/example/safari-demo-3.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/safari-demo-3.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/safari-demo-3.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -3233,14 +4486,20 @@ export const Index: Record<string, any> = {description: "Fourth example showing a Safari browser mockup.",type: "registry:example",registryDependencies: ["@magicui/safari"],- files: [{- path: "registry/example/safari-demo-4.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/safari-demo-4.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/safari-demo-4.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -3250,14 +4509,20 @@ export const Index: Record<string, any> = {description: "Example showing an iPhone 15 Pro mockup.",type: "registry:example",registryDependencies: ["@magicui/iphone-15-pro"],- files: [{- path: "registry/example/iphone-15-pro-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/iphone-15-pro-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/iphone-15-pro-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -3267,14 +4532,20 @@ export const Index: Record<string, any> = {description: "Second example showing an iPhone 15 Pro mockup.",type: "registry:example",registryDependencies: ["@magicui/iphone-15-pro"],- files: [{- path: "registry/example/iphone-15-pro-demo-2.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/iphone-15-pro-demo-2.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/iphone-15-pro-demo-2.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -3284,14 +4555,20 @@ export const Index: Record<string, any> = {description: "Third example showing an iPhone 15 Pro mockup.",type: "registry:example",registryDependencies: ["@magicui/iphone-15-pro"],- files: [{- path: "registry/example/iphone-15-pro-demo-3.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/iphone-15-pro-demo-3.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/iphone-15-pro-demo-3.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -3301,14 +4578,20 @@ export const Index: Record<string, any> = {description: "Example showing an animated button with rainbow effect.",type: "registry:example",registryDependencies: ["@magicui/rainbow-button"],- files: [{- path: "registry/example/rainbow-button-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/rainbow-button-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/rainbow-button-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -3318,14 +4601,20 @@ export const Index: Record<string, any> = {description: "Example showing an animated button with rainbow effect.",type: "registry:example",registryDependencies: ["@magicui/rainbow-button"],- files: [{- path: "registry/example/rainbow-button-demo-2.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/rainbow-button-demo-2.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/rainbow-button-demo-2.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -3335,14 +4624,22 @@ export const Index: Record<string, any> = {description: "Example showing an interactive button with hover effects.",type: "registry:example",registryDependencies: ["@magicui/interactive-hover-button"],- files: [{- path: "registry/example/interactive-hover-button-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/interactive-hover-button-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {- const mod = await import("@/registry/example/interactive-hover-button-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const mod = await import(+ "@/registry/example/interactive-hover-button-demo.tsx"+ )+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -3352,31 +4649,44 @@ export const Index: Record<string, any> = {description: "Example showing a terminal with animated text.",type: "registry:example",registryDependencies: ["@magicui/terminal"],- files: [{- path: "registry/example/terminal-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/terminal-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/terminal-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"terminal-demo-2": {name: "terminal-demo-2",- description: "Example showing a terminal with animated text and custom delays",+ description:+ "Example showing a terminal with animated text and custom delays",type: "registry:example",registryDependencies: ["@magicui/terminal"],- files: [{- path: "registry/example/terminal-demo-2.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/terminal-demo-2.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/terminal-demo-2.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -3386,14 +4696,20 @@ export const Index: Record<string, any> = {description: "Example showing text with a video background.",type: "registry:example",registryDependencies: ["@magicui/video-text"],- files: [{- path: "registry/example/video-text-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/video-text-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/video-text-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -3403,14 +4719,20 @@ export const Index: Record<string, any> = {description: "Example showing a pixelated image effect.",type: "registry:example",registryDependencies: ["@magicui/pixel-image"],- files: [{- path: "registry/example/pixel-image-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/pixel-image-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/pixel-image-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -3420,18 +4742,25 @@ export const Index: Record<string, any> = {description: "Example showing the demo of a Highlighter",type: "registry:example",registryDependencies: ["@magicui/highlighter"],- files: [{- path: "registry/example/highlighter-demo.tsx",- type: "registry:example",- target: ""- },{- path: "registry/magicui/highlighter.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/example/highlighter-demo.tsx",+ type: "registry:example",+ target: "",+ },+ {+ path: "registry/magicui/highlighter.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/highlighter-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -3441,18 +4770,25 @@ export const Index: Record<string, any> = {description: "Example showing an arc timeline component.",type: "registry:example",registryDependencies: ["@magicui/arc-timeline"],- files: [{- path: "registry/example/arc-timeline-demo.tsx",- type: "registry:example",- target: ""- },{- path: "registry/magicui/arc-timeline.tsx",- type: "registry:ui",- target: ""- }],+ files: [+ {+ path: "registry/example/arc-timeline-demo.tsx",+ type: "registry:example",+ target: "",+ },+ {+ path: "registry/magicui/arc-timeline.tsx",+ type: "registry:ui",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/arc-timeline-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,@@ -3462,50 +4798,71 @@ export const Index: Record<string, any> = {description: "Example showing animation while changing the theme.",type: "registry:example",registryDependencies: ["@magicui/animated-theme-toggler"],- files: [{- path: "registry/example/animated-theme-toggler-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/animated-theme-toggler-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {- const mod = await import("@/registry/example/animated-theme-toggler-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const mod = await import(+ "@/registry/example/animated-theme-toggler-demo.tsx"+ )+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},"grid-beams-demo": {name: "grid-beams-demo",- description: "Demo of the grid-beams component showcasing animated light rays over a grid",+ description:+ "Demo of the grid-beams component showcasing animated light rays over a grid",type: "registry:example",registryDependencies: ["@magicui/grid-beams"],- files: [{- path: "registry/example/grid-beams-demo.tsx",- type: "registry:example",- target: ""- }],+ files: [+ {+ path: "registry/example/grid-beams-demo.tsx",+ type: "registry:example",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/example/grid-beams-demo.tsx")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},- "utils": {+ utils: {name: "utils",description: "",type: "registry:lib",registryDependencies: undefined,- files: [{- path: "registry/lib/utils.ts",- type: "registry:lib",- target: ""- }],+ files: [+ {+ path: "registry/lib/utils.ts",+ type: "registry:lib",+ target: "",+ },+ ],component: React.lazy(async () => {const mod = await import("@/registry/lib/utils.ts")- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name+ const exportName =+ Object.keys(mod).find(+ (key) =>+ typeof mod[key] === "function" || typeof mod[key] === "object"+ ) || item.namereturn { default: mod.default || mod[exportName] }}),meta: undefined,},- }\ No newline at end of file+}diff --git a/apps/www/registry/example/android-demo-2.tsx b/apps/www/registry/example/android-demo-2.tsxindex 9a084bf2..6714b4f0 100644--- a/apps/www/registry/example/android-demo-2.tsx+++ b/apps/www/registry/example/android-demo-2.tsx@@ -1,4 +1,4 @@-import { Android } from "@/registry/magicui/android";+import { Android } from "@/registry/magicui/android"export default function AndroidDemo() {return (@@ -8,5 +8,5 @@ export default function AndroidDemo() {src="https://images.unsplash.com/photo-1730326405863-c6fa7e499a6e?q=80&w=1964&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"/></div>- );+ )}diff --git a/apps/www/registry/example/android-demo-3.tsx b/apps/www/registry/example/android-demo-3.tsxindex e0fae5cb..5b5a6417 100644--- a/apps/www/registry/example/android-demo-3.tsx+++ b/apps/www/registry/example/android-demo-3.tsx@@ -1,4 +1,4 @@-import { Android } from "@/registry/magicui/android";+import { Android } from "@/registry/magicui/android"export default function AndroidDemo() {return (@@ -8,5 +8,5 @@ export default function AndroidDemo() {videoSrc="https://videos.pexels.com/video-files/14993748/14993748-uhd_1296_2304_30fps.mp4"/></div>- );+ )}diff --git a/apps/www/registry/example/android-demo.tsx b/apps/www/registry/example/android-demo.tsxindex 771d73e2..74fef84c 100644--- a/apps/www/registry/example/android-demo.tsx+++ b/apps/www/registry/example/android-demo.tsx@@ -1,9 +1,9 @@-import { Android } from "@/registry/magicui/android";+import { Android } from "@/registry/magicui/android"export default function AndroidDemo() {return (<div className="relative"><Android className="size-full" /></div>- );+ )}diff --git a/apps/www/registry/example/animated-beam-bidirectional.tsx b/apps/www/registry/example/animated-beam-bidirectional.tsxindex 8f9f182a..ddfaa3cf 100644--- a/apps/www/registry/example/animated-beam-bidirectional.tsx+++ b/apps/www/registry/example/animated-beam-bidirectional.tsx@@ -1,9 +1,9 @@-"use client";+"use client"-import React, { forwardRef, useRef } from "react";+import React, { forwardRef, useRef } from "react"-import { cn } from "@/lib/utils";-import { AnimatedBeam } from "@/registry/magicui/animated-beam";+import { cn } from "@/lib/utils"+import { AnimatedBeam } from "@/registry/magicui/animated-beam"const Circle = forwardRef<HTMLDivElement,@@ -14,20 +14,20 @@ const Circle = forwardRef<ref={ref}className={cn("z-10 flex size-12 items-center justify-center rounded-full border-2 bg-white p-3 shadow-[0_0_20px_-12px_rgba(0,0,0,0.8)]",- className,+ className)}>{children}</div>- );-});+ )+})-Circle.displayName = "Circle";+Circle.displayName = "Circle"export default function AnimatedBeamDemo() {- const containerRef = useRef<HTMLDivElement>(null);- const div1Ref = useRef<HTMLDivElement>(null);- const div2Ref = useRef<HTMLDivElement>(null);+ const containerRef = useRef<HTMLDivElement>(null)+ const div1Ref = useRef<HTMLDivElement>(null)+ const div2Ref = useRef<HTMLDivElement>(null)return (<div@@ -63,7 +63,7 @@ export default function AnimatedBeamDemo() {reverse/></div>- );+ )}const Icons = {@@ -91,4 +91,4 @@ const Icons = {<circle cx="12" cy="7" r="4" /></svg>),-};+}diff --git a/apps/www/registry/example/animated-beam-demo.tsx b/apps/www/registry/example/animated-beam-demo.tsxindex d869787c..3155a82a 100644--- a/apps/www/registry/example/animated-beam-demo.tsx+++ b/apps/www/registry/example/animated-beam-demo.tsx@@ -1,9 +1,9 @@-"use client";+"use client"-import React, { forwardRef, useRef } from "react";+import React, { forwardRef, useRef } from "react"-import { cn } from "@/lib/utils";-import { AnimatedBeam } from "@/registry/magicui/animated-beam";+import { cn } from "@/lib/utils"+import { AnimatedBeam } from "@/registry/magicui/animated-beam"const Circle = forwardRef<HTMLDivElement,@@ -14,25 +14,25 @@ const Circle = forwardRef<ref={ref}className={cn("z-10 flex size-12 items-center justify-center rounded-full border-2 bg-white p-3 shadow-[0_0_20px_-12px_rgba(0,0,0,0.8)]",- className,+ className)}>{children}</div>- );-});+ )+})-Circle.displayName = "Circle";+Circle.displayName = "Circle"export default function AnimatedBeamDemo() {- const containerRef = useRef<HTMLDivElement>(null);- const div1Ref = useRef<HTMLDivElement>(null);- const div2Ref = useRef<HTMLDivElement>(null);- const div3Ref = useRef<HTMLDivElement>(null);- const div4Ref = useRef<HTMLDivElement>(null);- const div5Ref = useRef<HTMLDivElement>(null);- const div6Ref = useRef<HTMLDivElement>(null);- const div7Ref = useRef<HTMLDivElement>(null);+ const containerRef = useRef<HTMLDivElement>(null)+ const div1Ref = useRef<HTMLDivElement>(null)+ const div2Ref = useRef<HTMLDivElement>(null)+ const div3Ref = useRef<HTMLDivElement>(null)+ const div4Ref = useRef<HTMLDivElement>(null)+ const div5Ref = useRef<HTMLDivElement>(null)+ const div6Ref = useRef<HTMLDivElement>(null)+ const div7Ref = useRef<HTMLDivElement>(null)return (<div@@ -111,7 +111,7 @@ export default function AnimatedBeamDemo() {reverse/></div>- );+ )}const Icons = {@@ -494,4 +494,4 @@ const Icons = {/></svg>),-};+}diff --git a/apps/www/registry/example/animated-beam-multiple-inputs.tsx b/apps/www/registry/example/animated-beam-multiple-inputs.tsxindex 5cd5ca68..0443b05c 100644--- a/apps/www/registry/example/animated-beam-multiple-inputs.tsx+++ b/apps/www/registry/example/animated-beam-multiple-inputs.tsx@@ -1,9 +1,9 @@-"use client";+"use client"-import React, { forwardRef, useRef } from "react";+import React, { forwardRef, useRef } from "react"-import { cn } from "@/lib/utils";-import { AnimatedBeam } from "@/registry/magicui/animated-beam";+import { cn } from "@/lib/utils"+import { AnimatedBeam } from "@/registry/magicui/animated-beam"const Circle = forwardRef<HTMLDivElement,@@ -13,36 +13,36 @@ const Circle = forwardRef<<divref={ref}className={cn(- "z-10 flex size-12 items-center justify-center rounded-full border-2 border-border bg-white p-3 shadow-[0_0_20px_-12px_rgba(0,0,0,0.8)]",- className,+ "border-border z-10 flex size-12 items-center justify-center rounded-full border-2 bg-white p-3 shadow-[0_0_20px_-12px_rgba(0,0,0,0.8)]",+ className)}>{children}</div>- );-});+ )+})-Circle.displayName = "Circle";+Circle.displayName = "Circle"export default function AnimatedBeamMultipleOutputDemo({className,}: {- className?: string;+ className?: string}) {- const containerRef = useRef<HTMLDivElement>(null);- const div1Ref = useRef<HTMLDivElement>(null);- const div2Ref = useRef<HTMLDivElement>(null);- const div3Ref = useRef<HTMLDivElement>(null);- const div4Ref = useRef<HTMLDivElement>(null);- const div5Ref = useRef<HTMLDivElement>(null);- const div6Ref = useRef<HTMLDivElement>(null);- const div7Ref = useRef<HTMLDivElement>(null);+ const containerRef = useRef<HTMLDivElement>(null)+ const div1Ref = useRef<HTMLDivElement>(null)+ const div2Ref = useRef<HTMLDivElement>(null)+ const div3Ref = useRef<HTMLDivElement>(null)+ const div4Ref = useRef<HTMLDivElement>(null)+ const div5Ref = useRef<HTMLDivElement>(null)+ const div6Ref = useRef<HTMLDivElement>(null)+ const div7Ref = useRef<HTMLDivElement>(null)return (<divclassName={cn("relative flex h-[500px] w-full items-center justify-center overflow-hidden p-10",- className,+ className)}ref={containerRef}>@@ -107,7 +107,7 @@ export default function AnimatedBeamMultipleOutputDemo({toRef={div7Ref}/></div>- );+ )}const Icons = {@@ -504,4 +504,4 @@ const Icons = {<circle cx="12" cy="7" r="4" /></svg>),-};+}diff --git a/apps/www/registry/example/animated-beam-multiple-outputs.tsx b/apps/www/registry/example/animated-beam-multiple-outputs.tsxindex f30972e8..dcb77844 100644--- a/apps/www/registry/example/animated-beam-multiple-outputs.tsx+++ b/apps/www/registry/example/animated-beam-multiple-outputs.tsx@@ -1,9 +1,9 @@-"use client";+"use client"-import React, { forwardRef, useRef } from "react";+import React, { forwardRef, useRef } from "react"-import { cn } from "@/lib/utils";-import { AnimatedBeam } from "@/registry/magicui/animated-beam";+import { cn } from "@/lib/utils"+import { AnimatedBeam } from "@/registry/magicui/animated-beam"const Circle = forwardRef<HTMLDivElement,@@ -14,35 +14,35 @@ const Circle = forwardRef<ref={ref}className={cn("z-10 flex size-12 items-center justify-center rounded-full border-2 bg-white p-3 shadow-[0_0_20px_-12px_rgba(0,0,0,0.8)]",- className,+ className)}>{children}</div>- );-});+ )+})-Circle.displayName = "Circle";+Circle.displayName = "Circle"export default function AnimatedBeamMultipleOutputDemo({className,}: {- className?: string;+ className?: string}) {- const containerRef = useRef<HTMLDivElement>(null);- const div1Ref = useRef<HTMLDivElement>(null);- const div2Ref = useRef<HTMLDivElement>(null);- const div3Ref = useRef<HTMLDivElement>(null);- const div4Ref = useRef<HTMLDivElement>(null);- const div5Ref = useRef<HTMLDivElement>(null);- const div6Ref = useRef<HTMLDivElement>(null);- const div7Ref = useRef<HTMLDivElement>(null);+ const containerRef = useRef<HTMLDivElement>(null)+ const div1Ref = useRef<HTMLDivElement>(null)+ const div2Ref = useRef<HTMLDivElement>(null)+ const div3Ref = useRef<HTMLDivElement>(null)+ const div4Ref = useRef<HTMLDivElement>(null)+ const div5Ref = useRef<HTMLDivElement>(null)+ const div6Ref = useRef<HTMLDivElement>(null)+ const div7Ref = useRef<HTMLDivElement>(null)return (<divclassName={cn("relative flex h-[500px] w-full items-center justify-center overflow-hidden p-10",- className,+ className)}ref={containerRef}>@@ -114,7 +114,7 @@ export default function AnimatedBeamMultipleOutputDemo({duration={3}/></div>- );+ )}const Icons = {@@ -511,4 +511,4 @@ const Icons = {<circle cx="12" cy="7" r="4" /></svg>),-};+}diff --git a/apps/www/registry/example/animated-beam-unidirectional.tsx b/apps/www/registry/example/animated-beam-unidirectional.tsxindex c8b87b6d..3a0c744e 100644--- a/apps/www/registry/example/animated-beam-unidirectional.tsx+++ b/apps/www/registry/example/animated-beam-unidirectional.tsx@@ -1,9 +1,9 @@-"use client";+"use client"-import React, { forwardRef, useRef } from "react";+import React, { forwardRef, useRef } from "react"-import { cn } from "@/lib/utils";-import { AnimatedBeam } from "@/registry/magicui/animated-beam";+import { cn } from "@/lib/utils"+import { AnimatedBeam } from "@/registry/magicui/animated-beam"const Circle = forwardRef<HTMLDivElement,@@ -14,20 +14,20 @@ const Circle = forwardRef<ref={ref}className={cn("z-10 flex size-12 items-center justify-center rounded-full border-2 bg-white p-3 shadow-[0_0_20px_-12px_rgba(0,0,0,0.8)]",- className,+ className)}>{children}</div>- );-});+ )+})-Circle.displayName = "Circle";+Circle.displayName = "Circle"export default function AnimatedBeamDemo() {- const containerRef = useRef<HTMLDivElement>(null);- const div1Ref = useRef<HTMLDivElement>(null);- const div2Ref = useRef<HTMLDivElement>(null);+ const containerRef = useRef<HTMLDivElement>(null)+ const div1Ref = useRef<HTMLDivElement>(null)+ const div2Ref = useRef<HTMLDivElement>(null)return (<div@@ -52,7 +52,7 @@ export default function AnimatedBeamDemo() {toRef={div2Ref}/></div>- );+ )}const Icons = {@@ -80,4 +80,4 @@ const Icons = {<circle cx="12" cy="7" r="4" /></svg>),-};+}diff --git a/apps/www/registry/example/animated-circular-progress-bar-demo.tsx b/apps/www/registry/example/animated-circular-progress-bar-demo.tsxindex 18d8020f..8d4c8c99 100644--- a/apps/www/registry/example/animated-circular-progress-bar-demo.tsx+++ b/apps/www/registry/example/animated-circular-progress-bar-demo.tsx@@ -1,23 +1,23 @@-"use client";+"use client"-import { useEffect, useState } from "react";+import { useEffect, useState } from "react"-import { AnimatedCircularProgressBar } from "@/registry/magicui/animated-circular-progress-bar";+import { AnimatedCircularProgressBar } from "@/registry/magicui/animated-circular-progress-bar"export default function AnimatedCircularProgressBarDemo() {- const [value, setValue] = useState(0);+ const [value, setValue] = useState(0)useEffect(() => {const handleIncrement = (prev: number) => {if (prev === 100) {- return 0;+ return 0}- return prev + 10;- };- setValue(handleIncrement);- const interval = setInterval(() => setValue(handleIncrement), 2000);- return () => clearInterval(interval);- }, []);+ return prev + 10+ }+ setValue(handleIncrement)+ const interval = setInterval(() => setValue(handleIncrement), 2000)+ return () => clearInterval(interval)+ }, [])return (<AnimatedCircularProgressBar@@ -25,5 +25,5 @@ export default function AnimatedCircularProgressBarDemo() {gaugePrimaryColor="rgb(79 70 229)"gaugeSecondaryColor="rgba(0, 0, 0, 0.1)"/>- );+ )}diff --git a/apps/www/registry/example/animated-gradient-text-demo-2.tsx b/apps/www/registry/example/animated-gradient-text-demo-2.tsxindex 489bc8d1..1553191f 100644--- a/apps/www/registry/example/animated-gradient-text-demo-2.tsx+++ b/apps/www/registry/example/animated-gradient-text-demo-2.tsx@@ -1,4 +1,4 @@-import { AnimatedGradientText } from "@/registry/magicui/animated-gradient-text";+import { AnimatedGradientText } from "@/registry/magicui/animated-gradient-text"export default function AnimatedGradientTextDemo() {return (@@ -10,5 +10,5 @@ export default function AnimatedGradientTextDemo() {>Fast Gradient</AnimatedGradientText>- );+ )}diff --git a/apps/www/registry/example/animated-gradient-text-demo.tsx b/apps/www/registry/example/animated-gradient-text-demo.tsxindex fba52855..cd32591c 100644--- a/apps/www/registry/example/animated-gradient-text-demo.tsx+++ b/apps/www/registry/example/animated-gradient-text-demo.tsx@@ -1,13 +1,14 @@-import { cn } from "@/lib/utils";-import { AnimatedGradientText } from "@/registry/magicui/animated-gradient-text";-import { ChevronRight } from "lucide-react";+import { ChevronRight } from "lucide-react"++import { cn } from "@/lib/utils"+import { AnimatedGradientText } from "@/registry/magicui/animated-gradient-text"export default function AnimatedGradientTextDemo() {return (- <div className="group relative mx-auto flex items-center justify-center rounded-full px-4 py-1.5 shadow-[inset_0_-8px_10px_#8fdfff1f] transition-shadow duration-500 ease-out hover:shadow-[inset_0_-5px_10px_#8fdfff3f] ">+ <div className="group relative mx-auto flex items-center justify-center rounded-full px-4 py-1.5 shadow-[inset_0_-8px_10px_#8fdfff1f] transition-shadow duration-500 ease-out hover:shadow-[inset_0_-5px_10px_#8fdfff3f]"><spanclassName={cn(- "absolute inset-0 block h-full w-full animate-gradient rounded-[inherit] bg-gradient-to-r from-[#ffaa40]/50 via-[#9c40ff]/50 to-[#ffaa40]/50 bg-[length:300%_100%] p-[1px]",+ "animate-gradient absolute inset-0 block h-full w-full rounded-[inherit] bg-gradient-to-r from-[#ffaa40]/50 via-[#9c40ff]/50 to-[#ffaa40]/50 bg-[length:300%_100%] p-[1px]")}style={{WebkitMask:@@ -22,10 +23,7 @@ export default function AnimatedGradientTextDemo() {<AnimatedGradientText className="text-sm font-medium">Introducing Magic UI</AnimatedGradientText>- <ChevronRight- className="ml-1 size-4 stroke-neutral-500 transition-transform- duration-300 ease-in-out group-hover:translate-x-0.5"- />+ <ChevronRight className="ml-1 size-4 stroke-neutral-500 transition-transform duration-300 ease-in-out group-hover:translate-x-0.5" /></div>- );+ )}diff --git a/apps/www/registry/example/animated-grid-pattern-demo.tsx b/apps/www/registry/example/animated-grid-pattern-demo.tsxindex d13c57e4..fa2e8865 100644--- a/apps/www/registry/example/animated-grid-pattern-demo.tsx+++ b/apps/www/registry/example/animated-grid-pattern-demo.tsx@@ -1,9 +1,9 @@-import { cn } from "@/lib/utils";-import { AnimatedGridPattern } from "@/registry/magicui/animated-grid-pattern";+import { cn } from "@/lib/utils"+import { AnimatedGridPattern } from "@/registry/magicui/animated-grid-pattern"export default function AnimatedGridPatternDemo() {return (- <div className="relative flex h-[500px] w-full items-center justify-center overflow-hidden rounded-lg border bg-background p-20">+ <div className="bg-background relative flex h-[500px] w-full items-center justify-center overflow-hidden rounded-lg border p-20"><AnimatedGridPatternnumSquares={30}maxOpacity={0.1}@@ -11,9 +11,9 @@ export default function AnimatedGridPatternDemo() {repeatDelay={1}className={cn("[mask-image:radial-gradient(500px_circle_at_center,white,transparent)]",- "inset-x-0 inset-y-[-30%] h-[200%] skew-y-12",+ "inset-x-0 inset-y-[-30%] h-[200%] skew-y-12")}/></div>- );+ )}diff --git a/apps/www/registry/example/animated-list-demo.tsx b/apps/www/registry/example/animated-list-demo.tsxindex 3a1e3fa0..2edae0a9 100644--- a/apps/www/registry/example/animated-list-demo.tsx+++ b/apps/www/registry/example/animated-list-demo.tsx@@ -1,14 +1,14 @@-"use client";+"use client"-import { cn } from "@/lib/utils";-import { AnimatedList } from "@/registry/magicui/animated-list";+import { cn } from "@/lib/utils"+import { AnimatedList } from "@/registry/magicui/animated-list"interface Item {- name: string;- description: string;- icon: string;- color: string;- time: string;+ name: string+ description: string+ icon: string+ color: string+ time: string}let notifications = [@@ -41,9 +41,9 @@ let notifications = [icon: "🗞️",color: "#1E86FF",},-];+]-notifications = Array.from({ length: 10 }, () => notifications).flat();+notifications = Array.from({ length: 10 }, () => notifications).flat()const Notification = ({ name, description, icon, color, time }: Item) => {return (@@ -55,7 +55,7 @@ const Notification = ({ name, description, icon, color, time }: Item) => {// light styles"bg-white [box-shadow:0_0_0_1px_rgba(0,0,0,.03),0_2px_4px_rgba(0,0,0,.05),0_12px_24px_rgba(0,0,0,.05)]",// dark styles- "transform-gpu dark:bg-transparent dark:backdrop-blur-md dark:[border:1px_solid_rgba(255,255,255,.1)] dark:[box-shadow:0_-20px_80px_-20px_#ffffff1f_inset]",+ "transform-gpu dark:bg-transparent dark:[box-shadow:0_-20px_80px_-20px_#ffffff1f_inset] dark:backdrop-blur-md dark:[border:1px_solid_rgba(255,255,255,.1)]")}><div className="flex flex-row items-center gap-3">@@ -68,7 +68,7 @@ const Notification = ({ name, description, icon, color, time }: Item) => {<span className="text-lg">{icon}</span></div><div className="flex flex-col overflow-hidden">- <figcaption className="flex flex-row items-center whitespace-pre text-lg font-medium dark:text-white ">+ <figcaption className="flex flex-row items-center text-lg font-medium whitespace-pre dark:text-white"><span className="text-sm sm:text-lg">{name}</span><span className="mx-1">·</span><span className="text-xs text-gray-500">{time}</span>@@ -79,19 +79,19 @@ const Notification = ({ name, description, icon, color, time }: Item) => {</div></div></figure>- );-};+ )+}export default function AnimatedListDemo({className,}: {- className?: string;+ className?: string}) {return (<divclassName={cn("relative flex h-[500px] w-full flex-col overflow-hidden p-2",- className,+ className)}><AnimatedList>@@ -100,7 +100,7 @@ export default function AnimatedListDemo({))}</AnimatedList>- <div className="pointer-events-none absolute inset-x-0 bottom-0 h-1/4 bg-gradient-to-t from-background"></div>+ <div className="from-background pointer-events-none absolute inset-x-0 bottom-0 h-1/4 bg-gradient-to-t"></div></div>- );+ )}diff --git a/apps/www/registry/example/animated-shiny-text-demo.tsx b/apps/www/registry/example/animated-shiny-text-demo.tsxindex f05dd780..c1d58dc4 100644--- a/apps/www/registry/example/animated-shiny-text-demo.tsx+++ b/apps/www/registry/example/animated-shiny-text-demo.tsx@@ -1,14 +1,14 @@-import { ArrowRightIcon } from "@radix-ui/react-icons";+import { ArrowRightIcon } from "@radix-ui/react-icons"-import { cn } from "@/lib/utils";-import { AnimatedShinyText } from "@/registry/magicui/animated-shiny-text";+import { cn } from "@/lib/utils"+import { AnimatedShinyText } from "@/registry/magicui/animated-shiny-text"export default function AnimatedShinyTextDemo() {return (<div className="z-10 flex min-h-64 items-center justify-center"><divclassName={cn(- "group rounded-full border border-black/5 bg-neutral-100 text-base text-white transition-all ease-in hover:cursor-pointer hover:bg-neutral-200 dark:border-white/5 dark:bg-neutral-900 dark:hover:bg-neutral-800",+ "group rounded-full border border-black/5 bg-neutral-100 text-base text-white transition-all ease-in hover:cursor-pointer hover:bg-neutral-200 dark:border-white/5 dark:bg-neutral-900 dark:hover:bg-neutral-800")}><AnimatedShinyText className="inline-flex items-center justify-center px-4 py-1 transition ease-out hover:text-neutral-600 hover:duration-300 hover:dark:text-neutral-400">@@ -17,5 +17,5 @@ export default function AnimatedShinyTextDemo() {</AnimatedShinyText></div></div>- );+ )}diff --git a/apps/www/registry/example/animated-subscribe-button-controlled-demo.tsx b/apps/www/registry/example/animated-subscribe-button-controlled-demo.tsxindex 7c8879d6..275794ce 100644--- a/apps/www/registry/example/animated-subscribe-button-controlled-demo.tsx+++ b/apps/www/registry/example/animated-subscribe-button-controlled-demo.tsx@@ -1,19 +1,20 @@-"use client";+"use client"-import { AnimatedSubscribeButton } from "@/registry/magicui/animated-subscribe-button";-import { CheckIcon, ChevronRightIcon } from "lucide-react";-import { useState } from "react";+import { useState } from "react"+import { CheckIcon, ChevronRightIcon } from "lucide-react"++import { AnimatedSubscribeButton } from "@/registry/magicui/animated-subscribe-button"export default function AnimatedSubscribeButtonControlledDemo() {- const [subscribed, setSubscribed] = useState(false);- const [loading, setLoading] = useState(false);+ const [subscribed, setSubscribed] = useState(false)+ const [loading, setLoading] = useState(false)async function handleClick() {- setLoading(true);- await new Promise((res) => setTimeout(res, 1500));- setSubscribed(true);- setTimeout(() => setSubscribed(false), 3000);- setLoading(false);+ setLoading(true)+ await new Promise((res) => setTimeout(res, 1500))+ setSubscribed(true)+ setTimeout(() => setSubscribed(false), 3000)+ setLoading(false)}return (@@ -37,5 +38,5 @@ export default function AnimatedSubscribeButtonControlledDemo() {Subscribed</span></AnimatedSubscribeButton>- );+ )}diff --git a/apps/www/registry/example/animated-subscribe-button-demo.tsx b/apps/www/registry/example/animated-subscribe-button-demo.tsxindex 7185f15c..90885660 100644--- a/apps/www/registry/example/animated-subscribe-button-demo.tsx+++ b/apps/www/registry/example/animated-subscribe-button-demo.tsx@@ -1,5 +1,6 @@-import { AnimatedSubscribeButton } from "@/registry/magicui/animated-subscribe-button";-import { CheckIcon, ChevronRightIcon } from "lucide-react";+import { CheckIcon, ChevronRightIcon } from "lucide-react"++import { AnimatedSubscribeButton } from "@/registry/magicui/animated-subscribe-button"export default function AnimatedSubscribeButtonDemo() {return (@@ -13,5 +14,5 @@ export default function AnimatedSubscribeButtonDemo() {Subscribed</span></AnimatedSubscribeButton>- );+ )}diff --git a/apps/www/registry/example/animated-theme-toggler-demo.tsx b/apps/www/registry/example/animated-theme-toggler-demo.tsxindex b2f49b26..b83f24c4 100644--- a/apps/www/registry/example/animated-theme-toggler-demo.tsx+++ b/apps/www/registry/example/animated-theme-toggler-demo.tsx@@ -1,10 +1,10 @@-import { AnimatedThemeToggler } from "@/registry/magicui/animated-theme-toggler";+import { AnimatedThemeToggler } from "@/registry/magicui/animated-theme-toggler"function AnimatedThemeTogglerDemo() {return (<div><AnimatedThemeToggler /></div>- );+ )}-export default AnimatedThemeTogglerDemo;+export default AnimatedThemeTogglerDemodiff --git a/apps/www/registry/example/arc-timeline-demo.tsx b/apps/www/registry/example/arc-timeline-demo.tsxindex 02346d21..f20fb359 100644--- a/apps/www/registry/example/arc-timeline-demo.tsx+++ b/apps/www/registry/example/arc-timeline-demo.tsx@@ -1,14 +1,15 @@-import { ArcTimeline, ArcTimelineItem } from "@/registry/magicui/arc-timeline";import {- RocketIcon,CubeIcon,- LockClosedIcon,- GlobeIcon,GearIcon,+ GlobeIcon,LightningBoltIcon,- StarIcon,+ LockClosedIcon,MagicWandIcon,-} from "@radix-ui/react-icons";+ RocketIcon,+ StarIcon,+} from "@radix-ui/react-icons"++import { ArcTimeline, ArcTimelineItem } from "@/registry/magicui/arc-timeline"export default function ArcTimelineDemo() {return (@@ -32,7 +33,7 @@ export default function ArcTimelineDemo() {boundaryPlaceholderLinesCount: 50,}}/>- );+ )}const TIMELINE: ArcTimelineItem[] = [@@ -194,4 +195,4 @@ const TIMELINE: ArcTimelineItem[] = [},],},-];+]diff --git a/apps/www/registry/example/aurora-text-demo.tsx b/apps/www/registry/example/aurora-text-demo.tsxindex 0efc7f36..714749eb 100644--- a/apps/www/registry/example/aurora-text-demo.tsx+++ b/apps/www/registry/example/aurora-text-demo.tsx@@ -1,9 +1,9 @@-import { AuroraText } from "@/registry/magicui/aurora-text";+import { AuroraText } from "@/registry/magicui/aurora-text"export default function AuroraTextDemo() {return (<h1 className="text-4xl font-bold tracking-tighter md:text-5xl lg:text-7xl">Ship <AuroraText>beautiful</AuroraText></h1>- );+ )}diff --git a/apps/www/registry/example/avatar-circles-demo.tsx b/apps/www/registry/example/avatar-circles-demo.tsxindex 9f91fe26..4da8ff66 100644--- a/apps/www/registry/example/avatar-circles-demo.tsx+++ b/apps/www/registry/example/avatar-circles-demo.tsx@@ -1,4 +1,4 @@-import { AvatarCircles } from "@/registry/magicui/avatar-circles";+import { AvatarCircles } from "@/registry/magicui/avatar-circles"const avatars = [{@@ -25,8 +25,8 @@ const avatars = [imageUrl: "https://avatars.githubusercontent.com/u/89768406",profileUrl: "https://github.com/itsarghyadas",},-];+]export default function AvatarCirclesDemo() {- return <AvatarCircles numPeople={99} avatarUrls={avatars} />;+ return <AvatarCircles numPeople={99} avatarUrls={avatars} />}diff --git a/apps/www/registry/example/bento-demo-vertical.tsx b/apps/www/registry/example/bento-demo-vertical.tsxindex 09c4e09b..d1b1493e 100644--- a/apps/www/registry/example/bento-demo-vertical.tsx+++ b/apps/www/registry/example/bento-demo-vertical.tsx@@ -4,9 +4,9 @@ import {FileTextIcon,GlobeIcon,InputIcon,-} from "@radix-ui/react-icons";+} from "@radix-ui/react-icons"-import { BentoCard, BentoGrid } from "@/registry/magicui/bento-grid";+import { BentoCard, BentoGrid } from "@/registry/magicui/bento-grid"const features = [{@@ -15,7 +15,7 @@ const features = [description: "We automatically save your files as you type.",href: "/",cta: "Learn more",- background: <img className="absolute -right-20 -top-20 opacity-60" />,+ background: <img className="absolute -top-20 -right-20 opacity-60" />,className: "lg:row-start-1 lg:row-end-4 lg:col-start-2 lg:col-end-3",},{@@ -24,7 +24,7 @@ const features = [description: "Search through all your files in one place.",href: "/",cta: "Learn more",- background: <img className="absolute -right-20 -top-20 opacity-60" />,+ background: <img className="absolute -top-20 -right-20 opacity-60" />,className: "lg:col-start-1 lg:col-end-2 lg:row-start-1 lg:row-end-3",},{@@ -33,7 +33,7 @@ const features = [description: "Supports 100+ languages and counting.",href: "/",cta: "Learn more",- background: <img className="absolute -right-20 -top-20 opacity-60" />,+ background: <img className="absolute -top-20 -right-20 opacity-60" />,className: "lg:col-start-1 lg:col-end-2 lg:row-start-3 lg:row-end-4",},{@@ -42,7 +42,7 @@ const features = [description: "Use the calendar to filter your files by date.",href: "/",cta: "Learn more",- background: <img className="absolute -right-20 -top-20 opacity-60" />,+ background: <img className="absolute -top-20 -right-20 opacity-60" />,className: "lg:col-start-3 lg:col-end-3 lg:row-start-1 lg:row-end-2",},{@@ -52,10 +52,10 @@ const features = ["Get notified when someone shares a file or mentions you in a comment.",href: "/",cta: "Learn more",- background: <img className="absolute -right-20 -top-20 opacity-60" />,+ background: <img className="absolute -top-20 -right-20 opacity-60" />,className: "lg:col-start-3 lg:col-end-3 lg:row-start-2 lg:row-end-4",},-];+]export default function BentoDemo() {return (@@ -64,5 +64,5 @@ export default function BentoDemo() {<BentoCard key={feature.name} {...feature} />))}</BentoGrid>- );+ )}diff --git a/apps/www/registry/example/bento-demo.tsx b/apps/www/registry/example/bento-demo.tsxindex 6919a214..6038bf0c 100644--- a/apps/www/registry/example/bento-demo.tsx+++ b/apps/www/registry/example/bento-demo.tsx@@ -1,12 +1,12 @@-import { CalendarIcon, FileTextIcon } from "@radix-ui/react-icons";-import { BellIcon, Share2Icon } from "lucide-react";+import { CalendarIcon, FileTextIcon } from "@radix-ui/react-icons"+import { BellIcon, Share2Icon } from "lucide-react"-import { Calendar } from "@/components/ui/calendar";-import { cn } from "@/lib/utils";-import AnimatedBeamMultipleOutputDemo from "@/registry/example/animated-beam-multiple-outputs";-import AnimatedListDemo from "@/registry/example/animated-list-demo";-import { BentoCard, BentoGrid } from "@/registry/magicui/bento-grid";-import { Marquee } from "@/registry/magicui/marquee";+import { cn } from "@/lib/utils"+import { Calendar } from "@/components/ui/calendar"+import AnimatedBeamMultipleOutputDemo from "@/registry/example/animated-beam-multiple-outputs"+import AnimatedListDemo from "@/registry/example/animated-list-demo"+import { BentoCard, BentoGrid } from "@/registry/magicui/bento-grid"+import { Marquee } from "@/registry/magicui/marquee"const files = [{@@ -29,7 +29,7 @@ const files = [name: "seed.txt",body: "A seed phrase, seed recovery phrase or backup seed phrase is a list of words which store all the information needed to recover Bitcoin funds on-chain.",},-];+]const features = [{@@ -42,7 +42,7 @@ const features = [background: (<MarqueepauseOnHover- className="absolute top-10 [--duration:20s] [mask-image:linear-gradient(to_top,transparent_40%,#000_100%)] "+ className="absolute top-10 [mask-image:linear-gradient(to_top,transparent_40%,#000_100%)] [--duration:20s]">{files.map((f, idx) => (<figure@@ -51,12 +51,12 @@ const features = ["relative w-32 cursor-pointer overflow-hidden rounded-xl border p-4","border-gray-950/[.1] bg-gray-950/[.01] hover:bg-gray-950/[.05]","dark:border-gray-50/[.1] dark:bg-gray-50/[.10] dark:hover:bg-gray-50/[.15]",- "transform-gpu blur-[1px] transition-all duration-300 ease-out hover:blur-none",+ "transform-gpu blur-[1px] transition-all duration-300 ease-out hover:blur-none")}><div className="flex flex-row items-center gap-2"><div className="flex flex-col">- <figcaption className="text-sm font-medium dark:text-white ">+ <figcaption className="text-sm font-medium dark:text-white">{f.name}</figcaption></div>@@ -75,7 +75,7 @@ const features = [cta: "Learn more",className: "col-span-3 lg:col-span-2",background: (- <AnimatedListDemo className="absolute right-2 top-4 h-[300px] w-full scale-75 border-none transition-all duration-300 ease-out [mask-image:linear-gradient(to_top,transparent_10%,#000_100%)] group-hover:scale-90" />+ <AnimatedListDemo className="absolute top-4 right-2 h-[300px] w-full scale-75 border-none [mask-image:linear-gradient(to_top,transparent_10%,#000_100%)] transition-all duration-300 ease-out group-hover:scale-90" />),},{@@ -86,7 +86,7 @@ const features = [cta: "Learn more",className: "col-span-3 lg:col-span-2",background: (- <AnimatedBeamMultipleOutputDemo className="absolute right-2 top-4 h-[300px] border-none transition-all duration-300 ease-out [mask-image:linear-gradient(to_top,transparent_10%,#000_100%)] group-hover:scale-105" />+ <AnimatedBeamMultipleOutputDemo className="absolute top-4 right-2 h-[300px] border-none [mask-image:linear-gradient(to_top,transparent_10%,#000_100%)] transition-all duration-300 ease-out group-hover:scale-105" />),},{@@ -100,11 +100,11 @@ const features = [<Calendarmode="single"selected={new Date(2022, 4, 11, 0, 0, 0)}- className="absolute right-0 top-10 origin-top scale-75 rounded-md border transition-all duration-300 ease-out [mask-image:linear-gradient(to_top,transparent_40%,#000_100%)] group-hover:scale-90"+ className="absolute top-10 right-0 origin-top scale-75 rounded-md border [mask-image:linear-gradient(to_top,transparent_40%,#000_100%)] transition-all duration-300 ease-out group-hover:scale-90"/>),},-];+]export default function BentoDemo() {return (@@ -113,5 +113,5 @@ export default function BentoDemo() {<BentoCard key={idx} {...feature} />))}</BentoGrid>- );+ )}diff --git a/apps/www/registry/example/blur-fade-demo.tsx b/apps/www/registry/example/blur-fade-demo.tsxindex ad97fa6a..13c738e3 100644--- a/apps/www/registry/example/blur-fade-demo.tsx+++ b/apps/www/registry/example/blur-fade-demo.tsx@@ -1,12 +1,12 @@/* eslint-disable @next/next/no-img-element */-import { BlurFade } from "@/registry/magicui/blur-fade";+import { BlurFade } from "@/registry/magicui/blur-fade"const images = Array.from({ length: 9 }, (_, i) => {- const isLandscape = i % 2 === 0;- const width = isLandscape ? 800 : 600;- const height = isLandscape ? 600 : 800;- return `https://picsum.photos/seed/${i + 1}/${width}/${height}`;-});+ const isLandscape = i % 2 === 0+ const width = isLandscape ? 800 : 600+ const height = isLandscape ? 600 : 800+ return `https://picsum.photos/seed/${i + 1}/${width}/${height}`+})export default function BlurFadeDemo() {return (@@ -23,5 +23,5 @@ export default function BlurFadeDemo() {))}</div></section>- );+ )}diff --git a/apps/www/registry/example/blur-fade-text-demo.tsx b/apps/www/registry/example/blur-fade-text-demo.tsxindex 999ff601..9286c298 100644--- a/apps/www/registry/example/blur-fade-text-demo.tsx+++ b/apps/www/registry/example/blur-fade-text-demo.tsx@@ -1,4 +1,4 @@-import { BlurFade } from "@/registry/magicui/blur-fade";+import { BlurFade } from "@/registry/magicui/blur-fade"export default function BlurFadeTextDemo() {return (@@ -9,10 +9,10 @@ export default function BlurFadeTextDemo() {</h2></BlurFade><BlurFade delay={0.25 * 2} inView>- <span className="text-pretty text-xl tracking-tighter sm:text-3xl xl:text-4xl/none">+ <span className="text-xl tracking-tighter text-pretty sm:text-3xl xl:text-4xl/none">Nice to meet you</span></BlurFade></section>- );+ )}diff --git a/apps/www/registry/example/border-beam-demo-2.tsx b/apps/www/registry/example/border-beam-demo-2.tsxindex cb265639..c733b3de 100644--- a/apps/www/registry/example/border-beam-demo-2.tsx+++ b/apps/www/registry/example/border-beam-demo-2.tsx@@ -1,4 +1,6 @@-import { Button } from "@/components/ui/button";+import { Play, SkipBack, SkipForward } from "lucide-react"++import { Button } from "@/components/ui/button"import {Card,CardContent,@@ -6,9 +8,8 @@ import {CardFooter,CardHeader,CardTitle,-} from "@/components/ui/card";-import { BorderBeam } from "@/registry/magicui/border-beam";-import { Play, SkipBack, SkipForward } from "lucide-react";+} from "@/components/ui/card"+import { BorderBeam } from "@/registry/magicui/border-beam"export default function MusicPlayer() {return (@@ -20,10 +21,10 @@ export default function MusicPlayer() {<CardContent><div className="flex flex-col items-center gap-4"><div className="h-48 w-48 rounded-lg bg-gradient-to-br from-purple-500 to-pink-500" />- <div className="h-1 w-full rounded-full bg-secondary">- <div className="h-full w-1/3 rounded-full bg-primary" />+ <div className="bg-secondary h-1 w-full rounded-full">+ <div className="bg-primary h-full w-1/3 rounded-full" /></div>- <div className="flex w-full justify-between text-sm text-muted-foreground">+ <div className="text-muted-foreground flex w-full justify-between text-sm"><span>2:45</span><span>8:02</span></div>@@ -53,5 +54,5 @@ export default function MusicPlayer() {className="from-transparent via-blue-500 to-transparent"/></Card>- );+ )}diff --git a/apps/www/registry/example/border-beam-demo-3.tsx b/apps/www/registry/example/border-beam-demo-3.tsxindex d1da9fde..b0d663cb 100644--- a/apps/www/registry/example/border-beam-demo-3.tsx+++ b/apps/www/registry/example/border-beam-demo-3.tsx@@ -1,4 +1,4 @@-import { Button } from "@/components/ui/button";+import { Button } from "@/components/ui/button"import {Card,CardContent,@@ -6,10 +6,10 @@ import {CardFooter,CardHeader,CardTitle,-} from "@/components/ui/card";-import { Input } from "@/components/ui/input";-import { Label } from "@/components/ui/label";-import { BorderBeam } from "@/registry/magicui/border-beam";+} from "@/components/ui/card"+import { Input } from "@/components/ui/input"+import { Label } from "@/components/ui/label"+import { BorderBeam } from "@/registry/magicui/border-beam"export default function LoginForm() {return (@@ -49,5 +49,5 @@ export default function LoginForm() {className="from-transparent via-green-500 to-transparent"/></Card>- );+ )}diff --git a/apps/www/registry/example/border-beam-demo-4.tsx b/apps/www/registry/example/border-beam-demo-4.tsxindex d2c3fc66..56860581 100644--- a/apps/www/registry/example/border-beam-demo-4.tsx+++ b/apps/www/registry/example/border-beam-demo-4.tsx@@ -1,5 +1,5 @@-import { Button } from "@/components/ui/button";-import { BorderBeam } from "@/registry/magicui/border-beam";+import { Button } from "@/components/ui/button"+import { BorderBeam } from "@/registry/magicui/border-beam"export default function Component() {return (@@ -16,5 +16,5 @@ export default function Component() {}}/></Button>- );+ )}diff --git a/apps/www/registry/example/border-beam-demo.tsx b/apps/www/registry/example/border-beam-demo.tsxindex 60c44729..14361730 100644--- a/apps/www/registry/example/border-beam-demo.tsx+++ b/apps/www/registry/example/border-beam-demo.tsx@@ -1,4 +1,4 @@-import { Button } from "@/components/ui/button";+import { Button } from "@/components/ui/button"import {Card,CardContent,@@ -6,10 +6,10 @@ import {CardFooter,CardHeader,CardTitle,-} from "@/components/ui/card";-import { Input } from "@/components/ui/input";-import { Label } from "@/components/ui/label";-import { BorderBeam } from "@/registry/magicui/border-beam";+} from "@/components/ui/card"+import { Input } from "@/components/ui/input"+import { Label } from "@/components/ui/label"+import { BorderBeam } from "@/registry/magicui/border-beam"export default function Component() {return (@@ -44,5 +44,5 @@ export default function Component() {</CardFooter><BorderBeam duration={8} size={100} /></Card>- );+ )}diff --git a/apps/www/registry/example/box-reveal-demo.tsx b/apps/www/registry/example/box-reveal-demo.tsxindex 6dbf7afc..145fc6fb 100644--- a/apps/www/registry/example/box-reveal-demo.tsx+++ b/apps/www/registry/example/box-reveal-demo.tsx@@ -1,5 +1,5 @@-import { Button } from "@/components/ui/button";-import { BoxReveal } from "@/registry/magicui/box-reveal";+import { Button } from "@/components/ui/button"+import { BoxReveal } from "@/registry/magicui/box-reveal"export default function BoxRevealDemo() {return (@@ -36,5 +36,5 @@ export default function BoxRevealDemo() {<Button className="mt-[1.6rem] bg-[#5046e6]">Explore</Button></BoxReveal></div>- );+ )}diff --git a/apps/www/registry/example/code-comparison-demo.tsx b/apps/www/registry/example/code-comparison-demo.tsxindex 20e97d45..a5f0b9de 100644--- a/apps/www/registry/example/code-comparison-demo.tsx+++ b/apps/www/registry/example/code-comparison-demo.tsx@@ -1,4 +1,4 @@-import { CodeComparison } from "@/registry/magicui/code-comparison";+import { CodeComparison } from "@/registry/magicui/code-comparison"const beforeCode = `import { NextRequest } from 'next/server';@@ -35,7 +35,7 @@ export const middleware = async (req: NextRequest) => {export const config = {matcher: ['/((?!_next/|_static|_vercel|[\\w-]+\\.\\w+).*)'], // [!code highlight]-};`;+};`const afterCode = `import { createMiddleware, type MiddlewareFunctionProps } from '@app/(auth)/auth/_middleware';import { auth } from '@/app/(auth)/auth/_middleware'; // [!code --]@@ -51,7 +51,7 @@ export const middleware = createMiddleware(middlewares); // [!code focus]export const config = {matcher: ['/((?!_next/|_static|_vercel|[\\w-]+\\.\\w+).*)'],-};`;+};`export default function CodeComparisonDemo() {return (@@ -64,5 +64,5 @@ export default function CodeComparisonDemo() {darkTheme="github-dark"highlightColor="rgba(101, 117, 133, 0.16)"/>- );+ )}diff --git a/apps/www/registry/example/comic-text-demo.tsx b/apps/www/registry/example/comic-text-demo.tsxindex 29d6dd1e..bb879996 100644--- a/apps/www/registry/example/comic-text-demo.tsx+++ b/apps/www/registry/example/comic-text-demo.tsx@@ -1,9 +1,9 @@-import { ComicText } from "@/registry/magicui/comic-text";+import { ComicText } from "@/registry/magicui/comic-text"export default function ComicTextDemo() {return (<div className="space-y-8 text-center"><ComicText fontSize={5}>BOOM!</ComicText></div>- );+ )}diff --git a/apps/www/registry/example/confetti-basic-cannon.tsx b/apps/www/registry/example/confetti-basic-cannon.tsxindex 724939c4..4139dfd4 100644--- a/apps/www/registry/example/confetti-basic-cannon.tsx+++ b/apps/www/registry/example/confetti-basic-cannon.tsx@@ -1,9 +1,9 @@-import { ConfettiButton } from "@/registry/magicui/confetti";+import { ConfettiButton } from "@/registry/magicui/confetti"export default function ConfettiButtonDemo() {return (<div className="relative"><ConfettiButton>Confetti 🎉</ConfettiButton></div>- );+ )}diff --git a/apps/www/registry/example/confetti-custom-shapes.tsx b/apps/www/registry/example/confetti-custom-shapes.tsxindex 2afcaa07..2a396882 100644--- a/apps/www/registry/example/confetti-custom-shapes.tsx+++ b/apps/www/registry/example/confetti-custom-shapes.tsx@@ -1,24 +1,24 @@-"use client";+"use client"-import confetti from "canvas-confetti";+import confetti from "canvas-confetti"-import { Button } from "@/components/ui/button";+import { Button } from "@/components/ui/button"export default function ConfettiCustomShapes() {const handleClick = () => {- const scalar = 2;+ const scalar = 2const triangle = confetti.shapeFromPath({path: "M0 10 L5 0 L10 10z",- });+ })const square = confetti.shapeFromPath({path: "M0 0 L10 0 L10 10 L0 10 Z",- });+ })const coin = confetti.shapeFromPath({path: "M5 0 A5 5 0 1 0 5 10 A5 5 0 1 0 5 0 Z",- });+ })const tree = confetti.shapeFromPath({path: "M5 0 L10 10 L0 10 Z",- });+ })const defaults = {spread: 360,@@ -28,35 +28,35 @@ export default function ConfettiCustomShapes() {startVelocity: 20,shapes: [triangle, square, coin, tree],scalar,- };+ }const shoot = () => {confetti({...defaults,particleCount: 30,- });+ })confetti({...defaults,particleCount: 5,- });+ })confetti({...defaults,particleCount: 15,scalar: scalar / 2,shapes: ["circle"],- });- };+ })+ }- setTimeout(shoot, 0);- setTimeout(shoot, 100);- setTimeout(shoot, 200);- };+ setTimeout(shoot, 0)+ setTimeout(shoot, 100)+ setTimeout(shoot, 200)+ }return (<div className="relative flex items-center justify-center"><Button onClick={handleClick}>Trigger Shapes</Button></div>- );+ )}diff --git a/apps/www/registry/example/confetti-demo.tsx b/apps/www/registry/example/confetti-demo.tsxindex c0c50102..0169e3df 100644--- a/apps/www/registry/example/confetti-demo.tsx+++ b/apps/www/registry/example/confetti-demo.tsx@@ -1,25 +1,25 @@-"use client";+"use client"-import { useRef } from "react";+import { useRef } from "react"-import { Confetti, type ConfettiRef } from "@/registry/magicui/confetti";+import { Confetti, type ConfettiRef } from "@/registry/magicui/confetti"export default function ConfettiDemo() {- const confettiRef = useRef<ConfettiRef>(null);+ const confettiRef = useRef<ConfettiRef>(null)return (- <div className="relative flex h-[500px] w-full flex-col items-center justify-center overflow-hidden rounded-lg border bg-background">- <span className="pointer-events-none whitespace-pre-wrap bg-gradient-to-b from-black to-gray-300/80 bg-clip-text text-center text-8xl font-semibold leading-none text-transparent dark:from-white dark:to-slate-900/10">+ <div className="bg-background relative flex h-[500px] w-full flex-col items-center justify-center overflow-hidden rounded-lg border">+ <span className="pointer-events-none bg-gradient-to-b from-black to-gray-300/80 bg-clip-text text-center text-8xl leading-none font-semibold whitespace-pre-wrap text-transparent dark:from-white dark:to-slate-900/10">Confetti</span><Confettiref={confettiRef}- className="absolute left-0 top-0 z-0 size-full"+ className="absolute top-0 left-0 z-0 size-full"onMouseEnter={() => {- confettiRef.current?.fire({});+ confettiRef.current?.fire({})}}/></div>- );+ )}diff --git a/apps/www/registry/example/confetti-emoji.tsx b/apps/www/registry/example/confetti-emoji.tsxindex 2f20ea2b..d507d8b2 100644--- a/apps/www/registry/example/confetti-emoji.tsx+++ b/apps/www/registry/example/confetti-emoji.tsx@@ -1,13 +1,13 @@-"use client";+"use client"-import confetti from "canvas-confetti";+import confetti from "canvas-confetti"-import { Button } from "@/components/ui/button";+import { Button } from "@/components/ui/button"export default function ConfettiEmoji() {const handleClick = () => {- const scalar = 2;- const unicorn = confetti.shapeFromText({ text: "🦄", scalar });+ const scalar = 2+ const unicorn = confetti.shapeFromText({ text: "🦄", scalar })const defaults = {spread: 360,@@ -17,35 +17,35 @@ export default function ConfettiEmoji() {startVelocity: 20,shapes: [unicorn],scalar,- };+ }const shoot = () => {confetti({...defaults,particleCount: 30,- });+ })confetti({...defaults,particleCount: 5,- });+ })confetti({...defaults,particleCount: 15,scalar: scalar / 2,shapes: ["circle"],- });- };+ })+ }- setTimeout(shoot, 0);- setTimeout(shoot, 100);- setTimeout(shoot, 200);- };+ setTimeout(shoot, 0)+ setTimeout(shoot, 100)+ setTimeout(shoot, 200)+ }return (<div className="relative justify-center"><Button onClick={handleClick}>Trigger Emoji</Button></div>- );+ )}diff --git a/apps/www/registry/example/confetti-fireworks.tsx b/apps/www/registry/example/confetti-fireworks.tsxindex 56e9ea95..f3f12c74 100644--- a/apps/www/registry/example/confetti-fireworks.tsx+++ b/apps/www/registry/example/confetti-fireworks.tsx@@ -1,42 +1,42 @@-"use client";+"use client"-import confetti from "canvas-confetti";+import confetti from "canvas-confetti"-import { Button } from "@/components/ui/button";+import { Button } from "@/components/ui/button"export default function ConfettiFireworks() {const handleClick = () => {- const duration = 5 * 1000;- const animationEnd = Date.now() + duration;- const defaults = { startVelocity: 30, spread: 360, ticks: 60, zIndex: 0 };+ const duration = 5 * 1000+ const animationEnd = Date.now() + duration+ const defaults = { startVelocity: 30, spread: 360, ticks: 60, zIndex: 0 }const randomInRange = (min: number, max: number) =>- Math.random() * (max - min) + min;+ Math.random() * (max - min) + minconst interval = window.setInterval(() => {- const timeLeft = animationEnd - Date.now();+ const timeLeft = animationEnd - Date.now()if (timeLeft <= 0) {- return clearInterval(interval);+ return clearInterval(interval)}- const particleCount = 50 * (timeLeft / duration);+ const particleCount = 50 * (timeLeft / duration)confetti({...defaults,particleCount,origin: { x: randomInRange(0.1, 0.3), y: Math.random() - 0.2 },- });+ })confetti({...defaults,particleCount,origin: { x: randomInRange(0.7, 0.9), y: Math.random() - 0.2 },- });- }, 250);- };+ })+ }, 250)+ }return (<div className="relative"><Button onClick={handleClick}>Trigger Fireworks</Button></div>- );+ )}diff --git a/apps/www/registry/example/confetti-random-direction.tsx b/apps/www/registry/example/confetti-random-direction.tsxindex 1c50489e..1fd5e4d5 100644--- a/apps/www/registry/example/confetti-random-direction.tsx+++ b/apps/www/registry/example/confetti-random-direction.tsx@@ -1,4 +1,4 @@-import { ConfettiButton } from "@/registry/magicui/confetti";+import { ConfettiButton } from "@/registry/magicui/confetti"export default function ConfettiButtonDemo() {return (@@ -6,12 +6,12 @@ export default function ConfettiButtonDemo() {<ConfettiButtonoptions={{get angle() {- return Math.random() * 360;+ return Math.random() * 360},}}>Random Confetti 🎉</ConfettiButton></div>- );+ )}diff --git a/apps/www/registry/example/confetti-side-cannons.tsx b/apps/www/registry/example/confetti-side-cannons.tsxindex afaf712a..736b9f5c 100644--- a/apps/www/registry/example/confetti-side-cannons.tsx+++ b/apps/www/registry/example/confetti-side-cannons.tsx@@ -1,16 +1,16 @@-"use client";+"use client"-import confetti from "canvas-confetti";+import confetti from "canvas-confetti"-import { Button } from "@/components/ui/button";+import { Button } from "@/components/ui/button"export default function ConfettiSideCannons() {const handleClick = () => {- const end = Date.now() + 3 * 1000; // 3 seconds- const colors = ["#a786ff", "#fd8bbc", "#eca184", "#f8deb1"];+ const end = Date.now() + 3 * 1000 // 3 seconds+ const colors = ["#a786ff", "#fd8bbc", "#eca184", "#f8deb1"]const frame = () => {- if (Date.now() > end) return;+ if (Date.now() > end) returnconfetti({particleCount: 2,@@ -19,7 +19,7 @@ export default function ConfettiSideCannons() {startVelocity: 60,origin: { x: 0, y: 0.5 },colors: colors,- });+ })confetti({particleCount: 2,angle: 120,@@ -27,17 +27,17 @@ export default function ConfettiSideCannons() {startVelocity: 60,origin: { x: 1, y: 0.5 },colors: colors,- });+ })- requestAnimationFrame(frame);- };+ requestAnimationFrame(frame)+ }- frame();- };+ frame()+ }return (<div className="relative"><Button onClick={handleClick}>Trigger Side Cannons</Button></div>- );+ )}diff --git a/apps/www/registry/example/confetti-stars.tsx b/apps/www/registry/example/confetti-stars.tsxindex 61a82d73..001a5025 100644--- a/apps/www/registry/example/confetti-stars.tsx+++ b/apps/www/registry/example/confetti-stars.tsx@@ -1,8 +1,8 @@-"use client";+"use client"-import confetti from "canvas-confetti";+import confetti from "canvas-confetti"-import { Button } from "@/components/ui/button";+import { Button } from "@/components/ui/button"export default function ConfettiStars() {const handleClick = () => {@@ -13,7 +13,7 @@ export default function ConfettiStars() {decay: 0.94,startVelocity: 30,colors: ["#FFE400", "#FFBD00", "#E89400", "#FFCA6C", "#FDFFB8"],- };+ }const shoot = () => {confetti({@@ -21,24 +21,24 @@ export default function ConfettiStars() {particleCount: 40,scalar: 1.2,shapes: ["star"],- });+ })confetti({...defaults,particleCount: 10,scalar: 0.75,shapes: ["circle"],- });- };+ })+ }- setTimeout(shoot, 0);- setTimeout(shoot, 100);- setTimeout(shoot, 200);- };+ setTimeout(shoot, 0)+ setTimeout(shoot, 100)+ setTimeout(shoot, 200)+ }return (<div className="relative"><Button onClick={handleClick}>Trigger Stars</Button></div>- );+ )}diff --git a/apps/www/registry/example/cool-mode-custom.tsx b/apps/www/registry/example/cool-mode-custom.tsxindex 0c3f2466..dcda6105 100644--- a/apps/www/registry/example/cool-mode-custom.tsx+++ b/apps/www/registry/example/cool-mode-custom.tsx@@ -1,5 +1,5 @@-import { Button } from "@/components/ui/button";-import { CoolMode } from "@/registry/magicui/cool-mode";+import { Button } from "@/components/ui/button"+import { CoolMode } from "@/registry/magicui/cool-mode"export default function CoolModeCustom() {return (@@ -13,5 +13,5 @@ export default function CoolModeCustom() {<Button>Click Me!</Button></CoolMode></div>- );+ )}diff --git a/apps/www/registry/example/cool-mode-demo.tsx b/apps/www/registry/example/cool-mode-demo.tsxindex 7c704dc4..a56ab84a 100644--- a/apps/www/registry/example/cool-mode-demo.tsx+++ b/apps/www/registry/example/cool-mode-demo.tsx@@ -1,5 +1,5 @@-import { Button } from "@/components/ui/button";-import { CoolMode } from "@/registry/magicui/cool-mode";+import { Button } from "@/components/ui/button"+import { CoolMode } from "@/registry/magicui/cool-mode"export default function CoolModeDemo() {return (@@ -8,5 +8,5 @@ export default function CoolModeDemo() {<Button>Click Me!</Button></CoolMode></div>- );+ )}diff --git a/apps/www/registry/example/dock-demo-2.tsx b/apps/www/registry/example/dock-demo-2.tsxindex 951a9739..57ece9ad 100644--- a/apps/www/registry/example/dock-demo-2.tsx+++ b/apps/www/registry/example/dock-demo-2.tsx@@ -1,10 +1,10 @@-"use client";+"use client"-import React from "react";+import React from "react"-import { Dock, DockIcon } from "@/registry/magicui/dock";+import { Dock, DockIcon } from "@/registry/magicui/dock"-export type IconProps = React.HTMLAttributes<SVGElement>;+export type IconProps = React.HTMLAttributes<SVGElement>export default function DockDemo() {return (@@ -24,7 +24,7 @@ export default function DockDemo() {</DockIcon></Dock></div>- );+ )}const Icons = {@@ -138,4 +138,4 @@ const Icons = {/></svg>),-};+}diff --git a/apps/www/registry/example/dock-demo-3.tsx b/apps/www/registry/example/dock-demo-3.tsxindex 89099871..413cd330 100644--- a/apps/www/registry/example/dock-demo-3.tsx+++ b/apps/www/registry/example/dock-demo-3.tsx@@ -1,10 +1,10 @@-"use client";+"use client"-import React from "react";+import React from "react"-import { Dock, DockIcon } from "@/registry/magicui/dock";+import { Dock, DockIcon } from "@/registry/magicui/dock"-export type IconProps = React.HTMLAttributes<SVGElement>;+export type IconProps = React.HTMLAttributes<SVGElement>export default function DockDemo() {return (@@ -24,7 +24,7 @@ export default function DockDemo() {</DockIcon></Dock></div>- );+ )}const Icons = {@@ -138,4 +138,4 @@ const Icons = {/></svg>),-};+}diff --git a/apps/www/registry/example/dock-demo.tsx b/apps/www/registry/example/dock-demo.tsxindex 0b3ff893..3043a879 100644--- a/apps/www/registry/example/dock-demo.tsx+++ b/apps/www/registry/example/dock-demo.tsx@@ -1,21 +1,21 @@-"use client";+"use client"-import { CalendarIcon, HomeIcon, MailIcon, PencilIcon } from "lucide-react";-import Link from "next/link";-import React from "react";+import React from "react"+import Link from "next/link"+import { CalendarIcon, HomeIcon, MailIcon, PencilIcon } from "lucide-react"-import { buttonVariants } from "@/components/ui/button";-import { Separator } from "@/components/ui/separator";+import { cn } from "@/lib/utils"+import { buttonVariants } from "@/components/ui/button"+import { Separator } from "@/components/ui/separator"import {Tooltip,TooltipContent,TooltipProvider,TooltipTrigger,-} from "@/components/ui/tooltip";-import { cn } from "@/lib/utils";-import { Dock, DockIcon } from "@/registry/magicui/dock";+} from "@/components/ui/tooltip"+import { Dock, DockIcon } from "@/registry/magicui/dock"-export type IconProps = React.HTMLAttributes<SVGElement>;+export type IconProps = React.HTMLAttributes<SVGElement>const Icons = {calendar: (props: IconProps) => <CalendarIcon {...props} />,@@ -59,7 +59,7 @@ const Icons = {></path></svg>),-};+}const DATA = {navbar: [@@ -90,12 +90,12 @@ const DATA = {},},},-};+}export default function DockDemo() {return (<div className="flex flex-col items-center justify-center">- <span className="pointer-events-none whitespace-pre-wrap bg-gradient-to-b from-black to-gray-300/80 bg-clip-text text-center text-8xl font-semibold leading-none text-transparent dark:from-white dark:to-slate-900/10">+ <span className="pointer-events-none bg-gradient-to-b from-black to-gray-300/80 bg-clip-text text-center text-8xl leading-none font-semibold whitespace-pre-wrap text-transparent dark:from-white dark:to-slate-900/10">Dock</span><TooltipProvider>@@ -109,7 +109,7 @@ export default function DockDemo() {aria-label={item.label}className={cn(buttonVariants({ variant: "ghost", size: "icon" }),- "size-12 rounded-full",+ "size-12 rounded-full")}><item.icon className="size-4" />@@ -131,7 +131,7 @@ export default function DockDemo() {aria-label={social.name}className={cn(buttonVariants({ variant: "ghost", size: "icon" }),- "size-12 rounded-full ",+ "size-12 rounded-full")}><social.icon className="size-4" />@@ -146,5 +146,5 @@ export default function DockDemo() {</Dock></TooltipProvider></div>- );+ )}diff --git a/apps/www/registry/example/dot-pattern-demo.tsx b/apps/www/registry/example/dot-pattern-demo.tsxindex e4a0ecd9..fa26bcb6 100644--- a/apps/www/registry/example/dot-pattern-demo.tsx+++ b/apps/www/registry/example/dot-pattern-demo.tsx@@ -1,16 +1,16 @@-"use client";+"use client"-import { cn } from "@/lib/utils";-import { DotPattern } from "@/registry/magicui/dot-pattern";+import { cn } from "@/lib/utils"+import { DotPattern } from "@/registry/magicui/dot-pattern"export default function DotPatternDemo() {return (- <div className="relative flex h-[500px] w-full flex-col items-center justify-center overflow-hidden rounded-lg border bg-background">+ <div className="bg-background relative flex h-[500px] w-full flex-col items-center justify-center overflow-hidden rounded-lg border"><DotPatternclassName={cn(- "[mask-image:radial-gradient(300px_circle_at_center,white,transparent)]",+ "[mask-image:radial-gradient(300px_circle_at_center,white,transparent)]")}/></div>- );+ )}diff --git a/apps/www/registry/example/dot-pattern-linear-gradient.tsx b/apps/www/registry/example/dot-pattern-linear-gradient.tsxindex 18e68542..85b206d2 100644--- a/apps/www/registry/example/dot-pattern-linear-gradient.tsx+++ b/apps/www/registry/example/dot-pattern-linear-gradient.tsx@@ -1,11 +1,11 @@-"use client";+"use client"-import { cn } from "@/lib/utils";-import { DotPattern } from "@/registry/magicui/dot-pattern";+import { cn } from "@/lib/utils"+import { DotPattern } from "@/registry/magicui/dot-pattern"export default function DotPatternLinearGradient() {return (- <div className="relative flex size-full items-center justify-center overflow-hidden rounded-lg border bg-background p-20">+ <div className="bg-background relative flex size-full items-center justify-center overflow-hidden rounded-lg border p-20"><DotPatternwidth={20}height={20}@@ -13,9 +13,9 @@ export default function DotPatternLinearGradient() {cy={1}cr={1}className={cn(- "[mask-image:linear-gradient(to_bottom_right,white,transparent,transparent)] ",+ "[mask-image:linear-gradient(to_bottom_right,white,transparent,transparent)]")}/></div>- );+ )}diff --git a/apps/www/registry/example/dot-pattern-with-glow-effect.tsx b/apps/www/registry/example/dot-pattern-with-glow-effect.tsxindex 34552de6..2bbf1e12 100644--- a/apps/www/registry/example/dot-pattern-with-glow-effect.tsx+++ b/apps/www/registry/example/dot-pattern-with-glow-effect.tsx@@ -1,7 +1,7 @@-"use client";+"use client"-import { cn } from "@/lib/utils";-import { DotPattern } from "@/registry/magicui/dot-pattern";+import { cn } from "@/lib/utils"+import { DotPattern } from "@/registry/magicui/dot-pattern"export default function DotPatternWithGlowEffectDemo() {return (@@ -9,9 +9,9 @@ export default function DotPatternWithGlowEffectDemo() {<DotPatternglow={true}className={cn(- "[mask-image:radial-gradient(300px_circle_at_center,white,transparent)]",+ "[mask-image:radial-gradient(300px_circle_at_center,white,transparent)]")}/></div>- );+ )}diff --git a/apps/www/registry/example/file-tree-demo.tsx b/apps/www/registry/example/file-tree-demo.tsxindex cafbb39b..0fd1cbf0 100644--- a/apps/www/registry/example/file-tree-demo.tsx+++ b/apps/www/registry/example/file-tree-demo.tsx@@ -1,10 +1,10 @@-import { File, Folder, Tree } from "@/registry/magicui/file-tree";+import { File, Folder, Tree } from "@/registry/magicui/file-tree"export default function FileTreeDemo() {return (- <div className="relative flex h-[300px] w-1/2 flex-col items-center justify-center overflow-hidden rounded-lg border bg-background">+ <div className="bg-background relative flex h-[300px] w-1/2 flex-col items-center justify-center overflow-hidden rounded-lg border"><Tree- className="overflow-hidden rounded-md bg-background p-2"+ className="bg-background overflow-hidden rounded-md p-2"initialSelectedId="7"initialExpandedItems={["1",@@ -51,7 +51,7 @@ export default function FileTreeDemo() {</Folder></Tree></div>- );+ )}const ELEMENTS = [@@ -108,4 +108,4 @@ const ELEMENTS = [},],},-];+]diff --git a/apps/www/registry/example/flickering-grid-demo.tsx b/apps/www/registry/example/flickering-grid-demo.tsxindex 08a4241a..fa376e45 100644--- a/apps/www/registry/example/flickering-grid-demo.tsx+++ b/apps/www/registry/example/flickering-grid-demo.tsx@@ -1,8 +1,8 @@-import { FlickeringGrid } from "@/registry/magicui/flickering-grid";+import { FlickeringGrid } from "@/registry/magicui/flickering-grid"export default function FlickeringGridDemo() {return (- <div className="relative h-[500px] w-full overflow-hidden rounded-lg border bg-background">+ <div className="bg-background relative h-[500px] w-full overflow-hidden rounded-lg border"><FlickeringGridclassName="absolute inset-0 z-0 size-full"squareSize={4}@@ -14,5 +14,5 @@ export default function FlickeringGridDemo() {width={800}/></div>- );+ )}diff --git a/apps/www/registry/example/flickering-grid-rounded-demo.tsx b/apps/www/registry/example/flickering-grid-rounded-demo.tsxindex 1e68c596..6780e4c9 100644--- a/apps/www/registry/example/flickering-grid-rounded-demo.tsx+++ b/apps/www/registry/example/flickering-grid-rounded-demo.tsx@@ -1,8 +1,8 @@-import { FlickeringGrid } from "@/registry/magicui/flickering-grid";+import { FlickeringGrid } from "@/registry/magicui/flickering-grid"export default function FlickeringGridRoundedDemo() {return (- <div className="relative size-[600px] w-full overflow-hidden rounded-lg border bg-background">+ <div className="bg-background relative size-[600px] w-full overflow-hidden rounded-lg border"><FlickeringGridclassName="relative inset-0 z-0 [mask-image:radial-gradient(450px_circle_at_center,white,transparent)]"squareSize={4}@@ -14,5 +14,5 @@ export default function FlickeringGridRoundedDemo() {width={800}/></div>- );+ )}diff --git a/apps/www/registry/example/flip-text-demo.tsx b/apps/www/registry/example/flip-text-demo.tsxindex a8b68304..42eace1d 100644--- a/apps/www/registry/example/flip-text-demo.tsx+++ b/apps/www/registry/example/flip-text-demo.tsx@@ -1,9 +1,9 @@-import { FlipText } from "@/registry/magicui/flip-text";+import { FlipText } from "@/registry/magicui/flip-text"export default function FlipTextDemo() {return (- <FlipText className="text-4xl font-bold -tracking-widest text-black dark:text-white md:text-7xl md:leading-[5rem]">+ <FlipText className="text-4xl font-bold -tracking-widest text-black md:text-7xl md:leading-[5rem] dark:text-white">Flip Text</FlipText>- );+ )}diff --git a/apps/www/registry/example/globe-demo.tsx b/apps/www/registry/example/globe-demo.tsxindex 7bd3db9d..1d862b26 100644--- a/apps/www/registry/example/globe-demo.tsx+++ b/apps/www/registry/example/globe-demo.tsx@@ -1,13 +1,13 @@-import { Globe } from "@/registry/magicui/globe";+import { Globe } from "@/registry/magicui/globe"export default function GlobeDemo() {return (- <div className="relative flex size-full max-w-lg items-center justify-center overflow-hidden rounded-lg border bg-background px-40 pb-40 pt-8 md:pb-60">- <span className="pointer-events-none whitespace-pre-wrap bg-gradient-to-b from-black to-gray-300/80 bg-clip-text text-center text-8xl font-semibold leading-none text-transparent dark:from-white dark:to-slate-900/10">+ <div className="bg-background relative flex size-full max-w-lg items-center justify-center overflow-hidden rounded-lg border px-40 pt-8 pb-40 md:pb-60">+ <span className="pointer-events-none bg-gradient-to-b from-black to-gray-300/80 bg-clip-text text-center text-8xl leading-none font-semibold whitespace-pre-wrap text-transparent dark:from-white dark:to-slate-900/10">Globe</span><Globe className="top-28" /><div className="pointer-events-none absolute inset-0 h-full bg-[radial-gradient(circle_at_50%_200%,rgba(0,0,0,0.2),rgba(255,255,255,0))]" /></div>- );+ )}diff --git a/apps/www/registry/example/grid-beams-demo.tsx b/apps/www/registry/example/grid-beams-demo.tsxindex 244dea7e..a9edfbc6 100644--- a/apps/www/registry/example/grid-beams-demo.tsx+++ b/apps/www/registry/example/grid-beams-demo.tsx@@ -1,4 +1,4 @@-import { GridBeams } from "@/registry/magicui/grid-beams";+import { GridBeams } from "@/registry/magicui/grid-beams"export default function GridBeamsDemo() {return (@@ -15,13 +15,13 @@ export default function GridBeamsDemo() {className="h-full w-full"><div className="flex h-full items-center justify-center">- <div className="text-center space-y-6 px-4 mt-50">- <h1 className="text-5xl md:text-7xl font-bold text-white leading-tight">+ <div className="mt-50 space-y-6 px-4 text-center">+ <h1 className="text-5xl leading-tight font-bold text-white md:text-7xl">Grid <span className="text-blue-400">BEAMS</span></h1></div></div></GridBeams></div>- );+ )}diff --git a/apps/www/registry/example/grid-pattern-dashed.tsx b/apps/www/registry/example/grid-pattern-dashed.tsxindex f3948af6..d92513a2 100644--- a/apps/www/registry/example/grid-pattern-dashed.tsx+++ b/apps/www/registry/example/grid-pattern-dashed.tsx@@ -1,11 +1,11 @@-"use client";+"use client"-import { cn } from "@/lib/utils";-import { GridPattern } from "@/registry/magicui/grid-pattern";+import { cn } from "@/lib/utils"+import { GridPattern } from "@/registry/magicui/grid-pattern"export default function GridPatternDashed() {return (- <div className="relative flex size-full items-center justify-center overflow-hidden rounded-lg border bg-background p-20">+ <div className="bg-background relative flex size-full items-center justify-center overflow-hidden rounded-lg border p-20"><GridPatternwidth={30}height={30}@@ -13,9 +13,9 @@ export default function GridPatternDashed() {y={-1}strokeDasharray={"4 2"}className={cn(- "[mask-image:radial-gradient(300px_circle_at_center,white,transparent)]",+ "[mask-image:radial-gradient(300px_circle_at_center,white,transparent)]")}/></div>- );+ )}diff --git a/apps/www/registry/example/grid-pattern-demo.tsx b/apps/www/registry/example/grid-pattern-demo.tsxindex b1e8926b..a2b481f9 100644--- a/apps/www/registry/example/grid-pattern-demo.tsx+++ b/apps/www/registry/example/grid-pattern-demo.tsx@@ -1,11 +1,11 @@-"use client";+"use client"-import { cn } from "@/lib/utils";-import { GridPattern } from "@/registry/magicui/grid-pattern";+import { cn } from "@/lib/utils"+import { GridPattern } from "@/registry/magicui/grid-pattern"export default function GridPatternDemo() {return (- <div className="relative flex h-[500px] w-full flex-col items-center justify-center overflow-hidden rounded-lg border bg-background">+ <div className="bg-background relative flex h-[500px] w-full flex-col items-center justify-center overflow-hidden rounded-lg border"><GridPatternsquares={[[4, 4],@@ -23,9 +23,9 @@ export default function GridPatternDemo() {]}className={cn("[mask-image:radial-gradient(400px_circle_at_center,white,transparent)]",- "inset-x-0 inset-y-[-30%] h-[200%] skew-y-12",+ "inset-x-0 inset-y-[-30%] h-[200%] skew-y-12")}/></div>- );+ )}diff --git a/apps/www/registry/example/grid-pattern-linear-gradient.tsx b/apps/www/registry/example/grid-pattern-linear-gradient.tsxindex f2c53501..0f266939 100644--- a/apps/www/registry/example/grid-pattern-linear-gradient.tsx+++ b/apps/www/registry/example/grid-pattern-linear-gradient.tsx@@ -1,20 +1,20 @@-"use client";+"use client"-import { cn } from "@/lib/utils";-import { GridPattern } from "@/registry/magicui/grid-pattern";+import { cn } from "@/lib/utils"+import { GridPattern } from "@/registry/magicui/grid-pattern"export default function GridPatternLinearGradient() {return (- <div className="relative flex size-full items-center justify-center overflow-hidden rounded-lg border bg-background p-20">+ <div className="bg-background relative flex size-full items-center justify-center overflow-hidden rounded-lg border p-20"><GridPatternwidth={20}height={20}x={-1}y={-1}className={cn(- "[mask-image:linear-gradient(to_bottom_right,white,transparent,transparent)] ",+ "[mask-image:linear-gradient(to_bottom_right,white,transparent,transparent)]")}/></div>- );+ )}diff --git a/apps/www/registry/example/hero-video-dialog-demo-top-in-bottom-out.tsx b/apps/www/registry/example/hero-video-dialog-demo-top-in-bottom-out.tsxindex 983a8ea7..e3c317f5 100644--- a/apps/www/registry/example/hero-video-dialog-demo-top-in-bottom-out.tsx+++ b/apps/www/registry/example/hero-video-dialog-demo-top-in-bottom-out.tsx@@ -1,4 +1,4 @@-import { HeroVideoDialog } from "@/registry/magicui/hero-video-dialog";+import { HeroVideoDialog } from "@/registry/magicui/hero-video-dialog"export default function HeroVideoDialogDemoTopInBottomOut() {return (@@ -18,5 +18,5 @@ export default function HeroVideoDialogDemoTopInBottomOut() {thumbnailAlt="Hero Video"/></div>- );+ )}diff --git a/apps/www/registry/example/hero-video-dialog-demo.tsx b/apps/www/registry/example/hero-video-dialog-demo.tsxindex ad103a7d..200e9d76 100644--- a/apps/www/registry/example/hero-video-dialog-demo.tsx+++ b/apps/www/registry/example/hero-video-dialog-demo.tsx@@ -1,4 +1,4 @@-import { HeroVideoDialog } from "@/registry/magicui/hero-video-dialog";+import { HeroVideoDialog } from "@/registry/magicui/hero-video-dialog"export default function HeroVideoDialogDemo() {return (@@ -18,5 +18,5 @@ export default function HeroVideoDialogDemo() {thumbnailAlt="Hero Video"/></div>- );+ )}diff --git a/apps/www/registry/example/highlighter-demo.tsx b/apps/www/registry/example/highlighter-demo.tsxindex 697fff20..314e8118 100644--- a/apps/www/registry/example/highlighter-demo.tsx+++ b/apps/www/registry/example/highlighter-demo.tsx@@ -1,4 +1,4 @@-import { Highlighter } from "@/registry/magicui/highlighter";+import { Highlighter } from "@/registry/magicui/highlighter"export default function HighlighterDemo() {return (@@ -15,5 +15,5 @@ export default function HighlighterDemo() {effortlessly.</p></div>- );+ )}diff --git a/apps/www/registry/example/hyper-text-demo.tsx b/apps/www/registry/example/hyper-text-demo.tsxindex 25f2c3d8..b3c060bc 100644--- a/apps/www/registry/example/hyper-text-demo.tsx+++ b/apps/www/registry/example/hyper-text-demo.tsx@@ -1,5 +1,5 @@-import { HyperText } from "@/registry/magicui/hyper-text";+import { HyperText } from "@/registry/magicui/hyper-text"export default function HyperTextDemo() {- return <HyperText>Hover Me!</HyperText>;+ return <HyperText>Hover Me!</HyperText>}diff --git a/apps/www/registry/example/icon-cloud-demo-2.tsx b/apps/www/registry/example/icon-cloud-demo-2.tsxindex be9385e7..252d3ce6 100644--- a/apps/www/registry/example/icon-cloud-demo-2.tsx+++ b/apps/www/registry/example/icon-cloud-demo-2.tsx@@ -1,4 +1,4 @@-import { IconCloud } from "@/registry/magicui/icon-cloud";+import { IconCloud } from "@/registry/magicui/icon-cloud"const images = ["https://images.unsplash.com/photo-1720048171230-c60d162f93a0?q=80&w=1974&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDF8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",@@ -16,12 +16,12 @@ const images = ["https://plus.unsplash.com/premium_photo-1675297844586-534b030564e0?q=80&w=1964&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D","https://plus.unsplash.com/premium_photo-1675555581018-7f1a352ff9a6?q=80&w=1964&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D","https://images.unsplash.com/photo-1719937050517-68d4e2a1702e?q=80&w=1974&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",-];+]export default function IconCloudDemo() {return (- <div className="relative flex size-full max-w-lg items-center justify-center overflow-hidden rounded-lg border bg-background">+ <div className="bg-background relative flex size-full max-w-lg items-center justify-center overflow-hidden rounded-lg border"><IconCloud images={images} /></div>- );+ )}diff --git a/apps/www/registry/example/icon-cloud-demo-3.tsx b/apps/www/registry/example/icon-cloud-demo-3.tsxindex b8519cdd..3d4071da 100644--- a/apps/www/registry/example/icon-cloud-demo-3.tsx+++ b/apps/www/registry/example/icon-cloud-demo-3.tsx@@ -1,4 +1,4 @@-import { IconCloud } from "@/registry/magicui/icon-cloud";+import { IconCloud } from "@/registry/magicui/icon-cloud"const Icons = {gitHub: () => (@@ -127,11 +127,11 @@ const Icons = {/></svg>),-};+}export default function IconCloudDemo() {return (- <div className="relative flex size-full max-w-lg items-center justify-center overflow-hidden rounded-lg border bg-background">+ <div className="bg-background relative flex size-full max-w-lg items-center justify-center overflow-hidden rounded-lg border"><IconCloudicons={[<Icons.gitHub key="github" />,@@ -161,5 +161,5 @@ export default function IconCloudDemo() {]}/></div>- );+ )}diff --git a/apps/www/registry/example/icon-cloud-demo.tsx b/apps/www/registry/example/icon-cloud-demo.tsxindex 1fd066a2..95618691 100644--- a/apps/www/registry/example/icon-cloud-demo.tsx+++ b/apps/www/registry/example/icon-cloud-demo.tsx@@ -1,4 +1,4 @@-import { IconCloud } from "@/registry/magicui/icon-cloud";+import { IconCloud } from "@/registry/magicui/icon-cloud"const slugs = ["typescript",@@ -31,16 +31,16 @@ const slugs = ["androidstudio","sonarqube","figma",-];+]export default function IconCloudDemo() {const images = slugs.map(- (slug) => `https://cdn.simpleicons.org/${slug}/${slug}`,- );+ (slug) => `https://cdn.simpleicons.org/${slug}/${slug}`+ )return (<div className="relative flex size-full items-center justify-center overflow-hidden"><IconCloud images={images} /></div>- );+ )}diff --git a/apps/www/registry/example/interactive-grid-pattern-demo-2.tsx b/apps/www/registry/example/interactive-grid-pattern-demo-2.tsxindex e2f08ea8..81985654 100644--- a/apps/www/registry/example/interactive-grid-pattern-demo-2.tsx+++ b/apps/www/registry/example/interactive-grid-pattern-demo-2.tsx@@ -1,14 +1,14 @@-"use client";+"use client"-import { cn } from "@/lib/utils";-import { InteractiveGridPattern } from "@/registry/magicui/interactive-grid-pattern";+import { cn } from "@/lib/utils"+import { InteractiveGridPattern } from "@/registry/magicui/interactive-grid-pattern"export default function InteractiveGridPatternDemo() {return (- <div className="relative flex h-[500px] w-full flex-col items-center justify-center overflow-hidden rounded-lg border bg-background">+ <div className="bg-background relative flex h-[500px] w-full flex-col items-center justify-center overflow-hidden rounded-lg border"><InteractiveGridPatternclassName={cn(- "[mask-image:radial-gradient(400px_circle_at_center,white,transparent)]",+ "[mask-image:radial-gradient(400px_circle_at_center,white,transparent)]")}width={20}height={20}@@ -16,5 +16,5 @@ export default function InteractiveGridPatternDemo() {squaresClassName="hover:fill-blue-500"/></div>- );+ )}diff --git a/apps/www/registry/example/interactive-grid-pattern-demo.tsx b/apps/www/registry/example/interactive-grid-pattern-demo.tsxindex 3ff09626..a772149d 100644--- a/apps/www/registry/example/interactive-grid-pattern-demo.tsx+++ b/apps/www/registry/example/interactive-grid-pattern-demo.tsx@@ -1,17 +1,17 @@-"use client";+"use client"-import { cn } from "@/lib/utils";-import { InteractiveGridPattern } from "@/registry/magicui/interactive-grid-pattern";+import { cn } from "@/lib/utils"+import { InteractiveGridPattern } from "@/registry/magicui/interactive-grid-pattern"export default function InteractiveGridPatternDemo() {return (- <div className="relative flex h-[500px] w-full flex-col items-center justify-center overflow-hidden rounded-lg border bg-background">+ <div className="bg-background relative flex h-[500px] w-full flex-col items-center justify-center overflow-hidden rounded-lg border"><InteractiveGridPatternclassName={cn("[mask-image:radial-gradient(400px_circle_at_center,white,transparent)]",- "inset-x-0 inset-y-[-30%] h-[200%] skew-y-12",+ "inset-x-0 inset-y-[-30%] h-[200%] skew-y-12")}/></div>- );+ )}diff --git a/apps/www/registry/example/interactive-hover-button-demo.tsx b/apps/www/registry/example/interactive-hover-button-demo.tsxindex 5aa51a7b..e0a86803 100644--- a/apps/www/registry/example/interactive-hover-button-demo.tsx+++ b/apps/www/registry/example/interactive-hover-button-demo.tsx@@ -1,5 +1,5 @@-import { InteractiveHoverButton } from "@/registry/magicui/interactive-hover-button";+import { InteractiveHoverButton } from "@/registry/magicui/interactive-hover-button"export default function InteractiveHoverButtonDemo() {- return <InteractiveHoverButton>Hover Me</InteractiveHoverButton>;+ return <InteractiveHoverButton>Hover Me</InteractiveHoverButton>}diff --git a/apps/www/registry/example/iphone-15-pro-demo-2.tsx b/apps/www/registry/example/iphone-15-pro-demo-2.tsxindex 8760a4b1..b90e3493 100644--- a/apps/www/registry/example/iphone-15-pro-demo-2.tsx+++ b/apps/www/registry/example/iphone-15-pro-demo-2.tsx@@ -1,9 +1,9 @@-import { Iphone15Pro } from "@/registry/magicui/iphone-15-pro";+import { Iphone15Pro } from "@/registry/magicui/iphone-15-pro"export default function Iphone15ProDemo() {return (<div className="w-[434px]"><Iphone15Pro src="https://placehold.co/900x1600?text=Hello+World" /></div>- );+ )}diff --git a/apps/www/registry/example/iphone-15-pro-demo-3.tsx b/apps/www/registry/example/iphone-15-pro-demo-3.tsxindex d0cac65b..ae0f94f0 100644--- a/apps/www/registry/example/iphone-15-pro-demo-3.tsx+++ b/apps/www/registry/example/iphone-15-pro-demo-3.tsx@@ -1,9 +1,9 @@-import { Iphone15Pro } from "@/registry/magicui/iphone-15-pro";+import { Iphone15Pro } from "@/registry/magicui/iphone-15-pro"export default function Iphone15ProDemo() {return (<div className="w-[434px]"><Iphone15Pro videoSrc="https://videos.pexels.com/video-files/8946986/8946986-uhd_1440_2732_25fps.mp4" /></div>- );+ )}diff --git a/apps/www/registry/example/iphone-15-pro-demo.tsx b/apps/www/registry/example/iphone-15-pro-demo.tsxindex 0730cea4..822fb3d4 100644--- a/apps/www/registry/example/iphone-15-pro-demo.tsx+++ b/apps/www/registry/example/iphone-15-pro-demo.tsx@@ -1,9 +1,9 @@-import { Iphone15Pro } from "@/registry/magicui/iphone-15-pro";+import { Iphone15Pro } from "@/registry/magicui/iphone-15-pro"export default function Iphone15ProDemo() {return (<div className="w-[434px]"><Iphone15Pro /></div>- );+ )}diff --git a/apps/www/registry/example/lens-demo-2.tsx b/apps/www/registry/example/lens-demo-2.tsxindex cf7ef94c..9e287139 100644--- a/apps/www/registry/example/lens-demo-2.tsx+++ b/apps/www/registry/example/lens-demo-2.tsx@@ -1,6 +1,6 @@/* eslint-disable @next/next/no-img-element */-import { Button } from "@/components/ui/button";+import { Button } from "@/components/ui/button"import {Card,CardContent,@@ -8,8 +8,8 @@ import {CardFooter,CardHeader,CardTitle,-} from "@/components/ui/card";-import { Lens } from "@/registry/magicui/lens";+} from "@/components/ui/card"+import { Lens } from "@/registry/magicui/lens"export default function LensDemo() {return (@@ -36,5 +36,5 @@ export default function LensDemo() {<Button variant="secondary">Another time</Button></CardFooter></Card>- );+ )}diff --git a/apps/www/registry/example/lens-demo-3.tsx b/apps/www/registry/example/lens-demo-3.tsxindex 207e5449..99c4d664 100644--- a/apps/www/registry/example/lens-demo-3.tsx+++ b/apps/www/registry/example/lens-demo-3.tsx@@ -1,6 +1,6 @@/* eslint-disable @next/next/no-img-element */-import { Button } from "@/components/ui/button";+import { Button } from "@/components/ui/button"import {Card,CardContent,@@ -8,8 +8,8 @@ import {CardFooter,CardHeader,CardTitle,-} from "@/components/ui/card";-import { Lens } from "@/registry/magicui/lens";+} from "@/components/ui/card"+import { Lens } from "@/registry/magicui/lens"export default function LensDemo() {return (@@ -36,5 +36,5 @@ export default function LensDemo() {<Button variant="secondary">Another time</Button></CardFooter></Card>- );+ )}diff --git a/apps/www/registry/example/lens-demo.tsx b/apps/www/registry/example/lens-demo.tsxindex 2c1ec5a7..88c19bad 100644--- a/apps/www/registry/example/lens-demo.tsx+++ b/apps/www/registry/example/lens-demo.tsx@@ -1,7 +1,8 @@/* eslint-disable @next/next/no-img-element */-"use client";-import { Button } from "@/components/ui/button";+"use client"++import { Button } from "@/components/ui/button"import {Card,CardContent,@@ -9,8 +10,8 @@ import {CardFooter,CardHeader,CardTitle,-} from "@/components/ui/card";-import { Lens } from "@/registry/magicui/lens";+} from "@/components/ui/card"+import { Lens } from "@/registry/magicui/lens"export default function LensDemo() {return (@@ -42,5 +43,5 @@ export default function LensDemo() {<Button variant="secondary">Another time</Button></CardFooter></Card>- );+ )}diff --git a/apps/www/registry/example/line-shadow-text-demo.tsx b/apps/www/registry/example/line-shadow-text-demo.tsxindex 7a7fff2b..884d9a92 100644--- a/apps/www/registry/example/line-shadow-text-demo.tsx+++ b/apps/www/registry/example/line-shadow-text-demo.tsx@@ -1,17 +1,18 @@-"use client";+"use client"-import { LineShadowText } from "@/registry/magicui/line-shadow-text";-import { useTheme } from "next-themes";+import { useTheme } from "next-themes"++import { LineShadowText } from "@/registry/magicui/line-shadow-text"export default function LineShadowTextDemo() {- const theme = useTheme();- const shadowColor = theme.resolvedTheme === "dark" ? "white" : "black";+ const theme = useTheme()+ const shadowColor = theme.resolvedTheme === "dark" ? "white" : "black"return (- <h1 className="text-balance text-5xl font-semibold leading-none tracking-tighter sm:text-6xl md:text-7xl lg:text-8xl">+ <h1 className="text-5xl leading-none font-semibold tracking-tighter text-balance sm:text-6xl md:text-7xl lg:text-8xl">Ship<LineShadowText className="italic" shadowColor={shadowColor}>Fast</LineShadowText></h1>- );+ )}diff --git a/apps/www/registry/example/magic-card-demo.tsx b/apps/www/registry/example/magic-card-demo.tsxindex 8ce73cfd..b9eb8327 100644--- a/apps/www/registry/example/magic-card-demo.tsx+++ b/apps/www/registry/example/magic-card-demo.tsx@@ -1,6 +1,8 @@-"use client";+"use client"-import { Button } from "@/components/ui/button";+import { useTheme } from "next-themes"++import { Button } from "@/components/ui/button"import {Card,CardContent,@@ -8,21 +10,20 @@ import {CardFooter,CardHeader,CardTitle,-} from "@/components/ui/card";-import { Input } from "@/components/ui/input";-import { Label } from "@/components/ui/label";-import { MagicCard } from "@/registry/magicui/magic-card";-import { useTheme } from "next-themes";+} from "@/components/ui/card"+import { Input } from "@/components/ui/input"+import { Label } from "@/components/ui/label"+import { MagicCard } from "@/registry/magicui/magic-card"export default function MagicCardDemo() {- const { theme } = useTheme();+ const { theme } = useTheme()return (- <Card className="p-0 max-w-sm w-full shadow-none border-none">+ <Card className="w-full max-w-sm border-none p-0 shadow-none"><MagicCardgradientColor={theme === "dark" ? "#262626" : "#D9D9D955"}className="p-0">- <CardHeader className="border-b border-border p-4 [.border-b]:pb-4">+ <CardHeader className="border-border border-b p-4 [.border-b]:pb-4"><CardTitle>Login</CardTitle><CardDescription>Enter your credentials to access your account@@ -42,10 +43,10 @@ export default function MagicCardDemo() {</div></form></CardContent>- <CardFooter className="p-4 border-t border-border [.border-t]:pt-4">+ <CardFooter className="border-border border-t p-4 [.border-t]:pt-4"><Button className="w-full">Sign In</Button></CardFooter></MagicCard></Card>- );+ )}diff --git a/apps/www/registry/example/marquee-3d.tsx b/apps/www/registry/example/marquee-3d.tsxindex 75c3131e..854b5603 100644--- a/apps/www/registry/example/marquee-3d.tsx+++ b/apps/www/registry/example/marquee-3d.tsx@@ -1,6 +1,6 @@/* eslint-disable @next/next/no-img-element */-import { cn } from "@/lib/utils";-import { Marquee } from "@/registry/magicui/marquee";+import { cn } from "@/lib/utils"+import { Marquee } from "@/registry/magicui/marquee"const reviews = [{@@ -21,12 +21,12 @@ const reviews = [body: "I'm at a loss for words. This is amazing. I love it.",img: "https://avatar.vercel.sh/john",},-];+]-const firstRow = reviews.slice(0, reviews.length / 2);-const secondRow = reviews.slice(reviews.length / 2);-const thirdRow = reviews.slice(0, reviews.length / 2);-const fourthRow = reviews.slice(reviews.length / 2);+const firstRow = reviews.slice(0, reviews.length / 2)+const secondRow = reviews.slice(reviews.length / 2)+const thirdRow = reviews.slice(0, reviews.length / 2)+const fourthRow = reviews.slice(reviews.length / 2)const ReviewCard = ({img,@@ -34,19 +34,19 @@ const ReviewCard = ({username,body,}: {- img: string;- name: string;- username: string;- body: string;+ img: string+ name: string+ username: string+ body: string}) => {return (<figureclassName={cn(- "relative h-full w-fit sm:w-36 cursor-pointer overflow-hidden rounded-xl border p-4",+ "relative h-full w-fit cursor-pointer overflow-hidden rounded-xl border p-4 sm:w-36",// light styles"border-gray-950/[.1] bg-gray-950/[.01] hover:bg-gray-950/[.05]",// dark styles- "dark:border-gray-50/[.1] dark:bg-gray-50/[.10] dark:hover:bg-gray-50/[.15]",+ "dark:border-gray-50/[.1] dark:bg-gray-50/[.10] dark:hover:bg-gray-50/[.15]")}><div className="flex flex-row items-center gap-2">@@ -60,8 +60,8 @@ const ReviewCard = ({</div><blockquote className="mt-2 text-sm">{body}</blockquote></figure>- );-};+ )+}export default function Marquee3D() {return (@@ -95,10 +95,10 @@ export default function Marquee3D() {</Marquee></div>- <div className="pointer-events-none absolute inset-x-0 top-0 h-1/4 bg-gradient-to-b from-background"></div>- <div className="pointer-events-none absolute inset-x-0 bottom-0 h-1/4 bg-gradient-to-t from-background"></div>- <div className="pointer-events-none absolute inset-y-0 left-0 w-1/4 bg-gradient-to-r from-background"></div>- <div className="pointer-events-none absolute inset-y-0 right-0 w-1/4 bg-gradient-to-l from-background"></div>+ <div className="from-background pointer-events-none absolute inset-x-0 top-0 h-1/4 bg-gradient-to-b"></div>+ <div className="from-background pointer-events-none absolute inset-x-0 bottom-0 h-1/4 bg-gradient-to-t"></div>+ <div className="from-background pointer-events-none absolute inset-y-0 left-0 w-1/4 bg-gradient-to-r"></div>+ <div className="from-background pointer-events-none absolute inset-y-0 right-0 w-1/4 bg-gradient-to-l"></div></div>- );+ )}diff --git a/apps/www/registry/example/marquee-demo-vertical.tsx b/apps/www/registry/example/marquee-demo-vertical.tsxindex db4d1cb0..1308e604 100644--- a/apps/www/registry/example/marquee-demo-vertical.tsx+++ b/apps/www/registry/example/marquee-demo-vertical.tsx@@ -1,6 +1,6 @@/* eslint-disable @next/next/no-img-element */-import { cn } from "@/lib/utils";-import { Marquee } from "@/registry/magicui/marquee";+import { cn } from "@/lib/utils"+import { Marquee } from "@/registry/magicui/marquee"const reviews = [{@@ -21,10 +21,10 @@ const reviews = [body: "I'm at a loss for words. This is amazing. I love it.",img: "https://avatar.vercel.sh/john",},-];+]-const firstRow = reviews.slice(0, reviews.length / 2);-const secondRow = reviews.slice(reviews.length / 2);+const firstRow = reviews.slice(0, reviews.length / 2)+const secondRow = reviews.slice(reviews.length / 2)const ReviewCard = ({img,@@ -32,19 +32,19 @@ const ReviewCard = ({username,body,}: {- img: string;- name: string;- username: string;- body: string;+ img: string+ name: string+ username: string+ body: string}) => {return (<figureclassName={cn(- "relative h-full w-fit sm:w-36 cursor-pointer overflow-hidden rounded-xl border p-4",+ "relative h-full w-fit cursor-pointer overflow-hidden rounded-xl border p-4 sm:w-36",// light styles"border-gray-950/[.1] bg-gray-950/[.01] hover:bg-gray-950/[.05]",// dark styles- "dark:border-gray-50/[.1] dark:bg-gray-50/[.10] dark:hover:bg-gray-50/[.15]",+ "dark:border-gray-50/[.1] dark:bg-gray-50/[.10] dark:hover:bg-gray-50/[.15]")}><div className="flex flex-row items-center gap-2">@@ -58,8 +58,8 @@ const ReviewCard = ({</div><blockquote className="mt-2 text-sm">{body}</blockquote></figure>- );-};+ )+}export default function MarqueeDemoVertical() {return (@@ -74,8 +74,8 @@ export default function MarqueeDemoVertical() {<ReviewCard key={review.username} {...review} />))}</Marquee>- <div className="pointer-events-none absolute inset-x-0 top-0 h-1/4 bg-gradient-to-b from-background"></div>- <div className="pointer-events-none absolute inset-x-0 bottom-0 h-1/4 bg-gradient-to-t from-background"></div>+ <div className="from-background pointer-events-none absolute inset-x-0 top-0 h-1/4 bg-gradient-to-b"></div>+ <div className="from-background pointer-events-none absolute inset-x-0 bottom-0 h-1/4 bg-gradient-to-t"></div></div>- );+ )}diff --git a/apps/www/registry/example/marquee-demo.tsx b/apps/www/registry/example/marquee-demo.tsxindex f314edf0..f0eb697b 100644--- a/apps/www/registry/example/marquee-demo.tsx+++ b/apps/www/registry/example/marquee-demo.tsx@@ -1,5 +1,5 @@-import { cn } from "@/lib/utils";-import { Marquee } from "@/registry/magicui/marquee";+import { cn } from "@/lib/utils"+import { Marquee } from "@/registry/magicui/marquee"const reviews = [{@@ -38,10 +38,10 @@ const reviews = [body: "I'm at a loss for words. This is amazing. I love it.",img: "https://avatar.vercel.sh/james",},-];+]-const firstRow = reviews.slice(0, reviews.length / 2);-const secondRow = reviews.slice(reviews.length / 2);+const firstRow = reviews.slice(0, reviews.length / 2)+const secondRow = reviews.slice(reviews.length / 2)const ReviewCard = ({img,@@ -49,10 +49,10 @@ const ReviewCard = ({username,body,}: {- img: string;- name: string;- username: string;- body: string;+ img: string+ name: string+ username: string+ body: string}) => {return (<figure@@ -61,7 +61,7 @@ const ReviewCard = ({// light styles"border-gray-950/[.1] bg-gray-950/[.01] hover:bg-gray-950/[.05]",// dark styles- "dark:border-gray-50/[.1] dark:bg-gray-50/[.10] dark:hover:bg-gray-50/[.15]",+ "dark:border-gray-50/[.1] dark:bg-gray-50/[.10] dark:hover:bg-gray-50/[.15]")}><div className="flex flex-row items-center gap-2">@@ -75,8 +75,8 @@ const ReviewCard = ({</div><blockquote className="mt-2 text-sm">{body}</blockquote></figure>- );-};+ )+}export default function MarqueeDemo() {return (@@ -91,8 +91,8 @@ export default function MarqueeDemo() {<ReviewCard key={review.username} {...review} />))}</Marquee>- <div className="pointer-events-none absolute inset-y-0 left-0 w-1/4 bg-gradient-to-r from-background"></div>- <div className="pointer-events-none absolute inset-y-0 right-0 w-1/4 bg-gradient-to-l from-background"></div>+ <div className="from-background pointer-events-none absolute inset-y-0 left-0 w-1/4 bg-gradient-to-r"></div>+ <div className="from-background pointer-events-none absolute inset-y-0 right-0 w-1/4 bg-gradient-to-l"></div></div>- );+ )}diff --git a/apps/www/registry/example/marquee-logos.tsx b/apps/www/registry/example/marquee-logos.tsxindex 87c7bced..f120b6f7 100644--- a/apps/www/registry/example/marquee-logos.tsx+++ b/apps/www/registry/example/marquee-logos.tsx@@ -1,5 +1,5 @@-import { cn } from "@/lib/utils";-import { Marquee } from "@/registry/magicui/marquee";+import { cn } from "@/lib/utils"+import { Marquee } from "@/registry/magicui/marquee"const logos = [{@@ -26,26 +26,26 @@ const logos = [name: "Twitter",img: "https://cdn.simpleicons.org/twitter/000/fff",},-];+]const Logo = ({ name, img }: { name: string; img: string }) => {return (<div className={cn("size-12 cursor-pointer")}><img src={img} alt={name} /></div>- );-};+ )+}export default function MarqueeLogos() {return (- <div className="relative flex size-full flex-col items-center justify-center gap-4 overflow-hidden rounded-lg border bg-background py-20 md:shadow-xl">+ <div className="bg-background relative flex size-full flex-col items-center justify-center gap-4 overflow-hidden rounded-lg border py-20 md:shadow-xl"><Marquee className="[--gap:3rem]">{logos.map((logo, idx) => (<Logo key={idx} {...logo} />))}</Marquee>- <div className="pointer-events-none absolute inset-y-0 left-0 w-1/3 bg-gradient-to-r from-white dark:from-background"></div>- <div className="pointer-events-none absolute inset-y-0 right-0 w-1/3 bg-gradient-to-l from-white dark:from-background"></div>+ <div className="dark:from-background pointer-events-none absolute inset-y-0 left-0 w-1/3 bg-gradient-to-r from-white"></div>+ <div className="dark:from-background pointer-events-none absolute inset-y-0 right-0 w-1/3 bg-gradient-to-l from-white"></div></div>- );+ )}diff --git a/apps/www/registry/example/meteors-demo.tsx b/apps/www/registry/example/meteors-demo.tsxindex 283eeb26..8d8861b6 100644--- a/apps/www/registry/example/meteors-demo.tsx+++ b/apps/www/registry/example/meteors-demo.tsx@@ -1,9 +1,9 @@-import { Meteors } from "@/registry/magicui/meteors";+import { Meteors } from "@/registry/magicui/meteors"export default function MeteorDemo() {return (- <div className="relative overflow-hidden h-[500px] w-full">+ <div className="relative h-[500px] w-full overflow-hidden"><Meteors number={30} /></div>- );+ )}diff --git a/apps/www/registry/example/morphing-text-demo.tsx b/apps/www/registry/example/morphing-text-demo.tsxindex 0a74245e..ee81e349 100644--- a/apps/www/registry/example/morphing-text-demo.tsx+++ b/apps/www/registry/example/morphing-text-demo.tsx@@ -1,4 +1,4 @@-import { MorphingText } from "@/registry/magicui/morphing-text";+import { MorphingText } from "@/registry/magicui/morphing-text"const texts = ["Hello",@@ -10,8 +10,8 @@ const texts = ["Smooth","Transition","Engaging",-];+]export default function MorphingTextDemo() {- return <MorphingText texts={texts} />;+ return <MorphingText texts={texts} />}diff --git a/apps/www/registry/example/neon-gradient-card-demo.tsx b/apps/www/registry/example/neon-gradient-card-demo.tsxindex d8517f58..b8ee7c02 100644--- a/apps/www/registry/example/neon-gradient-card-demo.tsx+++ b/apps/www/registry/example/neon-gradient-card-demo.tsx@@ -1,11 +1,11 @@-import { NeonGradientCard } from "@/registry/magicui/neon-gradient-card";+import { NeonGradientCard } from "@/registry/magicui/neon-gradient-card"export default function NeonGradientCardDemo() {return (<NeonGradientCard className="max-w-sm items-center justify-center text-center">- <span className="pointer-events-none z-10 h-full whitespace-pre-wrap bg-gradient-to-br from-[#ff2975] from-35% to-[#00FFF1] bg-clip-text text-center text-3xl md:text-5xl xl:text-6xl font-bold leading-none tracking-tighter text-balance text-transparent dark:drop-shadow-[0_5px_5px_rgba(0,0,0,0.8)]">+ <span className="pointer-events-none z-10 h-full bg-gradient-to-br from-[#ff2975] from-35% to-[#00FFF1] bg-clip-text text-center text-3xl leading-none font-bold tracking-tighter text-balance whitespace-pre-wrap text-transparent md:text-5xl xl:text-6xl dark:drop-shadow-[0_5px_5px_rgba(0,0,0,0.8)]">Neon Gradient Card</span></NeonGradientCard>- );+ )}diff --git a/apps/www/registry/example/number-ticker-decimal-demo.tsx b/apps/www/registry/example/number-ticker-decimal-demo.tsxindex dfef2f06..3c543cc1 100644--- a/apps/www/registry/example/number-ticker-decimal-demo.tsx+++ b/apps/www/registry/example/number-ticker-decimal-demo.tsx@@ -1,11 +1,11 @@-import { NumberTicker } from "@/registry/magicui/number-ticker";+import { NumberTicker } from "@/registry/magicui/number-ticker"export default function NumberTickerDemo() {return (<NumberTickervalue={5.67}decimalPlaces={2}- className="whitespace-pre-wrap text-8xl font-medium tracking-tighter text-black dark:text-white"+ className="text-8xl font-medium tracking-tighter whitespace-pre-wrap text-black dark:text-white"/>- );+ )}diff --git a/apps/www/registry/example/number-ticker-demo-2.tsx b/apps/www/registry/example/number-ticker-demo-2.tsxindex 295f2e7d..728dfe46 100644--- a/apps/www/registry/example/number-ticker-demo-2.tsx+++ b/apps/www/registry/example/number-ticker-demo-2.tsx@@ -1,11 +1,11 @@-import { NumberTicker } from "@/registry/magicui/number-ticker";+import { NumberTicker } from "@/registry/magicui/number-ticker"export default function NumberTickerDemo() {return (<NumberTickervalue={100}startValue={80}- className="whitespace-pre-wrap text-8xl font-medium tracking-tighter text-black dark:text-white"+ className="text-8xl font-medium tracking-tighter whitespace-pre-wrap text-black dark:text-white"/>- );+ )}diff --git a/apps/www/registry/example/number-ticker-demo.tsx b/apps/www/registry/example/number-ticker-demo.tsxindex 983095c6..b1c92a87 100644--- a/apps/www/registry/example/number-ticker-demo.tsx+++ b/apps/www/registry/example/number-ticker-demo.tsx@@ -1,10 +1,10 @@-import { NumberTicker } from "@/registry/magicui/number-ticker";+import { NumberTicker } from "@/registry/magicui/number-ticker"export default function NumberTickerDemo() {return (<NumberTickervalue={100}- className="whitespace-pre-wrap text-8xl font-medium tracking-tighter text-black dark:text-white"+ className="text-8xl font-medium tracking-tighter whitespace-pre-wrap text-black dark:text-white"/>- );+ )}diff --git a/apps/www/registry/example/orbiting-circles-demo.tsx b/apps/www/registry/example/orbiting-circles-demo.tsxindex aa896298..330a102e 100644--- a/apps/www/registry/example/orbiting-circles-demo.tsx+++ b/apps/www/registry/example/orbiting-circles-demo.tsx@@ -1,4 +1,4 @@-import { OrbitingCircles } from "@/registry/magicui/orbiting-circles";+import { OrbitingCircles } from "@/registry/magicui/orbiting-circles"export default function OrbitingCirclesDemo() {return (@@ -17,7 +17,7 @@ export default function OrbitingCirclesDemo() {<Icons.googleDrive /></OrbitingCircles></div>- );+ )}const Icons = {@@ -147,4 +147,4 @@ const Icons = {/></svg>),-};+}diff --git a/apps/www/registry/example/particles-demo.tsx b/apps/www/registry/example/particles-demo.tsxindex d2f2e507..5a994027 100644--- a/apps/www/registry/example/particles-demo.tsx+++ b/apps/www/registry/example/particles-demo.tsx@@ -1,21 +1,21 @@-"use client";+"use client"-import { useTheme } from "next-themes";-import { useEffect, useState } from "react";+import { useEffect, useState } from "react"+import { useTheme } from "next-themes"-import { Particles } from "@/registry/magicui/particles";+import { Particles } from "@/registry/magicui/particles"export default function ParticlesDemo() {- const { resolvedTheme } = useTheme();- const [color, setColor] = useState("#ffffff");+ const { resolvedTheme } = useTheme()+ const [color, setColor] = useState("#ffffff")useEffect(() => {- setColor(resolvedTheme === "dark" ? "#ffffff" : "#000000");- }, [resolvedTheme]);+ setColor(resolvedTheme === "dark" ? "#ffffff" : "#000000")+ }, [resolvedTheme])return (- <div className="relative flex h-[500px] w-full flex-col items-center justify-center overflow-hidden rounded-lg border bg-background">- <span className="pointer-events-none z-10 whitespace-pre-wrap text-center text-8xl font-semibold leading-none">+ <div className="bg-background relative flex h-[500px] w-full flex-col items-center justify-center overflow-hidden rounded-lg border">+ <span className="pointer-events-none z-10 text-center text-8xl leading-none font-semibold whitespace-pre-wrap">Particles</span><Particles@@ -26,5 +26,5 @@ export default function ParticlesDemo() {refresh/></div>- );+ )}diff --git a/apps/www/registry/example/pixel-image-demo.tsx b/apps/www/registry/example/pixel-image-demo.tsxindex 93c5e601..a53dcb85 100644--- a/apps/www/registry/example/pixel-image-demo.tsx+++ b/apps/www/registry/example/pixel-image-demo.tsx@@ -1,4 +1,4 @@-import { PixelImage } from "@/registry/magicui/pixel-image";+import { PixelImage } from "@/registry/magicui/pixel-image"export default function Home() {return (@@ -7,5 +7,5 @@ export default function Home() {customGrid={{ rows: 4, cols: 6 }}grayscaleAnimation/>- );+ )}diff --git a/apps/www/registry/example/pointer-demo-1.tsx b/apps/www/registry/example/pointer-demo-1.tsxindex 8bd5c29e..f1acc16b 100644--- a/apps/www/registry/example/pointer-demo-1.tsx+++ b/apps/www/registry/example/pointer-demo-1.tsx@@ -1,4 +1,6 @@-"use client";+"use client"++import { motion } from "motion/react"import {Card,@@ -6,14 +8,13 @@ import {CardDescription,CardHeader,CardTitle,-} from "@/components/ui/card";-import { Pointer } from "@/registry/magicui/pointer";-import { motion } from "motion/react";+} from "@/components/ui/card"+import { Pointer } from "@/registry/magicui/pointer"export default function PointerDemo1() {return (<div className="grid grid-cols-1 gap-6 md:grid-cols-2 md:grid-rows-2">- <Card className="col-span-1 row-span-1 overflow-hidden border bg-gradient-to-br from-slate-50 to-slate-100 transition-all dark:from-slate-900 dark:to-slate-800 shadow-none">+ <Card className="col-span-1 row-span-1 overflow-hidden border bg-gradient-to-br from-slate-50 to-slate-100 shadow-none transition-all dark:from-slate-900 dark:to-slate-800"><CardHeader className="relative pb-2"><CardTitle className="text-xl font-bold">Animated Pointer</CardTitle><CardDescription className="text-sm text-slate-600 dark:text-slate-400">@@ -60,7 +61,7 @@ export default function PointerDemo1() {</Pointer></Card>- <Card className="col-span-1 row-span-1 overflow-hidden border bg-gradient-to-br from-blue-50 to-blue-100 transition-all dark:from-blue-900 dark:to-blue-800 shadow-none">+ <Card className="col-span-1 row-span-1 overflow-hidden border bg-gradient-to-br from-blue-50 to-blue-100 shadow-none transition-all dark:from-blue-900 dark:to-blue-800"><CardHeader className="relative pb-2"><CardTitle className="text-xl font-bold">Colored Pointer</CardTitle><CardDescription className="text-sm text-blue-700 dark:text-blue-300">@@ -75,7 +76,7 @@ export default function PointerDemo1() {<Pointer className="fill-blue-500" /></Card>- <Card className="col-span-1 row-span-1 overflow-hidden border bg-gradient-to-br from-purple-50 to-purple-100 transition-all dark:from-purple-900 dark:to-purple-800 shadow-none">+ <Card className="col-span-1 row-span-1 overflow-hidden border bg-gradient-to-br from-purple-50 to-purple-100 shadow-none transition-all dark:from-purple-900 dark:to-purple-800"><CardHeader className="relative pb-2"><CardTitle className="text-xl font-bold">Custom Shape</CardTitle><CardDescription className="text-sm text-purple-700 dark:text-purple-300">@@ -101,7 +102,7 @@ export default function PointerDemo1() {</Pointer></Card>- <Card className="col-span-1 row-span-1 overflow-hidden border bg-gradient-to-br from-green-50 to-green-100 transition-all dark:from-green-900 dark:to-green-800 shadow-none">+ <Card className="col-span-1 row-span-1 overflow-hidden border bg-gradient-to-br from-green-50 to-green-100 shadow-none transition-all dark:from-green-900 dark:to-green-800"><CardHeader className="relative pb-2"><CardTitle className="text-xl font-bold">Emoji Pointer</CardTitle><CardDescription className="text-sm text-green-700 dark:text-green-300">@@ -118,5 +119,5 @@ export default function PointerDemo1() {</Pointer></Card></div>- );+ )}diff --git a/apps/www/registry/example/progressive-blur-demo.tsx b/apps/www/registry/example/progressive-blur-demo.tsxindex c2e65eed..be0c8bae 100644--- a/apps/www/registry/example/progressive-blur-demo.tsx+++ b/apps/www/registry/example/progressive-blur-demo.tsx@@ -1,17 +1,17 @@-"use client";+"use client"-import { ScrollArea } from "@/components/ui/scroll-area";-import { ProgressiveBlur } from "@/registry/magicui/progressive-blur";+import { ScrollArea } from "@/components/ui/scroll-area"+import { ProgressiveBlur } from "@/registry/magicui/progressive-blur"export default function ProgressiveBlurDemo() {return (- <div className="relative w-full border rounded-xl">+ <div className="relative w-full rounded-xl border"><ScrollArea className="relative h-[400px] overflow-hidden"><div className="flex flex-col gap-2 p-4">{Array.from({ length: 20 }).map((_, index) => (<divkey={index}- className="flex h-20 w-full items-center justify-center rounded-xl bg-card border"+ className="bg-card flex h-20 w-full items-center justify-center rounded-xl border">{index}</div>@@ -20,5 +20,5 @@ export default function ProgressiveBlurDemo() {<ProgressiveBlur position="bottom" height="40%" /></ScrollArea></div>- );+ )}diff --git a/apps/www/registry/example/pulsating-button-demo.tsx b/apps/www/registry/example/pulsating-button-demo.tsxindex d5cf3b2b..c83d644f 100644--- a/apps/www/registry/example/pulsating-button-demo.tsx+++ b/apps/www/registry/example/pulsating-button-demo.tsx@@ -1,5 +1,5 @@-import { PulsatingButton } from "@/registry/magicui/pulsating-button";+import { PulsatingButton } from "@/registry/magicui/pulsating-button"export default function PulsatingButtonDemo() {- return <PulsatingButton>Join Affiliate Program</PulsatingButton>;+ return <PulsatingButton>Join Affiliate Program</PulsatingButton>}diff --git a/apps/www/registry/example/rainbow-button-demo-2.tsx b/apps/www/registry/example/rainbow-button-demo-2.tsxindex ef5a2ada..f46b8eaf 100644--- a/apps/www/registry/example/rainbow-button-demo-2.tsx+++ b/apps/www/registry/example/rainbow-button-demo-2.tsx@@ -1,5 +1,5 @@-import { RainbowButton } from "@/registry/magicui/rainbow-button";+import { RainbowButton } from "@/registry/magicui/rainbow-button"export default function RainbowButtonDemo() {- return <RainbowButton variant="outline">Get Unlimited Access</RainbowButton>;+ return <RainbowButton variant="outline">Get Unlimited Access</RainbowButton>}diff --git a/apps/www/registry/example/rainbow-button-demo.tsx b/apps/www/registry/example/rainbow-button-demo.tsxindex 5ed2f022..a02914ea 100644--- a/apps/www/registry/example/rainbow-button-demo.tsx+++ b/apps/www/registry/example/rainbow-button-demo.tsx@@ -1,5 +1,5 @@-import { RainbowButton } from "@/registry/magicui/rainbow-button";+import { RainbowButton } from "@/registry/magicui/rainbow-button"export default function RainbowButtonDemo() {- return <RainbowButton>Get Unlimited Access</RainbowButton>;+ return <RainbowButton>Get Unlimited Access</RainbowButton>}diff --git a/apps/www/registry/example/retro-grid-demo.tsx b/apps/www/registry/example/retro-grid-demo.tsxindex 86b1a2c5..018174db 100644--- a/apps/www/registry/example/retro-grid-demo.tsx+++ b/apps/www/registry/example/retro-grid-demo.tsx@@ -1,15 +1,15 @@-"use client";+"use client"-import { RetroGrid } from "@/registry/magicui/retro-grid";+import { RetroGrid } from "@/registry/magicui/retro-grid"export default function RetroGridDemo() {return (- <div className="relative flex h-[500px] w-full flex-col items-center justify-center overflow-hidden rounded-lg border bg-background">- <span className="pointer-events-none z-10 whitespace-pre-wrap bg-gradient-to-b from-[#ffd319] via-[#ff2975] to-[#8c1eff] bg-clip-text text-center text-7xl font-bold leading-none tracking-tighter text-transparent">+ <div className="bg-background relative flex h-[500px] w-full flex-col items-center justify-center overflow-hidden rounded-lg border">+ <span className="pointer-events-none z-10 bg-gradient-to-b from-[#ffd319] via-[#ff2975] to-[#8c1eff] bg-clip-text text-center text-7xl leading-none font-bold tracking-tighter whitespace-pre-wrap text-transparent">Retro Grid</span><RetroGrid /></div>- );+ )}diff --git a/apps/www/registry/example/ripple-button-demo.tsx b/apps/www/registry/example/ripple-button-demo.tsxindex 6b1a8443..866727a4 100644--- a/apps/www/registry/example/ripple-button-demo.tsx+++ b/apps/www/registry/example/ripple-button-demo.tsx@@ -1,5 +1,5 @@-import { RippleButton } from "@/registry/magicui/ripple-button";+import { RippleButton } from "@/registry/magicui/ripple-button"export default function RippleButtonDemo() {- return <RippleButton rippleColor="#ADD8E6">Click me</RippleButton>;+ return <RippleButton rippleColor="#ADD8E6">Click me</RippleButton>}diff --git a/apps/www/registry/example/ripple-demo.tsx b/apps/www/registry/example/ripple-demo.tsxindex 48772f3a..e602c3aa 100644--- a/apps/www/registry/example/ripple-demo.tsx+++ b/apps/www/registry/example/ripple-demo.tsx@@ -1,12 +1,12 @@-import { Ripple } from "@/registry/magicui/ripple";+import { Ripple } from "@/registry/magicui/ripple"export default function RippleDemo() {return (- <div className="relative flex h-[500px] w-full flex-col items-center justify-center overflow-hidden rounded-lg border bg-background">- <p className="z-10 whitespace-pre-wrap text-center text-5xl font-medium tracking-tighter text-white">+ <div className="bg-background relative flex h-[500px] w-full flex-col items-center justify-center overflow-hidden rounded-lg border">+ <p className="z-10 text-center text-5xl font-medium tracking-tighter whitespace-pre-wrap text-white">Ripple</p><Ripple /></div>- );+ )}diff --git a/apps/www/registry/example/safari-demo-2.tsx b/apps/www/registry/example/safari-demo-2.tsxindex 07d855b0..79f086f4 100644--- a/apps/www/registry/example/safari-demo-2.tsx+++ b/apps/www/registry/example/safari-demo-2.tsx@@ -1,4 +1,4 @@-import { Safari } from "@/registry/magicui/safari";+import { Safari } from "@/registry/magicui/safari"export default function SafariDemo() {return (@@ -8,5 +8,5 @@ export default function SafariDemo() {imageSrc="https://placehold.co/1200x750?text=Hello+World"/></div>- );+ )}diff --git a/apps/www/registry/example/safari-demo-3.tsx b/apps/www/registry/example/safari-demo-3.tsxindex f6f31a37..d1079322 100644--- a/apps/www/registry/example/safari-demo-3.tsx+++ b/apps/www/registry/example/safari-demo-3.tsx@@ -1,4 +1,4 @@-import { Safari } from "@/registry/magicui/safari";+import { Safari } from "@/registry/magicui/safari"export default function SafariDemo() {return (@@ -8,5 +8,5 @@ export default function SafariDemo() {videoSrc="https://videos.pexels.com/video-files/27180348/12091515_2560_1440_50fps.mp4"/></div>- );+ )}diff --git a/apps/www/registry/example/safari-demo-4.tsx b/apps/www/registry/example/safari-demo-4.tsxindex 61ce58e6..52ffb28d 100644--- a/apps/www/registry/example/safari-demo-4.tsx+++ b/apps/www/registry/example/safari-demo-4.tsx@@ -1,9 +1,9 @@-import { Safari } from "@/registry/magicui/safari";+import { Safari } from "@/registry/magicui/safari"export default function SafariDemo() {return (<div className="w-[1203px]"><Safari url="magicui.design" mode="simple" /></div>- );+ )}diff --git a/apps/www/registry/example/safari-demo.tsx b/apps/www/registry/example/safari-demo.tsxindex 5e7670f5..20a9d5c4 100644--- a/apps/www/registry/example/safari-demo.tsx+++ b/apps/www/registry/example/safari-demo.tsx@@ -1,9 +1,9 @@-import { Safari } from "@/registry/magicui/safari";+import { Safari } from "@/registry/magicui/safari"export default function SafariDemo() {return (<div className="w-[1203px]"><Safari url="magicui.design" /></div>- );+ )}diff --git a/apps/www/registry/example/scratch-to-reveal-demo.tsx b/apps/www/registry/example/scratch-to-reveal-demo.tsxindex 84b7f608..13e7fe5f 100644--- a/apps/www/registry/example/scratch-to-reveal-demo.tsx+++ b/apps/www/registry/example/scratch-to-reveal-demo.tsx@@ -1,4 +1,4 @@-import { ScratchToReveal } from "@/registry/magicui/scratch-to-reveal";+import { ScratchToReveal } from "@/registry/magicui/scratch-to-reveal"export default function ScratchToRevealDemo() {return (@@ -11,5 +11,5 @@ export default function ScratchToRevealDemo() {><p className="text-9xl">😎</p></ScratchToReveal>- );+ )}diff --git a/apps/www/registry/example/script-copy-btn-demo.tsx b/apps/www/registry/example/script-copy-btn-demo.tsxindex 1d419dac..ab2ae0d1 100644--- a/apps/www/registry/example/script-copy-btn-demo.tsx+++ b/apps/www/registry/example/script-copy-btn-demo.tsx@@ -1,4 +1,4 @@-import { ScriptCopyBtn } from "@/registry/magicui/script-copy-btn";+import { ScriptCopyBtn } from "@/registry/magicui/script-copy-btn"export default function ScriptCopyBtnDemo() {const customCommandMap = {@@ -6,7 +6,7 @@ export default function ScriptCopyBtnDemo() {yarn: "yarn shadcn add button",pnpm: "pnpm dlx shadcn@latest add button",bun: "bun x shadcn@latest add button",- };+ }return (<ScriptCopyBtnshowMultiplePackageOptions={true}@@ -15,5 +15,5 @@ export default function ScriptCopyBtnDemo() {darkTheme="vitesse-dark"commandMap={customCommandMap}/>- );+ )}diff --git a/apps/www/registry/example/scroll-based-velocity-demo.tsx b/apps/www/registry/example/scroll-based-velocity-demo.tsxindex bdf9d6e3..d47dac31 100644--- a/apps/www/registry/example/scroll-based-velocity-demo.tsx+++ b/apps/www/registry/example/scroll-based-velocity-demo.tsx@@ -1,12 +1,12 @@import {ScrollVelocityContainer,ScrollVelocityRow,-} from "@/registry/magicui/scroll-based-velocity";+} from "@/registry/magicui/scroll-based-velocity"export default function ScrollBasedVelocityDemo() {return (<div className="relative flex w-full flex-col items-center justify-center overflow-hidden">- <ScrollVelocityContainer className="text-4xl md:text-7xl md:leading-[5rem] font-bold tracking-[-0.02em]">+ <ScrollVelocityContainer className="text-4xl font-bold tracking-[-0.02em] md:text-7xl md:leading-[5rem]"><ScrollVelocityRow baseVelocity={20} direction={1}>Velocity Scroll</ScrollVelocityRow>@@ -14,8 +14,8 @@ export default function ScrollBasedVelocityDemo() {Velocity Scroll</ScrollVelocityRow></ScrollVelocityContainer>- <div className="pointer-events-none absolute inset-y-0 left-0 w-1/4 bg-gradient-to-r from-background"></div>- <div className="pointer-events-none absolute inset-y-0 right-0 w-1/4 bg-gradient-to-l from-background"></div>+ <div className="from-background pointer-events-none absolute inset-y-0 left-0 w-1/4 bg-gradient-to-r"></div>+ <div className="from-background pointer-events-none absolute inset-y-0 right-0 w-1/4 bg-gradient-to-l"></div></div>- );+ )}diff --git a/apps/www/registry/example/scroll-based-velocity-images-demo.tsx b/apps/www/registry/example/scroll-based-velocity-images-demo.tsxindex 8f820b17..2a20ce44 100644--- a/apps/www/registry/example/scroll-based-velocity-images-demo.tsx+++ b/apps/www/registry/example/scroll-based-velocity-images-demo.tsx@@ -1,17 +1,17 @@import {ScrollVelocityContainer,ScrollVelocityRow,-} from "@/registry/magicui/scroll-based-velocity";+} from "@/registry/magicui/scroll-based-velocity"const IMAGES_ROW_A = ["https://images.unsplash.com/photo-1749738456487-2af715ab65ea?q=80&w=2340&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDF8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D","https://plus.unsplash.com/premium_photo-1720139288219-e20aa9c8895b?q=80&w=1810&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",-];+]const IMAGES_ROW_B = ["https://images.unsplash.com/photo-1749738456487-2af715ab65ea?q=80&w=2340&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDF8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D","https://plus.unsplash.com/premium_photo-1720139288219-e20aa9c8895b?q=80&w=1810&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",-];+]export default function ScrollBasedVelocityImagesDemo() {return (@@ -47,8 +47,8 @@ export default function ScrollBasedVelocityImagesDemo() {</ScrollVelocityRow></ScrollVelocityContainer>- <div className="pointer-events-none absolute inset-y-0 left-0 w-1/4 bg-gradient-to-r from-background"></div>- <div className="pointer-events-none absolute inset-y-0 right-0 w-1/4 bg-gradient-to-l from-background"></div>+ <div className="from-background pointer-events-none absolute inset-y-0 left-0 w-1/4 bg-gradient-to-r"></div>+ <div className="from-background pointer-events-none absolute inset-y-0 right-0 w-1/4 bg-gradient-to-l"></div></div>- );+ )}diff --git a/apps/www/registry/example/scroll-progress-demo.tsx b/apps/www/registry/example/scroll-progress-demo.tsxindex eabd62e0..884f047d 100644--- a/apps/www/registry/example/scroll-progress-demo.tsx+++ b/apps/www/registry/example/scroll-progress-demo.tsx@@ -1,4 +1,4 @@-import { ScrollProgress } from "@/registry/magicui/scroll-progress";+import { ScrollProgress } from "@/registry/magicui/scroll-progress"export default function ScrollProgressDemo() {return (@@ -8,5 +8,5 @@ export default function ScrollProgressDemo() {Note: The scroll progress is shown below the navbar of the page.</h2></div>- );+ )}diff --git a/apps/www/registry/example/shimmer-button-demo.tsx b/apps/www/registry/example/shimmer-button-demo.tsxindex c44d4291..0f11ddd7 100644--- a/apps/www/registry/example/shimmer-button-demo.tsx+++ b/apps/www/registry/example/shimmer-button-demo.tsx@@ -1,11 +1,11 @@-import { ShimmerButton } from "@/registry/magicui/shimmer-button";+import { ShimmerButton } from "@/registry/magicui/shimmer-button"export default function ShimmerButtonDemo() {return (<ShimmerButton className="shadow-2xl">- <span className="whitespace-pre-wrap text-center text-sm font-medium leading-none tracking-tight text-white dark:from-white dark:to-slate-900/10 lg:text-lg">+ <span className="text-center text-sm leading-none font-medium tracking-tight whitespace-pre-wrap text-white lg:text-lg dark:from-white dark:to-slate-900/10">Shimmer Button</span></ShimmerButton>- );+ )}diff --git a/apps/www/registry/example/shine-border-demo-2.tsx b/apps/www/registry/example/shine-border-demo-2.tsxindex f98afdb3..46d87b8f 100644--- a/apps/www/registry/example/shine-border-demo-2.tsx+++ b/apps/www/registry/example/shine-border-demo-2.tsx@@ -1,6 +1,8 @@-"use client";+"use client"-import { Button } from "@/components/ui/button";+import { useTheme } from "next-themes"++import { Button } from "@/components/ui/button"import {Card,CardContent,@@ -8,14 +10,13 @@ import {CardFooter,CardHeader,CardTitle,-} from "@/components/ui/card";-import { Input } from "@/components/ui/input";-import { Label } from "@/components/ui/label";-import { ShineBorder } from "@/registry/magicui/shine-border";-import { useTheme } from "next-themes";+} from "@/components/ui/card"+import { Input } from "@/components/ui/input"+import { Label } from "@/components/ui/label"+import { ShineBorder } from "@/registry/magicui/shine-border"export default function ShineBorderDemo2() {- const theme = useTheme();+ const theme = useTheme()return (<Card className="relative overflow-hidden"><ShineBorder shineColor={theme.theme === "dark" ? "white" : "black"} />@@ -43,5 +44,5 @@ export default function ShineBorderDemo2() {<Button className="w-full">Sign In</Button></CardFooter></Card>- );+ )}diff --git a/apps/www/registry/example/shine-border-demo.tsx b/apps/www/registry/example/shine-border-demo.tsxindex 57c584a7..ab405b90 100644--- a/apps/www/registry/example/shine-border-demo.tsx+++ b/apps/www/registry/example/shine-border-demo.tsx@@ -1,4 +1,4 @@-import { Button } from "@/components/ui/button";+import { Button } from "@/components/ui/button"import {Card,CardContent,@@ -6,14 +6,14 @@ import {CardFooter,CardHeader,CardTitle,-} from "@/components/ui/card";-import { Input } from "@/components/ui/input";-import { Label } from "@/components/ui/label";-import { ShineBorder } from "@/registry/magicui/shine-border";+} from "@/components/ui/card"+import { Input } from "@/components/ui/input"+import { Label } from "@/components/ui/label"+import { ShineBorder } from "@/registry/magicui/shine-border"export default function ShineBorderDemo() {return (- <Card className="relative overflow-hidden max-w-[350px] w-full">+ <Card className="relative w-full max-w-[350px] overflow-hidden"><ShineBorder shineColor={["#A07CFE", "#FE8FB5", "#FFBE7B"]} /><CardHeader><CardTitle>Login</CardTitle>@@ -39,5 +39,5 @@ export default function ShineBorderDemo() {<Button className="w-full">Sign In</Button></CardFooter></Card>- );+ )}diff --git a/apps/www/registry/example/shiny-button-demo.tsx b/apps/www/registry/example/shiny-button-demo.tsxindex f234e400..dcc78d83 100644--- a/apps/www/registry/example/shiny-button-demo.tsx+++ b/apps/www/registry/example/shiny-button-demo.tsx@@ -1,5 +1,5 @@-import { ShinyButton } from "@/registry/magicui/shiny-button";+import { ShinyButton } from "@/registry/magicui/shiny-button"export default function ShinyButtonDemo() {- return <ShinyButton>Shiny Button</ShinyButton>;+ return <ShinyButton>Shiny Button</ShinyButton>}diff --git a/apps/www/registry/example/smooth-cursor-demo.tsx b/apps/www/registry/example/smooth-cursor-demo.tsxindex 4384a256..7014d269 100644--- a/apps/www/registry/example/smooth-cursor-demo.tsx+++ b/apps/www/registry/example/smooth-cursor-demo.tsx@@ -1,4 +1,4 @@-import { SmoothCursor } from "@/registry/magicui/smooth-cursor";+import { SmoothCursor } from "@/registry/magicui/smooth-cursor"export default function SmoothCursorDemo() {return (@@ -7,5 +7,5 @@ export default function SmoothCursorDemo() {<span className="block md:hidden">Tap anywhere to see the cursor</span><SmoothCursor /></>- );+ )}diff --git a/apps/www/registry/example/sparkles-text-demo.tsx b/apps/www/registry/example/sparkles-text-demo.tsxindex cfdbac33..18a6b4c2 100644--- a/apps/www/registry/example/sparkles-text-demo.tsx+++ b/apps/www/registry/example/sparkles-text-demo.tsx@@ -1,5 +1,5 @@-import { SparklesText } from "@/registry/magicui/sparkles-text";+import { SparklesText } from "@/registry/magicui/sparkles-text"export default function SparklesTextDemo() {- return <SparklesText>Magic UI</SparklesText>;+ return <SparklesText>Magic UI</SparklesText>}diff --git a/apps/www/registry/example/spinning-text-demo-2.tsx b/apps/www/registry/example/spinning-text-demo-2.tsxindex 866af2aa..7df458de 100644--- a/apps/www/registry/example/spinning-text-demo-2.tsx+++ b/apps/www/registry/example/spinning-text-demo-2.tsx@@ -1,9 +1,9 @@-import { SpinningText } from "@/registry/magicui/spinning-text";+import { SpinningText } from "@/registry/magicui/spinning-text"export default function SpinningTextBasic() {return (<SpinningText reverse className="text-4xl" duration={4} radius={6}>learn more • earn more • grow more •</SpinningText>- );+ )}diff --git a/apps/www/registry/example/spinning-text-demo.tsx b/apps/www/registry/example/spinning-text-demo.tsxindex e3b10eaf..cc1617ee 100644--- a/apps/www/registry/example/spinning-text-demo.tsx+++ b/apps/www/registry/example/spinning-text-demo.tsx@@ -1,5 +1,5 @@-import { SpinningText } from "@/registry/magicui/spinning-text";+import { SpinningText } from "@/registry/magicui/spinning-text"export default function SpinningTextBasic() {- return <SpinningText>learn more • earn more • grow more •</SpinningText>;+ return <SpinningText>learn more • earn more • grow more •</SpinningText>}diff --git a/apps/www/registry/example/terminal-demo-2.tsx b/apps/www/registry/example/terminal-demo-2.tsxindex ff58e33a..c8f2067e 100644--- a/apps/www/registry/example/terminal-demo-2.tsx+++ b/apps/www/registry/example/terminal-demo-2.tsx@@ -2,7 +2,7 @@ import {AnimatedSpan,Terminal,TypingAnimation,-} from "@/registry/magicui/terminal";+} from "@/registry/magicui/terminal"export default function TerminalDemo2() {return (@@ -21,5 +21,5 @@ export default function TerminalDemo2() {/home/user/Documents</AnimatedSpan></Terminal>- );+ )}diff --git a/apps/www/registry/example/terminal-demo.tsx b/apps/www/registry/example/terminal-demo.tsxindex e41c6114..a8b9cb3f 100644--- a/apps/www/registry/example/terminal-demo.tsx+++ b/apps/www/registry/example/terminal-demo.tsx@@ -2,7 +2,7 @@ import {AnimatedSpan,Terminal,TypingAnimation,-} from "@/registry/magicui/terminal";+} from "@/registry/magicui/terminal"export default function TerminalDemo() {return (@@ -58,5 +58,5 @@ export default function TerminalDemo() {You may now add components.</TypingAnimation></Terminal>- );+ )}diff --git a/apps/www/registry/example/text-animate-demo-2.tsx b/apps/www/registry/example/text-animate-demo-2.tsxindex f8ecf9fd..90023eb4 100644--- a/apps/www/registry/example/text-animate-demo-2.tsx+++ b/apps/www/registry/example/text-animate-demo-2.tsx@@ -1,9 +1,9 @@-import { TextAnimate } from "@/registry/magicui/text-animate";+import { TextAnimate } from "@/registry/magicui/text-animate"export default function TextAnimateDemo2() {return (<TextAnimate animation="blurIn" as="h1">Blur in text</TextAnimate>- );+ )}diff --git a/apps/www/registry/example/text-animate-demo-3.tsx b/apps/www/registry/example/text-animate-demo-3.tsxindex 9dc23dc7..7b3ffa16 100644--- a/apps/www/registry/example/text-animate-demo-3.tsx+++ b/apps/www/registry/example/text-animate-demo-3.tsx@@ -1,9 +1,9 @@-import { TextAnimate } from "@/registry/magicui/text-animate";+import { TextAnimate } from "@/registry/magicui/text-animate"export default function TextAnimateDemo3() {return (<TextAnimate animation="slideUp" by="word">Slide up by word</TextAnimate>- );+ )}diff --git a/apps/www/registry/example/text-animate-demo-4.tsx b/apps/www/registry/example/text-animate-demo-4.tsxindex 8d330e15..7244790d 100644--- a/apps/www/registry/example/text-animate-demo-4.tsx+++ b/apps/www/registry/example/text-animate-demo-4.tsx@@ -1,9 +1,9 @@-import { TextAnimate } from "@/registry/magicui/text-animate";+import { TextAnimate } from "@/registry/magicui/text-animate"export default function TextAnimateDemo4() {return (<TextAnimate animation="scaleUp" by="text">Scale up by text</TextAnimate>- );+ )}diff --git a/apps/www/registry/example/text-animate-demo-5.tsx b/apps/www/registry/example/text-animate-demo-5.tsxindex 32676c49..825b87eb 100644--- a/apps/www/registry/example/text-animate-demo-5.tsx+++ b/apps/www/registry/example/text-animate-demo-5.tsx@@ -1,9 +1,9 @@-import { TextAnimate } from "@/registry/magicui/text-animate";+import { TextAnimate } from "@/registry/magicui/text-animate"export default function TextAnimateDemo5() {return (<TextAnimate animation="fadeIn" by="line" as="p">{`Fade in by line as paragraph\n\nFade in by line as paragraph\n\nFade in by line as paragraph`}</TextAnimate>- );+ )}diff --git a/apps/www/registry/example/text-animate-demo-6.tsx b/apps/www/registry/example/text-animate-demo-6.tsxindex 853829fd..adbe8569 100644--- a/apps/www/registry/example/text-animate-demo-6.tsx+++ b/apps/www/registry/example/text-animate-demo-6.tsx@@ -1,9 +1,9 @@-import { TextAnimate } from "@/registry/magicui/text-animate";+import { TextAnimate } from "@/registry/magicui/text-animate"export default function TextAnimateDemo6() {return (<TextAnimate animation="slideLeft" by="character">Slide left by character</TextAnimate>- );+ )}diff --git a/apps/www/registry/example/text-animate-demo-7.tsx b/apps/www/registry/example/text-animate-demo-7.tsxindex f9006980..cba78987 100644--- a/apps/www/registry/example/text-animate-demo-7.tsx+++ b/apps/www/registry/example/text-animate-demo-7.tsx@@ -1,9 +1,9 @@-import { TextAnimate } from "@/registry/magicui/text-animate";+import { TextAnimate } from "@/registry/magicui/text-animate"export default function TextAnimateDemo7() {return (<TextAnimate animation="blurInUp" by="character" delay={2}>Blur in by character</TextAnimate>- );+ )}diff --git a/apps/www/registry/example/text-animate-demo-8.tsx b/apps/www/registry/example/text-animate-demo-8.tsxindex 70470359..cc8f9a22 100644--- a/apps/www/registry/example/text-animate-demo-8.tsx+++ b/apps/www/registry/example/text-animate-demo-8.tsx@@ -1,9 +1,9 @@-import { TextAnimate } from "@/registry/magicui/text-animate";+import { TextAnimate } from "@/registry/magicui/text-animate"export default function TextAnimateDemo8() {return (<TextAnimate animation="blurInUp" by="character" duration={5}>Blur in by character</TextAnimate>- );+ )}diff --git a/apps/www/registry/example/text-animate-demo-9.tsx b/apps/www/registry/example/text-animate-demo-9.tsxindex 202c2a6a..64e93a75 100644--- a/apps/www/registry/example/text-animate-demo-9.tsx+++ b/apps/www/registry/example/text-animate-demo-9.tsx@@ -1,6 +1,6 @@-"use client";+"use client"-import { TextAnimate } from "@/registry/magicui/text-animate";+import { TextAnimate } from "@/registry/magicui/text-animate"export default function TextAnimateDemo9() {return (@@ -53,5 +53,5 @@ export default function TextAnimateDemo9() {>Wavy Motion!</TextAnimate>- );+ )}diff --git a/apps/www/registry/example/text-animate-demo.tsx b/apps/www/registry/example/text-animate-demo.tsxindex bbd5871b..0b441464 100644--- a/apps/www/registry/example/text-animate-demo.tsx+++ b/apps/www/registry/example/text-animate-demo.tsx@@ -1,9 +1,9 @@-import { TextAnimate } from "@/registry/magicui/text-animate";+import { TextAnimate } from "@/registry/magicui/text-animate"export default function TextAnimateDemo() {return (<TextAnimate animation="blurInUp" by="character" once>Blur in by character</TextAnimate>- );+ )}diff --git a/apps/www/registry/example/text-reveal-demo.tsx b/apps/www/registry/example/text-reveal-demo.tsxindex cc2d87a0..90bcd267 100644--- a/apps/www/registry/example/text-reveal-demo.tsx+++ b/apps/www/registry/example/text-reveal-demo.tsx@@ -1,5 +1,5 @@-import { TextReveal } from "@/registry/magicui/text-reveal";+import { TextReveal } from "@/registry/magicui/text-reveal"export default function TextRevealDemo() {- return <TextReveal>Magic UI will change the way you design.</TextReveal>;+ return <TextReveal>Magic UI will change the way you design.</TextReveal>}diff --git a/apps/www/registry/example/tweet-card-demo.tsx b/apps/www/registry/example/tweet-card-demo.tsxindex 93853b2e..85bc52d3 100644--- a/apps/www/registry/example/tweet-card-demo.tsx+++ b/apps/www/registry/example/tweet-card-demo.tsx@@ -1,9 +1,9 @@-import { ClientTweetCard } from "@/registry/magicui/client-tweet-card";+import { ClientTweetCard } from "@/registry/magicui/client-tweet-card"/*** <TweetCard /> (Server Side Only)* <ClientTweetCard /> (Client Side Only)*/export default function TweetDemo() {- return <ClientTweetCard id="1668408059125702661" />;+ return <ClientTweetCard id="1668408059125702661" />}diff --git a/apps/www/registry/example/tweet-card-images.tsx b/apps/www/registry/example/tweet-card-images.tsxindex fea10b15..3f87a778 100644--- a/apps/www/registry/example/tweet-card-images.tsx+++ b/apps/www/registry/example/tweet-card-images.tsx@@ -1,5 +1,5 @@-import { ClientTweetCard } from "@/registry/magicui/client-tweet-card";+import { ClientTweetCard } from "@/registry/magicui/client-tweet-card"export default function TweetImages() {- return <ClientTweetCard id="1678577280489234432" className="shadow-2xl" />;+ return <ClientTweetCard id="1678577280489234432" className="shadow-2xl" />}diff --git a/apps/www/registry/example/tweet-card-meta-preview.tsx b/apps/www/registry/example/tweet-card-meta-preview.tsxindex cb74c3a4..26c34fef 100644--- a/apps/www/registry/example/tweet-card-meta-preview.tsx+++ b/apps/www/registry/example/tweet-card-meta-preview.tsx@@ -1,5 +1,5 @@-import { ClientTweetCard } from "@/registry/magicui/client-tweet-card";+import { ClientTweetCard } from "@/registry/magicui/client-tweet-card"export default function TweetMetaPreview() {- return <ClientTweetCard id="1675849118445436929" className="shadow-2xl" />;+ return <ClientTweetCard id="1675849118445436929" className="shadow-2xl" />}diff --git a/apps/www/registry/example/typing-animation-demo.tsx b/apps/www/registry/example/typing-animation-demo.tsxindex ce8a9d77..aea2845b 100644--- a/apps/www/registry/example/typing-animation-demo.tsx+++ b/apps/www/registry/example/typing-animation-demo.tsx@@ -1,7 +1,7 @@-import { TypingAnimation } from "@/registry/magicui/typing-animation";+import { TypingAnimation } from "@/registry/magicui/typing-animation"export default function TypingAnimationDemo() {return (<TypingAnimation startOnView={true}>Typing Animation 👋</TypingAnimation>- );+ )}diff --git a/apps/www/registry/example/video-text-demo.tsx b/apps/www/registry/example/video-text-demo.tsxindex adc09b50..d3d62986 100644--- a/apps/www/registry/example/video-text-demo.tsx+++ b/apps/www/registry/example/video-text-demo.tsx@@ -1,4 +1,4 @@-import { VideoText } from "@/registry/magicui/video-text";+import { VideoText } from "@/registry/magicui/video-text"export default function VideoTextDemo() {return (@@ -7,5 +7,5 @@ export default function VideoTextDemo() {OCEAN</VideoText></div>- );+ )}diff --git a/apps/www/registry/example/warp-background-demo.tsx b/apps/www/registry/example/warp-background-demo.tsxindex ee5632a5..f01792bd 100644--- a/apps/www/registry/example/warp-background-demo.tsx+++ b/apps/www/registry/example/warp-background-demo.tsx@@ -3,8 +3,8 @@ import {CardContent,CardDescription,CardTitle,-} from "@/components/ui/card";-import { WarpBackground } from "@/registry/magicui/warp-background";+} from "@/components/ui/card"+import { WarpBackground } from "@/registry/magicui/warp-background"export default function ExampleComponentDemo() {return (@@ -20,5 +20,5 @@ export default function ExampleComponentDemo() {</CardContent></Card></WarpBackground>- );+ )}diff --git a/apps/www/registry/example/word-rotate-demo.tsx b/apps/www/registry/example/word-rotate-demo.tsxindex a3afb8a5..b677e39f 100644--- a/apps/www/registry/example/word-rotate-demo.tsx+++ b/apps/www/registry/example/word-rotate-demo.tsx@@ -1,4 +1,4 @@-import { WordRotate } from "@/registry/magicui/word-rotate";+import { WordRotate } from "@/registry/magicui/word-rotate"export default function WordRotateDemo() {return (@@ -6,5 +6,5 @@ export default function WordRotateDemo() {className="text-4xl font-bold text-black dark:text-white"words={["Word", "Rotate"]}/>- );+ )}diff --git a/apps/www/registry/index.ts b/apps/www/registry/index.tsindex 4e90625e..3c2923bc 100644--- a/apps/www/registry/index.ts+++ b/apps/www/registry/index.ts@@ -1,14 +1,10 @@-import {- registryIndexSchema,- RegistryItem,- type Registry,-} from "shadcn/schema";+import { registryIndexSchema, RegistryItem, type Registry } from "shadcn/schema"-import { examples } from "@/registry/registry-examples";-import { lib } from "@/registry/registry-lib";-import { ui } from "@/registry/registry-ui";+import { examples } from "@/registry/registry-examples"+import { lib } from "@/registry/registry-lib"+import { ui } from "@/registry/registry-ui"-const DEPRECATED_ITEMS = [""];+const DEPRECATED_ITEMS = [""]const DEFAULT: RegistryItem = {name: "index",@@ -18,14 +14,14 @@ const DEFAULT: RegistryItem = {registryDependencies: ["utils"],cssVars: {},files: [],-};+}export const registry = {name: "magicui",homepage: "https://magicui.design",items: registryIndexSchema.parse([DEFAULT, ...ui, ...examples, ...lib].filter((item) => {- return !DEPRECATED_ITEMS.includes(item.name);- }),+ return !DEPRECATED_ITEMS.includes(item.name)+ })),-} satisfies Registry;+} satisfies Registrydiff --git a/apps/www/registry/lib/utils.ts b/apps/www/registry/lib/utils.tsindex a5ef1935..bd0c391d 100644--- a/apps/www/registry/lib/utils.ts+++ b/apps/www/registry/lib/utils.ts@@ -1,6 +1,6 @@-import { clsx, type ClassValue } from "clsx";-import { twMerge } from "tailwind-merge";+import { clsx, type ClassValue } from "clsx"+import { twMerge } from "tailwind-merge"export function cn(...inputs: ClassValue[]) {- return twMerge(clsx(inputs));+ return twMerge(clsx(inputs))}diff --git a/apps/www/registry/magicui/android.tsx b/apps/www/registry/magicui/android.tsxindex bd094eac..7bec58f6 100644--- a/apps/www/registry/magicui/android.tsx+++ b/apps/www/registry/magicui/android.tsx@@ -1,10 +1,10 @@-import { SVGProps } from "react";+import { SVGProps } from "react"export interface AndroidProps extends SVGProps<SVGSVGElement> {- width?: number;- height?: number;- src?: string;- videoSrc?: string;+ width?: number+ height?: number+ src?: string+ videoSrc?: string}export function Android({@@ -98,5 +98,5 @@ export function Android({</clipPath></defs></svg>- );+ )}diff --git a/apps/www/registry/magicui/animated-beam.tsx b/apps/www/registry/magicui/animated-beam.tsxindex e824264c..139380be 100644--- a/apps/www/registry/magicui/animated-beam.tsx+++ b/apps/www/registry/magicui/animated-beam.tsx@@ -1,28 +1,28 @@-"use client";+"use client"-import { motion } from "motion/react";-import { RefObject, useEffect, useId, useState } from "react";+import { RefObject, useEffect, useId, useState } from "react"+import { motion } from "motion/react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"export interface AnimatedBeamProps {- className?: string;- containerRef: RefObject<HTMLElement | null>; // Container ref- fromRef: RefObject<HTMLElement | null>;- toRef: RefObject<HTMLElement | null>;- curvature?: number;- reverse?: boolean;- pathColor?: string;- pathWidth?: number;- pathOpacity?: number;- gradientStartColor?: string;- gradientStopColor?: string;- delay?: number;- duration?: number;- startXOffset?: number;- startYOffset?: number;- endXOffset?: number;- endYOffset?: number;+ className?: string+ containerRef: RefObject<HTMLElement | null> // Container ref+ fromRef: RefObject<HTMLElement | null>+ toRef: RefObject<HTMLElement | null>+ curvature?: number+ reverse?: boolean+ pathColor?: string+ pathWidth?: number+ pathOpacity?: number+ gradientStartColor?: string+ gradientStopColor?: string+ delay?: number+ duration?: number+ startXOffset?: number+ startYOffset?: number+ endXOffset?: number+ endYOffset?: number}export const AnimatedBeam: React.FC<AnimatedBeamProps> = ({@@ -44,9 +44,9 @@ export const AnimatedBeam: React.FC<AnimatedBeamProps> = ({endXOffset = 0,endYOffset = 0,}) => {- const id = useId();- const [pathD, setPathD] = useState("");- const [svgDimensions, setSvgDimensions] = useState({ width: 0, height: 0 });+ const id = useId()+ const [pathD, setPathD] = useState("")+ const [svgDimensions, setSvgDimensions] = useState({ width: 0, height: 0 })// Calculate the gradient coordinates based on the reverse propconst gradientCoordinates = reverse@@ -61,53 +61,53 @@ export const AnimatedBeam: React.FC<AnimatedBeamProps> = ({x2: ["0%", "100%"],y1: ["0%", "0%"],y2: ["0%", "0%"],- };+ }useEffect(() => {const updatePath = () => {if (containerRef.current && fromRef.current && toRef.current) {- const containerRect = containerRef.current.getBoundingClientRect();- const rectA = fromRef.current.getBoundingClientRect();- const rectB = toRef.current.getBoundingClientRect();+ const containerRect = containerRef.current.getBoundingClientRect()+ const rectA = fromRef.current.getBoundingClientRect()+ const rectB = toRef.current.getBoundingClientRect()- const svgWidth = containerRect.width;- const svgHeight = containerRect.height;- setSvgDimensions({ width: svgWidth, height: svgHeight });+ const svgWidth = containerRect.width+ const svgHeight = containerRect.height+ setSvgDimensions({ width: svgWidth, height: svgHeight })const startX =- rectA.left - containerRect.left + rectA.width / 2 + startXOffset;+ rectA.left - containerRect.left + rectA.width / 2 + startXOffsetconst startY =- rectA.top - containerRect.top + rectA.height / 2 + startYOffset;+ rectA.top - containerRect.top + rectA.height / 2 + startYOffsetconst endX =- rectB.left - containerRect.left + rectB.width / 2 + endXOffset;+ rectB.left - containerRect.left + rectB.width / 2 + endXOffsetconst endY =- rectB.top - containerRect.top + rectB.height / 2 + endYOffset;+ rectB.top - containerRect.top + rectB.height / 2 + endYOffset- const controlY = startY - curvature;+ const controlY = startY - curvatureconst d = `M ${startX},${startY} Q ${(startX + endX) / 2- },${controlY} ${endX},${endY}`;- setPathD(d);+ },${controlY} ${endX},${endY}`+ setPathD(d)}- };+ }// Initialize ResizeObserverconst resizeObserver = new ResizeObserver(() => {- updatePath();- });+ updatePath()+ })// Observe the container elementif (containerRef.current) {- resizeObserver.observe(containerRef.current);+ resizeObserver.observe(containerRef.current)}// Call the updatePath initially to set the initial path- updatePath();+ updatePath()// Clean up the observer on component unmountreturn () => {- resizeObserver.disconnect();- };+ resizeObserver.disconnect()+ }}, [containerRef,fromRef,@@ -117,7 +117,7 @@ export const AnimatedBeam: React.FC<AnimatedBeamProps> = ({startYOffset,endXOffset,endYOffset,- ]);+ ])return (<svg@@ -126,8 +126,8 @@ export const AnimatedBeam: React.FC<AnimatedBeamProps> = ({height={svgDimensions.height}xmlns="http://www.w3.org/2000/svg"className={cn(- "pointer-events-none absolute left-0 top-0 transform-gpu stroke-2",- className,+ "pointer-events-none absolute top-0 left-0 transform-gpu stroke-2",+ className)}viewBox={`0 0 ${svgDimensions.width} ${svgDimensions.height}`}>@@ -181,5 +181,5 @@ export const AnimatedBeam: React.FC<AnimatedBeamProps> = ({</motion.linearGradient></defs></svg>- );-};+ )+}diff --git a/apps/www/registry/magicui/animated-circular-progress-bar.tsx b/apps/www/registry/magicui/animated-circular-progress-bar.tsxindex 5a633477..8205191d 100644--- a/apps/www/registry/magicui/animated-circular-progress-bar.tsx+++ b/apps/www/registry/magicui/animated-circular-progress-bar.tsx@@ -1,12 +1,12 @@-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"interface AnimatedCircularProgressBarProps {- max?: number;- min?: number;- value: number;- gaugePrimaryColor: string;- gaugeSecondaryColor: string;- className?: string;+ max?: number+ min?: number+ value: number+ gaugePrimaryColor: string+ gaugeSecondaryColor: string+ className?: string}export function AnimatedCircularProgressBar({@@ -17,9 +17,9 @@ export function AnimatedCircularProgressBar({gaugeSecondaryColor,className,}: AnimatedCircularProgressBarProps) {- const circumference = 2 * Math.PI * 45;- const percentPx = circumference / 100;- const currentPercent = Math.round(((value - min) / (max - min)) * 100);+ const circumference = 2 * Math.PI * 45+ const percentPx = circumference / 100+ const currentPercent = Math.round(((value - min) / (max - min)) * 100)return (<div@@ -54,7 +54,7 @@ export function AnimatedCircularProgressBar({strokeDashoffset="0"strokeLinecap="round"strokeLinejoin="round"- className=" opacity-100"+ className="opacity-100"style={{stroke: gaugeSecondaryColor,@@ -99,10 +99,10 @@ export function AnimatedCircularProgressBar({</svg><spandata-current-value={currentPercent}- className="duration-[var(--transition-length)] delay-[var(--delay)] absolute inset-0 m-auto size-fit ease-linear animate-in fade-in"+ className="animate-in fade-in absolute inset-0 m-auto size-fit delay-[var(--delay)] duration-[var(--transition-length)] ease-linear">{currentPercent}</span></div>- );+ )}diff --git a/apps/www/registry/magicui/animated-gradient-text.tsx b/apps/www/registry/magicui/animated-gradient-text.tsxindex 22a75698..07214a83 100644--- a/apps/www/registry/magicui/animated-gradient-text.tsx+++ b/apps/www/registry/magicui/animated-gradient-text.tsx@@ -1,11 +1,12 @@-import { cn } from "@/lib/utils";-import { ComponentPropsWithoutRef } from "react";+import { ComponentPropsWithoutRef } from "react"++import { cn } from "@/lib/utils"export interface AnimatedGradientTextPropsextends ComponentPropsWithoutRef<"div"> {- speed?: number;- colorFrom?: string;- colorTo?: string;+ speed?: number+ colorFrom?: string+ colorTo?: string}export function AnimatedGradientText({@@ -26,12 +27,12 @@ export function AnimatedGradientText({} as React.CSSProperties}className={cn(- `inline animate-gradient bg-gradient-to-r from-[var(--color-from)] via-[var(--color-to)] to-[var(--color-from)] bg-[length:var(--bg-size)_100%] bg-clip-text text-transparent`,- className,+ `animate-gradient inline bg-gradient-to-r from-[var(--color-from)] via-[var(--color-to)] to-[var(--color-from)] bg-[length:var(--bg-size)_100%] bg-clip-text text-transparent`,+ className)}{...props}>{children}</span>- );+ )}diff --git a/apps/www/registry/magicui/animated-grid-pattern.tsx b/apps/www/registry/magicui/animated-grid-pattern.tsxindex 14cf70d0..ed1e7895 100644--- a/apps/www/registry/magicui/animated-grid-pattern.tsx+++ b/apps/www/registry/magicui/animated-grid-pattern.tsx@@ -1,27 +1,27 @@-"use client";+"use client"-import { motion } from "motion/react";import {ComponentPropsWithoutRef,useEffect,useId,useRef,useState,-} from "react";+} from "react"+import { motion } from "motion/react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"export interface AnimatedGridPatternPropsextends ComponentPropsWithoutRef<"svg"> {- width?: number;- height?: number;- x?: number;- y?: number;- strokeDasharray?: any;- numSquares?: number;- maxOpacity?: number;- duration?: number;- repeatDelay?: number;+ width?: number+ height?: number+ x?: number+ y?: number+ strokeDasharray?: any+ numSquares?: number+ maxOpacity?: number+ duration?: number+ repeatDelay?: number}export function AnimatedGridPattern({@@ -37,16 +37,16 @@ export function AnimatedGridPattern({repeatDelay = 0.5,...props}: AnimatedGridPatternProps) {- const id = useId();- const containerRef = useRef(null);- const [dimensions, setDimensions] = useState({ width: 0, height: 0 });- const [squares, setSquares] = useState(() => generateSquares(numSquares));+ const id = useId()+ const containerRef = useRef(null)+ const [dimensions, setDimensions] = useState({ width: 0, height: 0 })+ const [squares, setSquares] = useState(() => generateSquares(numSquares))function getPos() {return [Math.floor((Math.random() * dimensions.width) / width),Math.floor((Math.random() * dimensions.height) / height),- ];+ ]}// Adjust the generateSquares function to return objects with an id, x, and y@@ -54,7 +54,7 @@ export function AnimatedGridPattern({return Array.from({ length: count }, (_, i) => ({id: i,pos: getPos(),- }));+ }))}// Function to update a single square's position@@ -66,17 +66,17 @@ export function AnimatedGridPattern({...sq,pos: getPos(),}- : sq,- ),- );- };+ : sq+ )+ )+ }// Update squares to animate inuseEffect(() => {if (dimensions.width && dimensions.height) {- setSquares(generateSquares(numSquares));+ setSquares(generateSquares(numSquares))}- }, [dimensions, numSquares]);+ }, [dimensions, numSquares])// Resize observer to update container dimensionsuseEffect(() => {@@ -85,20 +85,20 @@ export function AnimatedGridPattern({setDimensions({width: entry.contentRect.width,height: entry.contentRect.height,- });+ })}- });+ })if (containerRef.current) {- resizeObserver.observe(containerRef.current);+ resizeObserver.observe(containerRef.current)}return () => {if (containerRef.current) {- resizeObserver.unobserve(containerRef.current);+ resizeObserver.unobserve(containerRef.current)}- };- }, [containerRef]);+ }+ }, [containerRef])return (<svg@@ -106,7 +106,7 @@ export function AnimatedGridPattern({aria-hidden="true"className={cn("pointer-events-none absolute inset-0 h-full w-full fill-gray-400/30 stroke-gray-400/30",- className,+ className)}{...props}>@@ -150,5 +150,5 @@ export function AnimatedGridPattern({))}</svg></svg>- );+ )}diff --git a/apps/www/registry/magicui/animated-list.tsx b/apps/www/registry/magicui/animated-list.tsxindex 1f1569f8..1e29b9f0 100644--- a/apps/www/registry/magicui/animated-list.tsx+++ b/apps/www/registry/magicui/animated-list.tsx@@ -1,13 +1,14 @@-"use client";+"use client"-import { cn } from "@/lib/utils";-import { AnimatePresence, motion, MotionProps } from "motion/react";import React, {ComponentPropsWithoutRef,useEffect,useMemo,useState,-} from "react";+} from "react"+import { AnimatePresence, motion, MotionProps } from "motion/react"++import { cn } from "@/lib/utils"export function AnimatedListItem({ children }: { children: React.ReactNode }) {const animations: MotionProps = {@@ -15,42 +16,42 @@ export function AnimatedListItem({ children }: { children: React.ReactNode }) {animate: { scale: 1, opacity: 1, originY: 0 },exit: { scale: 0, opacity: 0 },transition: { type: "spring", stiffness: 350, damping: 40 },- };+ }return (<motion.div {...animations} layout className="mx-auto w-full">{children}</motion.div>- );+ )}export interface AnimatedListProps extends ComponentPropsWithoutRef<"div"> {- children: React.ReactNode;- delay?: number;+ children: React.ReactNode+ delay?: number}export const AnimatedList = React.memo(({ children, className, delay = 1000, ...props }: AnimatedListProps) => {- const [index, setIndex] = useState(0);+ const [index, setIndex] = useState(0)const childrenArray = useMemo(() => React.Children.toArray(children),- [children],- );+ [children]+ )useEffect(() => {if (index < childrenArray.length - 1) {const timeout = setTimeout(() => {- setIndex((prevIndex) => (prevIndex + 1) % childrenArray.length);- }, delay);+ setIndex((prevIndex) => (prevIndex + 1) % childrenArray.length)+ }, delay)- return () => clearTimeout(timeout);+ return () => clearTimeout(timeout)}- }, [index, delay, childrenArray.length]);+ }, [index, delay, childrenArray.length])const itemsToShow = useMemo(() => {- const result = childrenArray.slice(0, index + 1).reverse();- return result;- }, [index, childrenArray]);+ const result = childrenArray.slice(0, index + 1).reverse()+ return result+ }, [index, childrenArray])return (<div@@ -65,8 +66,8 @@ export const AnimatedList = React.memo())}</AnimatePresence></div>- );- },-);+ )+ }+)-AnimatedList.displayName = "AnimatedList";+AnimatedList.displayName = "AnimatedList"diff --git a/apps/www/registry/magicui/animated-shiny-text.tsx b/apps/www/registry/magicui/animated-shiny-text.tsxindex 7a8506ba..d107d330 100644--- a/apps/www/registry/magicui/animated-shiny-text.tsx+++ b/apps/www/registry/magicui/animated-shiny-text.tsx@@ -1,10 +1,10 @@-import { ComponentPropsWithoutRef, CSSProperties, FC } from "react";+import { ComponentPropsWithoutRef, CSSProperties, FC } from "react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"export interface AnimatedShinyTextPropsextends ComponentPropsWithoutRef<"span"> {- shimmerWidth?: number;+ shimmerWidth?: number}export const AnimatedShinyText: FC<AnimatedShinyTextProps> = ({@@ -24,16 +24,16 @@ export const AnimatedShinyText: FC<AnimatedShinyTextProps> = ({"mx-auto max-w-md text-neutral-600/70 dark:text-neutral-400/70",// Shine effect- "animate-shiny-text bg-clip-text bg-no-repeat [background-position:0_0] [background-size:var(--shiny-width)_100%] [transition:background-position_1s_cubic-bezier(.6,.6,0,1)_infinite]",+ "animate-shiny-text [background-size:var(--shiny-width)_100%] bg-clip-text [background-position:0_0] bg-no-repeat [transition:background-position_1s_cubic-bezier(.6,.6,0,1)_infinite]",// Shine gradient- "bg-gradient-to-r from-transparent via-black/80 via-50% to-transparent dark:via-white/80",+ "bg-gradient-to-r from-transparent via-black/80 via-50% to-transparent dark:via-white/80",- className,+ className)}{...props}>{children}</span>- );-};+ )+}diff --git a/apps/www/registry/magicui/animated-subscribe-button.tsx b/apps/www/registry/magicui/animated-subscribe-button.tsxindex 7f41a095..9e12ccc4 100644--- a/apps/www/registry/magicui/animated-subscribe-button.tsx+++ b/apps/www/registry/magicui/animated-subscribe-button.tsx@@ -1,46 +1,46 @@-"use client";+"use client"-import { cn } from "@/lib/utils";-import { HTMLMotionProps } from "motion/react";-import { AnimatePresence, motion } from "motion/react";-import React, { useEffect, useState } from "react";+import React, { useEffect, useState } from "react"+import { AnimatePresence, HTMLMotionProps, motion } from "motion/react"++import { cn } from "@/lib/utils"interface AnimatedSubscribeButtonPropsextends Omit<HTMLMotionProps<"button">, "ref"> {- subscribeStatus?: boolean;- children: React.ReactNode;- className?: string;+ subscribeStatus?: boolean+ children: React.ReactNode+ className?: string}export const AnimatedSubscribeButton = React.forwardRef<HTMLButtonElement,AnimatedSubscribeButtonProps>(({ subscribeStatus, onClick, className, children, ...props }, ref) => {- const isControlled = subscribeStatus !== undefined; // controlled vs uncontrolled check+ const isControlled = subscribeStatus !== undefined // controlled vs uncontrolled checkconst [isSubscribed, setIsSubscribed] = useState<boolean>(- subscribeStatus ?? false,- );+ subscribeStatus ?? false+ )useEffect(() => {if (isControlled) {- setIsSubscribed(subscribeStatus!);+ setIsSubscribed(subscribeStatus!)}- }, [subscribeStatus, isControlled]);+ }, [subscribeStatus, isControlled])if (React.Children.count(children) !== 2 ||!React.Children.toArray(children).every(- (child) => React.isValidElement(child) && child.type === "span",+ (child) => React.isValidElement(child) && child.type === "span")) {throw new Error(- "AnimatedSubscribeButton expects two children, both of which must be <span> elements.",- );+ "AnimatedSubscribeButton expects two children, both of which must be <span> elements."+ )}- const childrenArray = React.Children.toArray(children);- const initialChild = childrenArray[0];- const changeChild = childrenArray[1];+ const childrenArray = React.Children.toArray(children)+ const initialChild = childrenArray[0]+ const changeChild = childrenArray[1]return (<AnimatePresence mode="wait">@@ -48,14 +48,14 @@ export const AnimatedSubscribeButton = React.forwardRef<<motion.buttonref={ref}className={cn(- "relative flex h-10 w-fit items-center justify-center overflow-hidden rounded-lg bg-primary px-6 text-primary-foreground",- className,+ "bg-primary text-primary-foreground relative flex h-10 w-fit items-center justify-center overflow-hidden rounded-lg px-6",+ className)}onClick={(e: React.MouseEvent<HTMLButtonElement>) => {if (!isControlled) {- setIsSubscribed(false); // Only toggle manually if uncontrolled+ setIsSubscribed(false) // Only toggle manually if uncontrolled}- onClick?.(e);+ onClick?.(e)}}initial={{ opacity: 0 }}animate={{ opacity: 1 }}@@ -75,14 +75,14 @@ export const AnimatedSubscribeButton = React.forwardRef<<motion.buttonref={ref}className={cn(- "relative flex h-10 w-fit cursor-pointer items-center justify-center rounded-lg border-none bg-primary px-6 text-primary-foreground",- className,+ "bg-primary text-primary-foreground relative flex h-10 w-fit cursor-pointer items-center justify-center rounded-lg border-none px-6",+ className)}onClick={(e) => {if (!isControlled) {- setIsSubscribed(true); // Only toggle manually if uncontrolled+ setIsSubscribed(true) // Only toggle manually if uncontrolled}- onClick?.(e);+ onClick?.(e)}}initial={{ opacity: 0 }}animate={{ opacity: 1 }}@@ -100,7 +100,7 @@ export const AnimatedSubscribeButton = React.forwardRef<</motion.button>)}</AnimatePresence>- );-});+ )+})-AnimatedSubscribeButton.displayName = "AnimatedSubscribeButton";+AnimatedSubscribeButton.displayName = "AnimatedSubscribeButton"diff --git a/apps/www/registry/magicui/animated-theme-toggler.tsx b/apps/www/registry/magicui/animated-theme-toggler.tsxindex 04b581de..8057dbc6 100644--- a/apps/www/registry/magicui/animated-theme-toggler.tsx+++ b/apps/www/registry/magicui/animated-theme-toggler.tsx@@ -1,54 +1,55 @@-"use client";+"use client"-import { Moon, Sun } from "lucide-react";-import { useState, useEffect, useRef, useCallback } from "react";-import { flushSync } from "react-dom";-import { cn } from "@/lib/utils";+import { useCallback, useEffect, useRef, useState } from "react"+import { Moon, Sun } from "lucide-react"+import { flushSync } from "react-dom"++import { cn } from "@/lib/utils"type Props = {- className?: string;-};+ className?: string+}export const AnimatedThemeToggler = ({ className }: Props) => {- const [isDark, setIsDark] = useState(false);- const buttonRef = useRef<HTMLButtonElement>(null);+ const [isDark, setIsDark] = useState(false)+ const buttonRef = useRef<HTMLButtonElement>(null)useEffect(() => {const updateTheme = () => {- setIsDark(document.documentElement.classList.contains("dark"));- };+ setIsDark(document.documentElement.classList.contains("dark"))+ }- updateTheme();+ updateTheme()- const observer = new MutationObserver(updateTheme);+ const observer = new MutationObserver(updateTheme)observer.observe(document.documentElement, {attributes: true,attributeFilter: ["class"],- });+ })- return () => observer.disconnect();- }, []);+ return () => observer.disconnect()+ }, [])const toggleTheme = useCallback(async () => {- if (!buttonRef.current) return;+ if (!buttonRef.current) returnawait document.startViewTransition(() => {flushSync(() => {- const newTheme = !isDark;- setIsDark(newTheme);- document.documentElement.classList.toggle("dark");- localStorage.setItem("theme", newTheme ? "dark" : "light");- });- }).ready;+ const newTheme = !isDark+ setIsDark(newTheme)+ document.documentElement.classList.toggle("dark")+ localStorage.setItem("theme", newTheme ? "dark" : "light")+ })+ }).readyconst { top, left, width, height } =- buttonRef.current.getBoundingClientRect();- const x = left + width / 2;- const y = top + height / 2;+ buttonRef.current.getBoundingClientRect()+ const x = left + width / 2+ const y = top + height / 2const maxRadius = Math.hypot(Math.max(left, window.innerWidth - left),- Math.max(top, window.innerHeight - top),- );+ Math.max(top, window.innerHeight - top)+ )document.documentElement.animate({@@ -61,13 +62,13 @@ export const AnimatedThemeToggler = ({ className }: Props) => {duration: 700,easing: "ease-in-out",pseudoElement: "::view-transition-new(root)",- },- );- }, [isDark]);+ }+ )+ }, [isDark])return (<button ref={buttonRef} onClick={toggleTheme} className={cn(className)}>{isDark ? <Sun /> : <Moon />}</button>- );-};+ )+}diff --git a/apps/www/registry/magicui/arc-timeline.tsx b/apps/www/registry/magicui/arc-timeline.tsxindex a7ca958a..d2054810 100644--- a/apps/www/registry/magicui/arc-timeline.tsx+++ b/apps/www/registry/magicui/arc-timeline.tsx@@ -1,23 +1,25 @@-"use client";-import { cn } from "@/lib/utils";-import { ComponentPropsWithoutRef, ReactNode, useState } from "react";+"use client"++import { ComponentPropsWithoutRef, ReactNode, useState } from "react"++import { cn } from "@/lib/utils"export interface ArcTimelineItem {- time: ReactNode;+ time: ReactNodesteps: Array<{- icon: ReactNode;- content: ReactNode;- }>;+ icon: ReactNode+ content: ReactNode+ }>}interface ArcTimelineProps extends ComponentPropsWithoutRef<"div"> {/*** Optional CSS class name to apply custom styles*/- className?: string;+ className?: string/*** The data of the arc timeline*/- data: ArcTimelineItem[];+ data: ArcTimelineItem[]/*** The configuration of the arc timeline*/@@ -25,20 +27,20 @@ interface ArcTimelineProps extends ComponentPropsWithoutRef<"div"> {/*** The width of the circle, default is 5000*/- circleWidth?: number;+ circleWidth?: number/*** The angle between minor steps, default is 0.35*/- angleBetweenMinorSteps?: number;+ angleBetweenMinorSteps?: number/*** The number of lines to fill between steps, default is 10*/- lineCountFillBetweenSteps?: number;+ lineCountFillBetweenSteps?: number/*** The number of lines to fill in before the first step and after the last step*/- boundaryPlaceholderLinesCount?: number;- };+ boundaryPlaceholderLinesCount?: number+ }/*** The default active step*/@@ -46,12 +48,12 @@ interface ArcTimelineProps extends ComponentPropsWithoutRef<"div"> {/*** The time of the default active step*/- time?: string;+ time?: string/*** The index of the default active step*/- stepIndex?: number;- };+ stepIndex?: number+ }}export function ArcTimeline(props: ArcTimelineProps) {@@ -62,37 +64,37 @@ export function ArcTimeline(props: ArcTimelineProps) {arcConfig = {},defaultActiveStep = {},...restProps- } = props;+ } = propsconst {circleWidth = 5000,angleBetweenMinorSteps = 0.35,lineCountFillBetweenSteps = 10,boundaryPlaceholderLinesCount = 50,- } = arcConfig;+ } = arcConfigconst {time: defaultActiveTime = data[0].time,stepIndex: defaultActiveStepIndex = 0,- } = defaultActiveStep || {};+ } = defaultActiveStep || {}const [circleContainerRotateDeg, setCircleContainerRotateDeg] = useState(() => {- let count = 0;+ let count = 0for (const timelineItem of data) {if (timelineItem.time === defaultActiveTime) {- count += defaultActiveStepIndex;- break;+ count += defaultActiveStepIndex+ break} else {- count += timelineItem.steps.length;+ count += timelineItem.steps.length}}return (-1 * count * angleBetweenMinorSteps * (lineCountFillBetweenSteps + 1) -angleBetweenMinorSteps * boundaryPlaceholderLinesCount- );- },- );+ )+ }+ )return (<div@@ -104,7 +106,7 @@ export function ArcTimeline(props: ArcTimelineProps) {transform: `translateX(-50%) rotate(${circleContainerRotateDeg}deg)`,width: `${circleWidth}px`,}}- className="absolute left-1/2 top-28 aspect-square origin-center rounded-full transition-all duration-500 ease-in-out"+ className="absolute top-28 left-1/2 aspect-square origin-center rounded-full transition-all duration-500 ease-in-out">{data.map((line, lineIndex) => {return (@@ -119,14 +121,14 @@ export function ArcTimeline(props: ArcTimelineProps) {.map((item) => item.steps.length).reduce((prev, current) => prev + current, 0) +stepIndex) +- angleBetweenMinorSteps * boundaryPlaceholderLinesCount;+ angleBetweenMinorSteps * boundaryPlaceholderLinesCountconst isLastStep =lineIndex === data.length - 1 &&- stepIndex === line.steps.length - 1;- const isFirstStep = lineIndex === 0 && stepIndex === 0;+ stepIndex === line.steps.length - 1+ const isFirstStep = lineIndex === 0 && stepIndex === 0// check if the step is activeconst isActive =- Math.abs(angle + circleContainerRotateDeg) < 0.01;+ Math.abs(angle + circleContainerRotateDeg) < 0.01return (<div key={`${lineIndex}-${stepIndex}`}>{/* placeholder lines before the first step */}@@ -148,15 +150,15 @@ export function ArcTimeline(props: ArcTimelineProps) {)}<divclassName={cn(- "absolute left-1/2 top-0 -translate-x-1/2 cursor-pointer transition-all duration-200",- isActive ? "h-[120px] w-[2px]" : "h-16 w-[1.5px]",+ "absolute top-0 left-1/2 -translate-x-1/2 cursor-pointer transition-all duration-200",+ isActive ? "h-[120px] w-[2px]" : "h-16 w-[1.5px]")}style={{transformOrigin: `50% ${circleWidth / 2}px`,transform: `rotate(${angle}deg)`,}}onClick={() => {- setCircleContainerRotateDeg(-1 * angle);+ setCircleContainerRotateDeg(-1 * angle)}}><div@@ -164,7 +166,7 @@ export function ArcTimeline(props: ArcTimelineProps) {"h-full w-full transition-colors duration-200",isActive? "bg-[var(--step-line-active-color,#888888)] dark:bg-[var(--step-line-active-color,#9780ff)]"- : "bg-[var(--step-line-inactive-color,#b1b1b1)] dark:bg-[var(--step-line-inactive-color,#737373)]",+ : "bg-[var(--step-line-inactive-color,#b1b1b1)] dark:bg-[var(--step-line-inactive-color,#737373)]")}style={{transformOrigin: "center top",@@ -178,7 +180,7 @@ export function ArcTimeline(props: ArcTimelineProps) {"absolute bottom-0 left-1/2 aspect-square -translate-x-1/2",isActive? "translate-y-[calc(100%_+_14px)] scale-[1.2] text-[var(--icon-active-color,#555555)] dark:text-[var(--icon-active-color,#d4d4d4)]"- : "translate-y-[calc(100%_+_4px)] scale-100 text-[var(--icon-inactive-color,#a3a3a3)] dark:text-[var(--icon-inactive-color,#a3a3a3)]",+ : "translate-y-[calc(100%_+_4px)] scale-100 text-[var(--icon-inactive-color,#a3a3a3)] dark:text-[var(--icon-inactive-color,#a3a3a3)]")}>{step.icon}@@ -187,7 +189,7 @@ export function ArcTimeline(props: ArcTimelineProps) {className={cn("absolute bottom-0 left-1/2 line-clamp-3 flex w-[240px] -translate-x-1/2 translate-y-[calc(100%_+_42px)] items-center justify-center text-center text-sm transition-opacity duration-300 ease-in","text-[var(--description-color,#555555)] dark:text-[var(--description-color,#d4d4d4)]",- isActive ? "opacity-100" : "opacity-0",+ isActive ? "opacity-100" : "opacity-0")}>{step.content}@@ -196,10 +198,10 @@ export function ArcTimeline(props: ArcTimelineProps) {{stepIndex === 0 && (<divclassName={cn(- "absolute left-1/2 top-0 z-10 -translate-x-1/2 translate-y-[calc(-100%-24px)] whitespace-nowrap",+ "absolute top-0 left-1/2 z-10 -translate-x-1/2 translate-y-[calc(-100%-24px)] whitespace-nowrap",isActive? "text-[var(--time-active-color,#555555)] dark:text-[var(--time-active-color,#d4d4d4)]"- : "text-[var(--time-inactive-color,#a3a3a3)] dark:text-[var(--time-inactive-color,#a3a3a3)]",+ : "text-[var(--time-inactive-color,#a3a3a3)] dark:text-[var(--time-inactive-color,#a3a3a3)]")}>{line.time}@@ -223,27 +225,27 @@ export function ArcTimeline(props: ArcTimelineProps) {circleContainerRotateDeg={circleContainerRotateDeg}/></div>- );+ )})}</div>- );+ )})}</div></div>- );+ )}interface PlaceholderLinesProps {- isFirstStep: boolean;- angleBetweenMinorSteps: number;- angle: number;- lineCountFillBetweenSteps: number;- boundaryPlaceholderLinesCount: number;- isLastStep: boolean;- lineIndex: number;- stepIndex: number;- circleWidth: number;- circleContainerRotateDeg: number;+ isFirstStep: boolean+ angleBetweenMinorSteps: number+ angle: number+ lineCountFillBetweenSteps: number+ boundaryPlaceholderLinesCount: number+ isLastStep: boolean+ lineIndex: number+ stepIndex: number+ circleWidth: number+ circleContainerRotateDeg: number}function PlaceholderLines(props: PlaceholderLinesProps) {const {@@ -257,30 +259,30 @@ function PlaceholderLines(props: PlaceholderLinesProps) {stepIndex,circleWidth,circleContainerRotateDeg,- } = props;+ } = propsconst getAngle = (index: number) => {if (isFirstStep) {- return index * angleBetweenMinorSteps;+ return index * angleBetweenMinorSteps} else {- return angle + (index + 1) * angleBetweenMinorSteps;+ return angle + (index + 1) * angleBetweenMinorSteps}- };+ }return (<>{Array(isLastStep || isFirstStep? boundaryPlaceholderLinesCount- : lineCountFillBetweenSteps,+ : lineCountFillBetweenSteps).fill("").map((_, fillIndex) => {- const fillAngle = getAngle(fillIndex);+ const fillAngle = getAngle(fillIndex)return (<divkey={`${lineIndex}-${stepIndex}-${fillIndex}`}- className="absolute left-1/2 top-0 h-[34px] w-[1px] -translate-x-1/2"+ className="absolute top-0 left-1/2 h-[34px] w-[1px] -translate-x-1/2"style={{transformOrigin: `50% ${circleWidth / 2}px`,transform: `rotate(${fillAngle}deg)`,@@ -296,8 +298,8 @@ function PlaceholderLines(props: PlaceholderLinesProps) {}}></div></div>- );+ )})}</>- );+ )}diff --git a/apps/www/registry/magicui/aurora-text.tsx b/apps/www/registry/magicui/aurora-text.tsxindex 4b379636..af4f0f28 100644--- a/apps/www/registry/magicui/aurora-text.tsx+++ b/apps/www/registry/magicui/aurora-text.tsx@@ -1,12 +1,12 @@-"use client";+"use client"-import React, { memo } from "react";+import React, { memo } from "react"interface AuroraTextProps {- children: React.ReactNode;- className?: string;- colors?: string[];- speed?: number;+ children: React.ReactNode+ className?: string+ colors?: string[]+ speed?: number}export const AuroraText = memo(@@ -23,21 +23,21 @@ export const AuroraText = memo(WebkitBackgroundClip: "text",WebkitTextFillColor: "transparent",animationDuration: `${10 / speed}s`,- };+ }return (<span className={`relative inline-block ${className}`}><span className="sr-only">{children}</span><span- className="relative animate-aurora bg-[length:200%_auto] bg-clip-text text-transparent"+ className="animate-aurora relative bg-[length:200%_auto] bg-clip-text text-transparent"style={gradientStyle}aria-hidden="true">{children}</span></span>- );- },-);+ )+ }+)-AuroraText.displayName = "AuroraText";+AuroraText.displayName = "AuroraText"diff --git a/apps/www/registry/magicui/avatar-circles.tsx b/apps/www/registry/magicui/avatar-circles.tsxindex ac1da353..cb113ac2 100644--- a/apps/www/registry/magicui/avatar-circles.tsx+++ b/apps/www/registry/magicui/avatar-circles.tsx@@ -1,16 +1,16 @@/* eslint-disable @next/next/no-img-element */-"use client";+"use client"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"interface Avatar {- imageUrl: string;- profileUrl: string;+ imageUrl: string+ profileUrl: string}interface AvatarCirclesProps {- className?: string;- numPeople?: number;- avatarUrls: Avatar[];+ className?: string+ numPeople?: number+ avatarUrls: Avatar[]}export const AvatarCircles = ({@@ -46,5 +46,5 @@ export const AvatarCircles = ({</a>)}</div>- );-};+ )+}diff --git a/apps/www/registry/magicui/bento-grid.tsx b/apps/www/registry/magicui/bento-grid.tsxindex cdccc8ef..ff9acb49 100644--- a/apps/www/registry/magicui/bento-grid.tsx+++ b/apps/www/registry/magicui/bento-grid.tsx@@ -1,22 +1,22 @@-import { ArrowRightIcon } from "@radix-ui/react-icons";-import { ComponentPropsWithoutRef, ReactNode } from "react";+import { ComponentPropsWithoutRef, ReactNode } from "react"+import { ArrowRightIcon } from "@radix-ui/react-icons"-import { Button } from "@/components/ui/button";-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"+import { Button } from "@/components/ui/button"interface BentoGridProps extends ComponentPropsWithoutRef<"div"> {- children: ReactNode;- className?: string;+ children: ReactNode+ className?: string}interface BentoCardProps extends ComponentPropsWithoutRef<"div"> {- name: string;- className: string;- background: ReactNode;- Icon: React.ElementType;- description: string;- href: string;- cta: string;+ name: string+ className: string+ background: ReactNode+ Icon: React.ElementType+ description: string+ href: string+ cta: string}const BentoGrid = ({ children, className, ...props }: BentoGridProps) => {@@ -24,14 +24,14 @@ const BentoGrid = ({ children, className, ...props }: BentoGridProps) => {<divclassName={cn("grid w-full auto-rows-[22rem] grid-cols-3 gap-4",- className,+ className)}{...props}>{children}</div>- );-};+ )+}const BentoCard = ({name,@@ -50,8 +50,8 @@ const BentoCard = ({// light styles"bg-background [box-shadow:0_0_0_1px_rgba(0,0,0,.03),0_2px_4px_rgba(0,0,0,.05),0_12px_24px_rgba(0,0,0,.05)]",// dark styles- "transform-gpu dark:bg-background dark:[border:1px_solid_rgba(255,255,255,.1)] dark:[box-shadow:0_-20px_80px_-20px_#ffffff1f_inset]",- className,+ "dark:bg-background transform-gpu dark:[box-shadow:0_-20px_80px_-20px_#ffffff1f_inset] dark:[border:1px_solid_rgba(255,255,255,.1)]",+ className)}{...props}>@@ -67,7 +67,7 @@ const BentoCard = ({<divclassName={cn(- "lg:hidden pointer-events-none flex w-full translate-y-0 transform-gpu flex-row items-center transition-all duration-300 group-hover:translate-y-0 group-hover:opacity-100",+ "pointer-events-none flex w-full translate-y-0 transform-gpu flex-row items-center transition-all duration-300 group-hover:translate-y-0 group-hover:opacity-100 lg:hidden")}><Button@@ -86,7 +86,7 @@ const BentoCard = ({<divclassName={cn(- "hidden lg:flex pointer-events-none absolute bottom-0 w-full translate-y-10 transform-gpu flex-row items-center p-4 opacity-0 transition-all duration-300 group-hover:translate-y-0 group-hover:opacity-100",+ "pointer-events-none absolute bottom-0 hidden w-full translate-y-10 transform-gpu flex-row items-center p-4 opacity-0 transition-all duration-300 group-hover:translate-y-0 group-hover:opacity-100 lg:flex")}><Button@@ -104,6 +104,6 @@ const BentoCard = ({<div className="pointer-events-none absolute inset-0 transform-gpu transition-all duration-300 group-hover:bg-black/[.03] group-hover:dark:bg-neutral-800/10" /></div>-);+)-export { BentoCard, BentoGrid };+export { BentoCard, BentoGrid }diff --git a/apps/www/registry/magicui/blur-fade.tsx b/apps/www/registry/magicui/blur-fade.tsxindex 5f83fc5b..6609f5af 100644--- a/apps/www/registry/magicui/blur-fade.tsx+++ b/apps/www/registry/magicui/blur-fade.tsx@@ -1,31 +1,31 @@-"use client";+"use client"+import { useRef } from "react"import {AnimatePresence,motion,+ MotionProps,useInView,UseInViewOptions,Variants,- MotionProps,-} from "motion/react";-import { useRef } from "react";+} from "motion/react"-type MarginType = UseInViewOptions["margin"];+type MarginType = UseInViewOptions["margin"]interface BlurFadeProps extends MotionProps {- children: React.ReactNode;- className?: string;+ children: React.ReactNode+ className?: stringvariant?: {- hidden: { y: number };- visible: { y: number };- };- duration?: number;- delay?: number;- offset?: number;- direction?: "up" | "down" | "left" | "right";- inView?: boolean;- inViewMargin?: MarginType;- blur?: string;+ hidden: { y: number }+ visible: { y: number }+ }+ duration?: number+ delay?: number+ offset?: number+ direction?: "up" | "down" | "left" | "right"+ inView?: boolean+ inViewMargin?: MarginType+ blur?: string}export function BlurFade({@@ -41,9 +41,9 @@ export function BlurFade({blur = "6px",...props}: BlurFadeProps) {- const ref = useRef(null);- const inViewResult = useInView(ref, { once: true, margin: inViewMargin });- const isInView = !inView || inViewResult;+ const ref = useRef(null)+ const inViewResult = useInView(ref, { once: true, margin: inViewMargin })+ const isInView = !inView || inViewResultconst defaultVariants: Variants = {hidden: {[direction === "left" || direction === "right" ? "x" : "y"]:@@ -56,8 +56,8 @@ export function BlurFade({opacity: 1,filter: `blur(0px)`,},- };- const combinedVariants = variant || defaultVariants;+ }+ const combinedVariants = variant || defaultVariantsreturn (<AnimatePresence><motion.div@@ -77,5 +77,5 @@ export function BlurFade({{children}</motion.div></AnimatePresence>- );+ )}diff --git a/apps/www/registry/magicui/border-beam.tsx b/apps/www/registry/magicui/border-beam.tsxindex 842c32b3..4fbc775e 100644--- a/apps/www/registry/magicui/border-beam.tsx+++ b/apps/www/registry/magicui/border-beam.tsx@@ -1,53 +1,54 @@-"use client";+"use client"-import { cn } from "@/lib/utils";-import { motion, MotionStyle, Transition } from "motion/react";+import { motion, MotionStyle, Transition } from "motion/react"++import { cn } from "@/lib/utils"interface BorderBeamProps {/*** The size of the border beam.*/- size?: number;+ size?: number/*** The duration of the border beam.*/- duration?: number;+ duration?: number/*** The delay of the border beam.*/- delay?: number;+ delay?: number/*** The color of the border beam from.*/- colorFrom?: string;+ colorFrom?: string/*** The color of the border beam to.*/- colorTo?: string;+ colorTo?: string/*** The motion transition of the border beam.*/- transition?: Transition;+ transition?: Transition/*** The class name of the border beam.*/- className?: string;+ className?: string/*** The style of the border beam.*/- style?: React.CSSProperties;+ style?: React.CSSProperties/*** Whether to reverse the animation direction.*/- reverse?: boolean;+ reverse?: boolean/*** The initial offset position (0-100).*/- initialOffset?: number;+ initialOffset?: number/*** The border width of the beam.*/- borderWidth?: number;+ borderWidth?: number}export const BorderBeam = ({@@ -65,7 +66,7 @@ export const BorderBeam = ({}: BorderBeamProps) => {return (<div- className="pointer-events-none absolute inset-0 rounded-[inherit] border-transparent [mask-clip:padding-box,border-box] [mask-composite:intersect] [mask-image:linear-gradient(transparent,transparent),linear-gradient(#000,#000)] border-(length:--border-beam-width)"+ className="pointer-events-none absolute inset-0 rounded-[inherit] border-(length:--border-beam-width) border-transparent [mask-image:linear-gradient(transparent,transparent),linear-gradient(#000,#000)] [mask-composite:intersect] [mask-clip:padding-box,border-box]"style={{"--border-beam-width": `${borderWidth}px`,@@ -76,7 +77,7 @@ export const BorderBeam = ({className={cn("absolute aspect-square","bg-gradient-to-l from-[var(--color-from)] via-[var(--color-to)] to-transparent",- className,+ className)}style={{@@ -102,5 +103,5 @@ export const BorderBeam = ({}}/></div>- );-};+ )+}diff --git a/apps/www/registry/magicui/box-reveal.tsx b/apps/www/registry/magicui/box-reveal.tsxindex d8f02790..8a1ebc50 100644--- a/apps/www/registry/magicui/box-reveal.tsx+++ b/apps/www/registry/magicui/box-reveal.tsx@@ -1,13 +1,13 @@-"use client";+"use client"-import { motion, useAnimation, useInView } from "motion/react";-import { useEffect, useRef } from "react";+import { useEffect, useRef } from "react"+import { motion, useAnimation, useInView } from "motion/react"export interface BoxRevealProps {- children: React.ReactNode;- width?: "fit-content" | "100%";- boxColor?: string;- duration?: number;+ children: React.ReactNode+ width?: "fit-content" | "100%"+ boxColor?: string+ duration?: number}export const BoxReveal = ({@@ -16,21 +16,21 @@ export const BoxReveal = ({boxColor = "#5046e6",duration,}: BoxRevealProps) => {- const mainControls = useAnimation();- const slideControls = useAnimation();+ const mainControls = useAnimation()+ const slideControls = useAnimation()- const ref = useRef(null);- const isInView = useInView(ref, { once: true });+ const ref = useRef(null)+ const isInView = useInView(ref, { once: true })useEffect(() => {if (isInView) {- slideControls.start("visible");- mainControls.start("visible");+ slideControls.start("visible")+ mainControls.start("visible")} else {- slideControls.start("hidden");- mainControls.start("hidden");+ slideControls.start("hidden")+ mainControls.start("hidden")}- }, [isInView, mainControls, slideControls]);+ }, [isInView, mainControls, slideControls])return (<div ref={ref} style={{ position: "relative", width, overflow: "hidden" }}>@@ -65,5 +65,5 @@ export const BoxReveal = ({}}/></div>- );-};+ )+}diff --git a/apps/www/registry/magicui/client-tweet-card.tsx b/apps/www/registry/magicui/client-tweet-card.tsxindex 68d218bf..43492b7c 100644--- a/apps/www/registry/magicui/client-tweet-card.tsx+++ b/apps/www/registry/magicui/client-tweet-card.tsx@@ -1,12 +1,12 @@-"use client";+"use client"-import { TweetProps, useTweet } from "react-tweet";+import { TweetProps, useTweet } from "react-tweet"import {MagicTweet,TweetNotFound,TweetSkeleton,-} from "@/registry/magicui/tweet-card";+} from "@/registry/magicui/tweet-card"export const ClientTweetCard = ({id,@@ -17,13 +17,13 @@ export const ClientTweetCard = ({onError,...props}: TweetProps & { className?: string }) => {- const { data, error, isLoading } = useTweet(id, apiUrl, fetchOptions);+ const { data, error, isLoading } = useTweet(id, apiUrl, fetchOptions)- if (isLoading) return fallback;+ if (isLoading) return fallbackif (error || !data) {- const NotFound = components?.TweetNotFound || TweetNotFound;- return <NotFound error={onError ? onError(error) : error} />;+ const NotFound = components?.TweetNotFound || TweetNotFound+ return <NotFound error={onError ? onError(error) : error} />}- return <MagicTweet tweet={data} components={components} {...props} />;-};+ return <MagicTweet tweet={data} components={components} {...props} />+}diff --git a/apps/www/registry/magicui/code-comparison.tsx b/apps/www/registry/magicui/code-comparison.tsxindex 138c96bc..29cb0e96 100644--- a/apps/www/registry/magicui/code-comparison.tsx+++ b/apps/www/registry/magicui/code-comparison.tsx@@ -1,22 +1,23 @@-"use client";+"use client"-import { cn } from "@/lib/utils";+import { useEffect, useMemo, useState } from "react"import {transformerNotationDiff,transformerNotationFocus,-} from "@shikijs/transformers";-import { FileIcon } from "lucide-react";-import { useTheme } from "next-themes";-import { useEffect, useState, useMemo } from "react";+} from "@shikijs/transformers"+import { FileIcon } from "lucide-react"+import { useTheme } from "next-themes"++import { cn } from "@/lib/utils"interface CodeComparisonProps {- beforeCode: string;- afterCode: string;- language: string;- filename: string;- lightTheme: string;- darkTheme: string;- highlightColor?: string;+ beforeCode: string+ afterCode: string+ language: string+ filename: string+ lightTheme: string+ darkTheme: string+ highlightColor?: string}export function CodeComparison({@@ -28,31 +29,31 @@ export function CodeComparison({darkTheme,highlightColor = "#ff3333",}: CodeComparisonProps) {- const { theme, systemTheme } = useTheme();- const [highlightedBefore, setHighlightedBefore] = useState("");- const [highlightedAfter, setHighlightedAfter] = useState("");- const [hasLeftFocus, setHasLeftFocus] = useState(false);- const [hasRightFocus, setHasRightFocus] = useState(false);+ const { theme, systemTheme } = useTheme()+ const [highlightedBefore, setHighlightedBefore] = useState("")+ const [highlightedAfter, setHighlightedAfter] = useState("")+ const [hasLeftFocus, setHasLeftFocus] = useState(false)+ const [hasRightFocus, setHasRightFocus] = useState(false)const selectedTheme = useMemo(() => {- const currentTheme = theme === "system" ? systemTheme : theme;- return currentTheme === "dark" ? darkTheme : lightTheme;- }, [theme, systemTheme, darkTheme, lightTheme]);+ const currentTheme = theme === "system" ? systemTheme : theme+ return currentTheme === "dark" ? darkTheme : lightTheme+ }, [theme, systemTheme, darkTheme, lightTheme])useEffect(() => {if (highlightedBefore || highlightedAfter) {- setHasLeftFocus(highlightedBefore.includes('class="line focused"'));- setHasRightFocus(highlightedAfter.includes('class="line focused"'));+ setHasLeftFocus(highlightedBefore.includes('class="line focused"'))+ setHasRightFocus(highlightedAfter.includes('class="line focused"'))}- }, [highlightedBefore, highlightedAfter]);+ }, [highlightedBefore, highlightedAfter])useEffect(() => {async function highlightCode() {try {- const { codeToHtml } = await import("shiki");+ const { codeToHtml } = await import("shiki")const { transformerNotationHighlight } = await import("@shikijs/transformers"- );+ )const before = await codeToHtml(beforeCode, {lang: language,@@ -62,7 +63,7 @@ export function CodeComparison({transformerNotationDiff({ matchAlgorithm: "v3" }),transformerNotationFocus({ matchAlgorithm: "v3" }),],- });+ })const after = await codeToHtml(afterCode, {lang: language,theme: selectedTheme,@@ -71,17 +72,17 @@ export function CodeComparison({transformerNotationDiff({ matchAlgorithm: "v3" }),transformerNotationFocus({ matchAlgorithm: "v3" }),],- });- setHighlightedBefore(before);- setHighlightedAfter(after);+ })+ setHighlightedBefore(before)+ setHighlightedAfter(after)} catch (error) {- console.error("Error highlighting code:", error);- setHighlightedBefore(`<pre>${beforeCode}</pre>`);- setHighlightedAfter(`<pre>${afterCode}</pre>`);+ console.error("Error highlighting code:", error)+ setHighlightedBefore(`<pre>${beforeCode}</pre>`)+ setHighlightedAfter(`<pre>${afterCode}</pre>`)}}- highlightCode();- }, [beforeCode, afterCode, language, selectedTheme]);+ highlightCode()+ }, [beforeCode, afterCode, language, selectedTheme])const renderCode = (code: string, highlighted: string) => {if (highlighted) {@@ -89,7 +90,7 @@ export function CodeComparison({<divstyle={{ "--highlight-color": highlightColor } as React.CSSProperties}className={cn(- "h-full w-full overflow-auto bg-background font-mono text-xs",+ "bg-background h-full w-full overflow-auto font-mono text-xs","[&>pre]:h-full [&>pre]:!w-screen [&>pre]:py-2","[&>pre>code]:!inline-block [&>pre>code]:!w-full","[&>pre>code>span]:!inline-block [&>pre>code>span]:w-full [&>pre>code>span]:px-4 [&>pre>code>span]:py-0.5",@@ -98,33 +99,33 @@ export function CodeComparison({"group-hover/right:[&>pre>code>:not(.focused)]:!opacity-100 group-hover/right:[&>pre>code>:not(.focused)]:!blur-none","[&>pre>code>.add]:bg-[rgba(16,185,129,.16)] [&>pre>code>.remove]:bg-[rgba(244,63,94,.16)]","group-hover/left:[&>pre>code>:not(.focused)]:transition-all group-hover/left:[&>pre>code>:not(.focused)]:duration-300",- "group-hover/right:[&>pre>code>:not(.focused)]:transition-all group-hover/right:[&>pre>code>:not(.focused)]:duration-300",+ "group-hover/right:[&>pre>code>:not(.focused)]:transition-all group-hover/right:[&>pre>code>:not(.focused)]:duration-300")}dangerouslySetInnerHTML={{ __html: highlighted }}/>- );+ )} else {return (- <pre className="h-full overflow-auto break-all bg-background p-4 font-mono text-xs text-foreground">+ <pre className="bg-background text-foreground h-full overflow-auto p-4 font-mono text-xs break-all">{code}</pre>- );+ )}- };+ }return (<div className="mx-auto w-full max-w-5xl">- <div className="group relative w-full overflow-hidden rounded-md border border-border">+ <div className="group border-border relative w-full overflow-hidden rounded-md border"><div className="relative grid md:grid-cols-2"><divclassName={cn("leftside group/left border-primary/20 md:border-r",hasLeftFocus &&"[&>div>pre>code>:not(.focused)]:!opacity-50 [&>div>pre>code>:not(.focused)]:!blur-[0.095rem]",- "[&>div>pre>code>:not(.focused)]:transition-all [&>div>pre>code>:not(.focused)]:duration-300",+ "[&>div>pre>code>:not(.focused)]:transition-all [&>div>pre>code>:not(.focused)]:duration-300")}>- <div className="flex items-center border-b border-primary/20 bg-accent p-2 text-sm text-foreground">+ <div className="border-primary/20 bg-accent text-foreground flex items-center border-b p-2 text-sm"><FileIcon className="mr-2 h-4 w-4" />{filename}<span className="ml-auto hidden md:block">before</span>@@ -133,13 +134,13 @@ export function CodeComparison({</div><divclassName={cn(- "rightside group/right border-t border-primary/20 md:border-t-0",+ "rightside group/right border-primary/20 border-t md:border-t-0",hasRightFocus &&"[&>div>pre>code>:not(.focused)]:!opacity-50 [&>div>pre>code>:not(.focused)]:!blur-[0.095rem]",- "[&>div>pre>code>:not(.focused)]:transition-all [&>div>pre>code>:not(.focused)]:duration-300",+ "[&>div>pre>code>:not(.focused)]:transition-all [&>div>pre>code>:not(.focused)]:duration-300")}>- <div className="flex items-center border-b border-primary/20 bg-accent p-2 text-sm text-foreground">+ <div className="border-primary/20 bg-accent text-foreground flex items-center border-b p-2 text-sm"><FileIcon className="mr-2 h-4 w-4" />{filename}<span className="ml-auto hidden md:block">after</span>@@ -147,10 +148,10 @@ export function CodeComparison({{renderCode(afterCode, highlightedAfter)}</div></div>- <div className="absolute left-1/2 top-1/2 hidden h-8 w-8 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-md border border-primary/20 bg-accent text-xs text-foreground md:flex">+ <div className="border-primary/20 bg-accent text-foreground absolute top-1/2 left-1/2 hidden h-8 w-8 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-md border text-xs md:flex">VS</div></div></div>- );+ )}diff --git a/apps/www/registry/magicui/comic-text.tsx b/apps/www/registry/magicui/comic-text.tsxindex 01e4554c..059681fe 100644--- a/apps/www/registry/magicui/comic-text.tsx+++ b/apps/www/registry/magicui/comic-text.tsx@@ -1,14 +1,16 @@-"use client";-import { cn } from "@/lib/utils";-import { motion } from "motion/react";-import { CSSProperties } from "react";+"use client"++import { CSSProperties } from "react"+import { motion } from "motion/react"++import { cn } from "@/lib/utils"type ComicTextProps = {- children: string;- className?: string;- style?: CSSProperties;- fontSize?: number;-};+ children: string+ className?: string+ style?: CSSProperties+ fontSize?: number+}export function ComicText({children,@@ -17,15 +19,15 @@ export function ComicText({fontSize = 5,}: ComicTextProps) {if (typeof children !== "string") {- throw new Error("children must be a string");+ throw new Error("children must be a string")}- const dotColor = "#EF4444";- const backgroundColor = "#FACC15";+ const dotColor = "#EF4444"+ const backgroundColor = "#FACC15"return (<motion.div- className={cn("select-none text-center", className)}+ className={cn("text-center select-none", className)}style={{fontSize: `${fontSize}rem`,fontFamily: "'Bangers', 'Comic Sans MS', 'Impact', sans-serif",@@ -55,5 +57,5 @@ export function ComicText({>{children}</motion.div>- );+ )}diff --git a/apps/www/registry/magicui/confetti.tsx b/apps/www/registry/magicui/confetti.tsxindex 9fdc1178..53ef5d6b 100644--- a/apps/www/registry/magicui/confetti.tsx+++ b/apps/www/registry/magicui/confetti.tsx@@ -1,12 +1,6 @@-"use client";+"use client"-import type {- GlobalOptions as ConfettiGlobalOptions,- CreateTypes as ConfettiInstance,- Options as ConfettiOptions,-} from "canvas-confetti";-import confetti from "canvas-confetti";-import type { ReactNode } from "react";+import type { ReactNode } from "react"import React, {createContext,forwardRef,@@ -15,24 +9,30 @@ import React, {useImperativeHandle,useMemo,useRef,-} from "react";+} from "react"+import type {+ GlobalOptions as ConfettiGlobalOptions,+ CreateTypes as ConfettiInstance,+ Options as ConfettiOptions,+} from "canvas-confetti"+import confetti from "canvas-confetti"-import { Button } from "@/components/ui/button";+import { Button } from "@/components/ui/button"type Api = {- fire: (options?: ConfettiOptions) => void;-};+ fire: (options?: ConfettiOptions) => void+}type Props = React.ComponentPropsWithRef<"canvas"> & {- options?: ConfettiOptions;- globalOptions?: ConfettiGlobalOptions;- manualstart?: boolean;- children?: ReactNode;-};+ options?: ConfettiOptions+ globalOptions?: ConfettiGlobalOptions+ manualstart?: boolean+ children?: ReactNode+}-export type ConfettiRef = Api | null;+export type ConfettiRef = Api | null-const ConfettiContext = createContext<Api>({} as Api);+const ConfettiContext = createContext<Api>({} as Api)// Define component firstconst ConfettiComponent = forwardRef<ConfettiRef, Props>((props, ref) => {@@ -42,76 +42,76 @@ const ConfettiComponent = forwardRef<ConfettiRef, Props>((props, ref) => {manualstart = false,children,...rest- } = props;- const instanceRef = useRef<ConfettiInstance | null>(null);+ } = props+ const instanceRef = useRef<ConfettiInstance | null>(null)const canvasRef = useCallback((node: HTMLCanvasElement) => {if (node !== null) {- if (instanceRef.current) return;+ if (instanceRef.current) returninstanceRef.current = confetti.create(node, {...globalOptions,resize: true,- });+ })} else {if (instanceRef.current) {- instanceRef.current.reset();- instanceRef.current = null;+ instanceRef.current.reset()+ instanceRef.current = null}}},- [globalOptions],- );+ [globalOptions]+ )const fire = useCallback(async (opts = {}) => {try {- await instanceRef.current?.({ ...options, ...opts });+ await instanceRef.current?.({ ...options, ...opts })} catch (error) {- console.error("Confetti error:", error);+ console.error("Confetti error:", error)}},- [options],- );+ [options]+ )const api = useMemo(() => ({fire,}),- [fire],- );+ [fire]+ )- useImperativeHandle(ref, () => api, [api]);+ useImperativeHandle(ref, () => api, [api])useEffect(() => {if (!manualstart) {- (async () => {+ ;(async () => {try {- await fire();+ await fire()} catch (error) {- console.error("Confetti effect error:", error);+ console.error("Confetti effect error:", error)}- })();+ })()}- }, [manualstart, fire]);+ }, [manualstart, fire])return (<ConfettiContext.Provider value={api}><canvas ref={canvasRef} {...rest} />{children}</ConfettiContext.Provider>- );-});+ )+})// Set display name immediately-ConfettiComponent.displayName = "Confetti";+ConfettiComponent.displayName = "Confetti"// Export as Confetti-export const Confetti = ConfettiComponent;+export const Confetti = ConfettiComponentinterface ConfettiButtonProps extends React.ComponentProps<"button"> {options?: ConfettiOptions &- ConfettiGlobalOptions & { canvas?: HTMLCanvasElement };+ ConfettiGlobalOptions & { canvas?: HTMLCanvasElement }}const ConfettiButtonComponent = ({@@ -121,28 +121,28 @@ const ConfettiButtonComponent = ({}: ConfettiButtonProps) => {const handleClick = async (event: React.MouseEvent<HTMLButtonElement>) => {try {- const rect = event.currentTarget.getBoundingClientRect();- const x = rect.left + rect.width / 2;- const y = rect.top + rect.height / 2;+ const rect = event.currentTarget.getBoundingClientRect()+ const x = rect.left + rect.width / 2+ const y = rect.top + rect.height / 2await confetti({...options,origin: {x: x / window.innerWidth,y: y / window.innerHeight,},- });+ })} catch (error) {- console.error("Confetti button error:", error);+ console.error("Confetti button error:", error)}- };+ }return (<Button onClick={handleClick} {...props}>{children}</Button>- );-};+ )+}-ConfettiButtonComponent.displayName = "ConfettiButton";+ConfettiButtonComponent.displayName = "ConfettiButton"-export const ConfettiButton = ConfettiButtonComponent;+export const ConfettiButton = ConfettiButtonComponentdiff --git a/apps/www/registry/magicui/cool-mode.tsx b/apps/www/registry/magicui/cool-mode.tsxindex 9ff9b876..3ce16063 100644--- a/apps/www/registry/magicui/cool-mode.tsx+++ b/apps/www/registry/magicui/cool-mode.tsx@@ -1,121 +1,121 @@-"use client";+"use client"-import React, { ReactNode, useEffect, useRef } from "react";+import React, { ReactNode, useEffect, useRef } from "react"export interface BaseParticle {- element: HTMLElement | SVGSVGElement;- left: number;- size: number;- top: number;+ element: HTMLElement | SVGSVGElement+ left: number+ size: number+ top: number}export interface BaseParticleOptions {- particle?: string;- size?: number;+ particle?: string+ size?: number}export interface CoolParticle extends BaseParticle {- direction: number;- speedHorz: number;- speedUp: number;- spinSpeed: number;- spinVal: number;+ direction: number+ speedHorz: number+ speedUp: number+ spinSpeed: number+ spinVal: number}export interface CoolParticleOptions extends BaseParticleOptions {- particleCount?: number;- speedHorz?: number;- speedUp?: number;+ particleCount?: number+ speedHorz?: number+ speedUp?: number}const getContainer = () => {- const id = "_coolMode_effect";- let existingContainer = document.getElementById(id);+ const id = "_coolMode_effect"+ let existingContainer = document.getElementById(id)if (existingContainer) {- return existingContainer;+ return existingContainer}- const container = document.createElement("div");- container.setAttribute("id", id);+ const container = document.createElement("div")+ container.setAttribute("id", id)container.setAttribute("style",- "overflow:hidden; position:fixed; height:100%; top:0; left:0; right:0; bottom:0; pointer-events:none; z-index:2147483647",- );+ "overflow:hidden; position:fixed; height:100%; top:0; left:0; right:0; bottom:0; pointer-events:none; z-index:2147483647"+ )- document.body.appendChild(container);+ document.body.appendChild(container)- return container;-};+ return container+}-let instanceCounter = 0;+let instanceCounter = 0const applyParticleEffect = (element: HTMLElement,- options?: CoolParticleOptions,+ options?: CoolParticleOptions): (() => void) => {- instanceCounter++;+ instanceCounter++- const defaultParticle = "circle";- const particleType = options?.particle || defaultParticle;- const sizes = [15, 20, 25, 35, 45];- const limit = 45;+ const defaultParticle = "circle"+ const particleType = options?.particle || defaultParticle+ const sizes = [15, 20, 25, 35, 45]+ const limit = 45- let particles: CoolParticle[] = [];- let autoAddParticle = false;- let mouseX = 0;- let mouseY = 0;+ let particles: CoolParticle[] = []+ let autoAddParticle = false+ let mouseX = 0+ let mouseY = 0- const container = getContainer();+ const container = getContainer()function generateParticle() {const size =- options?.size || sizes[Math.floor(Math.random() * sizes.length)];- const speedHorz = options?.speedHorz || Math.random() * 10;- const speedUp = options?.speedUp || Math.random() * 25;- const spinVal = Math.random() * 360;- const spinSpeed = Math.random() * 35 * (Math.random() <= 0.5 ? -1 : 1);- const top = mouseY - size / 2;- const left = mouseX - size / 2;- const direction = Math.random() <= 0.5 ? -1 : 1;+ options?.size || sizes[Math.floor(Math.random() * sizes.length)]+ const speedHorz = options?.speedHorz || Math.random() * 10+ const speedUp = options?.speedUp || Math.random() * 25+ const spinVal = Math.random() * 360+ const spinSpeed = Math.random() * 35 * (Math.random() <= 0.5 ? -1 : 1)+ const top = mouseY - size / 2+ const left = mouseX - size / 2+ const direction = Math.random() <= 0.5 ? -1 : 1- const particle = document.createElement("div");+ const particle = document.createElement("div")if (particleType === "circle") {- const svgNS = "http://www.w3.org/2000/svg";- const circleSVG = document.createElementNS(svgNS, "svg");- const circle = document.createElementNS(svgNS, "circle");- circle.setAttributeNS(null, "cx", (size / 2).toString());- circle.setAttributeNS(null, "cy", (size / 2).toString());- circle.setAttributeNS(null, "r", (size / 2).toString());+ const svgNS = "http://www.w3.org/2000/svg"+ const circleSVG = document.createElementNS(svgNS, "svg")+ const circle = document.createElementNS(svgNS, "circle")+ circle.setAttributeNS(null, "cx", (size / 2).toString())+ circle.setAttributeNS(null, "cy", (size / 2).toString())+ circle.setAttributeNS(null, "r", (size / 2).toString())circle.setAttributeNS(null,"fill",- `hsl(${Math.random() * 360}, 70%, 50%)`,- );+ `hsl(${Math.random() * 360}, 70%, 50%)`+ )- circleSVG.appendChild(circle);- circleSVG.setAttribute("width", size.toString());- circleSVG.setAttribute("height", size.toString());+ circleSVG.appendChild(circle)+ circleSVG.setAttribute("width", size.toString())+ circleSVG.setAttribute("height", size.toString())- particle.appendChild(circleSVG);+ particle.appendChild(circleSVG)} else if (particleType.startsWith("http") ||particleType.startsWith("/")) {// Handle URL-based images- particle.innerHTML = `<img src="${particleType}" width="${size}" height="${size}" style="border-radius: 50%">`;+ particle.innerHTML = `<img src="${particleType}" width="${size}" height="${size}" style="border-radius: 50%">`} else {// Handle emoji or text characters- const fontSizeMultiplier = 3; // Make emojis 3x bigger- const emojiSize = size * fontSizeMultiplier;- particle.innerHTML = `<div style="font-size: ${emojiSize}px; line-height: 1; text-align: center; width: ${size}px; height: ${size}px; display: flex; align-items: center; justify-content: center; transform: scale(${fontSizeMultiplier}); transform-origin: center;">${particleType}</div>`;+ const fontSizeMultiplier = 3 // Make emojis 3x bigger+ const emojiSize = size * fontSizeMultiplier+ particle.innerHTML = `<div style="font-size: ${emojiSize}px; line-height: 1; text-align: center; width: ${size}px; height: ${size}px; display: flex; align-items: center; justify-content: center; transform: scale(${fontSizeMultiplier}); transform-origin: center;">${particleType}</div>`}- particle.style.position = "absolute";- particle.style.transform = `translate3d(${left}px, ${top}px, 0px) rotate(${spinVal}deg)`;+ particle.style.position = "absolute"+ particle.style.transform = `translate3d(${left}px, ${top}px, 0px) rotate(${spinVal}deg)`- container.appendChild(particle);+ container.appendChild(particle)particles.push({direction,@@ -127,22 +127,22 @@ const applyParticleEffect = (spinSpeed,spinVal,top,- });+ })}function refreshParticles() {particles.forEach((p) => {- p.left = p.left - p.speedHorz * p.direction;- p.top = p.top - p.speedUp;- p.speedUp = Math.min(p.size, p.speedUp - 1);- p.spinVal = p.spinVal + p.spinSpeed;+ p.left = p.left - p.speedHorz * p.direction+ p.top = p.top - p.speedUp+ p.speedUp = Math.min(p.size, p.speedUp - 1)+ p.spinVal = p.spinVal + p.spinSpeedif (p.top >=Math.max(window.innerHeight, document.body.clientHeight) + p.size) {- particles = particles.filter((o) => o !== p);- p.element.remove();+ particles = particles.filter((o) => o !== p)+ p.element.remove()}p.element.setAttribute(@@ -153,97 +153,97 @@ const applyParticleEffect = (`top:${p.top}px`,`left:${p.left}px`,`transform:rotate(${p.spinVal}deg)`,- ].join(";"),- );- });+ ].join(";")+ )+ })}- let animationFrame: number | undefined;+ let animationFrame: number | undefined- let lastParticleTimestamp = 0;- const particleGenerationDelay = 30;+ let lastParticleTimestamp = 0+ const particleGenerationDelay = 30function loop() {- const currentTime = performance.now();+ const currentTime = performance.now()if (autoAddParticle &&particles.length < limit &¤tTime - lastParticleTimestamp > particleGenerationDelay) {- generateParticle();- lastParticleTimestamp = currentTime;+ generateParticle()+ lastParticleTimestamp = currentTime}- refreshParticles();- animationFrame = requestAnimationFrame(loop);+ refreshParticles()+ animationFrame = requestAnimationFrame(loop)}- loop();+ loop()- const isTouchInteraction = "ontouchstart" in window;+ const isTouchInteraction = "ontouchstart" in window- const tap = isTouchInteraction ? "touchstart" : "mousedown";- const tapEnd = isTouchInteraction ? "touchend" : "mouseup";- const move = isTouchInteraction ? "touchmove" : "mousemove";+ const tap = isTouchInteraction ? "touchstart" : "mousedown"+ const tapEnd = isTouchInteraction ? "touchend" : "mouseup"+ const move = isTouchInteraction ? "touchmove" : "mousemove"const updateMousePosition = (e: MouseEvent | TouchEvent) => {if ("touches" in e) {- mouseX = e.touches?.[0].clientX;- mouseY = e.touches?.[0].clientY;+ mouseX = e.touches?.[0].clientX+ mouseY = e.touches?.[0].clientY} else {- mouseX = e.clientX;- mouseY = e.clientY;+ mouseX = e.clientX+ mouseY = e.clientY}- };+ }const tapHandler = (e: MouseEvent | TouchEvent) => {- updateMousePosition(e);- autoAddParticle = true;- };+ updateMousePosition(e)+ autoAddParticle = true+ }const disableAutoAddParticle = () => {- autoAddParticle = false;- };+ autoAddParticle = false+ }- element.addEventListener(move, updateMousePosition, { passive: true });- element.addEventListener(tap, tapHandler, { passive: true });- element.addEventListener(tapEnd, disableAutoAddParticle, { passive: true });+ element.addEventListener(move, updateMousePosition, { passive: true })+ element.addEventListener(tap, tapHandler, { passive: true })+ element.addEventListener(tapEnd, disableAutoAddParticle, { passive: true })element.addEventListener("mouseleave", disableAutoAddParticle, {passive: true,- });+ })return () => {- element.removeEventListener(move, updateMousePosition);- element.removeEventListener(tap, tapHandler);- element.removeEventListener(tapEnd, disableAutoAddParticle);- element.removeEventListener("mouseleave", disableAutoAddParticle);+ element.removeEventListener(move, updateMousePosition)+ element.removeEventListener(tap, tapHandler)+ element.removeEventListener(tapEnd, disableAutoAddParticle)+ element.removeEventListener("mouseleave", disableAutoAddParticle)const interval = setInterval(() => {if (animationFrame && particles.length === 0) {- cancelAnimationFrame(animationFrame);- clearInterval(interval);+ cancelAnimationFrame(animationFrame)+ clearInterval(interval)if (--instanceCounter === 0) {- container.remove();+ container.remove()}}- }, 500);- };-};+ }, 500)+ }+}interface CoolModeProps {- children: ReactNode;- options?: CoolParticleOptions;+ children: ReactNode+ options?: CoolParticleOptions}export const CoolMode: React.FC<CoolModeProps> = ({ children, options }) => {- const ref = useRef<HTMLSpanElement>(null);+ const ref = useRef<HTMLSpanElement>(null)useEffect(() => {if (ref.current) {- return applyParticleEffect(ref.current, options);+ return applyParticleEffect(ref.current, options)}- }, [options]);+ }, [options])- return <span ref={ref}>{children}</span>;-};+ return <span ref={ref}>{children}</span>+}diff --git a/apps/www/registry/magicui/dock.tsx b/apps/www/registry/magicui/dock.tsxindex ca40afea..dcf2ac54 100644--- a/apps/www/registry/magicui/dock.tsx+++ b/apps/www/registry/magicui/dock.tsx@@ -1,36 +1,36 @@-"use client";+"use client"-import { cva, type VariantProps } from "class-variance-authority";+import React, { PropsWithChildren, useRef } from "react"+import { cva, type VariantProps } from "class-variance-authority"import {motion,MotionValue,useMotionValue,useSpring,useTransform,-} from "motion/react";-import type { MotionProps } from "motion/react";-import React, { PropsWithChildren, useRef } from "react";+} from "motion/react"+import type { MotionProps } from "motion/react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"export interface DockProps extends VariantProps<typeof dockVariants> {- className?: string;- iconSize?: number;- iconMagnification?: number;- disableMagnification?: boolean;- iconDistance?: number;- direction?: "top" | "middle" | "bottom";- children: React.ReactNode;+ className?: string+ iconSize?: number+ iconMagnification?: number+ disableMagnification?: boolean+ iconDistance?: number+ direction?: "top" | "middle" | "bottom"+ children: React.ReactNode}-const DEFAULT_SIZE = 40;-const DEFAULT_MAGNIFICATION = 60;-const DEFAULT_DISTANCE = 140;-const DEFAULT_DISABLEMAGNIFICATION = false;+const DEFAULT_SIZE = 40+const DEFAULT_MAGNIFICATION = 60+const DEFAULT_DISTANCE = 140+const DEFAULT_DISABLEMAGNIFICATION = falseconst dockVariants = cva(- "supports-backdrop-blur:bg-white/10 supports-backdrop-blur:dark:bg-black/10 mx-auto mt-8 flex h-[58px] w-max items-center justify-center gap-2 rounded-2xl border p-2 backdrop-blur-md",-);+ "supports-backdrop-blur:bg-white/10 supports-backdrop-blur:dark:bg-black/10 mx-auto mt-8 flex h-[58px] w-max items-center justify-center gap-2 rounded-2xl border p-2 backdrop-blur-md"+)const Dock = React.forwardRef<HTMLDivElement, DockProps>((@@ -44,9 +44,9 @@ const Dock = React.forwardRef<HTMLDivElement, DockProps>(direction = "middle",...props},- ref,+ ref) => {- const mouseX = useMotionValue(Infinity);+ const mouseX = useMotionValue(Infinity)const renderChildren = () => {return React.Children.map(children, (child) => {@@ -61,11 +61,11 @@ const Dock = React.forwardRef<HTMLDivElement, DockProps>(magnification: iconMagnification,disableMagnification: disableMagnification,distance: iconDistance,- });+ })}- return child;- });- };+ return child+ })+ }return (<motion.div@@ -81,22 +81,22 @@ const Dock = React.forwardRef<HTMLDivElement, DockProps>(>{renderChildren()}</motion.div>- );- },-);+ )+ }+)-Dock.displayName = "Dock";+Dock.displayName = "Dock"export interface DockIconPropsextends Omit<MotionProps & React.HTMLAttributes<HTMLDivElement>, "children"> {- size?: number;- magnification?: number;- disableMagnification?: boolean;- distance?: number;- mouseX?: MotionValue<number>;- className?: string;- children?: React.ReactNode;- props?: PropsWithChildren;+ size?: number+ magnification?: number+ disableMagnification?: boolean+ distance?: number+ mouseX?: MotionValue<number>+ className?: string+ children?: React.ReactNode+ props?: PropsWithChildren}const DockIcon = ({@@ -109,28 +109,28 @@ const DockIcon = ({children,...props}: DockIconProps) => {- const ref = useRef<HTMLDivElement>(null);- const padding = Math.max(6, size * 0.2);- const defaultMouseX = useMotionValue(Infinity);+ const ref = useRef<HTMLDivElement>(null)+ const padding = Math.max(6, size * 0.2)+ const defaultMouseX = useMotionValue(Infinity)const distanceCalc = useTransform(mouseX ?? defaultMouseX, (val: number) => {- const bounds = ref.current?.getBoundingClientRect() ?? { x: 0, width: 0 };- return val - bounds.x - bounds.width / 2;- });+ const bounds = ref.current?.getBoundingClientRect() ?? { x: 0, width: 0 }+ return val - bounds.x - bounds.width / 2+ })- const targetSize = disableMagnification ? size : magnification;+ const targetSize = disableMagnification ? size : magnificationconst sizeTransform = useTransform(distanceCalc,[-distance, 0, distance],- [size, targetSize, size],- );+ [size, targetSize, size]+ )const scaleSize = useSpring(sizeTransform, {mass: 0.1,stiffness: 150,damping: 12,- });+ })return (<motion.div@@ -138,16 +138,16 @@ const DockIcon = ({style={{ width: scaleSize, height: scaleSize, padding }}className={cn("flex aspect-square cursor-pointer items-center justify-center rounded-full",- disableMagnification && "transition-colors hover:bg-muted-foreground",- className,+ disableMagnification && "hover:bg-muted-foreground transition-colors",+ className)}{...props}><div>{children}</div></motion.div>- );-};+ )+}-DockIcon.displayName = "DockIcon";+DockIcon.displayName = "DockIcon"-export { Dock, DockIcon, dockVariants };+export { Dock, DockIcon, dockVariants }diff --git a/apps/www/registry/magicui/dot-pattern.tsx b/apps/www/registry/magicui/dot-pattern.tsxindex b3f08acd..17d6567c 100644--- a/apps/www/registry/magicui/dot-pattern.tsx+++ b/apps/www/registry/magicui/dot-pattern.tsx@@ -1,8 +1,9 @@-"use client";+"use client"-import { cn } from "@/lib/utils";-import { motion } from "motion/react";-import React, { useEffect, useId, useRef, useState } from "react";+import React, { useEffect, useId, useRef, useState } from "react"+import { motion } from "motion/react"++import { cn } from "@/lib/utils"/*** DotPattern Component Props@@ -18,16 +19,16 @@ import React, { useEffect, useId, useRef, useState } from "react";* @param {boolean} [glow=false] - Whether dots should have a glowing animation effect*/interface DotPatternProps extends React.SVGProps<SVGSVGElement> {- width?: number;- height?: number;- x?: number;- y?: number;- cx?: number;- cy?: number;- cr?: number;- className?: string;- glow?: boolean;- [key: string]: unknown;+ width?: number+ height?: number+ x?: number+ y?: number+ cx?: number+ cy?: number+ cr?: number+ className?: string+ glow?: boolean+ [key: string]: unknown}/**@@ -72,22 +73,22 @@ export function DotPattern({glow = false,...props}: DotPatternProps) {- const id = useId();- const containerRef = useRef<SVGSVGElement>(null);- const [dimensions, setDimensions] = useState({ width: 0, height: 0 });+ const id = useId()+ const containerRef = useRef<SVGSVGElement>(null)+ const [dimensions, setDimensions] = useState({ width: 0, height: 0 })useEffect(() => {const updateDimensions = () => {if (containerRef.current) {- const { width, height } = containerRef.current.getBoundingClientRect();- setDimensions({ width, height });+ const { width, height } = containerRef.current.getBoundingClientRect()+ setDimensions({ width, height })}- };+ }- updateDimensions();- window.addEventListener("resize", updateDimensions);- return () => window.removeEventListener("resize", updateDimensions);- }, []);+ updateDimensions()+ window.addEventListener("resize", updateDimensions)+ return () => window.removeEventListener("resize", updateDimensions)+ }, [])const dots = Array.from({@@ -96,16 +97,16 @@ export function DotPattern({Math.ceil(dimensions.height / height),},(_, i) => {- const col = i % Math.ceil(dimensions.width / width);- const row = Math.floor(i / Math.ceil(dimensions.width / width));+ const col = i % Math.ceil(dimensions.width / width)+ const row = Math.floor(i / Math.ceil(dimensions.width / width))return {x: col * width + cx,y: row * height + cy,delay: Math.random() * 5,duration: Math.random() * 3 + 2,- };- },- );+ }+ }+ )return (<svg@@ -113,7 +114,7 @@ export function DotPattern({aria-hidden="true"className={cn("pointer-events-none absolute inset-0 h-full w-full text-neutral-400/80",- className,+ className)}{...props}>@@ -153,5 +154,5 @@ export function DotPattern({/>))}</svg>- );+ )}diff --git a/apps/www/registry/magicui/file-tree.tsx b/apps/www/registry/magicui/file-tree.tsxindex 4bff8963..87d62a63 100644--- a/apps/www/registry/magicui/file-tree.tsx+++ b/apps/www/registry/magicui/file-tree.tsx@@ -1,7 +1,5 @@-"use client";+"use client"-import * as AccordionPrimitive from "@radix-ui/react-accordion";-import { FileIcon, FolderIcon, FolderOpenIcon } from "lucide-react";import React, {createContext,forwardRef,@@ -9,53 +7,55 @@ import React, {useContext,useEffect,useState,-} from "react";+} from "react"+import * as AccordionPrimitive from "@radix-ui/react-accordion"+import { FileIcon, FolderIcon, FolderOpenIcon } from "lucide-react"-import { Button } from "@/components/ui/button";-import { ScrollArea } from "@/components/ui/scroll-area";-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"+import { Button } from "@/components/ui/button"+import { ScrollArea } from "@/components/ui/scroll-area"type TreeViewElement = {- id: string;- name: string;- isSelectable?: boolean;- children?: TreeViewElement[];-};+ id: string+ name: string+ isSelectable?: boolean+ children?: TreeViewElement[]+}type TreeContextProps = {- selectedId: string | undefined;- expandedItems: string[] | undefined;- indicator: boolean;- handleExpand: (id: string) => void;- selectItem: (id: string) => void;- setExpandedItems?: React.Dispatch<React.SetStateAction<string[] | undefined>>;- openIcon?: React.ReactNode;- closeIcon?: React.ReactNode;- direction: "rtl" | "ltr";-};--const TreeContext = createContext<TreeContextProps | null>(null);+ selectedId: string | undefined+ expandedItems: string[] | undefined+ indicator: boolean+ handleExpand: (id: string) => void+ selectItem: (id: string) => void+ setExpandedItems?: React.Dispatch<React.SetStateAction<string[] | undefined>>+ openIcon?: React.ReactNode+ closeIcon?: React.ReactNode+ direction: "rtl" | "ltr"+}++const TreeContext = createContext<TreeContextProps | null>(null)const useTree = () => {- const context = useContext(TreeContext);+ const context = useContext(TreeContext)if (!context) {- throw new Error("useTree must be used within a TreeProvider");+ throw new Error("useTree must be used within a TreeProvider")}- return context;-};+ return context+}interface TreeViewComponentProps extends React.HTMLAttributes<HTMLDivElement> {}-type Direction = "rtl" | "ltr" | undefined;+type Direction = "rtl" | "ltr" | undefinedtype TreeViewProps = {- initialSelectedId?: string;- indicator?: boolean;- elements?: TreeViewElement[];- initialExpandedItems?: string[];- openIcon?: React.ReactNode;- closeIcon?: React.ReactNode;-} & TreeViewComponentProps;+ initialSelectedId?: string+ indicator?: boolean+ elements?: TreeViewElement[]+ initialExpandedItems?: string[]+ openIcon?: React.ReactNode+ closeIcon?: React.ReactNode+} & TreeViewComponentPropsconst Tree = forwardRef<HTMLDivElement, TreeViewProps>((@@ -71,47 +71,47 @@ const Tree = forwardRef<HTMLDivElement, TreeViewProps>(dir,...props},- ref,+ ref) => {const [selectedId, setSelectedId] = useState<string | undefined>(- initialSelectedId,- );+ initialSelectedId+ )const [expandedItems, setExpandedItems] = useState<string[] | undefined>(- initialExpandedItems,- );+ initialExpandedItems+ )const selectItem = useCallback((id: string) => {- setSelectedId(id);- }, []);+ setSelectedId(id)+ }, [])const handleExpand = useCallback((id: string) => {setExpandedItems((prev) => {if (prev?.includes(id)) {- return prev.filter((item) => item !== id);+ return prev.filter((item) => item !== id)}- return [...(prev ?? []), id];- });- }, []);+ return [...(prev ?? []), id]+ })+ }, [])const expandSpecificTargetedElements = useCallback((elements?: TreeViewElement[], selectId?: string) => {- if (!elements || !selectId) return;+ if (!elements || !selectId) returnconst findParent = (currentElement: TreeViewElement,- currentPath: string[] = [],+ currentPath: string[] = []) => {- const isSelectable = currentElement.isSelectable ?? true;- const newPath = [...currentPath, currentElement.id];+ const isSelectable = currentElement.isSelectable ?? true+ const newPath = [...currentPath, currentElement.id]if (currentElement.id === selectId) {if (isSelectable) {- setExpandedItems((prev) => [...(prev ?? []), ...newPath]);+ setExpandedItems((prev) => [...(prev ?? []), ...newPath])} else {if (newPath.includes(currentElement.id)) {- newPath.pop();- setExpandedItems((prev) => [...(prev ?? []), ...newPath]);+ newPath.pop()+ setExpandedItems((prev) => [...(prev ?? []), ...newPath])}}- return;+ return}if (isSelectable &&@@ -119,24 +119,24 @@ const Tree = forwardRef<HTMLDivElement, TreeViewProps>(currentElement.children.length > 0) {currentElement.children.forEach((child) => {- findParent(child, newPath);- });+ findParent(child, newPath)+ })}- };+ }elements.forEach((element) => {- findParent(element);- });+ findParent(element)+ })},- [],- );+ []+ )useEffect(() => {if (initialSelectedId) {- expandSpecificTargetedElements(elements, initialSelectedId);+ expandSpecificTargetedElements(elements, initialSelectedId)}- }, [initialSelectedId, elements]);+ }, [initialSelectedId, elements])- const direction = dir === "rtl" ? "rtl" : "ltr";+ const direction = dir === "rtl" ? "rtl" : "ltr"return (<TreeContext.Provider@@ -174,42 +174,42 @@ const Tree = forwardRef<HTMLDivElement, TreeViewProps>(</ScrollArea></div></TreeContext.Provider>- );- },-);+ )+ }+)-Tree.displayName = "Tree";+Tree.displayName = "Tree"const TreeIndicator = forwardRef<HTMLDivElement,React.HTMLAttributes<HTMLDivElement>>(({ className, ...props }, ref) => {- const { direction } = useTree();+ const { direction } = useTree()return (<divdir={direction}ref={ref}className={cn(- "absolute left-1.5 h-full w-px rounded-md bg-muted py-3 duration-300 ease-in-out hover:bg-slate-300 rtl:right-1.5",- className,+ "bg-muted absolute left-1.5 h-full w-px rounded-md py-3 duration-300 ease-in-out hover:bg-slate-300 rtl:right-1.5",+ className)}{...props}/>- );-});+ )+})-TreeIndicator.displayName = "TreeIndicator";+TreeIndicator.displayName = "TreeIndicator"interface FolderComponentPropsextends React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item> {}type FolderProps = {- expandedItems?: string[];- element: string;- isSelectable?: boolean;- isSelect?: boolean;-} & FolderComponentProps;+ expandedItems?: string[]+ element: string+ isSelectable?: boolean+ isSelect?: boolean+} & FolderComponentPropsconst Folder = forwardRef<HTMLDivElement,@@ -225,7 +225,7 @@ const Folder = forwardRef<children,...props},- ref,+ ref) => {const {direction,@@ -235,7 +235,7 @@ const Folder = forwardRef<setExpandedItems,openIcon,closeIcon,- } = useTree();+ } = useTree()return (<AccordionPrimitive.Item@@ -251,7 +251,7 @@ const Folder = forwardRef<"bg-muted rounded-md": isSelect && isSelectable,"cursor-pointer": isSelectable,"cursor-not-allowed opacity-50": !isSelectable,- },+ })}disabled={!isSelectable}onClick={() => handleExpand(value)}@@ -261,36 +261,36 @@ const Folder = forwardRef<: (closeIcon ?? <FolderIcon className="size-4" />)}<span>{element}</span></AccordionPrimitive.Trigger>- <AccordionPrimitive.Content className="relative h-full overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down">+ <AccordionPrimitive.Content className="data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down relative h-full overflow-hidden text-sm">{element && indicator && <TreeIndicator aria-hidden="true" />}<AccordionPrimitive.Rootdir={direction}type="multiple"- className="ml-5 flex flex-col gap-1 py-1 rtl:mr-5 "+ className="ml-5 flex flex-col gap-1 py-1 rtl:mr-5"defaultValue={expandedItems}value={expandedItems}onValueChange={(value) => {- setExpandedItems?.((prev) => [...(prev ?? []), value[0]]);+ setExpandedItems?.((prev) => [...(prev ?? []), value[0]])}}>{children}</AccordionPrimitive.Root></AccordionPrimitive.Content></AccordionPrimitive.Item>- );- },-);+ )+ }+)-Folder.displayName = "Folder";+Folder.displayName = "Folder"const File = forwardRef<HTMLButtonElement,{- value: string;- handleSelect?: (id: string) => void;- isSelectable?: boolean;- isSelect?: boolean;- fileIcon?: React.ReactNode;+ value: string+ handleSelect?: (id: string) => void+ isSelectable?: boolean+ isSelect?: boolean+ fileIcon?: React.ReactNode} & React.ButtonHTMLAttributes<HTMLButtonElement>>((@@ -304,23 +304,23 @@ const File = forwardRef<children,...props},- ref,+ ref) => {- const { direction, selectedId, selectItem } = useTree();- const isSelected = isSelect ?? selectedId === value;+ const { direction, selectedId, selectItem } = useTree()+ const isSelected = isSelect ?? selectedId === valuereturn (<buttonref={ref}type="button"disabled={!isSelectable}className={cn(- "flex w-fit items-center gap-1 rounded-md pr-1 text-sm duration-200 ease-in-out rtl:pl-1 rtl:pr-0",+ "flex w-fit items-center gap-1 rounded-md pr-1 text-sm duration-200 ease-in-out rtl:pr-0 rtl:pl-1",{"bg-muted": isSelected && isSelectable,},isSelectable ? "cursor-pointer" : "cursor-not-allowed opacity-50",direction === "rtl" ? "rtl" : "ltr",- className,+ className)}onClick={() => selectItem(value)}{...props}@@ -328,48 +328,48 @@ const File = forwardRef<{fileIcon ?? <FileIcon className="size-4" />}{children}</button>- );- },-);+ )+ }+)-File.displayName = "File";+File.displayName = "File"const CollapseButton = forwardRef<HTMLButtonElement,{- elements: TreeViewElement[];- expandAll?: boolean;+ elements: TreeViewElement[]+ expandAll?: boolean} & React.HTMLAttributes<HTMLButtonElement>>(({ className, elements, expandAll = false, children, ...props }, ref) => {- const { expandedItems, setExpandedItems } = useTree();+ const { expandedItems, setExpandedItems } = useTree()const expendAllTree = useCallback((elements: TreeViewElement[]) => {const expandTree = (element: TreeViewElement) => {- const isSelectable = element.isSelectable ?? true;+ const isSelectable = element.isSelectable ?? trueif (isSelectable && element.children && element.children.length > 0) {- setExpandedItems?.((prev) => [...(prev ?? []), element.id]);- element.children.forEach(expandTree);+ setExpandedItems?.((prev) => [...(prev ?? []), element.id])+ element.children.forEach(expandTree)}- };+ }- elements.forEach(expandTree);- }, []);+ elements.forEach(expandTree)+ }, [])const closeAll = useCallback(() => {- setExpandedItems?.([]);- }, []);+ setExpandedItems?.([])+ }, [])useEffect(() => {- console.log(expandAll);+ console.log(expandAll)if (expandAll) {- expendAllTree(elements);+ expendAllTree(elements)}- }, [expandAll]);+ }, [expandAll])return (<Buttonvariant={"ghost"}- className="absolute bottom-1 right-2 h-8 w-fit p-1"+ className="absolute right-2 bottom-1 h-8 w-fit p-1"onClick={expandedItems && expandedItems.length > 0? closeAll@@ -381,9 +381,9 @@ const CollapseButton = forwardRef<{children}<span className="sr-only">Toggle</span></Button>- );-});+ )+})-CollapseButton.displayName = "CollapseButton";+CollapseButton.displayName = "CollapseButton"-export { CollapseButton, File, Folder, Tree, type TreeViewElement };+export { CollapseButton, File, Folder, Tree, type TreeViewElement }diff --git a/apps/www/registry/magicui/flickering-grid.tsx b/apps/www/registry/magicui/flickering-grid.tsxindex f303d4d4..73e35ee6 100644--- a/apps/www/registry/magicui/flickering-grid.tsx+++ b/apps/www/registry/magicui/flickering-grid.tsx@@ -1,23 +1,18 @@-"use client";+"use client"-import { cn } from "@/lib/utils";-import React, {- useCallback,- useEffect,- useMemo,- useRef,- useState,-} from "react";+import React, { useCallback, useEffect, useMemo, useRef, useState } from "react"++import { cn } from "@/lib/utils"interface FlickeringGridProps extends React.HTMLAttributes<HTMLDivElement> {- squareSize?: number;- gridGap?: number;- flickerChance?: number;- color?: string;- width?: number;- height?: number;- className?: string;- maxOpacity?: number;+ squareSize?: number+ gridGap?: number+ flickerChance?: number+ color?: string+ width?: number+ height?: number+ className?: string+ maxOpacity?: number}export const FlickeringGrid: React.FC<FlickeringGridProps> = ({@@ -31,58 +26,58 @@ export const FlickeringGrid: React.FC<FlickeringGridProps> = ({maxOpacity = 0.3,...props}) => {- const canvasRef = useRef<HTMLCanvasElement>(null);- const containerRef = useRef<HTMLDivElement>(null);- const [isInView, setIsInView] = useState(false);- const [canvasSize, setCanvasSize] = useState({ width: 0, height: 0 });+ const canvasRef = useRef<HTMLCanvasElement>(null)+ const containerRef = useRef<HTMLDivElement>(null)+ const [isInView, setIsInView] = useState(false)+ const [canvasSize, setCanvasSize] = useState({ width: 0, height: 0 })const memoizedColor = useMemo(() => {const toRGBA = (color: string) => {if (typeof window === "undefined") {- return `rgba(0, 0, 0,`;+ return `rgba(0, 0, 0,`}- const canvas = document.createElement("canvas");- canvas.width = canvas.height = 1;- const ctx = canvas.getContext("2d");- if (!ctx) return "rgba(255, 0, 0,";- ctx.fillStyle = color;- ctx.fillRect(0, 0, 1, 1);- const [r, g, b] = Array.from(ctx.getImageData(0, 0, 1, 1).data);- return `rgba(${r}, ${g}, ${b},`;- };- return toRGBA(color);- }, [color]);+ const canvas = document.createElement("canvas")+ canvas.width = canvas.height = 1+ const ctx = canvas.getContext("2d")+ if (!ctx) return "rgba(255, 0, 0,"+ ctx.fillStyle = color+ ctx.fillRect(0, 0, 1, 1)+ const [r, g, b] = Array.from(ctx.getImageData(0, 0, 1, 1).data)+ return `rgba(${r}, ${g}, ${b},`+ }+ return toRGBA(color)+ }, [color])const setupCanvas = useCallback((canvas: HTMLCanvasElement, width: number, height: number) => {- const dpr = window.devicePixelRatio || 1;- canvas.width = width * dpr;- canvas.height = height * dpr;- canvas.style.width = `${width}px`;- canvas.style.height = `${height}px`;- const cols = Math.floor(width / (squareSize + gridGap));- const rows = Math.floor(height / (squareSize + gridGap));-- const squares = new Float32Array(cols * rows);+ const dpr = window.devicePixelRatio || 1+ canvas.width = width * dpr+ canvas.height = height * dpr+ canvas.style.width = `${width}px`+ canvas.style.height = `${height}px`+ const cols = Math.floor(width / (squareSize + gridGap))+ const rows = Math.floor(height / (squareSize + gridGap))++ const squares = new Float32Array(cols * rows)for (let i = 0; i < squares.length; i++) {- squares[i] = Math.random() * maxOpacity;+ squares[i] = Math.random() * maxOpacity}- return { cols, rows, squares, dpr };+ return { cols, rows, squares, dpr }},- [squareSize, gridGap, maxOpacity],- );+ [squareSize, gridGap, maxOpacity]+ )const updateSquares = useCallback((squares: Float32Array, deltaTime: number) => {for (let i = 0; i < squares.length; i++) {if (Math.random() < flickerChance * deltaTime) {- squares[i] = Math.random() * maxOpacity;+ squares[i] = Math.random() * maxOpacity}}},- [flickerChance, maxOpacity],- );+ [flickerChance, maxOpacity]+ )const drawGrid = useCallback((@@ -92,56 +87,56 @@ export const FlickeringGrid: React.FC<FlickeringGridProps> = ({cols: number,rows: number,squares: Float32Array,- dpr: number,+ dpr: number) => {- ctx.clearRect(0, 0, width, height);- ctx.fillStyle = "transparent";- ctx.fillRect(0, 0, width, height);+ ctx.clearRect(0, 0, width, height)+ ctx.fillStyle = "transparent"+ ctx.fillRect(0, 0, width, height)for (let i = 0; i < cols; i++) {for (let j = 0; j < rows; j++) {- const opacity = squares[i * rows + j];- ctx.fillStyle = `${memoizedColor}${opacity})`;+ const opacity = squares[i * rows + j]+ ctx.fillStyle = `${memoizedColor}${opacity})`ctx.fillRect(i * (squareSize + gridGap) * dpr,j * (squareSize + gridGap) * dpr,squareSize * dpr,- squareSize * dpr,- );+ squareSize * dpr+ )}}},- [memoizedColor, squareSize, gridGap],- );+ [memoizedColor, squareSize, gridGap]+ )useEffect(() => {- const canvas = canvasRef.current;- const container = containerRef.current;- if (!canvas || !container) return;+ const canvas = canvasRef.current+ const container = containerRef.current+ if (!canvas || !container) return- const ctx = canvas.getContext("2d");- if (!ctx) return;+ const ctx = canvas.getContext("2d")+ if (!ctx) return- let animationFrameId: number;- let gridParams: ReturnType<typeof setupCanvas>;+ let animationFrameId: number+ let gridParams: ReturnType<typeof setupCanvas>const updateCanvasSize = () => {- const newWidth = width || container.clientWidth;- const newHeight = height || container.clientHeight;- setCanvasSize({ width: newWidth, height: newHeight });- gridParams = setupCanvas(canvas, newWidth, newHeight);- };+ const newWidth = width || container.clientWidth+ const newHeight = height || container.clientHeight+ setCanvasSize({ width: newWidth, height: newHeight })+ gridParams = setupCanvas(canvas, newWidth, newHeight)+ }- updateCanvasSize();+ updateCanvasSize()- let lastTime = 0;+ let lastTime = 0const animate = (time: number) => {- if (!isInView) return;+ if (!isInView) return- const deltaTime = (time - lastTime) / 1000;- lastTime = time;+ const deltaTime = (time - lastTime) / 1000+ lastTime = time- updateSquares(gridParams.squares, deltaTime);+ updateSquares(gridParams.squares, deltaTime)drawGrid(ctx,canvas.width,@@ -149,36 +144,36 @@ export const FlickeringGrid: React.FC<FlickeringGridProps> = ({gridParams.cols,gridParams.rows,gridParams.squares,- gridParams.dpr,- );- animationFrameId = requestAnimationFrame(animate);- };+ gridParams.dpr+ )+ animationFrameId = requestAnimationFrame(animate)+ }const resizeObserver = new ResizeObserver(() => {- updateCanvasSize();- });+ updateCanvasSize()+ })- resizeObserver.observe(container);+ resizeObserver.observe(container)const intersectionObserver = new IntersectionObserver(([entry]) => {- setIsInView(entry.isIntersecting);+ setIsInView(entry.isIntersecting)},- { threshold: 0 },- );+ { threshold: 0 }+ )- intersectionObserver.observe(canvas);+ intersectionObserver.observe(canvas)if (isInView) {- animationFrameId = requestAnimationFrame(animate);+ animationFrameId = requestAnimationFrame(animate)}return () => {- cancelAnimationFrame(animationFrameId);- resizeObserver.disconnect();- intersectionObserver.disconnect();- };- }, [setupCanvas, updateSquares, drawGrid, width, height, isInView]);+ cancelAnimationFrame(animationFrameId)+ resizeObserver.disconnect()+ intersectionObserver.disconnect()+ }+ }, [setupCanvas, updateSquares, drawGrid, width, height, isInView])return (<div@@ -195,5 +190,5 @@ export const FlickeringGrid: React.FC<FlickeringGridProps> = ({}}/></div>- );-};+ )+}diff --git a/apps/www/registry/magicui/flip-text.tsx b/apps/www/registry/magicui/flip-text.tsxindex d701c73d..dd2a5449 100644--- a/apps/www/registry/magicui/flip-text.tsx+++ b/apps/www/registry/magicui/flip-text.tsx@@ -1,32 +1,31 @@-"use client";+"use client"-import { AnimatePresence, motion, Variants, MotionProps } from "motion/react";+import React, { ElementType } from "react"+import { AnimatePresence, motion, MotionProps, Variants } from "motion/react"-import { cn } from "@/lib/utils";-import { ElementType } from "react";-import React from "react";+import { cn } from "@/lib/utils"interface FlipTextProps extends MotionProps {/** The duration of the animation */- duration?: number;+ duration?: number/** The delay between each character */- delayMultiple?: number;+ delayMultiple?: number/** The variants of the animation */- framerProps?: Variants;+ framerProps?: Variants/** The class name of the component */- className?: string;+ className?: string/** The element type of the component */- as?: ElementType;+ as?: ElementType/** The children of the component */- children: React.ReactNode;+ children: React.ReactNode/** The variants of the animation */- variants?: Variants;+ variants?: Variants}const defaultVariants: Variants = {hidden: { rotateX: -90, opacity: 0 },visible: { rotateX: 0, opacity: 1 },-};+}export function FlipText({children,@@ -38,8 +37,8 @@ export function FlipText({variants,...props}: FlipTextProps) {- const MotionComponent = motion.create(Component);- const characters = React.Children.toArray(children).join("").split("");+ const MotionComponent = motion.create(Component)+ const characters = React.Children.toArray(children).join("").split("")return (<div className="flex justify-center space-x-2">@@ -60,5 +59,5 @@ export function FlipText({))}</AnimatePresence></div>- );+ )}diff --git a/apps/www/registry/magicui/globe.tsx b/apps/www/registry/magicui/globe.tsxindex 4cd6e032..fa1e30d6 100644--- a/apps/www/registry/magicui/globe.tsx+++ b/apps/www/registry/magicui/globe.tsx@@ -1,12 +1,12 @@-"use client";+"use client"-import createGlobe, { COBEOptions } from "cobe";-import { useMotionValue, useSpring } from "motion/react";-import { useEffect, useRef } from "react";+import { useEffect, useRef } from "react"+import createGlobe, { COBEOptions } from "cobe"+import { useMotionValue, useSpring } from "motion/react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"-const MOVEMENT_DAMPING = 1400;+const MOVEMENT_DAMPING = 1400const GLOBE_CONFIG: COBEOptions = {width: 800,@@ -34,87 +34,87 @@ const GLOBE_CONFIG: COBEOptions = {{ location: [34.6937, 135.5022], size: 0.05 },{ location: [41.0082, 28.9784], size: 0.06 },],-};+}export function Globe({className,config = GLOBE_CONFIG,}: {- className?: string;- config?: COBEOptions;+ className?: string+ config?: COBEOptions}) {- let phi = 0;- let width = 0;- const canvasRef = useRef<HTMLCanvasElement>(null);- const pointerInteracting = useRef<number | null>(null);- const pointerInteractionMovement = useRef(0);+ let phi = 0+ let width = 0+ const canvasRef = useRef<HTMLCanvasElement>(null)+ const pointerInteracting = useRef<number | null>(null)+ const pointerInteractionMovement = useRef(0)- const r = useMotionValue(0);+ const r = useMotionValue(0)const rs = useSpring(r, {mass: 1,damping: 30,stiffness: 100,- });+ })const updatePointerInteraction = (value: number | null) => {- pointerInteracting.current = value;+ pointerInteracting.current = valueif (canvasRef.current) {- canvasRef.current.style.cursor = value !== null ? "grabbing" : "grab";+ canvasRef.current.style.cursor = value !== null ? "grabbing" : "grab"}- };+ }const updateMovement = (clientX: number) => {if (pointerInteracting.current !== null) {- const delta = clientX - pointerInteracting.current;- pointerInteractionMovement.current = delta;- r.set(r.get() + delta / MOVEMENT_DAMPING);+ const delta = clientX - pointerInteracting.current+ pointerInteractionMovement.current = delta+ r.set(r.get() + delta / MOVEMENT_DAMPING)}- };+ }useEffect(() => {const onResize = () => {if (canvasRef.current) {- width = canvasRef.current.offsetWidth;+ width = canvasRef.current.offsetWidth}- };+ }- window.addEventListener("resize", onResize);- onResize();+ window.addEventListener("resize", onResize)+ onResize()const globe = createGlobe(canvasRef.current!, {...config,width: width * 2,height: width * 2,onRender: (state) => {- if (!pointerInteracting.current) phi += 0.005;- state.phi = phi + rs.get();- state.width = width * 2;- state.height = width * 2;+ if (!pointerInteracting.current) phi += 0.005+ state.phi = phi + rs.get()+ state.width = width * 2+ state.height = width * 2},- });+ })- setTimeout(() => (canvasRef.current!.style.opacity = "1"), 0);+ setTimeout(() => (canvasRef.current!.style.opacity = "1"), 0)return () => {- globe.destroy();- window.removeEventListener("resize", onResize);- };- }, [rs, config]);+ globe.destroy()+ window.removeEventListener("resize", onResize)+ }+ }, [rs, config])return (<divclassName={cn("absolute inset-0 mx-auto aspect-[1/1] w-full max-w-[600px]",- className,+ className)}><canvasclassName={cn(- "size-full opacity-0 transition-opacity duration-500 [contain:layout_paint_size]",+ "size-full opacity-0 transition-opacity duration-500 [contain:layout_paint_size]")}ref={canvasRef}onPointerDown={(e) => {- pointerInteracting.current = e.clientX;- updatePointerInteraction(e.clientX);+ pointerInteracting.current = e.clientX+ updatePointerInteraction(e.clientX)}}onPointerUp={() => updatePointerInteraction(null)}onPointerOut={() => updatePointerInteraction(null)}@@ -124,5 +124,5 @@ export function Globe({}/></div>- );+ )}diff --git a/apps/www/registry/magicui/grid-beams.tsx b/apps/www/registry/magicui/grid-beams.tsxindex cac99f27..a1adcc80 100644--- a/apps/www/registry/magicui/grid-beams.tsx+++ b/apps/www/registry/magicui/grid-beams.tsx@@ -1,19 +1,20 @@-"use client";+"use client"-import { motion } from "motion/react";-import React, { HTMLAttributes, useMemo } from "react";-import { cn } from "@/lib/utils";+import React, { HTMLAttributes, useMemo } from "react"+import { motion } from "motion/react"++import { cn } from "@/lib/utils"const createGridMask = (start: number, end: number): string => {- const mid = (start + end) / 2;- return `linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.05) ${start}%, rgba(0,0,0,0.2) ${mid}%, rgba(0,0,0,0.6) ${end - 20}%, rgba(0,0,0,1) ${end}%)`;-};+ const mid = (start + end) / 2+ return `linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.05) ${start}%, rgba(0,0,0,0.2) ${mid}%, rgba(0,0,0,0.6) ${end - 20}%, rgba(0,0,0,1) ${end}%)`+}const generateRayConfig = (index: number, total: number) => {- const progress = index / Math.max(total - 1, 1);- const leftPercent = 2 + progress * 96;- const rotation = 28 - progress * 56;- const variation = (index * 0.618) % 1;+ const progress = index / Math.max(total - 1, 1)+ const leftPercent = 2 + progress * 96+ const rotation = 28 - progress * 56+ const variation = (index * 0.618) % 1return {left: `${leftPercent}%`,@@ -25,35 +26,35 @@ const generateRayConfig = (index: number, total: number) => {swayDelay: -variation * 10,blur: 24 + variation * 9,strongSway: index % 2 === 0,- };-};+ }+}interface GridBeamsProps extends HTMLAttributes<HTMLDivElement> {- children: React.ReactNode;- gridSize?: number;- gridColor?: string;- rayCount?: number;- rayOpacity?: number;- raySpeed?: number;- rayLength?: string;- gridFadeStart?: number;- gridFadeEnd?: number;- backgroundColor?: string;+ children: React.ReactNode+ gridSize?: number+ gridColor?: string+ rayCount?: number+ rayOpacity?: number+ raySpeed?: number+ rayLength?: string+ gridFadeStart?: number+ gridFadeEnd?: number+ backgroundColor?: string}interface LightRayProps {- left: string;- rotation: number;- width: number;- delay: number;- duration: number;- swayDuration: number;- swayDelay: number;- blurAmount: number;- isStrongerSway: boolean;- opacity: number;- speed: number;- length: string;+ left: string+ rotation: number+ width: number+ delay: number+ duration: number+ swayDuration: number+ swayDelay: number+ blurAmount: number+ isStrongerSway: boolean+ opacity: number+ speed: number+ length: string}const LightRay = React.memo<LightRayProps>(@@ -73,7 +74,7 @@ const LightRay = React.memo<LightRayProps>(}) => {return (<motion.div- className="absolute pointer-events-none -top-[5%] left-[var(--ray-left)] w-[var(--ray-width)] h-[var(--ray-height)] origin-top mix-blend-screen bg-[linear-gradient(to_bottom,rgba(200,220,255,var(--ray-opacity)),rgba(200,220,255,0))] blur-[var(--ray-blur)] translate-x-[-50%] rotate-[var(--ray-rotation)]"+ className="pointer-events-none absolute -top-[5%] left-[var(--ray-left)] h-[var(--ray-height)] w-[var(--ray-width)] origin-top translate-x-[-50%] rotate-[var(--ray-rotation)] bg-[linear-gradient(to_bottom,rgba(200,220,255,var(--ray-opacity)),rgba(200,220,255,0))] mix-blend-screen blur-[var(--ray-blur)]"style={{"--ray-left": left,@@ -107,9 +108,9 @@ const LightRay = React.memo<LightRayProps>(},}}/>- );- },-);+ )+ }+)export const GridBeams: React.FC<GridBeamsProps> = ({children,@@ -127,20 +128,20 @@ export const GridBeams: React.FC<GridBeamsProps> = ({}) => {const rayConfigs = useMemo(() => {return Array.from({ length: rayCount }, (_, i) =>- generateRayConfig(i, rayCount),- );- }, [rayCount]);+ generateRayConfig(i, rayCount)+ )+ }, [rayCount])const gridMask = useMemo(() => createGridMask(gridFadeStart, gridFadeEnd),- [gridFadeStart, gridFadeEnd],- );+ [gridFadeStart, gridFadeEnd]+ )return (<divclassName={cn("relative overflow-hidden bg-[var(--bg-color)] bg-[radial-gradient(ellipse_at_50%_-20%,#1a2c5a,transparent_70%)]",- className,+ className)}style={{@@ -150,7 +151,7 @@ export const GridBeams: React.FC<GridBeamsProps> = ({{...props}><div- className="absolute inset-0 pointer-events-none bg-[linear-gradient(var(--grid-color)_1px,transparent_1px),linear-gradient(90deg,var(--grid-color)_1px,transparent_1px)] bg-size-[var(--grid-size)_var(--grid-size)] [mask-image:var(--grid-mask)] [webkit-mask-image:var(--grid-mask)]"+ className="pointer-events-none absolute inset-0 bg-[linear-gradient(var(--grid-color)_1px,transparent_1px),linear-gradient(90deg,var(--grid-color)_1px,transparent_1px)] [mask-image:var(--grid-mask)] bg-size-[var(--grid-size)_var(--grid-size)] [webkit-mask-image:var(--grid-mask)]"style={{"--grid-color": gridColor,@@ -159,7 +160,7 @@ export const GridBeams: React.FC<GridBeamsProps> = ({} as React.CSSProperties}/>- <div className="absolute inset-0 overflow-hidden pointer-events-none">+ <div className="pointer-events-none absolute inset-0 overflow-hidden">{rayConfigs.map((config, index) => (<LightRaykey={index}@@ -181,5 +182,5 @@ export const GridBeams: React.FC<GridBeamsProps> = ({<div className="relative z-10">{children}</div></div>- );-};+ )+}diff --git a/apps/www/registry/magicui/grid-pattern.tsx b/apps/www/registry/magicui/grid-pattern.tsxindex 6840f45f..a6d18398 100644--- a/apps/www/registry/magicui/grid-pattern.tsx+++ b/apps/www/registry/magicui/grid-pattern.tsx@@ -1,16 +1,16 @@-import { useId } from "react";+import { useId } from "react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"interface GridPatternProps extends React.SVGProps<SVGSVGElement> {- width?: number;- height?: number;- x?: number;- y?: number;- squares?: Array<[x: number, y: number]>;- strokeDasharray?: string;- className?: string;- [key: string]: unknown;+ width?: number+ height?: number+ x?: number+ y?: number+ squares?: Array<[x: number, y: number]>+ strokeDasharray?: string+ className?: string+ [key: string]: unknown}export function GridPattern({@@ -23,14 +23,14 @@ export function GridPattern({className,...props}: GridPatternProps) {- const id = useId();+ const id = useId()return (<svgaria-hidden="true"className={cn("pointer-events-none absolute inset-0 h-full w-full fill-gray-400/30 stroke-gray-400/30",- className,+ className)}{...props}>@@ -66,5 +66,5 @@ export function GridPattern({</svg>)}</svg>- );+ )}diff --git a/apps/www/registry/magicui/hero-video-dialog.tsx b/apps/www/registry/magicui/hero-video-dialog.tsxindex c2baef91..0daa26a9 100644--- a/apps/www/registry/magicui/hero-video-dialog.tsx+++ b/apps/www/registry/magicui/hero-video-dialog.tsx@@ -1,11 +1,11 @@/* eslint-disable @next/next/no-img-element */-"use client";+"use client"-import { useState } from "react";-import { AnimatePresence, motion } from "motion/react";-import { Play, XIcon } from "lucide-react";+import { useState } from "react"+import { Play, XIcon } from "lucide-react"+import { AnimatePresence, motion } from "motion/react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"type AnimationStyle =| "from-bottom"@@ -15,14 +15,14 @@ type AnimationStyle =| "from-right"| "fade"| "top-in-bottom-out"- | "left-in-right-out";+ | "left-in-right-out"interface HeroVideoProps {- animationStyle?: AnimationStyle;- videoSrc: string;- thumbnailSrc: string;- thumbnailAlt?: string;- className?: string;+ animationStyle?: AnimationStyle+ videoSrc: string+ thumbnailSrc: string+ thumbnailAlt?: string+ className?: string}const animationVariants = {@@ -66,7 +66,7 @@ const animationVariants = {animate: { x: 0, opacity: 1 },exit: { x: "100%", opacity: 0 },},-};+}export function HeroVideoDialog({animationStyle = "from-center",@@ -75,8 +75,8 @@ export function HeroVideoDialog({thumbnailAlt = "Video thumbnail",className,}: HeroVideoProps) {- const [isVideoOpen, setIsVideoOpen] = useState(false);- const selectedAnimation = animationVariants[animationStyle];+ const [isVideoOpen, setIsVideoOpen] = useState(false)+ const selectedAnimation = animationVariants[animationStyle]return (<div className={cn("relative", className)}>@@ -94,9 +94,9 @@ export function HeroVideoDialog({className="w-full rounded-md border shadow-lg transition-all duration-200 ease-out group-hover:brightness-[0.8]"/><div className="absolute inset-0 flex scale-[0.9] items-center justify-center rounded-2xl transition-all duration-200 ease-out group-hover:scale-100">- <div className="flex size-28 items-center justify-center rounded-full bg-primary/10 backdrop-blur-md">+ <div className="bg-primary/10 flex size-28 items-center justify-center rounded-full backdrop-blur-md"><div- className={`relative flex size-20 scale-100 items-center justify-center rounded-full bg-gradient-to-b from-primary/30 to-primary shadow-md transition-all duration-200 ease-out group-hover:scale-[1.2]`}+ className={`from-primary/30 to-primary relative flex size-20 scale-100 items-center justify-center rounded-full bg-gradient-to-b shadow-md transition-all duration-200 ease-out group-hover:scale-[1.2]`}><PlayclassName="size-8 scale-100 fill-white text-white transition-transform duration-200 ease-out group-hover:scale-105"@@ -118,7 +118,7 @@ export function HeroVideoDialog({tabIndex={0}onKeyDown={(e) => {if (e.key === "Escape" || e.key === "Enter" || e.key === " ") {- setIsVideoOpen(false);+ setIsVideoOpen(false)}}}onClick={() => setIsVideoOpen(false)}@@ -147,5 +147,5 @@ export function HeroVideoDialog({)}</AnimatePresence></div>- );+ )}diff --git a/apps/www/registry/magicui/highlighter.tsx b/apps/www/registry/magicui/highlighter.tsxindex aa6a75f2..7ad02365 100644--- a/apps/www/registry/magicui/highlighter.tsx+++ b/apps/www/registry/magicui/highlighter.tsx@@ -1,10 +1,10 @@-"use client";+"use client"-import { useEffect, useRef } from "react";-import { useInView } from "motion/react";-import { annotate } from "rough-notation";-import type React from "react";-import { type RoughAnnotation } from "rough-notation/lib/model";+import { useEffect, useRef } from "react"+import type React from "react"+import { useInView } from "motion/react"+import { annotate } from "rough-notation"+import { type RoughAnnotation } from "rough-notation/lib/model"type AnnotationAction =| "highlight"@@ -13,18 +13,18 @@ type AnnotationAction =| "circle"| "strike-through"| "crossed-off"- | "bracket";+ | "bracket"interface HighlighterProps {- children: React.ReactNode;- action?: AnnotationAction;- color?: string;- strokeWidth?: number;- animationDuration?: number;- iterations?: number;- padding?: number;- multiline?: boolean;- isView?: boolean;+ children: React.ReactNode+ action?: AnnotationAction+ color?: string+ strokeWidth?: number+ animationDuration?: number+ iterations?: number+ padding?: number+ multiline?: boolean+ isView?: boolean}export function Highlighter({@@ -38,22 +38,22 @@ export function Highlighter({multiline = true,isView = false,}: HighlighterProps) {- const elementRef = useRef<HTMLSpanElement>(null);- const annotationRef = useRef<RoughAnnotation | null>(null);+ const elementRef = useRef<HTMLSpanElement>(null)+ const annotationRef = useRef<RoughAnnotation | null>(null)const isInView = useInView(elementRef, {once: true,margin: "-10%",- });+ })// If isView is false, always show. If isView is true, wait for inView- const shouldShow = !isView || isInView;+ const shouldShow = !isView || isInViewuseEffect(() => {- if (!shouldShow) return;+ if (!shouldShow) return- const element = elementRef.current;- if (!element) return;+ const element = elementRef.current+ if (!element) returnconst annotationConfig = {type: action,@@ -63,27 +63,27 @@ export function Highlighter({iterations,padding,multiline,- };+ }- const annotation = annotate(element, annotationConfig);+ const annotation = annotate(element, annotationConfig)- annotationRef.current = annotation;- annotationRef.current.show();+ annotationRef.current = annotation+ annotationRef.current.show()const resizeObserver = new ResizeObserver(() => {- annotation.hide();- annotation.show();- });+ annotation.hide()+ annotation.show()+ })- resizeObserver.observe(element);- resizeObserver.observe(document.body);+ resizeObserver.observe(element)+ resizeObserver.observe(document.body)return () => {if (element) {- annotate(element, { type: action }).remove();- resizeObserver.disconnect();+ annotate(element, { type: action }).remove()+ resizeObserver.disconnect()}- };+ }}, [shouldShow,action,@@ -93,11 +93,11 @@ export function Highlighter({iterations,padding,multiline,- ]);+ ])return (<span ref={elementRef} className="relative inline-block bg-transparent">{children}</span>- );+ )}diff --git a/apps/www/registry/magicui/hyper-text.tsx b/apps/www/registry/magicui/hyper-text.tsxindex 0b4ee73e..fec9d6c2 100644--- a/apps/www/registry/magicui/hyper-text.tsx+++ b/apps/www/registry/magicui/hyper-text.tsx@@ -1,35 +1,36 @@-"use client";+"use client"-import { cn } from "@/lib/utils";-import { AnimatePresence, motion, MotionProps } from "motion/react";-import { useEffect, useRef, useState } from "react";+import { useEffect, useRef, useState } from "react"+import { AnimatePresence, motion, MotionProps } from "motion/react"-type CharacterSet = string[] | readonly string[];+import { cn } from "@/lib/utils"++type CharacterSet = string[] | readonly string[]interface HyperTextProps extends MotionProps {/** The text content to be animated */- children: string;+ children: string/** Optional className for styling */- className?: string;+ className?: string/** Duration of the animation in milliseconds */- duration?: number;+ duration?: number/** Delay before animation starts in milliseconds */- delay?: number;+ delay?: number/** Component to render as - defaults to div */- as?: React.ElementType;+ as?: React.ElementType/** Whether to start animation when element comes into view */- startOnView?: boolean;+ startOnView?: boolean/** Whether to trigger animation on hover */- animateOnHover?: boolean;+ animateOnHover?: boolean/** Custom character set for scramble effect. Defaults to uppercase alphabet */- characterSet?: CharacterSet;+ characterSet?: CharacterSet}const DEFAULT_CHARACTER_SET = Object.freeze(- "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),-) as readonly string[];+ "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("")+) as readonly string[]-const getRandomInt = (max: number): number => Math.floor(Math.random() * max);+const getRandomInt = (max: number): number => Math.floor(Math.random() * max)export function HyperText({children,@@ -44,63 +45,63 @@ export function HyperText({}: HyperTextProps) {const MotionComponent = motion.create(Component, {forwardMotionProps: true,- });+ })const [displayText, setDisplayText] = useState<string[]>(() =>- children.split(""),- );- const [isAnimating, setIsAnimating] = useState(false);- const iterationCount = useRef(0);- const elementRef = useRef<HTMLElement>(null);+ children.split("")+ )+ const [isAnimating, setIsAnimating] = useState(false)+ const iterationCount = useRef(0)+ const elementRef = useRef<HTMLElement>(null)const handleAnimationTrigger = () => {if (animateOnHover && !isAnimating) {- iterationCount.current = 0;- setIsAnimating(true);+ iterationCount.current = 0+ setIsAnimating(true)}- };+ }// Handle animation start based on view or delayuseEffect(() => {if (!startOnView) {const startTimeout = setTimeout(() => {- setIsAnimating(true);- }, delay);- return () => clearTimeout(startTimeout);+ setIsAnimating(true)+ }, delay)+ return () => clearTimeout(startTimeout)}const observer = new IntersectionObserver(([entry]) => {if (entry.isIntersecting) {setTimeout(() => {- setIsAnimating(true);- }, delay);- observer.disconnect();+ setIsAnimating(true)+ }, delay)+ observer.disconnect()}},- { threshold: 0.1, rootMargin: "-30% 0px -30% 0px" },- );+ { threshold: 0.1, rootMargin: "-30% 0px -30% 0px" }+ )if (elementRef.current) {- observer.observe(elementRef.current);+ observer.observe(elementRef.current)}- return () => observer.disconnect();- }, [delay, startOnView]);+ return () => observer.disconnect()+ }, [delay, startOnView])// Handle scramble animationuseEffect(() => {- if (!isAnimating) return;+ if (!isAnimating) return- const maxIterations = children.length;- const startTime = performance.now();- let animationFrameId: number;+ const maxIterations = children.length+ const startTime = performance.now()+ let animationFrameId: numberconst animate = (currentTime: number) => {- const elapsed = currentTime - startTime;- const progress = Math.min(elapsed / duration, 1);+ const elapsed = currentTime - startTime+ const progress = Math.min(elapsed / duration, 1)- iterationCount.current = progress * maxIterations;+ iterationCount.current = progress * maxIterationssetDisplayText((currentText) =>currentText.map((letter, index) =>@@ -108,21 +109,21 @@ export function HyperText({? letter: index <= iterationCount.current? children[index]- : characterSet[getRandomInt(characterSet.length)],- ),- );+ : characterSet[getRandomInt(characterSet.length)]+ )+ )if (progress < 1) {- animationFrameId = requestAnimationFrame(animate);+ animationFrameId = requestAnimationFrame(animate)} else {- setIsAnimating(false);+ setIsAnimating(false)}- };+ }- animationFrameId = requestAnimationFrame(animate);+ animationFrameId = requestAnimationFrame(animate)- return () => cancelAnimationFrame(animationFrameId);- }, [children, duration, isAnimating, characterSet]);+ return () => cancelAnimationFrame(animationFrameId)+ }, [children, duration, isAnimating, characterSet])return (<MotionComponent@@ -142,5 +143,5 @@ export function HyperText({))}</AnimatePresence></MotionComponent>- );+ )}diff --git a/apps/www/registry/magicui/icon-cloud.tsx b/apps/www/registry/magicui/icon-cloud.tsxindex 013e371f..f7e7559b 100644--- a/apps/www/registry/magicui/icon-cloud.tsx+++ b/apps/www/registry/magicui/icon-cloud.tsx@@ -1,116 +1,116 @@-"use client";+"use client"-import React, { useEffect, useRef, useState } from "react";-import { renderToString } from "react-dom/server";+import React, { useEffect, useRef, useState } from "react"+import { renderToString } from "react-dom/server"interface Icon {- x: number;- y: number;- z: number;- scale: number;- opacity: number;- id: number;+ x: number+ y: number+ z: number+ scale: number+ opacity: number+ id: number}interface IconCloudProps {- icons?: React.ReactNode[];- images?: string[];+ icons?: React.ReactNode[]+ images?: string[]}function easeOutCubic(t: number): number {- return 1 - Math.pow(1 - t, 3);+ return 1 - Math.pow(1 - t, 3)}export function IconCloud({ icons, images }: IconCloudProps) {- const canvasRef = useRef<HTMLCanvasElement>(null);- const [iconPositions, setIconPositions] = useState<Icon[]>([]);- const [rotation, setRotation] = useState({ x: 0, y: 0 });- const [isDragging, setIsDragging] = useState(false);- const [lastMousePos, setLastMousePos] = useState({ x: 0, y: 0 });- const [mousePos, setMousePos] = useState({ x: 0, y: 0 });+ const canvasRef = useRef<HTMLCanvasElement>(null)+ const [iconPositions, setIconPositions] = useState<Icon[]>([])+ const [rotation, setRotation] = useState({ x: 0, y: 0 })+ const [isDragging, setIsDragging] = useState(false)+ const [lastMousePos, setLastMousePos] = useState({ x: 0, y: 0 })+ const [mousePos, setMousePos] = useState({ x: 0, y: 0 })const [targetRotation, setTargetRotation] = useState<{- x: number;- y: number;- startX: number;- startY: number;- distance: number;- startTime: number;- duration: number;- } | null>(null);- const animationFrameRef = useRef<number>(0);- const rotationRef = useRef(rotation);- const iconCanvasesRef = useRef<HTMLCanvasElement[]>([]);- const imagesLoadedRef = useRef<boolean[]>([]);+ x: number+ y: number+ startX: number+ startY: number+ distance: number+ startTime: number+ duration: number+ } | null>(null)+ const animationFrameRef = useRef<number>(0)+ const rotationRef = useRef(rotation)+ const iconCanvasesRef = useRef<HTMLCanvasElement[]>([])+ const imagesLoadedRef = useRef<boolean[]>([])// Create icon canvases once when icons/images changeuseEffect(() => {- if (!icons && !images) return;+ if (!icons && !images) return- const items = icons || images || [];- imagesLoadedRef.current = new Array(items.length).fill(false);+ const items = icons || images || []+ imagesLoadedRef.current = new Array(items.length).fill(false)const newIconCanvases = items.map((item, index) => {- const offscreen = document.createElement("canvas");- offscreen.width = 40;- offscreen.height = 40;- const offCtx = offscreen.getContext("2d");+ const offscreen = document.createElement("canvas")+ offscreen.width = 40+ offscreen.height = 40+ const offCtx = offscreen.getContext("2d")if (offCtx) {if (images) {// Handle image URLs directly- const img = new Image();- img.crossOrigin = "anonymous";- img.src = items[index] as string;+ const img = new Image()+ img.crossOrigin = "anonymous"+ img.src = items[index] as stringimg.onload = () => {- offCtx.clearRect(0, 0, offscreen.width, offscreen.height);+ offCtx.clearRect(0, 0, offscreen.width, offscreen.height)// Create circular clipping path- offCtx.beginPath();- offCtx.arc(20, 20, 20, 0, Math.PI * 2);- offCtx.closePath();- offCtx.clip();+ offCtx.beginPath()+ offCtx.arc(20, 20, 20, 0, Math.PI * 2)+ offCtx.closePath()+ offCtx.clip()// Draw the image- offCtx.drawImage(img, 0, 0, 40, 40);+ offCtx.drawImage(img, 0, 0, 40, 40)- imagesLoadedRef.current[index] = true;- };+ imagesLoadedRef.current[index] = true+ }} else {// Handle SVG icons- offCtx.scale(0.4, 0.4);- const svgString = renderToString(item as React.ReactElement);- const img = new Image();- img.src = "data:image/svg+xml;base64," + btoa(svgString);+ offCtx.scale(0.4, 0.4)+ const svgString = renderToString(item as React.ReactElement)+ const img = new Image()+ img.src = "data:image/svg+xml;base64," + btoa(svgString)img.onload = () => {- offCtx.clearRect(0, 0, offscreen.width, offscreen.height);- offCtx.drawImage(img, 0, 0);- imagesLoadedRef.current[index] = true;- };+ offCtx.clearRect(0, 0, offscreen.width, offscreen.height)+ offCtx.drawImage(img, 0, 0)+ imagesLoadedRef.current[index] = true+ }}}- return offscreen;- });+ return offscreen+ })- iconCanvasesRef.current = newIconCanvases;- }, [icons, images]);+ iconCanvasesRef.current = newIconCanvases+ }, [icons, images])// Generate initial icon positions on a sphereuseEffect(() => {- const items = icons || images || [];- const newIcons: Icon[] = [];- const numIcons = items.length || 20;+ const items = icons || images || []+ const newIcons: Icon[] = []+ const numIcons = items.length || 20// Fibonacci sphere parameters- const offset = 2 / numIcons;- const increment = Math.PI * (3 - Math.sqrt(5));+ const offset = 2 / numIcons+ const increment = Math.PI * (3 - Math.sqrt(5))for (let i = 0; i < numIcons; i++) {- const y = i * offset - 1 + offset / 2;- const r = Math.sqrt(1 - y * y);- const phi = i * increment;+ const y = i * offset - 1 + offset / 2+ const r = Math.sqrt(1 - y * y)+ const phi = i * increment- const x = Math.cos(phi) * r;- const z = Math.sin(phi) * r;+ const x = Math.cos(phi) * r+ const z = Math.sin(phi) * rnewIcons.push({x: x * 100,@@ -119,54 +119,54 @@ export function IconCloud({ icons, images }: IconCloudProps) {scale: 1,opacity: 1,id: i,- });+ })}- setIconPositions(newIcons);- }, [icons, images]);+ setIconPositions(newIcons)+ }, [icons, images])// Handle mouse eventsconst handleMouseDown = (e: React.MouseEvent<HTMLCanvasElement>) => {- const rect = canvasRef.current?.getBoundingClientRect();- if (!rect || !canvasRef.current) return;+ const rect = canvasRef.current?.getBoundingClientRect()+ if (!rect || !canvasRef.current) return- const x = e.clientX - rect.left;- const y = e.clientY - rect.top;+ const x = e.clientX - rect.left+ const y = e.clientY - rect.top- const ctx = canvasRef.current.getContext("2d");- if (!ctx) return;+ const ctx = canvasRef.current.getContext("2d")+ if (!ctx) returniconPositions.forEach((icon) => {- const cosX = Math.cos(rotationRef.current.x);- const sinX = Math.sin(rotationRef.current.x);- const cosY = Math.cos(rotationRef.current.y);- const sinY = Math.sin(rotationRef.current.y);+ const cosX = Math.cos(rotationRef.current.x)+ const sinX = Math.sin(rotationRef.current.x)+ const cosY = Math.cos(rotationRef.current.y)+ const sinY = Math.sin(rotationRef.current.y)- const rotatedX = icon.x * cosY - icon.z * sinY;- const rotatedZ = icon.x * sinY + icon.z * cosY;- const rotatedY = icon.y * cosX + rotatedZ * sinX;+ const rotatedX = icon.x * cosY - icon.z * sinY+ const rotatedZ = icon.x * sinY + icon.z * cosY+ const rotatedY = icon.y * cosX + rotatedZ * sinX- const screenX = canvasRef.current!.width / 2 + rotatedX;- const screenY = canvasRef.current!.height / 2 + rotatedY;+ const screenX = canvasRef.current!.width / 2 + rotatedX+ const screenY = canvasRef.current!.height / 2 + rotatedY- const scale = (rotatedZ + 200) / 300;- const radius = 20 * scale;- const dx = x - screenX;- const dy = y - screenY;+ const scale = (rotatedZ + 200) / 300+ const radius = 20 * scale+ const dx = x - screenX+ const dy = y - screenYif (dx * dx + dy * dy < radius * radius) {const targetX = -Math.atan2(icon.y,- Math.sqrt(icon.x * icon.x + icon.z * icon.z),- );- const targetY = Math.atan2(icon.x, icon.z);+ Math.sqrt(icon.x * icon.x + icon.z * icon.z)+ )+ const targetY = Math.atan2(icon.x, icon.z)- const currentX = rotationRef.current.x;- const currentY = rotationRef.current.y;+ const currentX = rotationRef.current.x+ const currentY = rotationRef.current.yconst distance = Math.sqrt(- Math.pow(targetX - currentX, 2) + Math.pow(targetY - currentY, 2),- );+ Math.pow(targetX - currentX, 2) + Math.pow(targetY - currentY, 2)+ )- const duration = Math.min(2000, Math.max(800, distance * 1000));+ const duration = Math.min(2000, Math.max(800, distance * 1000))setTargetRotation({x: targetX,@@ -176,61 +176,61 @@ export function IconCloud({ icons, images }: IconCloudProps) {distance,startTime: performance.now(),duration,- });- return;+ })+ return}- });+ })- setIsDragging(true);- setLastMousePos({ x: e.clientX, y: e.clientY });- };+ setIsDragging(true)+ setLastMousePos({ x: e.clientX, y: e.clientY })+ }const handleMouseMove = (e: React.MouseEvent<HTMLCanvasElement>) => {- const rect = canvasRef.current?.getBoundingClientRect();+ const rect = canvasRef.current?.getBoundingClientRect()if (rect) {- const x = e.clientX - rect.left;- const y = e.clientY - rect.top;- setMousePos({ x, y });+ const x = e.clientX - rect.left+ const y = e.clientY - rect.top+ setMousePos({ x, y })}if (isDragging) {- const deltaX = e.clientX - lastMousePos.x;- const deltaY = e.clientY - lastMousePos.y;+ const deltaX = e.clientX - lastMousePos.x+ const deltaY = e.clientY - lastMousePos.yrotationRef.current = {x: rotationRef.current.x + deltaY * 0.002,y: rotationRef.current.y + deltaX * 0.002,- };+ }- setLastMousePos({ x: e.clientX, y: e.clientY });+ setLastMousePos({ x: e.clientX, y: e.clientY })}- };+ }const handleMouseUp = () => {- setIsDragging(false);- };+ setIsDragging(false)+ }// Animation and renderinguseEffect(() => {- const canvas = canvasRef.current;- const ctx = canvas?.getContext("2d");- if (!canvas || !ctx) return;+ const canvas = canvasRef.current+ const ctx = canvas?.getContext("2d")+ if (!canvas || !ctx) returnconst animate = () => {- ctx.clearRect(0, 0, canvas.width, canvas.height);+ ctx.clearRect(0, 0, canvas.width, canvas.height)- const centerX = canvas.width / 2;- const centerY = canvas.height / 2;- const maxDistance = Math.sqrt(centerX * centerX + centerY * centerY);- const dx = mousePos.x - centerX;- const dy = mousePos.y - centerY;- const distance = Math.sqrt(dx * dx + dy * dy);- const speed = 0.003 + (distance / maxDistance) * 0.01;+ const centerX = canvas.width / 2+ const centerY = canvas.height / 2+ const maxDistance = Math.sqrt(centerX * centerX + centerY * centerY)+ const dx = mousePos.x - centerX+ const dy = mousePos.y - centerY+ const distance = Math.sqrt(dx * dx + dy * dy)+ const speed = 0.003 + (distance / maxDistance) * 0.01if (targetRotation) {- const elapsed = performance.now() - targetRotation.startTime;- const progress = Math.min(1, elapsed / targetRotation.duration);- const easedProgress = easeOutCubic(progress);+ const elapsed = performance.now() - targetRotation.startTime+ const progress = Math.min(1, elapsed / targetRotation.duration)+ const easedProgress = easeOutCubic(progress)rotationRef.current = {x:@@ -239,38 +239,35 @@ export function IconCloud({ icons, images }: IconCloudProps) {y:targetRotation.startY +(targetRotation.y - targetRotation.startY) * easedProgress,- };+ }if (progress >= 1) {- setTargetRotation(null);+ setTargetRotation(null)}} else if (!isDragging) {rotationRef.current = {x: rotationRef.current.x + (dy / canvas.height) * speed,y: rotationRef.current.y + (dx / canvas.width) * speed,- };+ }}iconPositions.forEach((icon, index) => {- const cosX = Math.cos(rotationRef.current.x);- const sinX = Math.sin(rotationRef.current.x);- const cosY = Math.cos(rotationRef.current.y);- const sinY = Math.sin(rotationRef.current.y);-- const rotatedX = icon.x * cosY - icon.z * sinY;- const rotatedZ = icon.x * sinY + icon.z * cosY;- const rotatedY = icon.y * cosX + rotatedZ * sinX;-- const scale = (rotatedZ + 200) / 300;- const opacity = Math.max(0.2, Math.min(1, (rotatedZ + 150) / 200));-- ctx.save();- ctx.translate(- canvas.width / 2 + rotatedX,- canvas.height / 2 + rotatedY,- );- ctx.scale(scale, scale);- ctx.globalAlpha = opacity;+ const cosX = Math.cos(rotationRef.current.x)+ const sinX = Math.sin(rotationRef.current.x)+ const cosY = Math.cos(rotationRef.current.y)+ const sinY = Math.sin(rotationRef.current.y)++ const rotatedX = icon.x * cosY - icon.z * sinY+ const rotatedZ = icon.x * sinY + icon.z * cosY+ const rotatedY = icon.y * cosX + rotatedZ * sinX++ const scale = (rotatedZ + 200) / 300+ const opacity = Math.max(0.2, Math.min(1, (rotatedZ + 150) / 200))++ ctx.save()+ ctx.translate(canvas.width / 2 + rotatedX, canvas.height / 2 + rotatedY)+ ctx.scale(scale, scale)+ ctx.globalAlpha = opacityif (icons || images) {// Only try to render icons/images if they exist@@ -278,34 +275,34 @@ export function IconCloud({ icons, images }: IconCloudProps) {iconCanvasesRef.current[index] &&imagesLoadedRef.current[index]) {- ctx.drawImage(iconCanvasesRef.current[index], -20, -20, 40, 40);+ ctx.drawImage(iconCanvasesRef.current[index], -20, -20, 40, 40)}} else {// Show numbered circles if no icons/images are provided- ctx.beginPath();- ctx.arc(0, 0, 20, 0, Math.PI * 2);- ctx.fillStyle = "#4444ff";- ctx.fill();- ctx.fillStyle = "white";- ctx.textAlign = "center";- ctx.textBaseline = "middle";- ctx.font = "16px Arial";- ctx.fillText(`${icon.id + 1}`, 0, 0);+ ctx.beginPath()+ ctx.arc(0, 0, 20, 0, Math.PI * 2)+ ctx.fillStyle = "#4444ff"+ ctx.fill()+ ctx.fillStyle = "white"+ ctx.textAlign = "center"+ ctx.textBaseline = "middle"+ ctx.font = "16px Arial"+ ctx.fillText(`${icon.id + 1}`, 0, 0)}- ctx.restore();- });- animationFrameRef.current = requestAnimationFrame(animate);- };+ ctx.restore()+ })+ animationFrameRef.current = requestAnimationFrame(animate)+ }- animate();+ animate()return () => {if (animationFrameRef.current) {- cancelAnimationFrame(animationFrameRef.current);+ cancelAnimationFrame(animationFrameRef.current)}- };- }, [icons, images, iconPositions, isDragging, mousePos, targetRotation]);+ }+ }, [icons, images, iconPositions, isDragging, mousePos, targetRotation])return (<canvas@@ -320,5 +317,5 @@ export function IconCloud({ icons, images }: IconCloudProps) {aria-label="Interactive 3D Icon Cloud"role="img"/>- );+ )}diff --git a/apps/www/registry/magicui/interactive-grid-pattern.tsx b/apps/www/registry/magicui/interactive-grid-pattern.tsxindex bab1ce94..b2c7c580 100644--- a/apps/www/registry/magicui/interactive-grid-pattern.tsx+++ b/apps/www/registry/magicui/interactive-grid-pattern.tsx@@ -1,7 +1,8 @@-"use client";+"use client"-import { cn } from "@/lib/utils";-import React, { useState } from "react";+import React, { useState } from "react"++import { cn } from "@/lib/utils"/*** InteractiveGridPattern is a component that renders a grid pattern with interactive squares.@@ -13,11 +14,11 @@ import React, { useState } from "react";* @param squaresClassName - The class name of the squares.*/interface InteractiveGridPatternProps extends React.SVGProps<SVGSVGElement> {- width?: number;- height?: number;- squares?: [number, number]; // [horizontal, vertical]- className?: string;- squaresClassName?: string;+ width?: number+ height?: number+ squares?: [number, number] // [horizontal, vertical]+ className?: string+ squaresClassName?: string}/**@@ -34,8 +35,8 @@ export function InteractiveGridPattern({squaresClassName,...props}: InteractiveGridPatternProps) {- const [horizontal, vertical] = squares;- const [hoveredSquare, setHoveredSquare] = useState<number | null>(null);+ const [horizontal, vertical] = squares+ const [hoveredSquare, setHoveredSquare] = useState<number | null>(null)return (<svg@@ -43,13 +44,13 @@ export function InteractiveGridPattern({height={height * vertical}className={cn("absolute inset-0 h-full w-full border border-gray-400/30",- className,+ className)}{...props}>{Array.from({ length: horizontal * vertical }).map((_, index) => {- const x = (index % horizontal) * width;- const y = Math.floor(index / horizontal) * height;+ const x = (index % horizontal) * width+ const y = Math.floor(index / horizontal) * heightreturn (<rectkey={index}@@ -60,13 +61,13 @@ export function InteractiveGridPattern({className={cn("stroke-gray-400/30 transition-all duration-100 ease-in-out [&:not(:hover)]:duration-1000",hoveredSquare === index ? "fill-gray-300/30" : "fill-transparent",- squaresClassName,+ squaresClassName)}onMouseEnter={() => setHoveredSquare(index)}onMouseLeave={() => setHoveredSquare(null)}/>- );+ )})}</svg>- );+ )}diff --git a/apps/www/registry/magicui/interactive-hover-button.tsx b/apps/www/registry/magicui/interactive-hover-button.tsxindex e43ccbbe..c38f762b 100644--- a/apps/www/registry/magicui/interactive-hover-button.tsx+++ b/apps/www/registry/magicui/interactive-hover-button.tsx@@ -1,6 +1,7 @@-import React from "react";-import { ArrowRight } from "lucide-react";-import { cn } from "@/lib/utils";+import React from "react"+import { ArrowRight } from "lucide-react"++import { cn } from "@/lib/utils"interface InteractiveHoverButtonPropsextends React.ButtonHTMLAttributes<HTMLButtonElement> {}@@ -13,23 +14,23 @@ export const InteractiveHoverButton = React.forwardRef<<buttonref={ref}className={cn(- "group relative w-auto cursor-pointer overflow-hidden rounded-full border bg-background p-2 px-6 text-center font-semibold",- className,+ "group bg-background relative w-auto cursor-pointer overflow-hidden rounded-full border p-2 px-6 text-center font-semibold",+ className)}{...props}><div className="flex items-center gap-2">- <div className="h-2 w-2 rounded-full bg-primary transition-all duration-300 group-hover:scale-[100.8]"></div>+ <div className="bg-primary h-2 w-2 rounded-full transition-all duration-300 group-hover:scale-[100.8]"></div><span className="inline-block transition-all duration-300 group-hover:translate-x-12 group-hover:opacity-0">{children}</span></div>- <div className="absolute top-0 z-10 flex h-full w-full translate-x-12 items-center justify-center gap-2 text-primary-foreground opacity-0 transition-all duration-300 group-hover:-translate-x-5 group-hover:opacity-100">+ <div className="text-primary-foreground absolute top-0 z-10 flex h-full w-full translate-x-12 items-center justify-center gap-2 opacity-0 transition-all duration-300 group-hover:-translate-x-5 group-hover:opacity-100"><span>{children}</span><ArrowRight /></div></button>- );-});+ )+})-InteractiveHoverButton.displayName = "InteractiveHoverButton";+InteractiveHoverButton.displayName = "InteractiveHoverButton"diff --git a/apps/www/registry/magicui/iphone-15-pro.tsx b/apps/www/registry/magicui/iphone-15-pro.tsxindex 6dae737d..550223c9 100644--- a/apps/www/registry/magicui/iphone-15-pro.tsx+++ b/apps/www/registry/magicui/iphone-15-pro.tsx@@ -1,24 +1,24 @@-import type { HTMLAttributes } from "react";+import type { HTMLAttributes } from "react"-const PHONE_WIDTH = 433;-const PHONE_HEIGHT = 882;-const SCREEN_X = 21.25;-const SCREEN_Y = 19.25;-const SCREEN_WIDTH = 389.5;-const SCREEN_HEIGHT = 843.5;-const SCREEN_RADIUS = 55.75;+const PHONE_WIDTH = 433+const PHONE_HEIGHT = 882+const SCREEN_X = 21.25+const SCREEN_Y = 19.25+const SCREEN_WIDTH = 389.5+const SCREEN_HEIGHT = 843.5+const SCREEN_RADIUS = 55.75// Calculated percentages-const LEFT_PCT = (SCREEN_X / PHONE_WIDTH) * 100;-const TOP_PCT = (SCREEN_Y / PHONE_HEIGHT) * 100;-const WIDTH_PCT = (SCREEN_WIDTH / PHONE_WIDTH) * 100;-const HEIGHT_PCT = (SCREEN_HEIGHT / PHONE_HEIGHT) * 100;-const RADIUS_H = (SCREEN_RADIUS / SCREEN_WIDTH) * 100;-const RADIUS_V = (SCREEN_RADIUS / SCREEN_HEIGHT) * 100;+const LEFT_PCT = (SCREEN_X / PHONE_WIDTH) * 100+const TOP_PCT = (SCREEN_Y / PHONE_HEIGHT) * 100+const WIDTH_PCT = (SCREEN_WIDTH / PHONE_WIDTH) * 100+const HEIGHT_PCT = (SCREEN_HEIGHT / PHONE_HEIGHT) * 100+const RADIUS_H = (SCREEN_RADIUS / SCREEN_WIDTH) * 100+const RADIUS_V = (SCREEN_RADIUS / SCREEN_HEIGHT) * 100export interface Iphone15ProProps extends HTMLAttributes<HTMLDivElement> {- src?: string;- videoSrc?: string;+ src?: string+ videoSrc?: string}export function Iphone15Pro({@@ -28,8 +28,8 @@ export function Iphone15Pro({style,...props}: Iphone15ProProps) {- const hasVideo = !!videoSrc;- const hasMedia = hasVideo || !!src;+ const hasVideo = !!videoSrc+ const hasMedia = hasVideo || !!srcreturn (<div@@ -173,5 +173,5 @@ export function Iphone15Pro({</defs></svg></div>- );+ )}diff --git a/apps/www/registry/magicui/lens.tsx b/apps/www/registry/magicui/lens.tsxindex a7f0f76a..b0d27bb5 100644--- a/apps/www/registry/magicui/lens.tsx+++ b/apps/www/registry/magicui/lens.tsx@@ -1,34 +1,34 @@-"use client";+"use client"-import { AnimatePresence, motion, useMotionTemplate } from "motion/react";-import React, { useCallback, useMemo, useRef, useState } from "react";+import React, { useCallback, useMemo, useRef, useState } from "react"+import { AnimatePresence, motion, useMotionTemplate } from "motion/react"interface Position {/** The x coordinate of the lens */- x: number;+ x: number/** The y coordinate of the lens */- y: number;+ y: number}interface LensProps {/** The children of the lens */- children: React.ReactNode;+ children: React.ReactNode/** The zoom factor of the lens */- zoomFactor?: number;+ zoomFactor?: number/** The size of the lens */- lensSize?: number;+ lensSize?: number/** The position of the lens */- position?: Position;+ position?: Position/** The default position of the lens */- defaultPosition?: Position;+ defaultPosition?: Position/** Whether the lens is static */- isStatic?: boolean;+ isStatic?: boolean/** The duration of the animation */- duration?: number;+ duration?: number/** The color of the lens */- lensColor?: string;+ lensColor?: string/** The aria label of the lens */- ariaLabel?: string;+ ariaLabel?: string}export function Lens({@@ -43,42 +43,42 @@ export function Lens({ariaLabel = "Zoom Area",}: LensProps) {if (zoomFactor < 1) {- throw new Error("zoomFactor must be greater than 1");+ throw new Error("zoomFactor must be greater than 1")}if (lensSize < 0) {- throw new Error("lensSize must be greater than 0");+ throw new Error("lensSize must be greater than 0")}- const [isHovering, setIsHovering] = useState(false);- const [mousePosition, setMousePosition] = useState<Position>(position);- const containerRef = useRef<HTMLDivElement>(null);+ const [isHovering, setIsHovering] = useState(false)+ const [mousePosition, setMousePosition] = useState<Position>(position)+ const containerRef = useRef<HTMLDivElement>(null)const currentPosition = useMemo(() => {- if (isStatic) return position;- if (defaultPosition && !isHovering) return defaultPosition;- return mousePosition;- }, [isStatic, position, defaultPosition, isHovering, mousePosition]);+ if (isStatic) return position+ if (defaultPosition && !isHovering) return defaultPosition+ return mousePosition+ }, [isStatic, position, defaultPosition, isHovering, mousePosition])const handleMouseMove = useCallback((e: React.MouseEvent<HTMLDivElement>) => {- const rect = e.currentTarget.getBoundingClientRect();+ const rect = e.currentTarget.getBoundingClientRect()setMousePosition({x: e.clientX - rect.left,y: e.clientY - rect.top,- });- }, []);+ })+ }, [])const handleKeyDown = useCallback((e: React.KeyboardEvent) => {- if (e.key === "Escape") setIsHovering(false);- }, []);+ if (e.key === "Escape") setIsHovering(false)+ }, [])const maskImage = useMotionTemplate`radial-gradient(circle ${lensSize / 2}px at ${currentPosition.x}px ${currentPosition.y- }px, ${lensColor} 100%, transparent 100%)`;+ }px, ${lensColor} 100%, transparent 100%)`const LensContent = useMemo(() => {- const { x, y } = currentPosition;+ const { x, y } = currentPositionreturn (<motion.div@@ -104,8 +104,8 @@ export function Lens({{children}</div></motion.div>- );- }, [currentPosition, lensSize, lensColor, zoomFactor, children, duration]);+ )+ }, [currentPosition, lensSize, lensColor, zoomFactor, children, duration])return (<div@@ -128,5 +128,5 @@ export function Lens({</AnimatePresence>)}</div>- );+ )}diff --git a/apps/www/registry/magicui/line-shadow-text.tsx b/apps/www/registry/magicui/line-shadow-text.tsxindex e52ef8ee..d4647725 100644--- a/apps/www/registry/magicui/line-shadow-text.tsx+++ b/apps/www/registry/magicui/line-shadow-text.tsx@@ -1,13 +1,14 @@-"use client";+"use client"-import { cn } from "@/lib/utils";-import { motion, MotionProps } from "motion/react";+import { motion, MotionProps } from "motion/react"++import { cn } from "@/lib/utils"interface LineShadowTextPropsextends Omit<React.HTMLAttributes<HTMLElement>, keyof MotionProps>,MotionProps {- shadowColor?: string;- as?: React.ElementType;+ shadowColor?: string+ as?: React.ElementType}export function LineShadowText({@@ -17,11 +18,11 @@ export function LineShadowText({as: Component = "span",...props}: LineShadowTextProps) {- const MotionComponent = motion.create(Component);- const content = typeof children === "string" ? children : null;+ const MotionComponent = motion.create(Component)+ const content = typeof children === "string" ? children : nullif (!content) {- throw new Error("LineShadowText only accepts string content");+ throw new Error("LineShadowText only accepts string content")}return (@@ -29,16 +30,16 @@ export function LineShadowText({style={{ "--shadow-color": shadowColor } as React.CSSProperties}className={cn("relative z-0 inline-flex",- "after:absolute after:left-[0.04em] after:top-[0.04em] after:content-[attr(data-text)]",+ "after:absolute after:top-[0.04em] after:left-[0.04em] after:content-[attr(data-text)]","after:bg-[linear-gradient(45deg,transparent_45%,var(--shadow-color)_45%,var(--shadow-color)_55%,transparent_0)]","after:-z-10 after:bg-[length:0.06em_0.06em] after:bg-clip-text after:text-transparent","after:animate-line-shadow",- className,+ className)}data-text={content}{...props}>{content}</MotionComponent>- );+ )}diff --git a/apps/www/registry/magicui/magic-card.tsx b/apps/www/registry/magicui/magic-card.tsxindex 2404082a..c78a5f87 100644--- a/apps/www/registry/magicui/magic-card.tsx+++ b/apps/www/registry/magicui/magic-card.tsx@@ -1,18 +1,18 @@-"use client";+"use client"-import { motion, useMotionTemplate, useMotionValue } from "motion/react";-import React, { useCallback, useEffect } from "react";+import React, { useCallback, useEffect } from "react"+import { motion, useMotionTemplate, useMotionValue } from "motion/react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"interface MagicCardProps {- children?: React.ReactNode;- className?: string;- gradientSize?: number;- gradientColor?: string;- gradientOpacity?: number;- gradientFrom?: string;- gradientTo?: string;+ children?: React.ReactNode+ className?: string+ gradientSize?: number+ gradientColor?: string+ gradientOpacity?: number+ gradientFrom?: string+ gradientTo?: string}export function MagicCard({@@ -24,49 +24,49 @@ export function MagicCard({gradientFrom = "#9E7AFF",gradientTo = "#FE8BBB",}: MagicCardProps) {- const mouseX = useMotionValue(-gradientSize);- const mouseY = useMotionValue(-gradientSize);+ const mouseX = useMotionValue(-gradientSize)+ const mouseY = useMotionValue(-gradientSize)const reset = useCallback(() => {- mouseX.set(-gradientSize);- mouseY.set(-gradientSize);- }, [gradientSize, mouseX, mouseY]);+ mouseX.set(-gradientSize)+ mouseY.set(-gradientSize)+ }, [gradientSize, mouseX, mouseY])const handlePointerMove = useCallback((e: React.PointerEvent<HTMLDivElement>) => {- const rect = e.currentTarget.getBoundingClientRect();- mouseX.set(e.clientX - rect.left);- mouseY.set(e.clientY - rect.top);+ const rect = e.currentTarget.getBoundingClientRect()+ mouseX.set(e.clientX - rect.left)+ mouseY.set(e.clientY - rect.top)},- [mouseX, mouseY],- );+ [mouseX, mouseY]+ )useEffect(() => {- reset();- }, [reset]);+ reset()+ }, [reset])useEffect(() => {const handleGlobalPointerOut = (e: PointerEvent) => {if (!e.relatedTarget) {- reset();+ reset()}- };+ }const handleVisibility = () => {if (document.visibilityState !== "visible") {- reset();+ reset()}- };+ }- window.addEventListener("pointerout", handleGlobalPointerOut);- window.addEventListener("blur", reset);- document.addEventListener("visibilitychange", handleVisibility);+ window.addEventListener("pointerout", handleGlobalPointerOut)+ window.addEventListener("blur", reset)+ document.addEventListener("visibilitychange", handleVisibility)return () => {- window.removeEventListener("pointerout", handleGlobalPointerOut);- window.removeEventListener("blur", reset);- document.removeEventListener("visibilitychange", handleVisibility);- };- }, [reset]);+ window.removeEventListener("pointerout", handleGlobalPointerOut)+ window.removeEventListener("blur", reset)+ document.removeEventListener("visibilitychange", handleVisibility)+ }+ }, [reset])return (<div@@ -76,7 +76,7 @@ export function MagicCard({onPointerEnter={reset}><motion.div- className="pointer-events-none absolute inset-0 rounded-[inherit] bg-border duration-300 group-hover:opacity-100"+ className="bg-border pointer-events-none absolute inset-0 rounded-[inherit] duration-300 group-hover:opacity-100"style={{background: useMotionTemplate`radial-gradient(${gradientSize}px circle at ${mouseX}px ${mouseY}px,@@ -87,7 +87,7 @@ export function MagicCard({`,}}/>- <div className="absolute inset-px rounded-[inherit] bg-background" />+ <div className="bg-background absolute inset-px rounded-[inherit]" /><motion.divclassName="pointer-events-none absolute inset-px rounded-[inherit] opacity-0 transition-opacity duration-300 group-hover:opacity-100"style={{@@ -99,5 +99,5 @@ export function MagicCard({/><div className="relative">{children}</div></div>- );+ )}diff --git a/apps/www/registry/magicui/marquee.tsx b/apps/www/registry/magicui/marquee.tsxindex fa9c129b..b04836ec 100644--- a/apps/www/registry/magicui/marquee.tsx+++ b/apps/www/registry/magicui/marquee.tsx@@ -1,35 +1,36 @@-import { cn } from "@/lib/utils";-import { ComponentPropsWithoutRef } from "react";+import { ComponentPropsWithoutRef } from "react"++import { cn } from "@/lib/utils"interface MarqueeProps extends ComponentPropsWithoutRef<"div"> {/*** Optional CSS class name to apply custom styles*/- className?: string;+ className?: string/*** Whether to reverse the animation direction* @default false*/- reverse?: boolean;+ reverse?: boolean/*** Whether to pause the animation on hover* @default false*/- pauseOnHover?: boolean;+ pauseOnHover?: boolean/*** Content to be displayed in the marquee*/- children: React.ReactNode;+ children: React.ReactNode/*** Whether to animate vertically instead of horizontally* @default false*/- vertical?: boolean;+ vertical?: boolean/*** Number of times to repeat the content* @default 4*/- repeat?: number;+ repeat?: number}export function Marquee({@@ -45,12 +46,12 @@ export function Marquee({<div{...props}className={cn(- "group flex overflow-hidden p-2 [--duration:40s] [--gap:1rem] [gap:var(--gap)]",+ "group flex [gap:var(--gap)] overflow-hidden p-2 [--duration:40s] [--gap:1rem]",{"flex-row": !vertical,"flex-col": vertical,},- className,+ className)}>{Array(repeat)@@ -69,5 +70,5 @@ export function Marquee({</div>))}</div>- );+ )}diff --git a/apps/www/registry/magicui/meteors.tsx b/apps/www/registry/magicui/meteors.tsxindex de2c61bf..cfa402c8 100644--- a/apps/www/registry/magicui/meteors.tsx+++ b/apps/www/registry/magicui/meteors.tsx@@ -1,16 +1,17 @@-"use client";+"use client"-import { cn } from "@/lib/utils";-import React, { useEffect, useState } from "react";+import React, { useEffect, useState } from "react"++import { cn } from "@/lib/utils"interface MeteorsProps {- number?: number;- minDelay?: number;- maxDelay?: number;- minDuration?: number;- maxDuration?: number;- angle?: number;- className?: string;+ number?: number+ minDelay?: number+ maxDelay?: number+ minDuration?: number+ maxDuration?: number+ angle?: number+ className?: string}export const Meteors = ({@@ -23,8 +24,8 @@ export const Meteors = ({className,}: MeteorsProps) => {const [meteorStyles, setMeteorStyles] = useState<Array<React.CSSProperties>>(- [],- );+ []+ )useEffect(() => {const styles = [...new Array(number)].map(() => ({@@ -35,9 +36,9 @@ export const Meteors = ({animationDuration:Math.floor(Math.random() * (maxDuration - minDuration) + minDuration) +"s",- }));- setMeteorStyles(styles);- }, [number, minDelay, maxDelay, minDuration, maxDuration, angle]);+ }))+ setMeteorStyles(styles)+ }, [number, minDelay, maxDelay, minDuration, maxDuration, angle])return (<>@@ -47,8 +48,8 @@ export const Meteors = ({key={idx}style={{ ...style }}className={cn(- "pointer-events-none absolute size-0.5 rotate-[var(--angle)] animate-meteor rounded-full bg-zinc-500 shadow-[0_0_0_1px_#ffffff10]",- className,+ "animate-meteor pointer-events-none absolute size-0.5 rotate-[var(--angle)] rounded-full bg-zinc-500 shadow-[0_0_0_1px_#ffffff10]",+ className)}>{/* Meteor Tail */}@@ -56,5 +57,5 @@ export const Meteors = ({</span>))}</>- );-};+ )+}diff --git a/apps/www/registry/magicui/morphing-text.tsx b/apps/www/registry/magicui/morphing-text.tsxindex 00c657b5..5ac10f93 100644--- a/apps/www/registry/magicui/morphing-text.tsx+++ b/apps/www/registry/magicui/morphing-text.tsx@@ -1,103 +1,103 @@-"use client";+"use client"-import { useCallback, useEffect, useRef } from "react";+import { useCallback, useEffect, useRef } from "react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"-const morphTime = 1.5;-const cooldownTime = 0.5;+const morphTime = 1.5+const cooldownTime = 0.5const useMorphingText = (texts: string[]) => {- const textIndexRef = useRef(0);- const morphRef = useRef(0);- const cooldownRef = useRef(0);- const timeRef = useRef(new Date());+ const textIndexRef = useRef(0)+ const morphRef = useRef(0)+ const cooldownRef = useRef(0)+ const timeRef = useRef(new Date())- const text1Ref = useRef<HTMLSpanElement>(null);- const text2Ref = useRef<HTMLSpanElement>(null);+ const text1Ref = useRef<HTMLSpanElement>(null)+ const text2Ref = useRef<HTMLSpanElement>(null)const setStyles = useCallback((fraction: number) => {- const [current1, current2] = [text1Ref.current, text2Ref.current];- if (!current1 || !current2) return;+ const [current1, current2] = [text1Ref.current, text2Ref.current]+ if (!current1 || !current2) return- current2.style.filter = `blur(${Math.min(8 / fraction - 8, 100)}px)`;- current2.style.opacity = `${Math.pow(fraction, 0.4) * 100}%`;+ current2.style.filter = `blur(${Math.min(8 / fraction - 8, 100)}px)`+ current2.style.opacity = `${Math.pow(fraction, 0.4) * 100}%`- const invertedFraction = 1 - fraction;+ const invertedFraction = 1 - fractioncurrent1.style.filter = `blur(${Math.min(8 / invertedFraction - 8,- 100,- )}px)`;- current1.style.opacity = `${Math.pow(invertedFraction, 0.4) * 100}%`;+ 100+ )}px)`+ current1.style.opacity = `${Math.pow(invertedFraction, 0.4) * 100}%`- current1.textContent = texts[textIndexRef.current % texts.length];- current2.textContent = texts[(textIndexRef.current + 1) % texts.length];+ current1.textContent = texts[textIndexRef.current % texts.length]+ current2.textContent = texts[(textIndexRef.current + 1) % texts.length]},- [texts],- );+ [texts]+ )const doMorph = useCallback(() => {- morphRef.current -= cooldownRef.current;- cooldownRef.current = 0;+ morphRef.current -= cooldownRef.current+ cooldownRef.current = 0- let fraction = morphRef.current / morphTime;+ let fraction = morphRef.current / morphTimeif (fraction > 1) {- cooldownRef.current = cooldownTime;- fraction = 1;+ cooldownRef.current = cooldownTime+ fraction = 1}- setStyles(fraction);+ setStyles(fraction)if (fraction === 1) {- textIndexRef.current++;+ textIndexRef.current++}- }, [setStyles]);+ }, [setStyles])const doCooldown = useCallback(() => {- morphRef.current = 0;- const [current1, current2] = [text1Ref.current, text2Ref.current];+ morphRef.current = 0+ const [current1, current2] = [text1Ref.current, text2Ref.current]if (current1 && current2) {- current2.style.filter = "none";- current2.style.opacity = "100%";- current1.style.filter = "none";- current1.style.opacity = "0%";+ current2.style.filter = "none"+ current2.style.opacity = "100%"+ current1.style.filter = "none"+ current1.style.opacity = "0%"}- }, []);+ }, [])useEffect(() => {- let animationFrameId: number;+ let animationFrameId: numberconst animate = () => {- animationFrameId = requestAnimationFrame(animate);+ animationFrameId = requestAnimationFrame(animate)- const newTime = new Date();- const dt = (newTime.getTime() - timeRef.current.getTime()) / 1000;- timeRef.current = newTime;+ const newTime = new Date()+ const dt = (newTime.getTime() - timeRef.current.getTime()) / 1000+ timeRef.current = newTime- cooldownRef.current -= dt;+ cooldownRef.current -= dt- if (cooldownRef.current <= 0) doMorph();- else doCooldown();- };+ if (cooldownRef.current <= 0) doMorph()+ else doCooldown()+ }- animate();+ animate()return () => {- cancelAnimationFrame(animationFrameId);- };- }, [doMorph, doCooldown]);+ cancelAnimationFrame(animationFrameId)+ }+ }, [doMorph, doCooldown])- return { text1Ref, text2Ref };-};+ return { text1Ref, text2Ref }+}interface MorphingTextProps {- className?: string;- texts: string[];+ className?: string+ texts: string[]}const Texts: React.FC<Pick<MorphingTextProps, "texts">> = ({ texts }) => {- const { text1Ref, text2Ref } = useMorphingText(texts);+ const { text1Ref, text2Ref } = useMorphingText(texts)return (<><span@@ -109,8 +109,8 @@ const Texts: React.FC<Pick<MorphingTextProps, "texts">> = ({ texts }) => {ref={text2Ref}/></>- );-};+ )+}const SvgFilters: React.FC = () => (<svg@@ -131,7 +131,7 @@ const SvgFilters: React.FC = () => (</filter></defs></svg>-);+)export const MorphingText: React.FC<MorphingTextProps> = ({texts,@@ -139,11 +139,11 @@ export const MorphingText: React.FC<MorphingTextProps> = ({}) => (<divclassName={cn(- "relative mx-auto h-16 w-full max-w-screen-md text-center font-sans text-[40pt] font-bold leading-none [filter:url(#threshold)_blur(0.6px)] md:h-24 lg:text-[6rem]",- className,+ "relative mx-auto h-16 w-full max-w-screen-md text-center font-sans text-[40pt] leading-none font-bold [filter:url(#threshold)_blur(0.6px)] md:h-24 lg:text-[6rem]",+ className)}><Texts texts={texts} /><SvgFilters /></div>-);+)diff --git a/apps/www/registry/magicui/neon-gradient-card.tsx b/apps/www/registry/magicui/neon-gradient-card.tsxindex 0c065f6a..ee1c1dd7 100644--- a/apps/www/registry/magicui/neon-gradient-card.tsx+++ b/apps/www/registry/magicui/neon-gradient-card.tsx@@ -1,4 +1,4 @@-"use client";+"use client"import {CSSProperties,@@ -7,13 +7,13 @@ import {useEffect,useRef,useState,-} from "react";+} from "react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"interface NeonColorsProps {- firstColor: string;- secondColor: string;+ firstColor: string+ secondColor: string}interface NeonGradientCardProps {@@ -23,14 +23,14 @@ interface NeonGradientCardProps {* @description* The component to be rendered as the card* */- as?: ReactElement;+ as?: ReactElement/*** @default ""* @type string* @description* The className of the card*/- className?: string;+ className?: string/*** @default ""@@ -38,7 +38,7 @@ interface NeonGradientCardProps {* @description* The children of the card* */- children?: ReactNode;+ children?: ReactNode/*** @default 5@@ -46,7 +46,7 @@ interface NeonGradientCardProps {* @description* The size of the border in pixels* */- borderSize?: number;+ borderSize?: number/*** @default 20@@ -54,7 +54,7 @@ interface NeonGradientCardProps {* @description* The size of the radius in pixels* */- borderRadius?: number;+ borderRadius?: number/*** @default "{ firstColor: '#ff00aa', secondColor: '#00FFF1' }"@@ -62,9 +62,9 @@ interface NeonGradientCardProps {* @description* The colors of the neon gradient* */- neonColors?: NeonColorsProps;+ neonColors?: NeonColorsProps- [key: string]: any;+ [key: string]: any}export const NeonGradientCard: React.FC<NeonGradientCardProps> = ({@@ -78,31 +78,31 @@ export const NeonGradientCard: React.FC<NeonGradientCardProps> = ({},...props}) => {- const containerRef = useRef<HTMLDivElement>(null);- const [dimensions, setDimensions] = useState({ width: 0, height: 0 });+ const containerRef = useRef<HTMLDivElement>(null)+ const [dimensions, setDimensions] = useState({ width: 0, height: 0 })useEffect(() => {const updateDimensions = () => {if (containerRef.current) {- const { offsetWidth, offsetHeight } = containerRef.current;- setDimensions({ width: offsetWidth, height: offsetHeight });+ const { offsetWidth, offsetHeight } = containerRef.current+ setDimensions({ width: offsetWidth, height: offsetHeight })}- };+ }- updateDimensions();- window.addEventListener("resize", updateDimensions);+ updateDimensions()+ window.addEventListener("resize", updateDimensions)return () => {- window.removeEventListener("resize", updateDimensions);- };- }, []);+ window.removeEventListener("resize", updateDimensions)+ }+ }, [])useEffect(() => {if (containerRef.current) {- const { offsetWidth, offsetHeight } = containerRef.current;- setDimensions({ width: offsetWidth, height: offsetHeight });+ const { offsetWidth, offsetHeight } = containerRef.current+ setDimensions({ width: offsetWidth, height: offsetHeight })}- }, [children]);+ }, [children])return (<div@@ -124,27 +124,27 @@ export const NeonGradientCard: React.FC<NeonGradientCardProps> = ({}className={cn("relative z-10 size-full rounded-[var(--border-radius)]",- className,+ className)}{...props}><divclassName={cn("relative size-full min-h-[inherit] rounded-[var(--card-content-radius)] bg-gray-100 p-6",- "before:absolute before:-left-[var(--border-size)] before:-top-[var(--border-size)] before:-z-10 before:block",+ "before:absolute before:-top-[var(--border-size)] before:-left-[var(--border-size)] before:-z-10 before:block","before:h-[var(--pseudo-element-height)] before:w-[var(--pseudo-element-width)] before:rounded-[var(--border-radius)] before:content-['']","before:bg-[linear-gradient(0deg,var(--neon-first-color),var(--neon-second-color))] before:bg-[length:100%_200%]","before:animate-background-position-spin",- "after:absolute after:-left-[var(--border-size)] after:-top-[var(--border-size)] after:-z-10 after:block",+ "after:absolute after:-top-[var(--border-size)] after:-left-[var(--border-size)] after:-z-10 after:block","after:h-[var(--pseudo-element-height)] after:w-[var(--pseudo-element-width)] after:rounded-[var(--border-radius)] after:blur-[var(--after-blur)] after:content-['']","after:bg-[linear-gradient(0deg,var(--neon-first-color),var(--neon-second-color))] after:bg-[length:100%_200%] after:opacity-80","after:animate-background-position-spin","dark:bg-neutral-900",- "break-words",+ "break-words")}>{children}</div></div>- );-};+ )+}diff --git a/apps/www/registry/magicui/number-ticker.tsx b/apps/www/registry/magicui/number-ticker.tsxindex 1b9bf39b..0f12b4fe 100644--- a/apps/www/registry/magicui/number-ticker.tsx+++ b/apps/www/registry/magicui/number-ticker.tsx@@ -1,16 +1,16 @@-"use client";+"use client"-import { useInView, useMotionValue, useSpring } from "motion/react";-import { ComponentPropsWithoutRef, useEffect, useRef } from "react";+import { ComponentPropsWithoutRef, useEffect, useRef } from "react"+import { useInView, useMotionValue, useSpring } from "motion/react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"interface NumberTickerProps extends ComponentPropsWithoutRef<"span"> {- value: number;- startValue?: number;- direction?: "up" | "down";- delay?: number;- decimalPlaces?: number;+ value: number+ startValue?: number+ direction?: "up" | "down"+ delay?: number+ decimalPlaces?: number}export function NumberTicker({@@ -22,22 +22,22 @@ export function NumberTicker({decimalPlaces = 0,...props}: NumberTickerProps) {- const ref = useRef<HTMLSpanElement>(null);- const motionValue = useMotionValue(direction === "down" ? value : startValue);+ const ref = useRef<HTMLSpanElement>(null)+ const motionValue = useMotionValue(direction === "down" ? value : startValue)const springValue = useSpring(motionValue, {damping: 60,stiffness: 100,- });- const isInView = useInView(ref, { once: true, margin: "0px" });+ })+ const isInView = useInView(ref, { once: true, margin: "0px" })useEffect(() => {if (isInView) {const timer = setTimeout(() => {- motionValue.set(direction === "down" ? startValue : value);- }, delay * 1000);- return () => clearTimeout(timer);+ motionValue.set(direction === "down" ? startValue : value)+ }, delay * 1000)+ return () => clearTimeout(timer)}- }, [motionValue, isInView, delay, value, direction, startValue]);+ }, [motionValue, isInView, delay, value, direction, startValue])useEffect(() =>@@ -46,22 +46,22 @@ export function NumberTicker({ref.current.textContent = Intl.NumberFormat("en-US", {minimumFractionDigits: decimalPlaces,maximumFractionDigits: decimalPlaces,- }).format(Number(latest.toFixed(decimalPlaces)));+ }).format(Number(latest.toFixed(decimalPlaces)))}}),- [springValue, decimalPlaces],- );+ [springValue, decimalPlaces]+ )return (<spanref={ref}className={cn(- "inline-block tabular-nums tracking-wider text-black dark:text-white",- className,+ "inline-block tracking-wider text-black tabular-nums dark:text-white",+ className)}{...props}>{startValue}</span>- );+ )}diff --git a/apps/www/registry/magicui/orbiting-circles.tsx b/apps/www/registry/magicui/orbiting-circles.tsxindex 3365c58b..40f024f3 100644--- a/apps/www/registry/magicui/orbiting-circles.tsx+++ b/apps/www/registry/magicui/orbiting-circles.tsx@@ -1,17 +1,18 @@-import { cn } from "@/lib/utils";-import React from "react";+import React from "react"++import { cn } from "@/lib/utils"export interface OrbitingCirclesPropsextends React.HTMLAttributes<HTMLDivElement> {- className?: string;- children?: React.ReactNode;- reverse?: boolean;- duration?: number;- delay?: number;- radius?: number;- path?: boolean;- iconSize?: number;- speed?: number;+ className?: string+ children?: React.ReactNode+ reverse?: boolean+ duration?: number+ delay?: number+ radius?: number+ path?: boolean+ iconSize?: number+ speed?: number}export function OrbitingCircles({@@ -25,7 +26,7 @@ export function OrbitingCircles({speed = 1,...props}: OrbitingCirclesProps) {- const calculatedDuration = duration / speed;+ const calculatedDuration = duration / speedreturn (<>{path && (@@ -44,7 +45,7 @@ export function OrbitingCircles({</svg>)}{React.Children.map(children, (child, index) => {- const angle = (360 / React.Children.count(children)) * index;+ const angle = (360 / React.Children.count(children)) * indexreturn (<divstyle={@@ -56,16 +57,16 @@ export function OrbitingCircles({} as React.CSSProperties}className={cn(- `absolute flex size-[var(--icon-size)] transform-gpu animate-orbit items-center justify-center rounded-full`,+ `animate-orbit absolute flex size-[var(--icon-size)] transform-gpu items-center justify-center rounded-full`,{ "[animation-direction:reverse]": reverse },- className,+ className)}{...props}>{child}</div>- );+ )})}</>- );+ )}diff --git a/apps/www/registry/magicui/particles.tsx b/apps/www/registry/magicui/particles.tsxindex ffba7419..5b9da79a 100644--- a/apps/www/registry/magicui/particles.tsx+++ b/apps/www/registry/magicui/particles.tsx@@ -1,80 +1,81 @@-"use client";+"use client"-import { cn } from "@/lib/utils";import React, {ComponentPropsWithoutRef,useEffect,useRef,useState,-} from "react";+} from "react"++import { cn } from "@/lib/utils"interface MousePosition {- x: number;- y: number;+ x: number+ y: number}function MousePosition(): MousePosition {const [mousePosition, setMousePosition] = useState<MousePosition>({x: 0,y: 0,- });+ })useEffect(() => {const handleMouseMove = (event: MouseEvent) => {- setMousePosition({ x: event.clientX, y: event.clientY });- };+ setMousePosition({ x: event.clientX, y: event.clientY })+ }- window.addEventListener("mousemove", handleMouseMove);+ window.addEventListener("mousemove", handleMouseMove)return () => {- window.removeEventListener("mousemove", handleMouseMove);- };- }, []);+ window.removeEventListener("mousemove", handleMouseMove)+ }+ }, [])- return mousePosition;+ return mousePosition}interface ParticlesProps extends ComponentPropsWithoutRef<"div"> {- className?: string;- quantity?: number;- staticity?: number;- ease?: number;- size?: number;- refresh?: boolean;- color?: string;- vx?: number;- vy?: number;+ className?: string+ quantity?: number+ staticity?: number+ ease?: number+ size?: number+ refresh?: boolean+ color?: string+ vx?: number+ vy?: number}function hexToRgb(hex: string): number[] {- hex = hex.replace("#", "");+ hex = hex.replace("#", "")if (hex.length === 3) {hex = hex.split("").map((char) => char + char)- .join("");+ .join("")}- const hexInt = parseInt(hex, 16);- const red = (hexInt >> 16) & 255;- const green = (hexInt >> 8) & 255;- const blue = hexInt & 255;- return [red, green, blue];+ const hexInt = parseInt(hex, 16)+ const red = (hexInt >> 16) & 255+ const green = (hexInt >> 8) & 255+ const blue = hexInt & 255+ return [red, green, blue]}type Circle = {- x: number;- y: number;- translateX: number;- translateY: number;- size: number;- alpha: number;- targetAlpha: number;- dx: number;- dy: number;- magnetism: number;-};+ x: number+ y: number+ translateX: number+ translateY: number+ size: number+ alpha: number+ targetAlpha: number+ dx: number+ dy: number+ magnetism: number+}export const Particles: React.FC<ParticlesProps> = ({className = "",@@ -88,104 +89,104 @@ export const Particles: React.FC<ParticlesProps> = ({vy = 0,...props}) => {- const canvasRef = useRef<HTMLCanvasElement>(null);- const canvasContainerRef = useRef<HTMLDivElement>(null);- const context = useRef<CanvasRenderingContext2D | null>(null);- const circles = useRef<Circle[]>([]);- const mousePosition = MousePosition();- const mouse = useRef<{ x: number; y: number }>({ x: 0, y: 0 });- const canvasSize = useRef<{ w: number; h: number }>({ w: 0, h: 0 });- const dpr = typeof window !== "undefined" ? window.devicePixelRatio : 1;- const rafID = useRef<number | null>(null);- const resizeTimeout = useRef<NodeJS.Timeout | null>(null);+ const canvasRef = useRef<HTMLCanvasElement>(null)+ const canvasContainerRef = useRef<HTMLDivElement>(null)+ const context = useRef<CanvasRenderingContext2D | null>(null)+ const circles = useRef<Circle[]>([])+ const mousePosition = MousePosition()+ const mouse = useRef<{ x: number; y: number }>({ x: 0, y: 0 })+ const canvasSize = useRef<{ w: number; h: number }>({ w: 0, h: 0 })+ const dpr = typeof window !== "undefined" ? window.devicePixelRatio : 1+ const rafID = useRef<number | null>(null)+ const resizeTimeout = useRef<NodeJS.Timeout | null>(null)useEffect(() => {if (canvasRef.current) {- context.current = canvasRef.current.getContext("2d");+ context.current = canvasRef.current.getContext("2d")}- initCanvas();- animate();+ initCanvas()+ animate()const handleResize = () => {if (resizeTimeout.current) {- clearTimeout(resizeTimeout.current);+ clearTimeout(resizeTimeout.current)}resizeTimeout.current = setTimeout(() => {- initCanvas();- }, 200);- };+ initCanvas()+ }, 200)+ }- window.addEventListener("resize", handleResize);+ window.addEventListener("resize", handleResize)return () => {if (rafID.current != null) {- window.cancelAnimationFrame(rafID.current);+ window.cancelAnimationFrame(rafID.current)}if (resizeTimeout.current) {- clearTimeout(resizeTimeout.current);+ clearTimeout(resizeTimeout.current)}- window.removeEventListener("resize", handleResize);- };- }, [color]);+ window.removeEventListener("resize", handleResize)+ }+ }, [color])useEffect(() => {- onMouseMove();- }, [mousePosition.x, mousePosition.y]);+ onMouseMove()+ }, [mousePosition.x, mousePosition.y])useEffect(() => {- initCanvas();- }, [refresh]);+ initCanvas()+ }, [refresh])const initCanvas = () => {- resizeCanvas();- drawParticles();- };+ resizeCanvas()+ drawParticles()+ }const onMouseMove = () => {if (canvasRef.current) {- const rect = canvasRef.current.getBoundingClientRect();- const { w, h } = canvasSize.current;- const x = mousePosition.x - rect.left - w / 2;- const y = mousePosition.y - rect.top - h / 2;- const inside = x < w / 2 && x > -w / 2 && y < h / 2 && y > -h / 2;+ const rect = canvasRef.current.getBoundingClientRect()+ const { w, h } = canvasSize.current+ const x = mousePosition.x - rect.left - w / 2+ const y = mousePosition.y - rect.top - h / 2+ const inside = x < w / 2 && x > -w / 2 && y < h / 2 && y > -h / 2if (inside) {- mouse.current.x = x;- mouse.current.y = y;+ mouse.current.x = x+ mouse.current.y = y}}- };+ }const resizeCanvas = () => {if (canvasContainerRef.current && canvasRef.current && context.current) {- canvasSize.current.w = canvasContainerRef.current.offsetWidth;- canvasSize.current.h = canvasContainerRef.current.offsetHeight;+ canvasSize.current.w = canvasContainerRef.current.offsetWidth+ canvasSize.current.h = canvasContainerRef.current.offsetHeight- canvasRef.current.width = canvasSize.current.w * dpr;- canvasRef.current.height = canvasSize.current.h * dpr;- canvasRef.current.style.width = `${canvasSize.current.w}px`;- canvasRef.current.style.height = `${canvasSize.current.h}px`;- context.current.scale(dpr, dpr);+ canvasRef.current.width = canvasSize.current.w * dpr+ canvasRef.current.height = canvasSize.current.h * dpr+ canvasRef.current.style.width = `${canvasSize.current.w}px`+ canvasRef.current.style.height = `${canvasSize.current.h}px`+ context.current.scale(dpr, dpr)// Clear existing particles and create new ones with exact quantity- circles.current = [];+ circles.current = []for (let i = 0; i < quantity; i++) {- const circle = circleParams();- drawCircle(circle);+ const circle = circleParams()+ drawCircle(circle)}}- };+ }const circleParams = (): Circle => {- const x = Math.floor(Math.random() * canvasSize.current.w);- const y = Math.floor(Math.random() * canvasSize.current.h);- const translateX = 0;- const translateY = 0;- const pSize = Math.floor(Math.random() * 2) + size;- const alpha = 0;- const targetAlpha = parseFloat((Math.random() * 0.6 + 0.1).toFixed(1));- const dx = (Math.random() - 0.5) * 0.1;- const dy = (Math.random() - 0.5) * 0.1;- const magnetism = 0.1 + Math.random() * 4;+ const x = Math.floor(Math.random() * canvasSize.current.w)+ const y = Math.floor(Math.random() * canvasSize.current.h)+ const translateX = 0+ const translateY = 0+ const pSize = Math.floor(Math.random() * 2) + size+ const alpha = 0+ const targetAlpha = parseFloat((Math.random() * 0.6 + 0.1).toFixed(1))+ const dx = (Math.random() - 0.5) * 0.1+ const dy = (Math.random() - 0.5) * 0.1+ const magnetism = 0.1 + Math.random() * 4return {x,y,@@ -197,26 +198,26 @@ export const Particles: React.FC<ParticlesProps> = ({dx,dy,magnetism,- };- };+ }+ }- const rgb = hexToRgb(color);+ const rgb = hexToRgb(color)const drawCircle = (circle: Circle, update = false) => {if (context.current) {- const { x, y, translateX, translateY, size, alpha } = circle;- context.current.translate(translateX, translateY);- context.current.beginPath();- context.current.arc(x, y, size, 0, 2 * Math.PI);- context.current.fillStyle = `rgba(${rgb.join(", ")}, ${alpha})`;- context.current.fill();- context.current.setTransform(dpr, 0, 0, dpr, 0, 0);+ const { x, y, translateX, translateY, size, alpha } = circle+ context.current.translate(translateX, translateY)+ context.current.beginPath()+ context.current.arc(x, y, size, 0, 2 * Math.PI)+ context.current.fillStyle = `rgba(${rgb.join(", ")}, ${alpha})`+ context.current.fill()+ context.current.setTransform(dpr, 0, 0, dpr, 0, 0)if (!update) {- circles.current.push(circle);+ circles.current.push(circle)}}- };+ }const clearContext = () => {if (context.current) {@@ -224,34 +225,34 @@ export const Particles: React.FC<ParticlesProps> = ({0,0,canvasSize.current.w,- canvasSize.current.h,- );+ canvasSize.current.h+ )}- };+ }const drawParticles = () => {- clearContext();- const particleCount = quantity;+ clearContext()+ const particleCount = quantityfor (let i = 0; i < particleCount; i++) {- const circle = circleParams();- drawCircle(circle);+ const circle = circleParams()+ drawCircle(circle)}- };+ }const remapValue = (value: number,start1: number,end1: number,start2: number,- end2: number,+ end2: number): number => {const remapped =- ((value - start1) * (end2 - start2)) / (end1 - start1) + start2;- return remapped > 0 ? remapped : 0;- };+ ((value - start1) * (end2 - start2)) / (end1 - start1) + start2+ return remapped > 0 ? remapped : 0+ }const animate = () => {- clearContext();+ clearContext()circles.current.forEach((circle: Circle, i: number) => {// Handle the alpha valueconst edge = [@@ -259,29 +260,29 @@ export const Particles: React.FC<ParticlesProps> = ({canvasSize.current.w - circle.x - circle.translateX - circle.size, // distance from right edgecircle.y + circle.translateY - circle.size, // distance from top edgecanvasSize.current.h - circle.y - circle.translateY - circle.size, // distance from bottom edge- ];- const closestEdge = edge.reduce((a, b) => Math.min(a, b));+ ]+ const closestEdge = edge.reduce((a, b) => Math.min(a, b))const remapClosestEdge = parseFloat(- remapValue(closestEdge, 0, 20, 0, 1).toFixed(2),- );+ remapValue(closestEdge, 0, 20, 0, 1).toFixed(2)+ )if (remapClosestEdge > 1) {- circle.alpha += 0.02;+ circle.alpha += 0.02if (circle.alpha > circle.targetAlpha) {- circle.alpha = circle.targetAlpha;+ circle.alpha = circle.targetAlpha}} else {- circle.alpha = circle.targetAlpha * remapClosestEdge;+ circle.alpha = circle.targetAlpha * remapClosestEdge}- circle.x += circle.dx + vx;- circle.y += circle.dy + vy;+ circle.x += circle.dx + vx+ circle.y += circle.dy + vycircle.translateX +=(mouse.current.x / (staticity / circle.magnetism) - circle.translateX) /- ease;+ easecircle.translateY +=(mouse.current.y / (staticity / circle.magnetism) - circle.translateY) /- ease;+ ease- drawCircle(circle, true);+ drawCircle(circle, true)// circle gets out of the canvasif (@@ -291,14 +292,14 @@ export const Particles: React.FC<ParticlesProps> = ({circle.y > canvasSize.current.h + circle.size) {// remove the circle from the array- circles.current.splice(i, 1);+ circles.current.splice(i, 1)// create a new circle- const newCircle = circleParams();- drawCircle(newCircle);+ const newCircle = circleParams()+ drawCircle(newCircle)}- });- rafID.current = window.requestAnimationFrame(animate);- };+ })+ rafID.current = window.requestAnimationFrame(animate)+ }return (<div@@ -309,5 +310,5 @@ export const Particles: React.FC<ParticlesProps> = ({><canvas ref={canvasRef} className="size-full" /></div>- );-};+ )+}diff --git a/apps/www/registry/magicui/pixel-image.tsx b/apps/www/registry/magicui/pixel-image.tsxindex d65c9c88..94c5f003 100644--- a/apps/www/registry/magicui/pixel-image.tsx+++ b/apps/www/registry/magicui/pixel-image.tsx@@ -1,12 +1,13 @@-"use client";+"use client"-import { cn } from "@/lib/utils";-import { useEffect, useMemo, useState } from "react";+import { useEffect, useMemo, useState } from "react"++import { cn } from "@/lib/utils"type Grid = {- rows: number;- cols: number;-};+ rows: number+ cols: number+}const DEFAULT_GRIDS: Record<string, Grid> = {"6x4": { rows: 4, cols: 6 },@@ -14,18 +15,18 @@ const DEFAULT_GRIDS: Record<string, Grid> = {"8x3": { rows: 3, cols: 8 },"4x6": { rows: 6, cols: 4 },"3x8": { rows: 8, cols: 3 },-};+}-type PredefinedGridKey = keyof typeof DEFAULT_GRIDS;+type PredefinedGridKey = keyof typeof DEFAULT_GRIDSinterface PixelImageProps {- src: string;- grid?: PredefinedGridKey;- customGrid?: Grid;- grayscaleAnimation?: boolean;- pixelFadeInDuration?: number; // in ms- maxAnimationDelay?: number; // in ms- colorRevealDelay?: number; // in ms+ src: string+ grid?: PredefinedGridKey+ customGrid?: Grid+ grayscaleAnimation?: boolean+ pixelFadeInDuration?: number // in ms+ maxAnimationDelay?: number // in ms+ colorRevealDelay?: number // in ms}export const PixelImage = ({@@ -37,16 +38,16 @@ export const PixelImage = ({colorRevealDelay = 1300,customGrid,}: PixelImageProps) => {- const [isVisible, setIsVisible] = useState(false);- const [showColor, setShowColor] = useState(false);+ const [isVisible, setIsVisible] = useState(false)+ const [showColor, setShowColor] = useState(false)- const MIN_GRID = 1;- const MAX_GRID = 16;+ const MIN_GRID = 1+ const MAX_GRID = 16const { rows, cols } = useMemo(() => {const isValidGrid = (grid?: Grid) => {- if (!grid) return false;- const { rows, cols } = grid;+ if (!grid) return false+ const { rows, cols } = gridreturn (Number.isInteger(rows) &&Number.isInteger(cols) &&@@ -54,40 +55,40 @@ export const PixelImage = ({cols >= MIN_GRID &&rows <= MAX_GRID &&cols <= MAX_GRID- );- };+ )+ }- return isValidGrid(customGrid) ? customGrid! : DEFAULT_GRIDS[grid];- }, [customGrid, grid]);+ return isValidGrid(customGrid) ? customGrid! : DEFAULT_GRIDS[grid]+ }, [customGrid, grid])useEffect(() => {- setIsVisible(true);+ setIsVisible(true)const colorTimeout = setTimeout(() => {- setShowColor(true);- }, colorRevealDelay);- return () => clearTimeout(colorTimeout);- }, [colorRevealDelay]);+ setShowColor(true)+ }, colorRevealDelay)+ return () => clearTimeout(colorTimeout)+ }, [colorRevealDelay])const pieces = useMemo(() => {- const total = rows * cols;+ const total = rows * colsreturn Array.from({ length: total }, (_, index) => {- const row = Math.floor(index / cols);- const col = index % cols;+ const row = Math.floor(index / cols)+ const col = index % colsconst clipPath = `polygon(${col * (100 / cols)}% ${row * (100 / rows)}%,${(col + 1) * (100 / cols)}% ${row * (100 / rows)}%,${(col + 1) * (100 / cols)}% ${(row + 1) * (100 / rows)}%,${col * (100 / cols)}% ${(row + 1) * (100 / rows)}%- )`;+ )`- const delay = Math.random() * maxAnimationDelay;+ const delay = Math.random() * maxAnimationDelayreturn {clipPath,delay,- };- });- }, [rows, cols, maxAnimationDelay]);+ }+ })+ }, [rows, cols, maxAnimationDelay])return (<div className="relative h-72 w-72 select-none md:h-96 md:w-96">@@ -96,7 +97,7 @@ export const PixelImage = ({key={index}className={cn("absolute inset-0 transition-all ease-out",- isVisible ? "opacity-100" : "opacity-0",+ isVisible ? "opacity-100" : "opacity-0")}style={{clipPath: piece.clipPath,@@ -108,8 +109,8 @@ export const PixelImage = ({src={src}alt={`Pixel image piece ${index + 1}`}className={cn(- "z-1 object-cover rounded-[2.5rem]",- grayscaleAnimation && (showColor ? "grayscale-0" : "grayscale"),+ "z-1 rounded-[2.5rem] object-cover",+ grayscaleAnimation && (showColor ? "grayscale-0" : "grayscale"))}style={{transition: grayscaleAnimation@@ -121,5 +122,5 @@ export const PixelImage = ({</div>))}</div>- );-};+ )+}diff --git a/apps/www/registry/magicui/pointer.tsx b/apps/www/registry/magicui/pointer.tsxindex 42b7c4b5..321585d9 100644--- a/apps/www/registry/magicui/pointer.tsx+++ b/apps/www/registry/magicui/pointer.tsx@@ -1,13 +1,14 @@-"use client";+"use client"-import { cn } from "@/lib/utils";+import { useEffect, useRef, useState } from "react"import {AnimatePresence,HTMLMotionProps,motion,useMotionValue,-} from "motion/react";-import { useEffect, useRef, useState } from "react";+} from "motion/react"++import { cn } from "@/lib/utils"interface PointerProps extends Omit<HTMLMotionProps<"div">, "ref"> {}@@ -25,49 +26,49 @@ export function Pointer({children,...props}: PointerProps): React.ReactNode {- const x = useMotionValue(0);- const y = useMotionValue(0);- const [isActive, setIsActive] = useState<boolean>(false);- const containerRef = useRef<HTMLDivElement>(null);+ const x = useMotionValue(0)+ const y = useMotionValue(0)+ const [isActive, setIsActive] = useState<boolean>(false)+ const containerRef = useRef<HTMLDivElement>(null)useEffect(() => {if (typeof window !== "undefined" && containerRef.current) {// Get the parent element directly from the ref- const parentElement = containerRef.current.parentElement;+ const parentElement = containerRef.current.parentElementif (parentElement) {// Add cursor-none to parent- parentElement.style.cursor = "none";+ parentElement.style.cursor = "none"// Add event listeners to parentconst handleMouseMove = (e: MouseEvent) => {- x.set(e.clientX);- y.set(e.clientY);- };+ x.set(e.clientX)+ y.set(e.clientY)+ }const handleMouseEnter = (e: MouseEvent) => {- x.set(e.clientX);- y.set(e.clientY);- setIsActive(true);- };+ x.set(e.clientX)+ y.set(e.clientY)+ setIsActive(true)+ }const handleMouseLeave = () => {- setIsActive(false);- };+ setIsActive(false)+ }- parentElement.addEventListener("mousemove", handleMouseMove);- parentElement.addEventListener("mouseenter", handleMouseEnter);- parentElement.addEventListener("mouseleave", handleMouseLeave);+ parentElement.addEventListener("mousemove", handleMouseMove)+ parentElement.addEventListener("mouseenter", handleMouseEnter)+ parentElement.addEventListener("mouseleave", handleMouseLeave)return () => {- parentElement.style.cursor = "";- parentElement.removeEventListener("mousemove", handleMouseMove);- parentElement.removeEventListener("mouseenter", handleMouseEnter);- parentElement.removeEventListener("mouseleave", handleMouseLeave);- };+ parentElement.style.cursor = ""+ parentElement.removeEventListener("mousemove", handleMouseMove)+ parentElement.removeEventListener("mouseenter", handleMouseEnter)+ parentElement.removeEventListener("mouseleave", handleMouseLeave)+ }}}- }, [x, y]);+ }, [x, y])return (<>@@ -75,7 +76,7 @@ export function Pointer({<AnimatePresence>{isActive && (<motion.div- className="transform-[translate(-50%,-50%)] pointer-events-none fixed z-50"+ className="pointer-events-none fixed z-50 transform-[translate(-50%,-50%)]"style={{top: y,left: x,@@ -106,7 +107,7 @@ export function Pointer({xmlns="http://www.w3.org/2000/svg"className={cn("rotate-[-70deg] stroke-white text-black",- className,+ className)}><path d="M14.082 2.182a.5.5 0 0 1 .103.557L8.528 15.467a.5.5 0 0 1-.917-.007L5.57 10.694.803 8.652a.5.5 0 0 1-.006-.916l12.728-5.657a.5.5 0 0 1 .556.103z" />@@ -116,5 +117,5 @@ export function Pointer({)}</AnimatePresence></>- );+ )}diff --git a/apps/www/registry/magicui/progressive-blur.tsx b/apps/www/registry/magicui/progressive-blur.tsxindex c5c4d694..0d74b368 100644--- a/apps/www/registry/magicui/progressive-blur.tsx+++ b/apps/www/registry/magicui/progressive-blur.tsx@@ -1,14 +1,15 @@-"use client";+"use client"-import { cn } from "@/lib/utils";-import React from "react";+import React from "react"++import { cn } from "@/lib/utils"export interface ProgressiveBlurProps {- className?: string;- height?: string;- position?: "top" | "bottom" | "both";- blurLevels?: number[];- children?: React.ReactNode;+ className?: string+ height?: string+ position?: "top" | "bottom" | "both"+ blurLevels?: number[]+ children?: React.ReactNode}export function ProgressiveBlur({@@ -18,18 +19,18 @@ export function ProgressiveBlur({blurLevels = [0.5, 1, 2, 4, 8, 16, 32, 64],}: ProgressiveBlurProps) {// Create array with length equal to blurLevels.length - 2 (for before/after pseudo elements)- const divElements = Array(blurLevels.length - 2).fill(null);+ const divElements = Array(blurLevels.length - 2).fill(null)return (<divclassName={cn(- "gradient-blur pointer-events-none absolute z-10 inset-x-0",+ "gradient-blur pointer-events-none absolute inset-x-0 z-10",className,position === "top"? "top-0": position === "bottom"? "bottom-0"- : "inset-y-0",+ : "inset-y-0")}style={{height: position === "both" ? "100%" : height,@@ -59,17 +60,17 @@ export function ProgressiveBlur({{/* Middle blur layers */}{divElements.map((_, index) => {- const blurIndex = index + 1;- const startPercent = blurIndex * 12.5;- const midPercent = (blurIndex + 1) * 12.5;- const endPercent = (blurIndex + 2) * 12.5;+ const blurIndex = index + 1+ const startPercent = blurIndex * 12.5+ const midPercent = (blurIndex + 1) * 12.5+ const endPercent = (blurIndex + 2) * 12.5const maskGradient =position === "bottom"? `linear-gradient(to bottom, rgba(0,0,0,0) ${startPercent}%, rgba(0,0,0,1) ${midPercent}%, rgba(0,0,0,1) ${endPercent}%, rgba(0,0,0,0) ${endPercent + 12.5}%)`: position === "top"? `linear-gradient(to top, rgba(0,0,0,0) ${startPercent}%, rgba(0,0,0,1) ${midPercent}%, rgba(0,0,0,1) ${endPercent}%, rgba(0,0,0,0) ${endPercent + 12.5}%)`- : `linear-gradient(rgba(0,0,0,0) 0%, rgba(0,0,0,1) 5%, rgba(0,0,0,1) 95%, rgba(0,0,0,0) 100%)`;+ : `linear-gradient(rgba(0,0,0,0) 0%, rgba(0,0,0,1) 5%, rgba(0,0,0,1) 95%, rgba(0,0,0,0) 100%)`return (<div@@ -83,7 +84,7 @@ export function ProgressiveBlur({WebkitMaskImage: maskGradient,}}/>- );+ )})}{/* Last blur layer (pseudo element) */}@@ -108,5 +109,5 @@ export function ProgressiveBlur({}}/></div>- );+ )}diff --git a/apps/www/registry/magicui/pulsating-button.tsx b/apps/www/registry/magicui/pulsating-button.tsxindex 78d36ade..40a8c71d 100644--- a/apps/www/registry/magicui/pulsating-button.tsx+++ b/apps/www/registry/magicui/pulsating-button.tsx@@ -1,10 +1,11 @@-import React from "react";-import { cn } from "@/lib/utils";+import React from "react"++import { cn } from "@/lib/utils"interface PulsatingButtonPropsextends React.ButtonHTMLAttributes<HTMLButtonElement> {- pulseColor?: string;- duration?: string;+ pulseColor?: string+ duration?: string}export const PulsatingButton = React.forwardRef<@@ -19,14 +20,14 @@ export const PulsatingButton = React.forwardRef<duration = "1.5s",...props},- ref,+ ref) => {return (<buttonref={ref}className={cn(- "relative flex cursor-pointer items-center justify-center rounded-lg bg-primary px-4 py-2 text-center text-primary-foreground",- className,+ "bg-primary text-primary-foreground relative flex cursor-pointer items-center justify-center rounded-lg px-4 py-2 text-center",+ className)}style={{@@ -37,10 +38,10 @@ export const PulsatingButton = React.forwardRef<{...props}><div className="relative z-10">{children}</div>- <div className="absolute left-1/2 top-1/2 size-full -translate-x-1/2 -translate-y-1/2 animate-pulse rounded-lg bg-inherit" />+ <div className="absolute top-1/2 left-1/2 size-full -translate-x-1/2 -translate-y-1/2 animate-pulse rounded-lg bg-inherit" /></button>- );- },-);+ )+ }+)-PulsatingButton.displayName = "PulsatingButton";+PulsatingButton.displayName = "PulsatingButton"diff --git a/apps/www/registry/magicui/rainbow-button.tsx b/apps/www/registry/magicui/rainbow-button.tsxindex ab5ae0df..b7856836 100644--- a/apps/www/registry/magicui/rainbow-button.tsx+++ b/apps/www/registry/magicui/rainbow-button.tsx@@ -1,7 +1,8 @@-import { cn } from "@/lib/utils";-import { Slot } from "@radix-ui/react-slot";-import { cva, VariantProps } from "class-variance-authority";-import React from "react";+import React from "react"+import { Slot } from "@radix-ui/react-slot"+import { cva, VariantProps } from "class-variance-authority"++import { cn } from "@/lib/utils"interface RainbowButtonPropsextends React.ButtonHTMLAttributes<HTMLButtonElement> {}@@ -13,7 +14,7 @@ const rainbowButtonVariants = cva("rounded-sm outline-none focus-visible:ring-[3px] aria-invalid:border-destructive","text-sm font-medium whitespace-nowrap","disabled:pointer-events-none disabled:opacity-50",- "[&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0",+ "[&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0"),{variants: {@@ -34,18 +35,18 @@ const rainbowButtonVariants = cva(variant: "default",size: "default",},- },-);+ }+)interface RainbowButtonPropsextends React.ButtonHTMLAttributes<HTMLButtonElement>,VariantProps<typeof rainbowButtonVariants> {- asChild?: boolean;+ asChild?: boolean}const RainbowButton = React.forwardRef<HTMLButtonElement, RainbowButtonProps>(({ className, variant, size, asChild = false, ...props }, ref) => {- const Comp = asChild ? Slot : "button";+ const Comp = asChild ? Slot : "button"return (<Compdata-slot="button"@@ -53,10 +54,10 @@ const RainbowButton = React.forwardRef<HTMLButtonElement, RainbowButtonProps>(ref={ref}{...props}/>- );- },-);+ )+ }+)-RainbowButton.displayName = "RainbowButton";+RainbowButton.displayName = "RainbowButton"-export { RainbowButton, rainbowButtonVariants, type RainbowButtonProps };+export { RainbowButton, rainbowButtonVariants, type RainbowButtonProps }diff --git a/apps/www/registry/magicui/retro-grid.tsx b/apps/www/registry/magicui/retro-grid.tsxindex 9a72d435..ee5d247a 100644--- a/apps/www/registry/magicui/retro-grid.tsx+++ b/apps/www/registry/magicui/retro-grid.tsx@@ -1,35 +1,35 @@-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"interface RetroGridProps extends React.HTMLAttributes<HTMLDivElement> {/*** Additional CSS classes to apply to the grid container*/- className?: string;+ className?: string/*** Rotation angle of the grid in degrees* @default 65*/- angle?: number;+ angle?: number/*** Grid cell size in pixels* @default 60*/- cellSize?: number;+ cellSize?: number/*** Grid opacity value between 0 and 1* @default 0.5*/- opacity?: number;+ opacity?: number/*** Grid line color in light mode* @default "gray"*/- lightLineColor?: string;+ lightLineColor?: string/*** Grid line color in dark mode* @default "gray"*/- darkLineColor?: string;+ darkLineColor?: string}export function RetroGrid({@@ -47,23 +47,23 @@ export function RetroGrid({"--opacity": opacity,"--light-line": lightLineColor,"--dark-line": darkLineColor,- } as React.CSSProperties;+ } as React.CSSPropertiesreturn (<divclassName={cn("pointer-events-none absolute size-full overflow-hidden [perspective:200px]",`opacity-[var(--opacity)]`,- className,+ className)}style={gridStyles}{...props}><div className="absolute inset-0 [transform:rotateX(var(--grid-angle))]">- <div className="animate-grid [background-image:linear-gradient(to_right,var(--light-line)_1px,transparent_0),linear-gradient(to_bottom,var(--light-line)_1px,transparent_0)] [background-repeat:repeat] [background-size:var(--cell-size)_var(--cell-size)] [height:300vh] [inset:0%_0px] [margin-left:-200%] [transform-origin:100%_0_0] [width:600vw] dark:[background-image:linear-gradient(to_right,var(--dark-line)_1px,transparent_0),linear-gradient(to_bottom,var(--dark-line)_1px,transparent_0)]" />+ <div className="animate-grid [inset:0%_0px] [margin-left:-200%] [height:300vh] [width:600vw] [transform-origin:100%_0_0] [background-image:linear-gradient(to_right,var(--light-line)_1px,transparent_0),linear-gradient(to_bottom,var(--light-line)_1px,transparent_0)] [background-size:var(--cell-size)_var(--cell-size)] [background-repeat:repeat] dark:[background-image:linear-gradient(to_right,var(--dark-line)_1px,transparent_0),linear-gradient(to_bottom,var(--dark-line)_1px,transparent_0)]" /></div><div className="absolute inset-0 bg-gradient-to-t from-white to-transparent to-90% dark:from-black" /></div>- );+ )}diff --git a/apps/www/registry/magicui/ripple-button.tsx b/apps/www/registry/magicui/ripple-button.tsxindex 458551d9..218ba4ab 100644--- a/apps/www/registry/magicui/ripple-button.tsx+++ b/apps/www/registry/magicui/ripple-button.tsx@@ -1,12 +1,13 @@-"use client";+"use client"-import { cn } from "@/lib/utils";-import React, { MouseEvent, useEffect, useState } from "react";+import React, { MouseEvent, useEffect, useState } from "react"++import { cn } from "@/lib/utils"interface RippleButtonPropsextends React.ButtonHTMLAttributes<HTMLButtonElement> {- rippleColor?: string;- duration?: string;+ rippleColor?: string+ duration?: string}export const RippleButton = React.forwardRef<@@ -22,45 +23,45 @@ export const RippleButton = React.forwardRef<onClick,...props},- ref,+ ref) => {const [buttonRipples, setButtonRipples] = useState<Array<{ x: number; y: number; size: number; key: number }>- >([]);+ >([])const handleClick = (event: MouseEvent<HTMLButtonElement>) => {- createRipple(event);- onClick?.(event);- };+ createRipple(event)+ onClick?.(event)+ }const createRipple = (event: MouseEvent<HTMLButtonElement>) => {- const button = event.currentTarget;- const rect = button.getBoundingClientRect();- const size = Math.max(rect.width, rect.height);- const x = event.clientX - rect.left - size / 2;- const y = event.clientY - rect.top - size / 2;+ const button = event.currentTarget+ const rect = button.getBoundingClientRect()+ const size = Math.max(rect.width, rect.height)+ const x = event.clientX - rect.left - size / 2+ const y = event.clientY - rect.top - size / 2- const newRipple = { x, y, size, key: Date.now() };- setButtonRipples((prevRipples) => [...prevRipples, newRipple]);- };+ const newRipple = { x, y, size, key: Date.now() }+ setButtonRipples((prevRipples) => [...prevRipples, newRipple])+ }useEffect(() => {if (buttonRipples.length > 0) {- const lastRipple = buttonRipples[buttonRipples.length - 1];+ const lastRipple = buttonRipples[buttonRipples.length - 1]const timeout = setTimeout(() => {setButtonRipples((prevRipples) =>- prevRipples.filter((ripple) => ripple.key !== lastRipple.key),- );- }, parseInt(duration));- return () => clearTimeout(timeout);+ prevRipples.filter((ripple) => ripple.key !== lastRipple.key)+ )+ }, parseInt(duration))+ return () => clearTimeout(timeout)}- }, [buttonRipples, duration]);+ }, [buttonRipples, duration])return (<buttonclassName={cn(- "relative flex cursor-pointer items-center justify-center overflow-hidden rounded-lg border-2 bg-background px-4 py-2 text-center text-primary",- className,+ "bg-background text-primary relative flex cursor-pointer items-center justify-center overflow-hidden rounded-lg border-2 px-4 py-2 text-center",+ className)}onClick={handleClick}ref={ref}@@ -70,7 +71,7 @@ export const RippleButton = React.forwardRef<<span className="pointer-events-none absolute inset-0">{buttonRipples.map((ripple) => (<span- className="absolute animate-rippling rounded-full bg-background opacity-30"+ className="animate-rippling bg-background absolute rounded-full opacity-30"key={ripple.key}style={{width: `${ripple.size}px`,@@ -84,8 +85,8 @@ export const RippleButton = React.forwardRef<))}</span></button>- );- },-);+ )+ }+)-RippleButton.displayName = "RippleButton";+RippleButton.displayName = "RippleButton"diff --git a/apps/www/registry/magicui/ripple.tsx b/apps/www/registry/magicui/ripple.tsxindex 76591474..6d914648 100644--- a/apps/www/registry/magicui/ripple.tsx+++ b/apps/www/registry/magicui/ripple.tsx@@ -1,11 +1,11 @@-import React, { ComponentPropsWithoutRef, CSSProperties } from "react";+import React, { ComponentPropsWithoutRef, CSSProperties } from "react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"interface RippleProps extends ComponentPropsWithoutRef<"div"> {- mainCircleSize?: number;- mainCircleOpacity?: number;- numCircles?: number;+ mainCircleSize?: number+ mainCircleOpacity?: number+ numCircles?: number}export const Ripple = React.memo(function Ripple({@@ -18,21 +18,21 @@ export const Ripple = React.memo(function Ripple({return (<divclassName={cn(- "pointer-events-none absolute inset-0 select-none [mask-image:linear-gradient(to_bottom,white,transparent)]",- className,+ "pointer-events-none absolute inset-0 [mask-image:linear-gradient(to_bottom,white,transparent)] select-none",+ className)}{...props}>{Array.from({ length: numCircles }, (_, i) => {- const size = mainCircleSize + i * 70;- const opacity = mainCircleOpacity - i * 0.03;- const animationDelay = `${i * 0.06}s`;- const borderStyle = "solid";+ const size = mainCircleSize + i * 70+ const opacity = mainCircleOpacity - i * 0.03+ const animationDelay = `${i * 0.06}s`+ const borderStyle = "solid"return (<divkey={i}- className={`absolute animate-ripple rounded-full border bg-foreground/25 shadow-xl`}+ className={`animate-ripple bg-foreground/25 absolute rounded-full border shadow-xl`}style={{"--i": i,@@ -49,10 +49,10 @@ export const Ripple = React.memo(function Ripple({} as CSSProperties}/>- );+ )})}</div>- );-});+ )+})-Ripple.displayName = "Ripple";+Ripple.displayName = "Ripple"diff --git a/apps/www/registry/magicui/safari.tsx b/apps/www/registry/magicui/safari.tsxindex 4a55a7c7..35ab6e5f 100644--- a/apps/www/registry/magicui/safari.tsx+++ b/apps/www/registry/magicui/safari.tsx@@ -1,25 +1,25 @@-import type { HTMLAttributes } from "react";+import type { HTMLAttributes } from "react"-const SAFARI_WIDTH = 1203;-const SAFARI_HEIGHT = 753;-const SCREEN_X = 1;-const SCREEN_Y = 52;-const SCREEN_WIDTH = 1200;-const SCREEN_HEIGHT = 700;+const SAFARI_WIDTH = 1203+const SAFARI_HEIGHT = 753+const SCREEN_X = 1+const SCREEN_Y = 52+const SCREEN_WIDTH = 1200+const SCREEN_HEIGHT = 700// Calculated percentages-const LEFT_PCT = (SCREEN_X / SAFARI_WIDTH) * 100;-const TOP_PCT = (SCREEN_Y / SAFARI_HEIGHT) * 100;-const WIDTH_PCT = (SCREEN_WIDTH / SAFARI_WIDTH) * 100;-const HEIGHT_PCT = (SCREEN_HEIGHT / SAFARI_HEIGHT) * 100;+const LEFT_PCT = (SCREEN_X / SAFARI_WIDTH) * 100+const TOP_PCT = (SCREEN_Y / SAFARI_HEIGHT) * 100+const WIDTH_PCT = (SCREEN_WIDTH / SAFARI_WIDTH) * 100+const HEIGHT_PCT = (SCREEN_HEIGHT / SAFARI_HEIGHT) * 100-type SafariMode = "default" | "simple";+type SafariMode = "default" | "simple"export interface SafariProps extends HTMLAttributes<HTMLDivElement> {- url?: string;- imageSrc?: string;- videoSrc?: string;- mode?: SafariMode;+ url?: string+ imageSrc?: string+ videoSrc?: string+ mode?: SafariMode}export function Safari({@@ -31,8 +31,8 @@ export function Safari({style,...props}: SafariProps) {- const hasVideo = !!videoSrc;- const hasMedia = hasVideo || !!imageSrc;+ const hasVideo = !!videoSrc+ const hasMedia = hasVideo || !!imageSrcreturn (<div@@ -234,5 +234,5 @@ export function Safari({</g></svg></div>- );+ )}diff --git a/apps/www/registry/magicui/scratch-to-reveal.tsx b/apps/www/registry/magicui/scratch-to-reveal.tsxindex 07219958..2b6718a8 100644--- a/apps/www/registry/magicui/scratch-to-reveal.tsx+++ b/apps/www/registry/magicui/scratch-to-reveal.tsx@@ -1,17 +1,18 @@-"use client";+"use client"-import { cn } from "@/lib/utils";-import { motion, useAnimation } from "motion/react";-import React, { useEffect, useRef, useState } from "react";+import React, { useEffect, useRef, useState } from "react"+import { motion, useAnimation } from "motion/react"++import { cn } from "@/lib/utils"interface ScratchToRevealProps {- children: React.ReactNode;- width: number;- height: number;- minScratchPercentage?: number;- className?: string;- onComplete?: () => void;- gradientColors?: [string, string, string];+ children: React.ReactNode+ width: number+ height: number+ minScratchPercentage?: number+ className?: string+ onComplete?: () => void+ gradientColors?: [string, string, string]}export const ScratchToReveal: React.FC<ScratchToRevealProps> = ({@@ -23,128 +24,128 @@ export const ScratchToReveal: React.FC<ScratchToRevealProps> = ({className,gradientColors = ["#A97CF8", "#F38CB8", "#FDCC92"],}) => {- const canvasRef = useRef<HTMLCanvasElement>(null);- const [isScratching, setIsScratching] = useState(false);- const [isComplete, setIsComplete] = useState(false);+ const canvasRef = useRef<HTMLCanvasElement>(null)+ const [isScratching, setIsScratching] = useState(false)+ const [isComplete, setIsComplete] = useState(false)- const controls = useAnimation();+ const controls = useAnimation()useEffect(() => {- const canvas = canvasRef.current;- const ctx = canvas?.getContext("2d");+ const canvas = canvasRef.current+ const ctx = canvas?.getContext("2d")if (canvas && ctx) {- ctx.fillStyle = "#ccc";- ctx.fillRect(0, 0, canvas.width, canvas.height);+ ctx.fillStyle = "#ccc"+ ctx.fillRect(0, 0, canvas.width, canvas.height)const gradient = ctx.createLinearGradient(0,0,canvas.width,- canvas.height,- );- gradient.addColorStop(0, gradientColors[0]);- gradient.addColorStop(0.5, gradientColors[1]);- gradient.addColorStop(1, gradientColors[2]);- ctx.fillStyle = gradient;- ctx.fillRect(0, 0, canvas.width, canvas.height);+ canvas.height+ )+ gradient.addColorStop(0, gradientColors[0])+ gradient.addColorStop(0.5, gradientColors[1])+ gradient.addColorStop(1, gradientColors[2])+ ctx.fillStyle = gradient+ ctx.fillRect(0, 0, canvas.width, canvas.height)}- }, [gradientColors]);+ }, [gradientColors])useEffect(() => {const handleDocumentMouseMove = (event: MouseEvent) => {- if (!isScratching) return;- scratch(event.clientX, event.clientY);- };+ if (!isScratching) return+ scratch(event.clientX, event.clientY)+ }const handleDocumentTouchMove = (event: TouchEvent) => {- if (!isScratching) return;- const touch = event.touches[0];- scratch(touch.clientX, touch.clientY);- };+ if (!isScratching) return+ const touch = event.touches[0]+ scratch(touch.clientX, touch.clientY)+ }const handleDocumentMouseUp = () => {- setIsScratching(false);- checkCompletion();- };+ setIsScratching(false)+ checkCompletion()+ }const handleDocumentTouchEnd = () => {- setIsScratching(false);- checkCompletion();- };-- document.addEventListener("mousedown", handleDocumentMouseMove);- document.addEventListener("mousemove", handleDocumentMouseMove);- document.addEventListener("touchstart", handleDocumentTouchMove);- document.addEventListener("touchmove", handleDocumentTouchMove);- document.addEventListener("mouseup", handleDocumentMouseUp);- document.addEventListener("touchend", handleDocumentTouchEnd);- document.addEventListener("touchcancel", handleDocumentTouchEnd);+ setIsScratching(false)+ checkCompletion()+ }++ document.addEventListener("mousedown", handleDocumentMouseMove)+ document.addEventListener("mousemove", handleDocumentMouseMove)+ document.addEventListener("touchstart", handleDocumentTouchMove)+ document.addEventListener("touchmove", handleDocumentTouchMove)+ document.addEventListener("mouseup", handleDocumentMouseUp)+ document.addEventListener("touchend", handleDocumentTouchEnd)+ document.addEventListener("touchcancel", handleDocumentTouchEnd)return () => {- document.removeEventListener("mousedown", handleDocumentMouseMove);- document.removeEventListener("mousemove", handleDocumentMouseMove);- document.removeEventListener("touchstart", handleDocumentTouchMove);- document.removeEventListener("touchmove", handleDocumentTouchMove);- document.removeEventListener("mouseup", handleDocumentMouseUp);- document.removeEventListener("touchend", handleDocumentTouchEnd);- document.removeEventListener("touchcancel", handleDocumentTouchEnd);- };- }, [isScratching]);+ document.removeEventListener("mousedown", handleDocumentMouseMove)+ document.removeEventListener("mousemove", handleDocumentMouseMove)+ document.removeEventListener("touchstart", handleDocumentTouchMove)+ document.removeEventListener("touchmove", handleDocumentTouchMove)+ document.removeEventListener("mouseup", handleDocumentMouseUp)+ document.removeEventListener("touchend", handleDocumentTouchEnd)+ document.removeEventListener("touchcancel", handleDocumentTouchEnd)+ }+ }, [isScratching])- const handleMouseDown = () => setIsScratching(true);+ const handleMouseDown = () => setIsScratching(true)- const handleTouchStart = () => setIsScratching(true);+ const handleTouchStart = () => setIsScratching(true)const scratch = (clientX: number, clientY: number) => {- const canvas = canvasRef.current;- const ctx = canvas?.getContext("2d");+ const canvas = canvasRef.current+ const ctx = canvas?.getContext("2d")if (canvas && ctx) {- const rect = canvas.getBoundingClientRect();- const x = clientX - rect.left + 16;- const y = clientY - rect.top + 16;- ctx.globalCompositeOperation = "destination-out";- ctx.beginPath();- ctx.arc(x, y, 30, 0, Math.PI * 2);- ctx.fill();+ const rect = canvas.getBoundingClientRect()+ const x = clientX - rect.left + 16+ const y = clientY - rect.top + 16+ ctx.globalCompositeOperation = "destination-out"+ ctx.beginPath()+ ctx.arc(x, y, 30, 0, Math.PI * 2)+ ctx.fill()}- };+ }const startAnimation = async () => {await controls.start({scale: [1, 1.5, 1],rotate: [0, 10, -10, 10, -10, 0],transition: { duration: 0.5 },- });+ })// Call onComplete after animation finishesif (onComplete) {- onComplete();+ onComplete()}- };+ }const checkCompletion = () => {- if (isComplete) return;+ if (isComplete) return- const canvas = canvasRef.current;- const ctx = canvas?.getContext("2d");+ const canvas = canvasRef.current+ const ctx = canvas?.getContext("2d")if (canvas && ctx) {- const imageData = ctx.getImageData(0, 0, canvas.width, canvas.height);- const pixels = imageData.data;- const totalPixels = pixels.length / 4;- let clearPixels = 0;+ const imageData = ctx.getImageData(0, 0, canvas.width, canvas.height)+ const pixels = imageData.data+ const totalPixels = pixels.length / 4+ let clearPixels = 0for (let i = 3; i < pixels.length; i += 4) {- if (pixels[i] === 0) clearPixels++;+ if (pixels[i] === 0) clearPixels++}- const percentage = (clearPixels / totalPixels) * 100;+ const percentage = (clearPixels / totalPixels) * 100if (percentage >= minScratchPercentage) {- setIsComplete(true);- ctx.clearRect(0, 0, canvas.width, canvas.height);- startAnimation();+ setIsComplete(true)+ ctx.clearRect(0, 0, canvas.width, canvas.height)+ startAnimation()}}- };+ }return (<motion.div@@ -161,11 +162,11 @@ export const ScratchToReveal: React.FC<ScratchToRevealProps> = ({ref={canvasRef}width={width}height={height}- className="absolute left-0 top-0"+ className="absolute top-0 left-0"onMouseDown={handleMouseDown}onTouchStart={handleTouchStart}></canvas>{children}</motion.div>- );-};+ )+}diff --git a/apps/www/registry/magicui/script-copy-btn.tsx b/apps/www/registry/magicui/script-copy-btn.tsxindex da83ded7..bf208cd4 100644--- a/apps/www/registry/magicui/script-copy-btn.tsx+++ b/apps/www/registry/magicui/script-copy-btn.tsx@@ -1,19 +1,20 @@-"use client";+"use client"-import { Button } from "@/components/ui/button";-import { cn } from "@/lib/utils";-import { Check, Copy } from "lucide-react";-import { motion } from "motion/react";-import { useTheme } from "next-themes";-import { HTMLAttributes, useEffect, useState } from "react";+import { HTMLAttributes, useEffect, useState } from "react"+import { Check, Copy } from "lucide-react"+import { motion } from "motion/react"+import { useTheme } from "next-themes"++import { cn } from "@/lib/utils"+import { Button } from "@/components/ui/button"interface ScriptCopyBtnProps extends HTMLAttributes<HTMLDivElement> {- showMultiplePackageOptions?: boolean;- codeLanguage: string;- lightTheme: string;- darkTheme: string;- commandMap: Record<string, string>;- className?: string;+ showMultiplePackageOptions?: boolean+ codeLanguage: string+ lightTheme: string+ darkTheme: string+ commandMap: Record<string, string>+ className?: string}export function ScriptCopyBtn({@@ -24,17 +25,17 @@ export function ScriptCopyBtn({commandMap,className,}: ScriptCopyBtnProps) {- const packageManagers = Object.keys(commandMap);- const [packageManager, setPackageManager] = useState(packageManagers[0]);- const [copied, setCopied] = useState(false);- const [highlightedCode, setHighlightedCode] = useState("");- const { theme } = useTheme();- const command = commandMap[packageManager];+ const packageManagers = Object.keys(commandMap)+ const [packageManager, setPackageManager] = useState(packageManagers[0])+ const [copied, setCopied] = useState(false)+ const [highlightedCode, setHighlightedCode] = useState("")+ const { theme } = useTheme()+ const command = commandMap[packageManager]useEffect(() => {async function loadHighlightedCode() {try {- const { codeToHtml } = await import("shiki");+ const { codeToHtml } = await import("shiki")const highlighted = await codeToHtml(command, {lang: codeLanguage,themes: {@@ -42,44 +43,44 @@ export function ScriptCopyBtn({dark: darkTheme,},defaultColor: theme === "dark" ? "dark" : "light",- });- setHighlightedCode(highlighted);+ })+ setHighlightedCode(highlighted)} catch (error) {- console.error("Error highlighting code:", error);- setHighlightedCode(`<pre>${command}</pre>`);+ console.error("Error highlighting code:", error)+ setHighlightedCode(`<pre>${command}</pre>`)}}- loadHighlightedCode();- }, [command, theme, codeLanguage, lightTheme, darkTheme]);+ loadHighlightedCode()+ }, [command, theme, codeLanguage, lightTheme, darkTheme])const copyToClipboard = () => {- navigator.clipboard.writeText(command);- setCopied(true);- setTimeout(() => setCopied(false), 2000);- };+ navigator.clipboard.writeText(command)+ setCopied(true)+ setTimeout(() => setCopied(false), 2000)+ }return (<divclassName={cn("mx-auto flex max-w-md items-center justify-center",- className,+ className)}><div className="w-full space-y-2"><div className="mb-2 flex items-center justify-between">{showMultiplePackageOptions && (<div className="relative">- <div className="inline-flex overflow-hidden rounded-md border border-border text-xs">+ <div className="border-border inline-flex overflow-hidden rounded-md border text-xs">{packageManagers.map((pm, index) => (<div key={pm} className="flex items-center">{index > 0 && (- <div className="h-4 w-px bg-border" aria-hidden="true" />+ <div className="bg-border h-4 w-px" aria-hidden="true" />)}<Buttonvariant="ghost"size="sm"- className={`relative rounded-none bg-background px-2 py-1 hover:bg-background ${+ className={`bg-background hover:bg-background relative rounded-none px-2 py-1 ${packageManager === pm? "text-primary": "text-muted-foreground"@@ -89,7 +90,7 @@ export function ScriptCopyBtn({{pm}{packageManager === pm && (<motion.div- className="absolute inset-x-0 bottom-[1px] mx-auto h-0.5 w-[90%] bg-primary"+ className="bg-primary absolute inset-x-0 bottom-[1px] mx-auto h-0.5 w-[90%]"layoutId="activeTab"initial={false}transition={{@@ -116,7 +117,7 @@ export function ScriptCopyBtn({dangerouslySetInnerHTML={{ __html: highlightedCode }}/>) : (- <pre className="rounded-md border border-border bg-white p-2 px-4 font-mono dark:bg-black">+ <pre className="border-border rounded-md border bg-white p-2 px-4 font-mono dark:bg-black">{command}</pre>)}@@ -143,5 +144,5 @@ export function ScriptCopyBtn({</div></div></div>- );+ )}diff --git a/apps/www/registry/magicui/scroll-based-velocity.tsx b/apps/www/registry/magicui/scroll-based-velocity.tsxindex 6ca8c10a..7c67f9d9 100644--- a/apps/www/registry/magicui/scroll-based-velocity.tsx+++ b/apps/www/registry/magicui/scroll-based-velocity.tsx@@ -1,5 +1,6 @@-"use client";+"use client"+import React, { useContext, useEffect, useRef, useState } from "react"import {motion,useAnimationFrame,@@ -8,43 +9,42 @@ import {useSpring,useTransform,useVelocity,-} from "motion/react";-import React, { useContext, useEffect, useRef, useState } from "react";-import type { MotionValue } from "motion/react";+} from "motion/react"+import type { MotionValue } from "motion/react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"interface ScrollVelocityRowProps extends React.HTMLAttributes<HTMLDivElement> {- children: React.ReactNode;- baseVelocity?: number;- direction?: 1 | -1;+ children: React.ReactNode+ baseVelocity?: number+ direction?: 1 | -1}export const wrap = (min: number, max: number, v: number) => {- const rangeSize = max - min;- return ((((v - min) % rangeSize) + rangeSize) % rangeSize) + min;-};+ const rangeSize = max - min+ return ((((v - min) % rangeSize) + rangeSize) % rangeSize) + min+}const ScrollVelocityContext = React.createContext<MotionValue<number> | null>(- null,-);+ null+)export function ScrollVelocityContainer({children,className,...props}: React.HTMLAttributes<HTMLDivElement>) {- const { scrollY } = useScroll();- const scrollVelocity = useVelocity(scrollY);+ const { scrollY } = useScroll()+ const scrollVelocity = useVelocity(scrollY)const smoothVelocity = useSpring(scrollVelocity, {damping: 50,stiffness: 400,- });+ })const velocityFactor = useTransform(smoothVelocity, (v) => {- const sign = v < 0 ? -1 : 1;- const magnitude = Math.min(5, (Math.abs(v) / 1000) * 5);- return sign * magnitude;- });+ const sign = v < 0 ? -1 : 1+ const magnitude = Math.min(5, (Math.abs(v) / 1000) * 5)+ return sign * magnitude+ })return (<ScrollVelocityContext.Provider value={velocityFactor}>@@ -52,21 +52,21 @@ export function ScrollVelocityContainer({{children}</div></ScrollVelocityContext.Provider>- );+ )}export function ScrollVelocityRow(props: ScrollVelocityRowProps) {- const sharedVelocityFactor = useContext(ScrollVelocityContext);+ const sharedVelocityFactor = useContext(ScrollVelocityContext)if (sharedVelocityFactor) {return (<ScrollVelocityRowImpl {...props} velocityFactor={sharedVelocityFactor} />- );+ )}- return <ScrollVelocityRowLocal {...props} />;+ return <ScrollVelocityRowLocal {...props} />}interface ScrollVelocityRowImplProps extends ScrollVelocityRowProps {- velocityFactor: MotionValue<number>;+ velocityFactor: MotionValue<number>}function ScrollVelocityRowImpl({@@ -77,91 +77,91 @@ function ScrollVelocityRowImpl({velocityFactor,...props}: ScrollVelocityRowImplProps) {- const containerRef = useRef<HTMLDivElement>(null);- const blockRef = useRef<HTMLDivElement>(null);- const [numCopies, setNumCopies] = useState(1);+ const containerRef = useRef<HTMLDivElement>(null)+ const blockRef = useRef<HTMLDivElement>(null)+ const [numCopies, setNumCopies] = useState(1)- const baseX = useMotionValue(0);- const baseDirectionRef = useRef<number>(direction >= 0 ? 1 : -1);- const currentDirectionRef = useRef<number>(direction >= 0 ? 1 : -1);- const unitWidth = useMotionValue(0);+ const baseX = useMotionValue(0)+ const baseDirectionRef = useRef<number>(direction >= 0 ? 1 : -1)+ const currentDirectionRef = useRef<number>(direction >= 0 ? 1 : -1)+ const unitWidth = useMotionValue(0)- const isInViewRef = useRef(true);- const isPageVisibleRef = useRef(true);- const prefersReducedMotionRef = useRef(false);+ const isInViewRef = useRef(true)+ const isPageVisibleRef = useRef(true)+ const prefersReducedMotionRef = useRef(false)useEffect(() => {- const container = containerRef.current;- const block = blockRef.current;- if (!container || !block) return;+ const container = containerRef.current+ const block = blockRef.current+ if (!container || !block) returnconst updateSizes = () => {- const cw = container.offsetWidth || 0;- const bw = block.scrollWidth || 0;- unitWidth.set(bw);- const nextCopies = bw > 0 ? Math.max(3, Math.ceil(cw / bw) + 2) : 1;- setNumCopies((prev) => (prev === nextCopies ? prev : nextCopies));- };+ const cw = container.offsetWidth || 0+ const bw = block.scrollWidth || 0+ unitWidth.set(bw)+ const nextCopies = bw > 0 ? Math.max(3, Math.ceil(cw / bw) + 2) : 1+ setNumCopies((prev) => (prev === nextCopies ? prev : nextCopies))+ }- updateSizes();+ updateSizes()- const ro = new ResizeObserver(updateSizes);- ro.observe(container);- ro.observe(block);+ const ro = new ResizeObserver(updateSizes)+ ro.observe(container)+ ro.observe(block)const io = new IntersectionObserver(([entry]) => {- isInViewRef.current = entry.isIntersecting;- });- io.observe(container);+ isInViewRef.current = entry.isIntersecting+ })+ io.observe(container)const handleVisibility = () => {- isPageVisibleRef.current = document.visibilityState === "visible";- };+ isPageVisibleRef.current = document.visibilityState === "visible"+ }document.addEventListener("visibilitychange", handleVisibility, {passive: true,- });- handleVisibility();+ })+ handleVisibility()- const mq = window.matchMedia("(prefers-reduced-motion: reduce)");+ const mq = window.matchMedia("(prefers-reduced-motion: reduce)")const handlePRM = () => {- prefersReducedMotionRef.current = mq.matches;- };- mq.addEventListener("change", handlePRM);- handlePRM();+ prefersReducedMotionRef.current = mq.matches+ }+ mq.addEventListener("change", handlePRM)+ handlePRM()return () => {- ro.disconnect();- io.disconnect();- document.removeEventListener("visibilitychange", handleVisibility);- mq.removeEventListener("change", handlePRM);- };- }, [children, unitWidth]);+ ro.disconnect()+ io.disconnect()+ document.removeEventListener("visibilitychange", handleVisibility)+ mq.removeEventListener("change", handlePRM)+ }+ }, [children, unitWidth])const x = useTransform([baseX, unitWidth], ([v, bw]) => {- const width = Number(bw) || 1;- const offset = Number(v) || 0;- return `${-wrap(0, width, offset)}px`;- });+ const width = Number(bw) || 1+ const offset = Number(v) || 0+ return `${-wrap(0, width, offset)}px`+ })useAnimationFrame((_, delta) => {- if (!isInViewRef.current || !isPageVisibleRef.current) return;- const dt = delta / 1000;- const vf = velocityFactor.get();- const absVf = Math.min(5, Math.abs(vf));- const speedMultiplier = prefersReducedMotionRef.current ? 1 : 1 + absVf;+ if (!isInViewRef.current || !isPageVisibleRef.current) return+ const dt = delta / 1000+ const vf = velocityFactor.get()+ const absVf = Math.min(5, Math.abs(vf))+ const speedMultiplier = prefersReducedMotionRef.current ? 1 : 1 + absVfif (absVf > 0.1) {- const scrollDirection = vf >= 0 ? 1 : -1;- currentDirectionRef.current = baseDirectionRef.current * scrollDirection;+ const scrollDirection = vf >= 0 ? 1 : -1+ currentDirectionRef.current = baseDirectionRef.current * scrollDirection}- const bw = unitWidth.get() || 0;- if (bw <= 0) return;- const pixelsPerSecond = (bw * baseVelocity) / 100;+ const bw = unitWidth.get() || 0+ if (bw <= 0) return+ const pixelsPerSecond = (bw * baseVelocity) / 100const moveBy =- currentDirectionRef.current * pixelsPerSecond * speedMultiplier * dt;- baseX.set(baseX.get() + moveBy);- });+ currentDirectionRef.current * pixelsPerSecond * speedMultiplier * dt+ baseX.set(baseX.get() + moveBy)+ })return (<div@@ -170,7 +170,7 @@ function ScrollVelocityRowImpl({{...props}><motion.div- className="inline-flex items-center will-change-transform transform-gpu select-none"+ className="inline-flex transform-gpu items-center will-change-transform select-none"style={{ x }}>{Array.from({ length: numCopies }).map((_, i) => (@@ -185,22 +185,22 @@ function ScrollVelocityRowImpl({))}</motion.div></div>- );+ )}function ScrollVelocityRowLocal(props: ScrollVelocityRowProps) {- const { scrollY } = useScroll();- const localVelocity = useVelocity(scrollY);+ const { scrollY } = useScroll()+ const localVelocity = useVelocity(scrollY)const localSmoothVelocity = useSpring(localVelocity, {damping: 50,stiffness: 400,- });+ })const localVelocityFactor = useTransform(localSmoothVelocity, (v) => {- const sign = v < 0 ? -1 : 1;- const magnitude = Math.min(5, (Math.abs(v) / 1000) * 5);- return sign * magnitude;- });+ const sign = v < 0 ? -1 : 1+ const magnitude = Math.min(5, (Math.abs(v) / 1000) * 5)+ return sign * magnitude+ })return (<ScrollVelocityRowImpl {...props} velocityFactor={localVelocityFactor} />- );+ )}diff --git a/apps/www/registry/magicui/scroll-progress.tsx b/apps/www/registry/magicui/scroll-progress.tsxindex 3edfe6fb..2f353b09 100644--- a/apps/www/registry/magicui/scroll-progress.tsx+++ b/apps/www/registry/magicui/scroll-progress.tsx@@ -1,8 +1,10 @@-"use client";+"use client"++import React from "react"+import { motion, MotionProps, useScroll } from "motion/react"++import { cn } from "@/lib/utils"-import { cn } from "@/lib/utils";-import { motion, MotionProps, useScroll } from "motion/react";-import React from "react";interface ScrollProgressPropsextends Omit<React.HTMLAttributes<HTMLElement>, keyof MotionProps> {}@@ -10,21 +12,21 @@ export const ScrollProgress = React.forwardRef<HTMLDivElement,ScrollProgressProps>(({ className, ...props }, ref) => {- const { scrollYProgress } = useScroll();+ const { scrollYProgress } = useScroll()return (<motion.divref={ref}className={cn("fixed inset-x-0 top-0 z-50 h-px origin-left bg-gradient-to-r from-[#A97CF8] via-[#F38CB8] to-[#FDCC92]",- className,+ className)}style={{scaleX: scrollYProgress,}}{...props}/>- );-});+ )+})-ScrollProgress.displayName = "ScrollProgress";+ScrollProgress.displayName = "ScrollProgress"diff --git a/apps/www/registry/magicui/shimmer-button.tsx b/apps/www/registry/magicui/shimmer-button.tsxindex e68e24c3..131f73c8 100644--- a/apps/www/registry/magicui/shimmer-button.tsx+++ b/apps/www/registry/magicui/shimmer-button.tsx@@ -1,15 +1,15 @@-import React, { CSSProperties, ComponentPropsWithoutRef } from "react";+import React, { ComponentPropsWithoutRef, CSSProperties } from "react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"export interface ShimmerButtonProps extends ComponentPropsWithoutRef<"button"> {- shimmerColor?: string;- shimmerSize?: string;- borderRadius?: string;- shimmerDuration?: string;- background?: string;- className?: string;- children?: React.ReactNode;+ shimmerColor?: string+ shimmerSize?: string+ borderRadius?: string+ shimmerDuration?: string+ background?: string+ className?: string+ children?: React.ReactNode}export const ShimmerButton = React.forwardRef<@@ -27,7 +27,7 @@ export const ShimmerButton = React.forwardRef<children,...props},- ref,+ ref) => {return (<button@@ -42,9 +42,9 @@ export const ShimmerButton = React.forwardRef<} as CSSProperties}className={cn(- "group relative z-0 flex cursor-pointer items-center justify-center overflow-hidden whitespace-nowrap border border-white/10 px-6 py-3 text-white [background:var(--bg)] [border-radius:var(--radius)]",+ "group relative z-0 flex cursor-pointer items-center justify-center overflow-hidden [border-radius:var(--radius)] border border-white/10 px-6 py-3 whitespace-nowrap text-white [background:var(--bg)]","transform-gpu transition-transform duration-300 ease-in-out active:translate-y-px",- className,+ className)}ref={ref}{...props}@@ -53,13 +53,13 @@ export const ShimmerButton = React.forwardRef<<divclassName={cn("-z-30 blur-[2px]",- "absolute inset-0 overflow-visible [container-type:size]",+ "[container-type:size] absolute inset-0 overflow-visible")}>{/* spark */}- <div className="absolute inset-0 h-[100cqh] animate-shimmer-slide [aspect-ratio:1] [border-radius:0] [mask:none]">+ <div className="animate-shimmer-slide absolute inset-0 [aspect-ratio:1] h-[100cqh] [border-radius:0] [mask:none]">{/* spark before */}- <div className="absolute -inset-full w-auto rotate-0 animate-spin-around [background:conic-gradient(from_calc(270deg-(var(--spread)*0.5)),transparent_0,var(--shimmer-color)_var(--spread),transparent_var(--spread))] [translate:0_0]" />+ <div className="animate-spin-around absolute -inset-full w-auto [translate:0_0] rotate-0 [background:conic-gradient(from_calc(270deg-(var(--spread)*0.5)),transparent_0,var(--shimmer-color)_var(--spread),transparent_var(--spread))]" /></div></div>{children}@@ -67,7 +67,7 @@ export const ShimmerButton = React.forwardRef<{/* Highlight */}<divclassName={cn(- "inset-0 absolute size-full",+ "absolute inset-0 size-full","rounded-2xl px-4 py-1.5 text-sm font-medium shadow-[inset_0_-8px_10px_#ffffff1f]",@@ -78,19 +78,19 @@ export const ShimmerButton = React.forwardRef<"group-hover:shadow-[inset_0_-6px_10px_#ffffff3f]",// on click- "group-active:shadow-[inset_0_-10px_10px_#ffffff3f]",+ "group-active:shadow-[inset_0_-10px_10px_#ffffff3f]")}/>{/* backdrop */}<divclassName={cn(- "absolute -z-20 [background:var(--bg)] [border-radius:var(--radius)] [inset:var(--cut)]",+ "absolute [inset:var(--cut)] -z-20 [border-radius:var(--radius)] [background:var(--bg)]")}/></button>- );- },-);+ )+ }+)-ShimmerButton.displayName = "ShimmerButton";+ShimmerButton.displayName = "ShimmerButton"diff --git a/apps/www/registry/magicui/shine-border.tsx b/apps/www/registry/magicui/shine-border.tsxindex 45b1c411..1a55bfc8 100644--- a/apps/www/registry/magicui/shine-border.tsx+++ b/apps/www/registry/magicui/shine-border.tsx@@ -1,25 +1,25 @@-"use client";+"use client"-import * as React from "react";+import * as React from "react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"interface ShineBorderProps extends React.HTMLAttributes<HTMLDivElement> {/*** Width of the border in pixels* @default 1*/- borderWidth?: number;+ borderWidth?: number/*** Duration of the animation in seconds* @default 14*/- duration?: number;+ duration?: number/*** Color of the border, can be a single color or an array of colors* @default "#000000"*/- shineColor?: string | string[];+ shineColor?: string | string[]}/**@@ -54,10 +54,10 @@ export function ShineBorder({} as React.CSSProperties}className={cn(- "pointer-events-none absolute inset-0 size-full rounded-[inherit] will-change-[background-position] motion-safe:animate-shine",- className,+ "motion-safe:animate-shine pointer-events-none absolute inset-0 size-full rounded-[inherit] will-change-[background-position]",+ className)}{...props}/>- );+ )}diff --git a/apps/www/registry/magicui/shiny-button.tsx b/apps/www/registry/magicui/shiny-button.tsxindex de693c61..2ce4a819 100644--- a/apps/www/registry/magicui/shiny-button.tsx+++ b/apps/www/registry/magicui/shiny-button.tsx@@ -1,8 +1,9 @@-"use client";+"use client"-import { cn } from "@/lib/utils";-import { motion, type MotionProps } from "motion/react";-import React from "react";+import React from "react"+import { motion, type MotionProps } from "motion/react"++import { cn } from "@/lib/utils"const animationProps: MotionProps = {initial: { "--x": "100%", scale: 0.8 },@@ -23,13 +24,13 @@ const animationProps: MotionProps = {mass: 0.5,},},-};+}interface ShinyButtonPropsextends Omit<React.HTMLAttributes<HTMLElement>, keyof MotionProps>,MotionProps {- children: React.ReactNode;- className?: string;+ children: React.ReactNode+ className?: string}export const ShinyButton = React.forwardRef<@@ -40,14 +41,14 @@ export const ShinyButton = React.forwardRef<<motion.buttonref={ref}className={cn(- "relative cursor-pointer rounded-lg px-6 py-2 font-medium backdrop-blur-xl border transition-shadow duration-300 ease-in-out hover:shadow dark:bg-[radial-gradient(circle_at_50%_0%,var(--primary)/10%_0%,transparent_60%)] dark:hover:shadow-[0_0_20px_var(--primary)/10%]",- className,+ "relative cursor-pointer rounded-lg border px-6 py-2 font-medium backdrop-blur-xl transition-shadow duration-300 ease-in-out hover:shadow dark:bg-[radial-gradient(circle_at_50%_0%,var(--primary)/10%_0%,transparent_60%)] dark:hover:shadow-[0_0_20px_var(--primary)/10%]",+ className)}{...animationProps}{...props}><span- className="relative block size-full text-sm uppercase tracking-wide text-[rgb(0,0,0,65%)] dark:font-light dark:text-[rgb(255,255,255,90%)]"+ className="relative block size-full text-sm tracking-wide text-[rgb(0,0,0,65%)] uppercase dark:font-light dark:text-[rgb(255,255,255,90%)]"style={{maskImage:"linear-gradient(-75deg,var(--primary) calc(var(--x) + 20%),transparent calc(var(--x) + 30%),var(--primary) calc(var(--x) + 100%))",@@ -66,7 +67,7 @@ export const ShinyButton = React.forwardRef<className="absolute inset-0 z-10 block rounded-[inherit] p-px"/></motion.button>- );-});+ )+})-ShinyButton.displayName = "ShinyButton";+ShinyButton.displayName = "ShinyButton"diff --git a/apps/www/registry/magicui/smooth-cursor.tsx b/apps/www/registry/magicui/smooth-cursor.tsxindex aac1212b..bf338a04 100644--- a/apps/www/registry/magicui/smooth-cursor.tsx+++ b/apps/www/registry/magicui/smooth-cursor.tsx@@ -1,21 +1,21 @@-"use client";+"use client"-import { motion, useSpring } from "motion/react";-import { FC, useEffect, useRef, useState } from "react";+import { FC, useEffect, useRef, useState } from "react"+import { motion, useSpring } from "motion/react"interface Position {- x: number;- y: number;+ x: number+ y: number}export interface SmoothCursorProps {- cursor?: React.ReactNode;+ cursor?: React.ReactNodespringConfig?: {- damping: number;- stiffness: number;- mass: number;- restDelta: number;- };+ damping: number+ stiffness: number+ mass: number+ restDelta: number+ }}const DefaultCursorSVG: FC = () => {@@ -77,8 +77,8 @@ const DefaultCursorSVG: FC = () => {</filter></defs></svg>- );-};+ )+}export function SmoothCursor({cursor = <DefaultCursorSVG />,@@ -89,96 +89,96 @@ export function SmoothCursor({restDelta: 0.001,},}: SmoothCursorProps) {- const [isMoving, setIsMoving] = useState(false);- const lastMousePos = useRef<Position>({ x: 0, y: 0 });- const velocity = useRef<Position>({ x: 0, y: 0 });- const lastUpdateTime = useRef(Date.now());- const previousAngle = useRef(0);- const accumulatedRotation = useRef(0);-- const cursorX = useSpring(0, springConfig);- const cursorY = useSpring(0, springConfig);+ const [isMoving, setIsMoving] = useState(false)+ const lastMousePos = useRef<Position>({ x: 0, y: 0 })+ const velocity = useRef<Position>({ x: 0, y: 0 })+ const lastUpdateTime = useRef(Date.now())+ const previousAngle = useRef(0)+ const accumulatedRotation = useRef(0)++ const cursorX = useSpring(0, springConfig)+ const cursorY = useSpring(0, springConfig)const rotation = useSpring(0, {...springConfig,damping: 60,stiffness: 300,- });+ })const scale = useSpring(1, {...springConfig,stiffness: 500,damping: 35,- });+ })useEffect(() => {const updateVelocity = (currentPos: Position) => {- const currentTime = Date.now();- const deltaTime = currentTime - lastUpdateTime.current;+ const currentTime = Date.now()+ const deltaTime = currentTime - lastUpdateTime.currentif (deltaTime > 0) {velocity.current = {x: (currentPos.x - lastMousePos.current.x) / deltaTime,y: (currentPos.y - lastMousePos.current.y) / deltaTime,- };+ }}- lastUpdateTime.current = currentTime;- lastMousePos.current = currentPos;- };+ lastUpdateTime.current = currentTime+ lastMousePos.current = currentPos+ }const smoothMouseMove = (e: MouseEvent) => {- const currentPos = { x: e.clientX, y: e.clientY };- updateVelocity(currentPos);+ const currentPos = { x: e.clientX, y: e.clientY }+ updateVelocity(currentPos)const speed = Math.sqrt(- Math.pow(velocity.current.x, 2) + Math.pow(velocity.current.y, 2),- );+ Math.pow(velocity.current.x, 2) + Math.pow(velocity.current.y, 2)+ )- cursorX.set(currentPos.x);- cursorY.set(currentPos.y);+ cursorX.set(currentPos.x)+ cursorY.set(currentPos.y)if (speed > 0.1) {const currentAngle =Math.atan2(velocity.current.y, velocity.current.x) * (180 / Math.PI) +- 90;+ 90- let angleDiff = currentAngle - previousAngle.current;- if (angleDiff > 180) angleDiff -= 360;- if (angleDiff < -180) angleDiff += 360;- accumulatedRotation.current += angleDiff;- rotation.set(accumulatedRotation.current);- previousAngle.current = currentAngle;+ let angleDiff = currentAngle - previousAngle.current+ if (angleDiff > 180) angleDiff -= 360+ if (angleDiff < -180) angleDiff += 360+ accumulatedRotation.current += angleDiff+ rotation.set(accumulatedRotation.current)+ previousAngle.current = currentAngle- scale.set(0.95);- setIsMoving(true);+ scale.set(0.95)+ setIsMoving(true)const timeout = setTimeout(() => {- scale.set(1);- setIsMoving(false);- }, 150);+ scale.set(1)+ setIsMoving(false)+ }, 150)- return () => clearTimeout(timeout);+ return () => clearTimeout(timeout)}- };+ }- let rafId: number;+ let rafId: numberconst throttledMouseMove = (e: MouseEvent) => {- if (rafId) return;+ if (rafId) returnrafId = requestAnimationFrame(() => {- smoothMouseMove(e);- rafId = 0;- });- };+ smoothMouseMove(e)+ rafId = 0+ })+ }- document.body.style.cursor = "none";- window.addEventListener("mousemove", throttledMouseMove);+ document.body.style.cursor = "none"+ window.addEventListener("mousemove", throttledMouseMove)return () => {- window.removeEventListener("mousemove", throttledMouseMove);- document.body.style.cursor = "auto";- if (rafId) cancelAnimationFrame(rafId);- };- }, [cursorX, cursorY, rotation, scale]);+ window.removeEventListener("mousemove", throttledMouseMove)+ document.body.style.cursor = "auto"+ if (rafId) cancelAnimationFrame(rafId)+ }+ }, [cursorX, cursorY, rotation, scale])return (<motion.div@@ -204,5 +204,5 @@ export function SmoothCursor({>{cursor}</motion.div>- );+ )}diff --git a/apps/www/registry/magicui/sparkles-text.tsx b/apps/www/registry/magicui/sparkles-text.tsxindex 17b3a364..a4073359 100644--- a/apps/www/registry/magicui/sparkles-text.tsx+++ b/apps/www/registry/magicui/sparkles-text.tsx@@ -1,18 +1,18 @@-"use client";+"use client"-import { motion } from "motion/react";-import { CSSProperties, ReactElement, useEffect, useState } from "react";+import { CSSProperties, ReactElement, useEffect, useState } from "react"+import { motion } from "motion/react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"interface Sparkle {- id: string;- x: string;- y: string;- color: string;- delay: number;- scale: number;- lifespan: number;+ id: string+ x: string+ y: string+ color: string+ delay: number+ scale: number+ lifespan: number}const Sparkle: React.FC<Sparkle> = ({ id, x, y, color, delay, scale }) => {@@ -36,8 +36,8 @@ const Sparkle: React.FC<Sparkle> = ({ id, x, y, color, delay, scale }) => {fill={color}/></motion.svg>- );-};+ )+}interface SparklesTextProps {/**@@ -46,7 +46,7 @@ interface SparklesTextProps {* @description* The component to be rendered as the text* */- as?: ReactElement;+ as?: ReactElement/*** @default ""@@ -54,7 +54,7 @@ interface SparklesTextProps {* @description* The className of the text*/- className?: string;+ className?: string/*** @required@@ -62,7 +62,7 @@ interface SparklesTextProps {* @description* The content to be displayed* */- children: React.ReactNode;+ children: React.ReactNode/*** @default 10@@ -70,7 +70,7 @@ interface SparklesTextProps {* @description* The count of sparkles* */- sparklesCount?: number;+ sparklesCount?: number/*** @default "{first: '#9E7AFF', second: '#FE8BBB'}"@@ -79,9 +79,9 @@ interface SparklesTextProps {* The colors of the sparkles* */colors?: {- first: string;- second: string;- };+ first: string+ second: string+ }}export const SparklesText: React.FC<SparklesTextProps> = ({@@ -91,42 +91,42 @@ export const SparklesText: React.FC<SparklesTextProps> = ({sparklesCount = 10,...props}) => {- const [sparkles, setSparkles] = useState<Sparkle[]>([]);+ const [sparkles, setSparkles] = useState<Sparkle[]>([])useEffect(() => {const generateStar = (): Sparkle => {- const starX = `${Math.random() * 100}%`;- const starY = `${Math.random() * 100}%`;- const color = Math.random() > 0.5 ? colors.first : colors.second;- const delay = Math.random() * 2;- const scale = Math.random() * 1 + 0.3;- const lifespan = Math.random() * 10 + 5;- const id = `${starX}-${starY}-${Date.now()}`;- return { id, x: starX, y: starY, color, delay, scale, lifespan };- };+ const starX = `${Math.random() * 100}%`+ const starY = `${Math.random() * 100}%`+ const color = Math.random() > 0.5 ? colors.first : colors.second+ const delay = Math.random() * 2+ const scale = Math.random() * 1 + 0.3+ const lifespan = Math.random() * 10 + 5+ const id = `${starX}-${starY}-${Date.now()}`+ return { id, x: starX, y: starY, color, delay, scale, lifespan }+ }const initializeStars = () => {- const newSparkles = Array.from({ length: sparklesCount }, generateStar);- setSparkles(newSparkles);- };+ const newSparkles = Array.from({ length: sparklesCount }, generateStar)+ setSparkles(newSparkles)+ }const updateStars = () => {setSparkles((currentSparkles) =>currentSparkles.map((star) => {if (star.lifespan <= 0) {- return generateStar();+ return generateStar()} else {- return { ...star, lifespan: star.lifespan - 0.1 };+ return { ...star, lifespan: star.lifespan - 0.1 }}- }),- );- };+ })+ )+ }- initializeStars();- const interval = setInterval(updateStars, 100);+ initializeStars()+ const interval = setInterval(updateStars, 100)- return () => clearInterval(interval);- }, [colors.first, colors.second, sparklesCount]);+ return () => clearInterval(interval)+ }, [colors.first, colors.second, sparklesCount])return (<div@@ -146,5 +146,5 @@ export const SparklesText: React.FC<SparklesTextProps> = ({<strong>{children}</strong></span></div>- );-};+ )+}diff --git a/apps/www/registry/magicui/spinning-text.tsx b/apps/www/registry/magicui/spinning-text.tsxindex a65dea89..ce96f109 100644--- a/apps/www/registry/magicui/spinning-text.tsx+++ b/apps/www/registry/magicui/spinning-text.tsx@@ -1,25 +1,26 @@-"use client";+"use client"-import { cn } from "@/lib/utils";-import { motion, Transition, Variants } from "motion/react";-import React, { ComponentPropsWithoutRef } from "react";+import React, { ComponentPropsWithoutRef } from "react"+import { motion, Transition, Variants } from "motion/react"++import { cn } from "@/lib/utils"interface SpinningTextProps extends ComponentPropsWithoutRef<"div"> {- children: string | string[];- duration?: number;- reverse?: boolean;- radius?: number;- transition?: Transition;+ children: string | string[]+ duration?: number+ reverse?: boolean+ radius?: number+ transition?: Transitionvariants?: {- container?: Variants;- item?: Variants;- };+ container?: Variants+ item?: Variants+ }}const BASE_TRANSITION: Transition = {repeat: Infinity,ease: "linear",-};+}const BASE_ITEM_VARIANTS: Variants = {hidden: {@@ -28,7 +29,7 @@ const BASE_ITEM_VARIANTS: Variants = {visible: {opacity: 1,},-};+}export function SpinningText({children,@@ -41,35 +42,35 @@ export function SpinningText({style,}: SpinningTextProps) {if (typeof children !== "string" && !Array.isArray(children)) {- throw new Error("children must be a string or an array of strings");+ throw new Error("children must be a string or an array of strings")}if (Array.isArray(children)) {// Validate all elements are stringsif (!children.every((child) => typeof child === "string")) {- throw new Error("all elements in children array must be strings");+ throw new Error("all elements in children array must be strings")}- children = children.join("");+ children = children.join("")}- const letters = children.split("");- letters.push(" ");+ const letters = children.split("")+ letters.push(" ")const finalTransition: Transition = {...BASE_TRANSITION,...transition,duration: (transition as { duration?: number })?.duration ?? duration,- };+ }const containerVariants: Variants = {visible: { rotate: reverse ? -360 : 360 },...variants?.container,- };+ }const itemVariants: Variants = {...BASE_ITEM_VARIANTS,...variants?.item,- };+ }return (<motion.div@@ -87,7 +88,7 @@ export function SpinningText({aria-hidden="true"key={`${index}-${letter}`}variants={itemVariants}- className="absolute left-1/2 top-1/2 inline-block"+ className="absolute top-1/2 left-1/2 inline-block"style={{"--index": index,@@ -107,5 +108,5 @@ export function SpinningText({))}<span className="sr-only">{children}</span></motion.div>- );+ )}diff --git a/apps/www/registry/magicui/terminal.tsx b/apps/www/registry/magicui/terminal.tsxindex 5f5373ca..0b0ce7e1 100644--- a/apps/www/registry/magicui/terminal.tsx+++ b/apps/www/registry/magicui/terminal.tsx@@ -1,7 +1,5 @@-"use client";+"use client"-import { cn } from "@/lib/utils";-import { motion, MotionProps, useInView } from "motion/react";import {Children,createContext,@@ -10,26 +8,29 @@ import {useMemo,useRef,useState,-} from "react";+} from "react"+import { motion, MotionProps, useInView } from "motion/react"++import { cn } from "@/lib/utils"interface SequenceContextValue {- completeItem: (index: number) => void;- activeIndex: number;- sequenceStarted: boolean;+ completeItem: (index: number) => void+ activeIndex: number+ sequenceStarted: boolean}-const SequenceContext = createContext<SequenceContextValue | null>(null);+const SequenceContext = createContext<SequenceContextValue | null>(null)-const useSequence = () => useContext(SequenceContext);+const useSequence = () => useContext(SequenceContext)-const ItemIndexContext = createContext<number | null>(null);-const useItemIndex = () => useContext(ItemIndexContext);+const ItemIndexContext = createContext<number | null>(null)+const useItemIndex = () => useContext(ItemIndexContext)interface AnimatedSpanProps extends MotionProps {- children: React.ReactNode;- delay?: number;- className?: string;- startOnView?: boolean;+ children: React.ReactNode+ delay?: number+ className?: string+ startOnView?: boolean}export const AnimatedSpan = ({@@ -39,25 +40,25 @@ export const AnimatedSpan = ({startOnView = false,...props}: AnimatedSpanProps) => {- const elementRef = useRef<HTMLDivElement | null>(null);+ const elementRef = useRef<HTMLDivElement | null>(null)const isInView = useInView(elementRef as React.RefObject<Element>, {amount: 0.3,once: true,- });+ })- const sequence = useSequence();- const itemIndex = useItemIndex();- const [hasStarted, setHasStarted] = useState(false);+ const sequence = useSequence()+ const itemIndex = useItemIndex()+ const [hasStarted, setHasStarted] = useState(false)useEffect(() => {- if (!sequence || itemIndex === null) return;- if (!sequence.sequenceStarted) return;- if (hasStarted) return;+ if (!sequence || itemIndex === null) return+ if (!sequence.sequenceStarted) return+ if (hasStarted) returnif (sequence.activeIndex === itemIndex) {- setHasStarted(true);+ setHasStarted(true)}- }, [sequence?.activeIndex, sequence?.sequenceStarted, hasStarted, itemIndex]);+ }, [sequence?.activeIndex, sequence?.sequenceStarted, hasStarted, itemIndex])- const shouldAnimate = sequence ? hasStarted : startOnView ? isInView : true;+ const shouldAnimate = sequence ? hasStarted : startOnView ? isInView : truereturn (<motion.div@@ -67,24 +68,24 @@ export const AnimatedSpan = ({transition={{ duration: 0.3, delay: sequence ? 0 : delay / 1000 }}className={cn("grid text-sm font-normal tracking-tight", className)}onAnimationComplete={() => {- if (!sequence) return;- if (itemIndex === null) return;- sequence.completeItem(itemIndex);+ if (!sequence) return+ if (itemIndex === null) return+ sequence.completeItem(itemIndex)}}{...props}>{children}</motion.div>- );-};+ )+}interface TypingAnimationProps extends MotionProps {- children: string;- className?: string;- duration?: number;- delay?: number;- as?: React.ElementType;- startOnView?: boolean;+ children: string+ className?: string+ duration?: number+ delay?: number+ as?: React.ElementType+ startOnView?: boolean}export const TypingAnimation = ({@@ -97,7 +98,7 @@ export const TypingAnimation = ({...props}: TypingAnimationProps) => {if (typeof children !== "string") {- throw new Error("TypingAnimation: children must be a string. Received:");+ throw new Error("TypingAnimation: children must be a string. Received:")}const MotionComponent = useMemo(@@ -105,39 +106,39 @@ export const TypingAnimation = ({motion.create(Component, {forwardMotionProps: true,}),- [Component],- );+ [Component]+ )- const [displayedText, setDisplayedText] = useState<string>("");- const [started, setStarted] = useState(false);- const elementRef = useRef<HTMLElement | null>(null);+ const [displayedText, setDisplayedText] = useState<string>("")+ const [started, setStarted] = useState(false)+ const elementRef = useRef<HTMLElement | null>(null)const isInView = useInView(elementRef as React.RefObject<Element>, {amount: 0.3,once: true,- });+ })- const sequence = useSequence();- const itemIndex = useItemIndex();+ const sequence = useSequence()+ const itemIndex = useItemIndex()useEffect(() => {if (sequence && itemIndex !== null) {- if (!sequence.sequenceStarted) return;- if (started) return;+ if (!sequence.sequenceStarted) return+ if (started) returnif (sequence.activeIndex === itemIndex) {- setStarted(true);+ setStarted(true)}- return;+ return}if (!startOnView) {- const startTimeout = setTimeout(() => setStarted(true), delay);- return () => clearTimeout(startTimeout);+ const startTimeout = setTimeout(() => setStarted(true), delay)+ return () => clearTimeout(startTimeout)}- if (!isInView) return;+ if (!isInView) return- const startTimeout = setTimeout(() => setStarted(true), delay);- return () => clearTimeout(startTimeout);+ const startTimeout = setTimeout(() => setStarted(true), delay)+ return () => clearTimeout(startTimeout)}, [delay,startOnView,@@ -146,28 +147,28 @@ export const TypingAnimation = ({sequence?.activeIndex,sequence?.sequenceStarted,itemIndex,- ]);+ ])useEffect(() => {- if (!started) return;+ if (!started) return- let i = 0;+ let i = 0const typingEffect = setInterval(() => {if (i < children.length) {- setDisplayedText(children.substring(0, i + 1));- i++;+ setDisplayedText(children.substring(0, i + 1))+ i++} else {- clearInterval(typingEffect);+ clearInterval(typingEffect)if (sequence && itemIndex !== null) {- sequence.completeItem(itemIndex);+ sequence.completeItem(itemIndex)}}- }, duration);+ }, duration)return () => {- clearInterval(typingEffect);- };- }, [children, duration, started]);+ clearInterval(typingEffect)+ }+ }, [children, duration, started])return (<MotionComponent@@ -177,14 +178,14 @@ export const TypingAnimation = ({>{displayedText}</MotionComponent>- );-};+ )+}interface TerminalProps {- children: React.ReactNode;- className?: string;- sequence?: boolean;- startOnView?: boolean;+ children: React.ReactNode+ className?: string+ sequence?: boolean+ startOnView?: boolean}export const Terminal = ({@@ -193,47 +194,45 @@ export const Terminal = ({sequence = true,startOnView = true,}: TerminalProps) => {- const containerRef = useRef<HTMLDivElement | null>(null);+ const containerRef = useRef<HTMLDivElement | null>(null)const isInView = useInView(containerRef as React.RefObject<Element>, {amount: 0.3,once: true,- });+ })- const [activeIndex, setActiveIndex] = useState(0);- const sequenceHasStarted = sequence ? !startOnView || isInView : false;+ const [activeIndex, setActiveIndex] = useState(0)+ const sequenceHasStarted = sequence ? !startOnView || isInView : falseconst contextValue = useMemo<SequenceContextValue | null>(() => {- if (!sequence) return null;+ if (!sequence) return nullreturn {completeItem: (index: number) => {- setActiveIndex((current) =>- index === current ? current + 1 : current,- );+ setActiveIndex((current) => (index === current ? current + 1 : current))},activeIndex,sequenceStarted: sequenceHasStarted,- };- }, [sequence, activeIndex, sequenceHasStarted]);+ }+ }, [sequence, activeIndex, sequenceHasStarted])const wrappedChildren = useMemo(() => {- if (!sequence) return children;- const array = Children.toArray(children);+ if (!sequence) return children+ const array = Children.toArray(children)return array.map((child, index) => (<ItemIndexContext.Provider key={index} value={index}>{child as React.ReactNode}</ItemIndexContext.Provider>- ));- }, [children, sequence]);+ ))+ }, [children, sequence])const content = (<divref={containerRef}className={cn(- "z-0 h-full max-h-[400px] w-full max-w-lg rounded-xl border border-border bg-background",- className,+ "border-border bg-background z-0 h-full max-h-[400px] w-full max-w-lg rounded-xl border",+ className)}>- <div className="flex flex-col gap-y-2 border-b border-border p-4">+ <div className="border-border flex flex-col gap-y-2 border-b p-4"><div className="flex flex-row gap-x-2"><div className="h-2 w-2 rounded-full bg-red-500"></div><div className="h-2 w-2 rounded-full bg-yellow-500"></div>@@ -244,13 +243,13 @@ export const Terminal = ({<code className="grid gap-y-1 overflow-auto">{wrappedChildren}</code></pre></div>- );+ )- if (!sequence) return content;+ if (!sequence) return contentreturn (<SequenceContext.Provider value={contextValue}>{content}</SequenceContext.Provider>- );-};+ )+}diff --git a/apps/www/registry/magicui/text-animate.tsx b/apps/www/registry/magicui/text-animate.tsxindex ad6a0562..62afc2be 100644--- a/apps/www/registry/magicui/text-animate.tsx+++ b/apps/www/registry/magicui/text-animate.tsx@@ -1,10 +1,11 @@-"use client";+"use client"-import { cn } from "@/lib/utils";-import { AnimatePresence, motion, MotionProps, Variants } from "motion/react";-import { ElementType, memo } from "react";+import { ElementType, memo } from "react"+import { AnimatePresence, motion, MotionProps, Variants } from "motion/react"-type AnimationType = "text" | "word" | "character" | "line";+import { cn } from "@/lib/utils"++type AnimationType = "text" | "word" | "character" | "line"type AnimationVariant =| "fadeIn"| "blurIn"@@ -15,57 +16,57 @@ type AnimationVariant =| "slideLeft"| "slideRight"| "scaleUp"- | "scaleDown";+ | "scaleDown"interface TextAnimateProps extends MotionProps {/*** The text content to animate*/- children: string;+ children: string/*** The class name to be applied to the component*/- className?: string;+ className?: string/*** The class name to be applied to each segment*/- segmentClassName?: string;+ segmentClassName?: string/*** The delay before the animation starts*/- delay?: number;+ delay?: number/*** The duration of the animation*/- duration?: number;+ duration?: number/*** Custom motion variants for the animation*/- variants?: Variants;+ variants?: Variants/*** The element type to render*/- as?: ElementType;+ as?: ElementType/*** How to split the text ("text", "word", "character")*/- by?: AnimationType;+ by?: AnimationType/*** Whether to start animation when component enters viewport*/- startOnView?: boolean;+ startOnView?: boolean/*** Whether to animate only once*/- once?: boolean;+ once?: boolean/*** The animation preset to use*/- animation?: AnimationVariant;+ animation?: AnimationVariant/*** Whether to enable accessibility features (default: true)*/- accessible?: boolean;+ accessible?: boolean}const staggerTimings: Record<AnimationType, number> = {@@ -73,7 +74,7 @@ const staggerTimings: Record<AnimationType, number> = {word: 0.05,character: 0.03,line: 0.06,-};+}const defaultContainerVariants = {hidden: { opacity: 1 },@@ -91,7 +92,7 @@ const defaultContainerVariants = {staggerDirection: -1,},},-};+}const defaultItemVariants: Variants = {hidden: { opacity: 0 },@@ -101,7 +102,7 @@ const defaultItemVariants: Variants = {exit: {opacity: 0,},-};+}const defaultItemAnimationVariants: Record<AnimationVariant,@@ -299,7 +300,7 @@ const defaultItemAnimationVariants: Record<},},},-};+}const TextAnimateBase = ({children,@@ -316,23 +317,23 @@ const TextAnimateBase = ({accessible = true,...props}: TextAnimateProps) => {- const MotionComponent = motion.create(Component);+ const MotionComponent = motion.create(Component)- let segments: string[] = [];+ let segments: string[] = []switch (by) {case "word":- segments = children.split(/(\s+)/);- break;+ segments = children.split(/(\s+)/)+ breakcase "character":- segments = children.split("");- break;+ segments = children.split("")+ breakcase "line":- segments = children.split("\n");- break;+ segments = children.split("\n")+ breakcase "text":default:- segments = [children];- break;+ segments = [children]+ break}const finalVariants = variants@@ -378,7 +379,7 @@ const TextAnimateBase = ({},item: defaultItemAnimationVariants[animation].item,}- : { container: defaultContainerVariants, item: defaultItemVariants };+ : { container: defaultContainerVariants, item: defaultItemVariants }return (<AnimatePresence mode="popLayout">@@ -402,7 +403,7 @@ const TextAnimateBase = ({className={cn(by === "line" ? "block" : "inline-block whitespace-pre",by === "character" && "",- segmentClassName,+ segmentClassName)}aria-hidden={accessible ? true : undefined}>@@ -411,8 +412,8 @@ const TextAnimateBase = ({))}</MotionComponent></AnimatePresence>- );-};+ )+}// Export the memoized version-export const TextAnimate = memo(TextAnimateBase);+export const TextAnimate = memo(TextAnimateBase)diff --git a/apps/www/registry/magicui/text-reveal.tsx b/apps/www/registry/magicui/text-reveal.tsxindex 31127b60..599631f8 100644--- a/apps/www/registry/magicui/text-reveal.tsx+++ b/apps/www/registry/magicui/text-reveal.tsx@@ -1,25 +1,25 @@-"use client";+"use client"-import { motion, MotionValue, useScroll, useTransform } from "motion/react";-import { ComponentPropsWithoutRef, FC, ReactNode, useRef } from "react";+import { ComponentPropsWithoutRef, FC, ReactNode, useRef } from "react"+import { motion, MotionValue, useScroll, useTransform } from "motion/react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"export interface TextRevealProps extends ComponentPropsWithoutRef<"div"> {- children: string;+ children: string}export const TextReveal: FC<TextRevealProps> = ({ children, className }) => {- const targetRef = useRef<HTMLDivElement | null>(null);+ const targetRef = useRef<HTMLDivElement | null>(null)const { scrollYProgress } = useScroll({target: targetRef,- });+ })if (typeof children !== "string") {- throw new Error("TextReveal: children must be a string");+ throw new Error("TextReveal: children must be a string")}- const words = children.split(" ");+ const words = children.split(" ")return (<div ref={targetRef} className={cn("relative z-0 h-[200vh]", className)}>@@ -31,32 +31,32 @@ export const TextReveal: FC<TextRevealProps> = ({ children, className }) => {<spanref={targetRef}className={- "flex flex-wrap p-5 text-2xl font-bold text-black/20 dark:text-white/20 md:p-8 md:text-3xl lg:p-10 lg:text-4xl xl:text-5xl"+ "flex flex-wrap p-5 text-2xl font-bold text-black/20 md:p-8 md:text-3xl lg:p-10 lg:text-4xl xl:text-5xl dark:text-white/20"}>{words.map((word, i) => {- const start = i / words.length;- const end = start + 1 / words.length;+ const start = i / words.length+ const end = start + 1 / words.lengthreturn (<Word key={i} progress={scrollYProgress} range={[start, end]}>{word}</Word>- );+ )})}</span></div></div>- );-};+ )+}interface WordProps {- children: ReactNode;- progress: MotionValue<number>;- range: [number, number];+ children: ReactNode+ progress: MotionValue<number>+ range: [number, number]}const Word: FC<WordProps> = ({ children, progress, range }) => {- const opacity = useTransform(progress, range, [0, 1]);+ const opacity = useTransform(progress, range, [0, 1])return (<span className="xl:lg-3 relative mx-1 lg:mx-1.5"><span className="absolute opacity-30">{children}</span>@@ -67,5 +67,5 @@ const Word: FC<WordProps> = ({ children, progress, range }) => {{children}</motion.span></span>- );-};+ )+}diff --git a/apps/www/registry/magicui/tweet-card.tsx b/apps/www/registry/magicui/tweet-card.tsxindex b2a3c824..44c15047 100644--- a/apps/www/registry/magicui/tweet-card.tsx+++ b/apps/www/registry/magicui/tweet-card.tsx@@ -1,18 +1,18 @@/* eslint-disable @next/next/no-img-element */-import { Suspense } from "react";+import { Suspense } from "react"import {enrichTweet,type EnrichedTweet,type TweetProps,type TwitterComponents,-} from "react-tweet";-import { getTweet, type Tweet } from "react-tweet/api";+} from "react-tweet"+import { getTweet, type Tweet } from "react-tweet/api"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"interface TwitterIconProps {- className?: string;- [key: string]: unknown;+ className?: string+ [key: string]: unknown}const Twitter = ({ className, ...props }: TwitterIconProps) => (<svg@@ -31,7 +31,7 @@ const Twitter = ({ className, ...props }: TwitterIconProps) => (<path d="M22.162 5.656a8.384 8.384 0 0 1-2.402.658A4.196 4.196 0 0 0 21.6 4c-.82.488-1.719.83-2.656 1.015a4.182 4.182 0 0 0-7.126 3.814 11.874 11.874 0 0 1-8.62-4.37 4.168 4.168 0 0 0-.566 2.103c0 1.45.738 2.731 1.86 3.481a4.168 4.168 0 0 1-1.894-.523v.052a4.185 4.185 0 0 0 3.355 4.101 4.21 4.21 0 0 1-1.89.072A4.185 4.185 0 0 0 7.97 16.65a8.394 8.394 0 0 1-6.191 1.732 11.83 11.83 0 0 0 6.41 1.88c7.693 0 11.9-6.373 11.9-11.9 0-.18-.005-.362-.013-.54a8.496 8.496 0 0 0 2.087-2.165z"></path></g></svg>-);+)const Verified = ({ className, ...props }: TwitterIconProps) => (<svg@@ -44,33 +44,33 @@ const Verified = ({ className, ...props }: TwitterIconProps) => (<path d="M22.5 12.5c0-1.58-.875-2.95-2.148-3.6.154-.435.238-.905.238-1.4 0-2.21-1.71-3.998-3.818-3.998-.47 0-.92.084-1.336.25C14.818 2.415 13.51 1.5 12 1.5s-2.816.917-3.437 2.25c-.415-.165-.866-.25-1.336-.25-2.11 0-3.818 1.79-3.818 4 0 .494.083.964.237 1.4-1.272.65-2.147 2.018-2.147 3.6 0 1.495.782 2.798 1.942 3.486-.02.17-.032.34-.032.514 0 2.21 1.708 4 3.818 4 .47 0 .92-.086 1.335-.25.62 1.334 1.926 2.25 3.437 2.25 1.512 0 2.818-.916 3.437-2.25.415.163.865.248 1.336.248 2.11 0 3.818-1.79 3.818-4 0-.174-.012-.344-.033-.513 1.158-.687 1.943-1.99 1.943-3.484zm-6.616-3.334l-4.334 6.5c-.145.217-.382.334-.625.334-.143 0-.288-.04-.416-.126l-.115-.094-2.415-2.415c-.293-.293-.293-.768 0-1.06s.768-.294 1.06 0l1.77 1.767 3.825-5.74c.23-.345.696-.436 1.04-.207.346.23.44.696.21 1.04z" /></g></svg>-);+)export const truncate = (str: string | null, length: number) => {- if (!str || str.length <= length) return str;- return `${str.slice(0, length - 3)}...`;-};+ if (!str || str.length <= length) return str+ return `${str.slice(0, length - 3)}...`+}const Skeleton = ({className,...props}: React.HTMLAttributes<HTMLDivElement>) => {return (- <div className={cn("rounded-md bg-primary/10", className)} {...props} />- );-};+ <div className={cn("bg-primary/10 rounded-md", className)} {...props} />+ )+}export const TweetSkeleton = ({className,...props}: {- className?: string;- [key: string]: unknown;+ className?: string+ [key: string]: unknown}) => (<divclassName={cn("flex size-full max-h-max min-w-72 flex-col gap-2 rounded-lg border p-4",- className,+ className)}{...props}>@@ -80,25 +80,25 @@ export const TweetSkeleton = ({</div><Skeleton className="h-20 w-full" /></div>-);+)export const TweetNotFound = ({className,...props}: {- className?: string;- [key: string]: unknown;+ className?: string+ [key: string]: unknown}) => (<divclassName={cn("flex size-full flex-col items-center justify-center gap-2 rounded-lg border p-4",- className,+ className)}{...props}><h3>Tweet not found</h3></div>-);+)export const TweetHeader = ({ tweet }: { tweet: EnrichedTweet }) => (<div className="flex flex-row justify-between tracking-tight">@@ -118,7 +118,7 @@ export const TweetHeader = ({ tweet }: { tweet: EnrichedTweet }) => (href={tweet.user.url}target="_blank"rel="noreferrer"- className="flex items-center whitespace-nowrap font-semibold"+ className="flex items-center font-semibold whitespace-nowrap">{truncate(tweet.user.name, 20)}{tweet.user.verified ||@@ -143,10 +143,10 @@ export const TweetHeader = ({ tweet }: { tweet: EnrichedTweet }) => (<Twitter className="size-5 items-start text-[#3BA9EE] transition-all ease-in-out hover:scale-105" /></a></div>-);+)export const TweetBody = ({ tweet }: { tweet: EnrichedTweet }) => (- <div className="break-words leading-normal tracking-tighter">+ <div className="leading-normal tracking-tighter break-words">{tweet.entities.map((entity, idx) => {switch (entity.type) {case "url":@@ -163,7 +163,7 @@ export const TweetBody = ({ tweet }: { tweet: EnrichedTweet }) => (><span>{entity.text}</span></a>- );+ )case "text":return (<span@@ -171,14 +171,14 @@ export const TweetBody = ({ tweet }: { tweet: EnrichedTweet }) => (className="text-sm font-normal"dangerouslySetInnerHTML={{ __html: entity.text }}/>- );+ )}})}</div>-);+)export const TweetMedia = ({ tweet }: { tweet: EnrichedTweet }) => {- if (!tweet.video && !tweet.photos) return null;+ if (!tweet.video && !tweet.photos) return nullreturn (<div className="flex flex-1 items-center justify-center">{tweet.video && (@@ -223,8 +223,8 @@ export const TweetMedia = ({ tweet }: { tweet: EnrichedTweet }) => {/>)}</div>- );-};+ )+}export const MagicTweet = ({tweet,@@ -232,16 +232,16 @@ export const MagicTweet = ({className,...props}: {- tweet: Tweet;- components?: TwitterComponents;- className?: string;+ tweet: Tweet+ components?: TwitterComponents+ className?: string}) => {- const enrichedTweet = enrichTweet(tweet);+ const enrichedTweet = enrichTweet(tweet)return (<divclassName={cn(- "relative flex w-full h-fit max-w-lg flex-col gap-2 overflow-hidden rounded-lg border p-4 backdrop-blur-md",- className,+ "relative flex h-fit w-full max-w-lg flex-col gap-2 overflow-hidden rounded-lg border p-4 backdrop-blur-md",+ className)}{...props}>@@ -249,8 +249,8 @@ export const MagicTweet = ({<TweetBody tweet={enrichedTweet} /><TweetMedia tweet={enrichedTweet} /></div>- );-};+ )+}/*** TweetCard (Server Side Only)@@ -262,26 +262,26 @@ export const TweetCard = async ({onError,...props}: TweetProps & {- className?: string;+ className?: string}) => {const tweet = id? await getTweet(id).catch((err) => {if (onError) {- onError(err);+ onError(err)} else {- console.error(err);+ console.error(err)}})- : undefined;+ : undefinedif (!tweet) {- const NotFound = components?.TweetNotFound || TweetNotFound;- return <NotFound {...props} />;+ const NotFound = components?.TweetNotFound || TweetNotFound+ return <NotFound {...props} />}return (<Suspense fallback={fallback}><MagicTweet tweet={tweet} {...props} /></Suspense>- );-};+ )+}diff --git a/apps/www/registry/magicui/typing-animation.tsx b/apps/www/registry/magicui/typing-animation.tsxindex 1ad55c5e..b27675fa 100644--- a/apps/www/registry/magicui/typing-animation.tsx+++ b/apps/www/registry/magicui/typing-animation.tsx@@ -1,16 +1,17 @@-"use client";+"use client"-import { cn } from "@/lib/utils";-import { motion, MotionProps, useInView } from "motion/react";-import { useEffect, useRef, useState } from "react";+import { useEffect, useRef, useState } from "react"+import { motion, MotionProps, useInView } from "motion/react"++import { cn } from "@/lib/utils"interface TypingAnimationProps extends MotionProps {- children: string;- className?: string;- duration?: number;- delay?: number;- as?: React.ElementType;- startOnView?: boolean;+ children: string+ className?: string+ duration?: number+ delay?: number+ as?: React.ElementType+ startOnView?: boolean}export function TypingAnimation({@@ -24,62 +25,62 @@ export function TypingAnimation({}: TypingAnimationProps) {const MotionComponent = motion.create(Component, {forwardMotionProps: true,- });+ })- const [displayedText, setDisplayedText] = useState<string>("");- const [started, setStarted] = useState(false);- const elementRef = useRef<HTMLElement | null>(null);+ const [displayedText, setDisplayedText] = useState<string>("")+ const [started, setStarted] = useState(false)+ const elementRef = useRef<HTMLElement | null>(null)const isInView = useInView(elementRef as React.RefObject<Element>, {amount: 0.3,once: true,- });+ })useEffect(() => {if (!startOnView) {const startTimeout = setTimeout(() => {- setStarted(true);- }, delay);- return () => clearTimeout(startTimeout);+ setStarted(true)+ }, delay)+ return () => clearTimeout(startTimeout)}- if (!isInView) return;+ if (!isInView) returnconst startTimeout = setTimeout(() => {- setStarted(true);- }, delay);+ setStarted(true)+ }, delay)- return () => clearTimeout(startTimeout);- }, [delay, startOnView, isInView]);+ return () => clearTimeout(startTimeout)+ }, [delay, startOnView, isInView])useEffect(() => {- if (!started) return;+ if (!started) return- const graphemes = Array.from(children);- let i = 0;+ const graphemes = Array.from(children)+ let i = 0const typingEffect = setInterval(() => {if (i < graphemes.length) {- setDisplayedText(graphemes.slice(0, i + 1).join(""));- i++;+ setDisplayedText(graphemes.slice(0, i + 1).join(""))+ i++} else {- clearInterval(typingEffect);+ clearInterval(typingEffect)}- }, duration);+ }, duration)return () => {- clearInterval(typingEffect);- };- }, [children, duration, started]);+ clearInterval(typingEffect)+ }+ }, [children, duration, started])return (<MotionComponentref={elementRef}className={cn(- "text-4xl font-bold leading-[5rem] tracking-[-0.02em]",- className,+ "text-4xl leading-[5rem] font-bold tracking-[-0.02em]",+ className)}{...props}>{displayedText}</MotionComponent>- );+ )}diff --git a/apps/www/registry/magicui/video-text.tsx b/apps/www/registry/magicui/video-text.tsxindex d3094600..9f51c0e5 100644--- a/apps/www/registry/magicui/video-text.tsx+++ b/apps/www/registry/magicui/video-text.tsx@@ -1,67 +1,68 @@-"use client";+"use client"-import { cn } from "@/lib/utils";-import React, { ElementType, ReactNode, useEffect, useState } from "react";+import React, { ElementType, ReactNode, useEffect, useState } from "react"++import { cn } from "@/lib/utils"export interface VideoTextProps {/*** The video source URL*/- src: string;+ src: string/*** Additional className for the container*/- className?: string;+ className?: string/*** Whether to autoplay the video*/- autoPlay?: boolean;+ autoPlay?: boolean/*** Whether to mute the video*/- muted?: boolean;+ muted?: boolean/*** Whether to loop the video*/- loop?: boolean;+ loop?: boolean/*** Whether to preload the video*/- preload?: "auto" | "metadata" | "none";+ preload?: "auto" | "metadata" | "none"/*** The content to display (will have the video "inside" it)*/- children: ReactNode;+ children: ReactNode/*** Font size for the text mask (in viewport width units)* @default 10*/- fontSize?: string | number;+ fontSize?: string | number/*** Font weight for the text mask* @default "bold"*/- fontWeight?: string | number;+ fontWeight?: string | number/*** Text anchor for the text mask* @default "middle"*/- textAnchor?: string;+ textAnchor?: string/*** Dominant baseline for the text mask* @default "middle"*/- dominantBaseline?: string;+ dominantBaseline?: string/*** Font family for the text mask* @default "sans-serif"*/- fontFamily?: string;+ fontFamily?: string/*** The element type to render for the text* @default "div"*/- as?: ElementType;+ as?: ElementType}export function VideoText({@@ -79,23 +80,23 @@ export function VideoText({fontFamily = "sans-serif",as: Component = "div",}: VideoTextProps) {- const [svgMask, setSvgMask] = useState("");- const content = React.Children.toArray(children).join("");+ const [svgMask, setSvgMask] = useState("")+ const content = React.Children.toArray(children).join("")useEffect(() => {const updateSvgMask = () => {const responsiveFontSize =- typeof fontSize === "number" ? `${fontSize}vw` : fontSize;- const newSvgMask = `<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%'><text x='50%' y='50%' font-size='${responsiveFontSize}' font-weight='${fontWeight}' text-anchor='${textAnchor}' dominant-baseline='${dominantBaseline}' font-family='${fontFamily}'>${content}</text></svg>`;- setSvgMask(newSvgMask);- };+ typeof fontSize === "number" ? `${fontSize}vw` : fontSize+ const newSvgMask = `<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%'><text x='50%' y='50%' font-size='${responsiveFontSize}' font-weight='${fontWeight}' text-anchor='${textAnchor}' dominant-baseline='${dominantBaseline}' font-family='${fontFamily}'>${content}</text></svg>`+ setSvgMask(newSvgMask)+ }- updateSvgMask();- window.addEventListener("resize", updateSvgMask);- return () => window.removeEventListener("resize", updateSvgMask);- }, [content, fontSize, fontWeight, textAnchor, dominantBaseline, fontFamily]);+ updateSvgMask()+ window.addEventListener("resize", updateSvgMask)+ return () => window.removeEventListener("resize", updateSvgMask)+ }, [content, fontSize, fontWeight, textAnchor, dominantBaseline, fontFamily])- const dataUrlMask = `url("data:image/svg+xml,${encodeURIComponent(svgMask)}")`;+ const dataUrlMask = `url("data:image/svg+xml,${encodeURIComponent(svgMask)}")`return (<Component className={cn(`relative size-full`, className)}>@@ -114,7 +115,7 @@ export function VideoText({}}><video- className="w-full h-full object-cover"+ className="h-full w-full object-cover"autoPlay={autoPlay}muted={muted}loop={loop}@@ -129,5 +130,5 @@ export function VideoText({{/* Add a backup text element for SEO/accessibility */}<span className="sr-only">{content}</span></Component>- );+ )}diff --git a/apps/www/registry/magicui/warp-background.tsx b/apps/www/registry/magicui/warp-background.tsxindex e9e0dace..148762f4 100644--- a/apps/www/registry/magicui/warp-background.tsx+++ b/apps/www/registry/magicui/warp-background.tsx@@ -1,18 +1,19 @@-"use client";+"use client"-import { cn } from "@/lib/utils";-import { motion } from "motion/react";-import React, { HTMLAttributes, useCallback, useMemo } from "react";+import React, { HTMLAttributes, useCallback, useMemo } from "react"+import { motion } from "motion/react"++import { cn } from "@/lib/utils"interface WarpBackgroundProps extends HTMLAttributes<HTMLDivElement> {- children: React.ReactNode;- perspective?: number;- beamsPerSide?: number;- beamSize?: number;- beamDelayMax?: number;- beamDelayMin?: number;- beamDuration?: number;- gridColor?: string;+ children: React.ReactNode+ perspective?: number+ beamsPerSide?: number+ beamSize?: number+ beamDelayMax?: number+ beamDelayMin?: number+ beamDuration?: number+ gridColor?: string}const Beam = ({@@ -21,13 +22,13 @@ const Beam = ({delay,duration,}: {- width: string | number;- x: string | number;- delay: number;- duration: number;+ width: string | number+ x: string | number+ delay: number+ duration: number}) => {- const hue = Math.floor(Math.random() * 360);- const ar = Math.floor(Math.random() * 10) + 1;+ const hue = Math.floor(Math.random() * 360)+ const ar = Math.floor(Math.random() * 10) + 1return (<motion.div@@ -39,7 +40,7 @@ const Beam = ({"--background": `linear-gradient(hsl(${hue} 80% 60%), transparent)`,} as React.CSSProperties}- className={`absolute left-[var(--x)] top-0 [aspect-ratio:1/var(--aspect-ratio)] [background:var(--background)] [width:var(--width)]`}+ className={`absolute top-0 left-[var(--x)] [aspect-ratio:1/var(--aspect-ratio)] [width:var(--width)] [background:var(--background)]`}initial={{ y: "100cqmax", x: "-50%" }}animate={{ y: "-100%", x: "-50%" }}transition={{@@ -49,8 +50,8 @@ const Beam = ({ease: "linear",}}/>- );-};+ )+}export const WarpBackground: React.FC<WarpBackgroundProps> = ({children,@@ -65,23 +66,22 @@ export const WarpBackground: React.FC<WarpBackgroundProps> = ({...props}) => {const generateBeams = useCallback(() => {- const beams = [];- const cellsPerSide = Math.floor(100 / beamSize);- const step = cellsPerSide / beamsPerSide;+ const beams = []+ const cellsPerSide = Math.floor(100 / beamSize)+ const step = cellsPerSide / beamsPerSidefor (let i = 0; i < beamsPerSide; i++) {- const x = Math.floor(i * step);- const delay =- Math.random() * (beamDelayMax - beamDelayMin) + beamDelayMin;- beams.push({ x, delay });+ const x = Math.floor(i * step)+ const delay = Math.random() * (beamDelayMax - beamDelayMin) + beamDelayMin+ beams.push({ x, delay })}- return beams;- }, [beamsPerSide, beamSize, beamDelayMax, beamDelayMin]);+ return beams+ }, [beamsPerSide, beamSize, beamDelayMax, beamDelayMin])- const topBeams = useMemo(() => generateBeams(), [generateBeams]);- const rightBeams = useMemo(() => generateBeams(), [generateBeams]);- const bottomBeams = useMemo(() => generateBeams(), [generateBeams]);- const leftBeams = useMemo(() => generateBeams(), [generateBeams]);+ const topBeams = useMemo(() => generateBeams(), [generateBeams])+ const rightBeams = useMemo(() => generateBeams(), [generateBeams])+ const bottomBeams = useMemo(() => generateBeams(), [generateBeams])+ const leftBeams = useMemo(() => generateBeams(), [generateBeams])return (<div className={cn("relative rounded border p-20", className)} {...props}>@@ -94,11 +94,11 @@ export const WarpBackground: React.FC<WarpBackgroundProps> = ({} as React.CSSProperties}className={- "pointer-events-none absolute left-0 top-0 size-full overflow-hidden [clipPath:inset(0)] [container-type:size] [perspective:var(--perspective)] [transform-style:preserve-3d]"+ "[container-type:size] pointer-events-none absolute top-0 left-0 size-full overflow-hidden [clipPath:inset(0)] [perspective:var(--perspective)] [transform-style:preserve-3d]"}>{/* top side */}- <div className="absolute z-20 [transform-style:preserve-3d] [background-size:var(--beam-size)_var(--beam-size)] [background:linear-gradient(var(--grid-color)_0_1px,_transparent_1px_var(--beam-size))_50%_-0.5px_/var(--beam-size)_var(--beam-size),linear-gradient(90deg,_var(--grid-color)_0_1px,_transparent_1px_var(--beam-size))_50%_50%_/var(--beam-size)_var(--beam-size)] [container-type:inline-size] [height:100cqmax] [transform-origin:50%_0%] [transform:rotateX(-90deg)] [width:100cqi]">+ <div className="[container-type:inline-size] absolute z-20 [height:100cqmax] [width:100cqi] [transform-origin:50%_0%] [transform:rotateX(-90deg)] [background-size:var(--beam-size)_var(--beam-size)] [background:linear-gradient(var(--grid-color)_0_1px,_transparent_1px_var(--beam-size))_50%_-0.5px_/var(--beam-size)_var(--beam-size),linear-gradient(90deg,_var(--grid-color)_0_1px,_transparent_1px_var(--beam-size))_50%_50%_/var(--beam-size)_var(--beam-size)] [transform-style:preserve-3d]">{topBeams.map((beam, index) => (<Beamkey={`top-${index}`}@@ -110,7 +110,7 @@ export const WarpBackground: React.FC<WarpBackgroundProps> = ({))}</div>{/* bottom side */}- <div className="absolute top-full [transform-style:preserve-3d] [background-size:var(--beam-size)_var(--beam-size)] [background:linear-gradient(var(--grid-color)_0_1px,_transparent_1px_var(--beam-size))_50%_-0.5px_/var(--beam-size)_var(--beam-size),linear-gradient(90deg,_var(--grid-color)_0_1px,_transparent_1px_var(--beam-size))_50%_50%_/var(--beam-size)_var(--beam-size)] [container-type:inline-size] [height:100cqmax] [transform-origin:50%_0%] [transform:rotateX(-90deg)] [width:100cqi]">+ <div className="[container-type:inline-size] absolute top-full [height:100cqmax] [width:100cqi] [transform-origin:50%_0%] [transform:rotateX(-90deg)] [background-size:var(--beam-size)_var(--beam-size)] [background:linear-gradient(var(--grid-color)_0_1px,_transparent_1px_var(--beam-size))_50%_-0.5px_/var(--beam-size)_var(--beam-size),linear-gradient(90deg,_var(--grid-color)_0_1px,_transparent_1px_var(--beam-size))_50%_50%_/var(--beam-size)_var(--beam-size)] [transform-style:preserve-3d]">{bottomBeams.map((beam, index) => (<Beamkey={`bottom-${index}`}@@ -122,7 +122,7 @@ export const WarpBackground: React.FC<WarpBackgroundProps> = ({))}</div>{/* left side */}- <div className="absolute left-0 top-0 [transform-style:preserve-3d] [background-size:var(--beam-size)_var(--beam-size)] [background:linear-gradient(var(--grid-color)_0_1px,_transparent_1px_var(--beam-size))_50%_-0.5px_/var(--beam-size)_var(--beam-size),linear-gradient(90deg,_var(--grid-color)_0_1px,_transparent_1px_var(--beam-size))_50%_50%_/var(--beam-size)_var(--beam-size)] [container-type:inline-size] [height:100cqmax] [transform-origin:0%_0%] [transform:rotate(90deg)_rotateX(-90deg)] [width:100cqh]">+ <div className="[container-type:inline-size] absolute top-0 left-0 [height:100cqmax] [width:100cqh] [transform-origin:0%_0%] [transform:rotate(90deg)_rotateX(-90deg)] [background-size:var(--beam-size)_var(--beam-size)] [background:linear-gradient(var(--grid-color)_0_1px,_transparent_1px_var(--beam-size))_50%_-0.5px_/var(--beam-size)_var(--beam-size),linear-gradient(90deg,_var(--grid-color)_0_1px,_transparent_1px_var(--beam-size))_50%_50%_/var(--beam-size)_var(--beam-size)] [transform-style:preserve-3d]">{leftBeams.map((beam, index) => (<Beamkey={`left-${index}`}@@ -134,7 +134,7 @@ export const WarpBackground: React.FC<WarpBackgroundProps> = ({))}</div>{/* right side */}- <div className="absolute right-0 top-0 [transform-style:preserve-3d] [background-size:var(--beam-size)_var(--beam-size)] [background:linear-gradient(var(--grid-color)_0_1px,_transparent_1px_var(--beam-size))_50%_-0.5px_/var(--beam-size)_var(--beam-size),linear-gradient(90deg,_var(--grid-color)_0_1px,_transparent_1px_var(--beam-size))_50%_50%_/var(--beam-size)_var(--beam-size)] [container-type:inline-size] [height:100cqmax] [width:100cqh] [transform-origin:100%_0%] [transform:rotate(-90deg)_rotateX(-90deg)]">+ <div className="[container-type:inline-size] absolute top-0 right-0 [height:100cqmax] [width:100cqh] [transform-origin:100%_0%] [transform:rotate(-90deg)_rotateX(-90deg)] [background-size:var(--beam-size)_var(--beam-size)] [background:linear-gradient(var(--grid-color)_0_1px,_transparent_1px_var(--beam-size))_50%_-0.5px_/var(--beam-size)_var(--beam-size),linear-gradient(90deg,_var(--grid-color)_0_1px,_transparent_1px_var(--beam-size))_50%_50%_/var(--beam-size)_var(--beam-size)] [transform-style:preserve-3d]">{rightBeams.map((beam, index) => (<Beamkey={`right-${index}`}@@ -148,5 +148,5 @@ export const WarpBackground: React.FC<WarpBackgroundProps> = ({</div><div className="relative">{children}</div></div>- );-};+ )+}diff --git a/apps/www/registry/magicui/word-rotate.tsx b/apps/www/registry/magicui/word-rotate.tsxindex 17be594e..68aa49c9 100644--- a/apps/www/registry/magicui/word-rotate.tsx+++ b/apps/www/registry/magicui/word-rotate.tsx@@ -1,15 +1,15 @@-"use client";+"use client"-import { AnimatePresence, motion, MotionProps } from "motion/react";-import { useEffect, useState } from "react";+import { useEffect, useState } from "react"+import { AnimatePresence, motion, MotionProps } from "motion/react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"interface WordRotateProps {- words: string[];- duration?: number;- motionProps?: MotionProps;- className?: string;+ words: string[]+ duration?: number+ motionProps?: MotionProps+ className?: string}export function WordRotate({@@ -23,16 +23,16 @@ export function WordRotate({},className,}: WordRotateProps) {- const [index, setIndex] = useState(0);+ const [index, setIndex] = useState(0)useEffect(() => {const interval = setInterval(() => {- setIndex((prevIndex) => (prevIndex + 1) % words.length);- }, duration);+ setIndex((prevIndex) => (prevIndex + 1) % words.length)+ }, duration)// Clean up interval on unmount- return () => clearInterval(interval);- }, [words, duration]);+ return () => clearInterval(interval)+ }, [words, duration])return (<div className="overflow-hidden py-2">@@ -46,5 +46,5 @@ export function WordRotate({</motion.h1></AnimatePresence></div>- );+ )}diff --git a/apps/www/registry/registry-examples.ts b/apps/www/registry/registry-examples.tsindex 8d04ae07..978094a8 100644--- a/apps/www/registry/registry-examples.ts+++ b/apps/www/registry/registry-examples.ts@@ -1,4 +1,4 @@-import { type Registry } from "shadcn/schema";+import { type Registry } from "shadcn/schema"export const examples: Registry["items"] = [{@@ -1746,4 +1746,4 @@ export const examples: Registry["items"] = [},],},-];+]diff --git a/apps/www/registry/registry-lib.ts b/apps/www/registry/registry-lib.tsindex f87170fc..fd94cdea 100644--- a/apps/www/registry/registry-lib.ts+++ b/apps/www/registry/registry-lib.ts@@ -1,4 +1,4 @@-import { type Registry } from "shadcn/schema";+import { type Registry } from "shadcn/schema"export const lib: Registry["items"] = [{@@ -12,4 +12,4 @@ export const lib: Registry["items"] = [},],},-];+]diff --git a/apps/www/registry/registry-ui.ts b/apps/www/registry/registry-ui.tsindex f653d363..97cb00a0 100644--- a/apps/www/registry/registry-ui.ts+++ b/apps/www/registry/registry-ui.ts@@ -1,4 +1,4 @@-import { type Registry } from "shadcn/schema";+import { type Registry } from "shadcn/schema"export const ui: Registry["items"] = [{@@ -1236,4 +1236,4 @@ export const ui: Registry["items"] = [},],},-];+]diff --git a/apps/www/source.config.ts b/apps/www/source.config.tsindex 41e23c81..d9eb595f 100644--- a/apps/www/source.config.ts+++ b/apps/www/source.config.ts@@ -1,12 +1,13 @@-import { transformers } from "@/lib/highlight-code";-import { remarkImage } from "fumadocs-core/mdx-plugins";+import { remarkImage } from "fumadocs-core/mdx-plugins"import {defineConfig,defineDocs,frontmatterSchema,-} from "fumadocs-mdx/config";-import rehypePrettyCode from "rehype-pretty-code";-import { z } from "zod";+} from "fumadocs-mdx/config"+import rehypePrettyCode from "rehype-pretty-code"+import { z } from "zod"++import { transformers } from "@/lib/highlight-code"export default defineConfig({mdxOptions: {@@ -19,7 +20,7 @@ export default defineConfig({],],rehypePlugins: (plugins) => {- plugins.shift();+ plugins.shift()plugins.push([// TODO: fix the type.// eslint-disable-next-line @typescript-eslint/no-explicit-any@@ -31,12 +32,12 @@ export default defineConfig({},transformers,},- ]);+ ])- return plugins;+ return plugins},},-});+})export const docs = defineDocs({dir: "content/docs",@@ -54,7 +55,7 @@ export const docs = defineDocs({.optional(),}),},-});+})export const showcase = defineDocs({dir: "content/showcase",@@ -65,7 +66,7 @@ export const showcase = defineDocs({image: z.string().optional(),}),},-});+})export const blog = defineDocs({dir: "content/blog",@@ -78,4 +79,4 @@ export const blog = defineDocs({author: z.string().optional(),}),},-});+})diff --git a/apps/www/types/index.d.ts b/apps/www/types/index.d.tsindex 25a4e835..a0b1b061 100644--- a/apps/www/types/index.d.ts+++ b/apps/www/types/index.d.ts@@ -1,21 +1,21 @@-import { Icons } from "@/components/icons";+import { Icons } from "@/components/icons"export interface NavItem {- title: string;- href?: string;- disabled?: boolean;- external?: boolean;- icon?: keyof typeof Icons;- label?: string;- paid?: boolean;- event?: Event["name"];+ title: string+ href?: string+ disabled?: boolean+ external?: boolean+ icon?: keyof typeof Icons+ label?: string+ paid?: boolean+ event?: Event["name"]}export interface NavItemWithChildren extends NavItem {- items?: NavItemWithChildren[];+ items?: NavItemWithChildren[]}export type DashboardConfig = {- mainNav: NavItem[];- sidebarNav: NavItemWithChildren[];-};+ mainNav: NavItem[]+ sidebarNav: NavItemWithChildren[]+}diff --git a/apps/www/types/unist.ts b/apps/www/types/unist.tsindex 860ea9aa..b0a62d04 100644--- a/apps/www/types/unist.ts+++ b/apps/www/types/unist.ts@@ -1,30 +1,31 @@-import type { Node } from "unist";+import type { Node } from "unist"+export interface UnistNode extends Node {- type: string;- name?: string;- tagName?: string;- value?: string;+ type: string+ name?: string+ tagName?: string+ value?: stringproperties?: {- __rawString__?: string;- __className__?: string;- __event__?: string;- [key: string]: unknown;- } & NpmCommands;+ __rawString__?: string+ __className__?: string+ __event__?: string+ [key: string]: unknown+ } & NpmCommandsattributes?: {- name: string;- value: unknown;- type?: string;- }[];- children?: UnistNode[];+ name: string+ value: unknown+ type?: string+ }[]+ children?: UnistNode[]}export interface UnistTree extends UnistNode {- children: UnistNode[];+ children: UnistNode[]}export interface NpmCommands {- __npmCommand__?: string;- __yarnCommand__?: string;- __pnpmCommand__?: string;- __bunCommand__?: string;+ __npmCommand__?: string+ __yarnCommand__?: string+ __pnpmCommand__?: string+ __bunCommand__?: string}