Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

fix: remove deprecated text components (#490)

Dillion Vermaf82b017e1bc8
diff --git a/__registry__/index.tsx b/__registry__/index.tsx
index aaeca535..0f4ecde1 100644
--- a/__registry__/index.tsx
+++ b/__registry__/index.tsx
@@ -460,19 +460,6 @@ export const Index: Record<string, any> = {
subcategory: "undefined",
chunks: [],
},
- "word-pull-up": {
- name: "word-pull-up",
- type: "registry:ui",
- registryDependencies: undefined,
- files: ["registry/default/magicui/word-pull-up.tsx"],
- component: React.lazy(
- () => import("@/registry/default/magicui/word-pull-up.tsx"),
- ),
- source: "",
- category: "undefined",
- subcategory: "undefined",
- chunks: [],
- },
"typing-animation": {
name: "typing-animation",
type: "registry:ui",
@@ -486,32 +473,6 @@ export const Index: Record<string, any> = {
subcategory: "undefined",
chunks: [],
},
- "blur-in": {
- name: "blur-in",
- type: "registry:ui",
- registryDependencies: undefined,
- files: ["registry/default/magicui/blur-in.tsx"],
- component: React.lazy(
- () => import("@/registry/default/magicui/blur-in.tsx"),
- ),
- source: "",
- category: "undefined",
- subcategory: "undefined",
- chunks: [],
- },
- "letter-pullup": {
- name: "letter-pullup",
- type: "registry:ui",
- registryDependencies: undefined,
- files: ["registry/default/magicui/letter-pullup.tsx"],
- component: React.lazy(
- () => import("@/registry/default/magicui/letter-pullup.tsx"),
- ),
- source: "",
- category: "undefined",
- subcategory: "undefined",
- chunks: [],
- },
"sparkles-text": {
name: "sparkles-text",
type: "registry:ui",
@@ -551,19 +512,6 @@ export const Index: Record<string, any> = {
subcategory: "undefined",
chunks: [],
},
- "gradual-spacing": {
- name: "gradual-spacing",
- type: "registry:ui",
- registryDependencies: undefined,
- files: ["registry/default/magicui/gradual-spacing.tsx"],
- component: React.lazy(
- () => import("@/registry/default/magicui/gradual-spacing.tsx"),
- ),
- source: "",
- category: "undefined",
- subcategory: "undefined",
- chunks: [],
- },
"text-animate": {
name: "text-animate",
type: "registry:ui",
@@ -603,19 +551,6 @@ export const Index: Record<string, any> = {
subcategory: "undefined",
chunks: [],
},
- "fade-text": {
- name: "fade-text",
- type: "registry:ui",
- registryDependencies: undefined,
- files: ["registry/default/magicui/fade-text.tsx"],
- component: React.lazy(
- () => import("@/registry/default/magicui/fade-text.tsx"),
- ),
- source: "",
- category: "undefined",
- subcategory: "undefined",
- chunks: [],
- },
"shiny-button": {
name: "shiny-button",
type: "registry:ui",
@@ -1543,19 +1478,6 @@ export const Index: Record<string, any> = {
subcategory: "undefined",
chunks: [],
},
- "word-pull-up-demo": {
- name: "word-pull-up-demo",
- type: "registry:example",
- registryDependencies: ["word-pull-up"],
- files: ["registry/default/example/word-pull-up-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/default/example/word-pull-up-demo.tsx"),
- ),
- source: "",
- category: "undefined",
- subcategory: "undefined",
- chunks: [],
- },
"typing-animation-demo": {
name: "typing-animation-demo",
type: "registry:example",
@@ -1569,19 +1491,6 @@ export const Index: Record<string, any> = {
subcategory: "undefined",
chunks: [],
},
- "blur-in-demo": {
- name: "blur-in-demo",
- type: "registry:example",
- registryDependencies: ["blur-in"],
- files: ["registry/default/example/blur-in-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/default/example/blur-in-demo.tsx"),
- ),
- source: "",
- category: "undefined",
- subcategory: "undefined",
- chunks: [],
- },
"scroll-based-velocity-demo": {
name: "scroll-based-velocity-demo",
type: "registry:example",
@@ -1609,19 +1518,6 @@ export const Index: Record<string, any> = {
subcategory: "undefined",
chunks: [],
},
- "letter-pullup-demo": {
- name: "letter-pullup-demo",
- type: "registry:example",
- registryDependencies: ["letter-pullup"],
- files: ["registry/default/example/letter-pullup-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/default/example/letter-pullup-demo.tsx"),
- ),
- source: "",
- category: "undefined",
- subcategory: "undefined",
- chunks: [],
- },
"flip-text-demo": {
name: "flip-text-demo",
type: "registry:example",
@@ -1687,19 +1583,6 @@ export const Index: Record<string, any> = {
subcategory: "undefined",
chunks: [],
},
- "gradual-spacing-demo": {
- name: "gradual-spacing-demo",
- type: "registry:example",
- registryDependencies: undefined,
- files: ["registry/default/example/gradual-spacing-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/default/example/gradual-spacing-demo.tsx"),
- ),
- source: "",
- category: "undefined",
- subcategory: "undefined",
- chunks: [],
- },
"text-animate-demo": {
name: "text-animate-demo",
type: "registry:example",
@@ -1765,19 +1648,6 @@ export const Index: Record<string, any> = {
subcategory: "undefined",
chunks: [],
},
- "fade-text-demo": {
- name: "fade-text-demo",
- type: "registry:example",
- registryDependencies: undefined,
- files: ["registry/default/example/fade-text-demo.tsx"],
- component: React.lazy(
- () => import("@/registry/default/example/fade-text-demo.tsx"),
- ),
- source: "",
- category: "undefined",
- subcategory: "undefined",
- chunks: [],
- },
"shiny-button-demo": {
name: "shiny-button-demo",
type: "registry:example",
diff --git a/components/sidebar-cta.tsx b/components/sidebar-cta.tsx
index df9c24c9..fd2e6663 100644
--- a/components/sidebar-cta.tsx
+++ b/components/sidebar-cta.tsx
@@ -1,11 +1,11 @@
"use client";
-import Link from "next/link";
import { ChevronRight } from "lucide-react";
+import Link from "next/link";
import posthog from "posthog-js";
import AnimatedShinyText from "@/registry/default/magicui/animated-shiny-text";
-import WordPullUp from "@/registry/default/magicui/word-pull-up";
+import { TextAnimate } from "@/registry/default/magicui/text-animate";
export default function SidebarCTA() {
return (
@@ -15,7 +15,9 @@ export default function SidebarCTA() {
onClick={() => posthog.capture("sidebar_cta_clicked")}
className="group my-20 flex w-full flex-col items-center justify-center gap-2 rounded-xl bg-indigo-600 p-4 text-center text-lg font-medium leading-tight text-white"
>
- <WordPullUp className="text-4xl">Looking for templates?</WordPullUp>
+ <TextAnimate animate="slideUp" by="word" className="text-4xl">
+ Looking for templates?
+ </TextAnimate>
<AnimatedShinyText className="group inline-flex items-center justify-center whitespace-pre via-white/80 text-white dark:text-white">
✨ Introducing Magic UI Pro
<ChevronRight className="ml-1 size-4 transition-all duration-300 ease-out group-hover:translate-x-1" />
diff --git a/config/docs.ts b/config/docs.ts
index 4e40aa5b..98ed7a93 100644
--- a/config/docs.ts
+++ b/config/docs.ts
@@ -359,48 +359,18 @@ export const docsConfig: DocsConfig = {
items: [],
label: "",
},
- {
- title: "Blur In",
- href: `/docs/components/blur-in`,
- items: [],
- label: "",
- },
{
title: "Scroll Based Velocity",
href: `/docs/components/scroll-based-velocity`,
items: [],
label: "",
},
- {
- title: "Letter Pullup",
- href: `/docs/components/letter-pullup`,
- items: [],
- label: "",
- },
- {
- title: "Word Pull Up",
- href: `/docs/components/word-pull-up`,
- items: [],
- label: "",
- },
{
title: "Flip Text",
href: `/docs/components/flip-text`,
items: [],
label: "",
},
- {
- title: "Gradual Spacing",
- href: `/docs/components/gradual-spacing`,
- items: [],
- label: "",
- },
- {
- title: "Fade Text",
- href: `/docs/components/fade-text`,
- items: [],
- label: "",
- },
{
title: "Box Reveal",
href: `/docs/components/box-reveal`,
diff --git a/content/docs/components/blur-in.mdx b/content/docs/components/blur-in.mdx
deleted file mode 100644
index 954b35a9..00000000
--- a/content/docs/components/blur-in.mdx
+++ /dev/null
@@ -1,50 +0,0 @@
----
-title: Blur In
-date: 2024-05-23
-description: An animated text component that blurs in the text.
-author: abdrahmanES1
-published: true
----
-
-<ComponentPreview name="blur-in-demo" />
-
-## Installation
-
-<Tabs defaultValue="cli">
-
-<TabsList>
- <TabsTrigger value="cli">CLI</TabsTrigger>
- <TabsTrigger value="manual">Manual</TabsTrigger>
-</TabsList>
-<TabsContent value="cli">
-
-```bash
-npx shadcn@latest add "https://magicui.design/r/blur-in"
-```
-
-</TabsContent>
-
-<TabsContent value="manual">
-
-<Steps>
-
-<Step>Copy and paste the following code into your project.</Step>
-
-<ComponentSource name="blur-in" />
-
-<Step>Update the import paths to match your project setup.</Step>
-
-</Steps>
-
-</TabsContent>
-
-</Tabs>
-
-## Props
-
-| Prop | Type | Description | Default |
-| --------- | ------ | ---------------------------------------------- | -------------------------------------------------------------------------------------------- |
-| className | string | The class name to be applied to the component | |
-| duration | number | Durations (seconds) for the animation | 1 |
-| word | string | The word to be animated | |
-| variant | object | Custom animation variants for motion component | `hidden: { filter: "blur(10px)", opacity: 0 }, visible: { filter: "blur(0px)", opacity: 1 }` |
diff --git a/content/docs/components/fade-text.mdx b/content/docs/components/fade-text.mdx
deleted file mode 100644
index 739ad7eb..00000000
--- a/content/docs/components/fade-text.mdx
+++ /dev/null
@@ -1,50 +0,0 @@
----
-title: Fade Text
-date: 2024-05-22
-description: Characters appearing from faded view
-author: imanubhardwaj
-published: true
----
-
-<ComponentPreview name="fade-text-demo" />
-
-## Installation
-
-<Tabs defaultValue="cli">
-
-<TabsList>
- <TabsTrigger value="cli">CLI</TabsTrigger>
- <TabsTrigger value="manual">Manual</TabsTrigger>
-</TabsList>
-<TabsContent value="cli">
-
-```bash
-npx shadcn@latest add "https://magicui.design/r/fade-text"
-```
-
-</TabsContent>
-
-<TabsContent value="manual">
-
-<Steps>
-
-<Step>Copy and paste the following code into your project.</Step>
-
-<ComponentSource name="fade-text" />
-
-<Step>Update the import paths to match your project setup.</Step>
-
-</Steps>
-
-</TabsContent>
-
-</Tabs>
-
-## Props
-
-| Prop | Type | Description | Default |
-| ----------- | --------------- | --------------------------------------------- | ------- |
-| className | string | The class name to be applied to the component | |
-| direction | string | Can be: "down" , "left", "right", "up" | "up" |
-| text | string | Text to animate | "" |
-| motionProps | HTMLMotionProps | An object containing a motion animation props | {} |
diff --git a/content/docs/components/gradual-spacing.mdx b/content/docs/components/gradual-spacing.mdx
deleted file mode 100644
index b5b00120..00000000
--- a/content/docs/components/gradual-spacing.mdx
+++ /dev/null
@@ -1,51 +0,0 @@
----
-title: Gradual Spacing
-date: 2024-05-25
-description: Word animation for gradual spacing between letters
-author: wellitsabhi
-published: true
----
-
-<ComponentPreview name="gradual-spacing-demo" />
-
-## Installation
-
-<Tabs defaultValue="cli">
-
-<TabsList>
- <TabsTrigger value="cli">CLI</TabsTrigger>
- <TabsTrigger value="manual">Manual</TabsTrigger>
-</TabsList>
-<TabsContent value="cli">
-
-```bash
-npx shadcn@latest add "https://magicui.design/r/gradual-spacing"
-```
-
-</TabsContent>
-
-<TabsContent value="manual">
-
-<Steps>
-
-<Step>Copy and paste the following code into your project.</Step>
-
-<ComponentSource name="gradual-spacing" />
-
-<Step>Update the import paths to match your project setup.</Step>
-
-</Steps>
-
-</TabsContent>
-
-</Tabs>
-
-## Props
-
-| Prop | Type | Description | Default |
-| ------------- | --------------- | --------------------------------------------- | ------- |
-| className | string | The class name to be applied to the component | |
-| duration | number | Duration of the animation | 0.5 |
-| delayMultiple | number | Transition delay multiplier. | 0.1 |
-| text | string | An array of words to rotate through | "" |
-| motionProps | HTMLMotionProps | An object containing motion animation props | {} |
diff --git a/content/docs/components/letter-pullup.mdx b/content/docs/components/letter-pullup.mdx
deleted file mode 100644
index 718d8139..00000000
--- a/content/docs/components/letter-pullup.mdx
+++ /dev/null
@@ -1,49 +0,0 @@
----
-title: Staggered Letter Pull Up Animation
-date: 2024-05-22
-description: Staggered letter pull up text animation.
-author: tomonarifeehan
-published: true
----
-
-<ComponentPreview name="letter-pullup-demo" />
-
-## Installation
-
-<Tabs defaultValue="cli">
-
-<TabsList>
- <TabsTrigger value="cli">CLI</TabsTrigger>
- <TabsTrigger value="manual">Manual</TabsTrigger>
-</TabsList>
-<TabsContent value="cli">
-
-```bash
-npx shadcn@latest add "https://magicui.design/r/letter-pullup"
-```
-
-</TabsContent>
-
-<TabsContent value="manual">
-
-<Steps>
-
-<Step>Copy and paste the following code into your project.</Step>
-
-<ComponentSource name="letter-pullup" />
-
-<Step>Update the import paths to match your project setup.</Step>
-
-</Steps>
-
-</TabsContent>
-
-</Tabs>
-
-## Props
-
-| Prop | Type | Description | Default |
-| --------- | ------ | -------------------------------------------------- | -------------------------- |
-| className | string | The class name to be applied to the component | |
-| words | string | Text to animate | "Staggered Letter Pull Up" |
-| delay | number | Delay each letter's animation by this many seconds | 0.05 |
diff --git a/content/docs/components/word-pull-up.mdx b/content/docs/components/word-pull-up.mdx
deleted file mode 100644
index 3edba36b..00000000
--- a/content/docs/components/word-pull-up.mdx
+++ /dev/null
@@ -1,53 +0,0 @@
----
-title: Word Pull Up
-date: 2024-05-23
-description: Text animation for words to pull up
-author: gokh4nozturk
-published: true
----
-
-<ComponentPreview name="word-pull-up-demo" />
-
-## Installation
-
-<Tabs defaultValue="cli">
-
-<TabsList>
- <TabsTrigger value="cli">CLI</TabsTrigger>
- <TabsTrigger value="manual">Manual</TabsTrigger>
-</TabsList>
-<TabsContent value="cli">
-
-```bash
-npx shadcn@latest add "https://magicui.design/r/word-pull-up"
-```
-
-</TabsContent>
-
-<TabsContent value="manual">
-
-<Steps>
-
-<Step>Copy and paste the following code into your project.</Step>
-
-<ComponentSource name="word-pull-up" />
-
-<Step>Update the import paths to match your project setup.</Step>
-
-</Steps>
-
-</TabsContent>
-
-</Tabs>
-
-## Props
-
-| Prop | Type | Description | Default |
-| ------------- | ----------------- | --------------------------------------------- | ------- |
-| className | string | The class name to be applied to the component | |
-| children | string | The text content to be animated | "" |
-| as | React.ElementType | The component type to render as | "h1" |
-| delayMultiple | number | The delay multiplier for staggered animation | |
-| variants | Variants | Variants for the parent motion component | |
-| wordVariants | Variants | Variants for the word motion components | |
-| startOnView | boolean | Whether to start the animation on view | false |
diff --git a/public/r/index.json b/public/r/index.json
index 423e75f2..63b415bf 100644
--- a/public/r/index.json
+++ b/public/r/index.json
@@ -595,10 +595,10 @@
"keyframes": {
"orbit": {
"0%": {
- "transform": "rotate(0deg) translateY(calc(var(--radius) * 1px)) rotate(0deg)"
+ "transform": "rotate(calc(var(--angle) * 1deg)) translateY(calc(var(--radius) * 1px)) rotate(calc(var(--angle) * -1deg))"
},
"100%": {
- "transform": "rotate(360deg) translateY(calc(var(--radius) * 1px)) rotate(-360deg)"
+ "transform": "rotate(calc(var(--angle) * 1deg + 360deg)) translateY(calc(var(--radius) * 1px)) rotate(calc((var(--angle) * -1deg) - 360deg))"
}
}
}
@@ -643,19 +643,6 @@
}
]
},
- {
- "name": "word-pull-up",
- "type": "registry:ui",
- "dependencies": [
- "motion"
- ],
- "files": [
- {
- "path": "magicui/word-pull-up.tsx",
- "type": "registry:ui"
- }
- ]
- },
{
"name": "typing-animation",
"type": "registry:ui",
@@ -669,32 +656,6 @@
}
]
},
- {
- "name": "blur-in",
- "type": "registry:ui",
- "dependencies": [
- "motion"
- ],
- "files": [
- {
- "path": "magicui/blur-in.tsx",
- "type": "registry:ui"
- }
- ]
- },
- {
- "name": "letter-pullup",
- "type": "registry:ui",
- "dependencies": [
- "motion"
- ],
- "files": [
- {
- "path": "magicui/letter-pullup.tsx",
- "type": "registry:ui"
- }
- ]
- },
{
"name": "sparkles-text",
"type": "registry:ui",
@@ -724,10 +685,7 @@
{
"name": "icon-cloud",
"type": "registry:ui",
- "dependencies": [
- "next-themes",
- "react-icon-cloud"
- ],
+ "dependencies": [],
"files": [
{
"path": "magicui/icon-cloud.tsx",
@@ -735,19 +693,6 @@
}
]
},
- {
- "name": "gradual-spacing",
- "type": "registry:ui",
- "dependencies": [
- "motion"
- ],
- "files": [
- {
- "path": "magicui/gradual-spacing.tsx",
- "type": "registry:ui"
- }
- ]
- },
{
"name": "text-animate",
"type": "registry:ui",
@@ -787,19 +732,6 @@
}
]
},
- {
- "name": "fade-text",
- "type": "registry:ui",
- "dependencies": [
- "motion"
- ],
- "files": [
- {
- "path": "magicui/fade-text.tsx",
- "type": "registry:ui"
- }
- ]
- },
{
"name": "shiny-button",
"type": "registry:ui",
diff --git a/public/r/styles/default/blur-in.json b/public/r/styles/default/blur-in.json
deleted file mode 100644
index 03644fff..00000000
--- a/public/r/styles/default/blur-in.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "name": "blur-in",
- "type": "registry:ui",
- "dependencies": [
- "motion"
- ],
- "files": [
- {
- "path": "magicui/blur-in.tsx",
- "content": "\"use client\";\n\nimport { motion } from \"motion/react\";\n\nimport { cn } from \"@/lib/utils\";\n\ninterface BlurInProps {\n word: string;\n className?: string;\n variant?: {\n hidden: { filter: string; opacity: number };\n visible: { filter: string; opacity: number };\n };\n duration?: number;\n}\nconst BlurIn = ({ word, className, variant, duration = 1 }: BlurInProps) => {\n const defaultVariants = {\n hidden: { filter: \"blur(10px)\", opacity: 0 },\n visible: { filter: \"blur(0px)\", opacity: 1 },\n };\n const combinedVariants = variant || defaultVariants;\n\n return (\n <motion.h1\n initial=\"hidden\"\n animate=\"visible\"\n transition={{ duration }}\n variants={combinedVariants}\n className={cn(\n \"font-display text-center text-4xl font-bold tracking-[-0.02em] drop-shadow-sm md:text-7xl md:leading-[5rem]\",\n className,\n )}\n >\n {word}\n </motion.h1>\n );\n};\n\nexport default BlurIn;\n",
- "type": "registry:ui",
- "target": ""
- }
- ]
-}
\ No newline at end of file
diff --git a/public/r/styles/default/fade-text.json b/public/r/styles/default/fade-text.json
deleted file mode 100644
index cb7dd9e4..00000000
--- a/public/r/styles/default/fade-text.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "name": "fade-text",
- "type": "registry:ui",
- "dependencies": [
- "motion"
- ],
- "files": [
- {
- "path": "magicui/fade-text.tsx",
- "content": "\"use client\";\n\nimport { useMemo } from \"react\";\nimport { motion, Variants } from \"motion/react\";\n\ntype FadeTextProps = {\n className?: string;\n direction?: \"up\" | \"down\" | \"left\" | \"right\";\n framerProps?: Variants;\n text: string;\n};\n\nexport function FadeText({\n direction = \"up\",\n className,\n framerProps = {\n hidden: { opacity: 0 },\n show: { opacity: 1, transition: { type: \"spring\" } },\n },\n text,\n}: FadeTextProps) {\n const directionOffset = useMemo(() => {\n const map = { up: 10, down: -10, left: -10, right: 10 };\n return map[direction];\n }, [direction]);\n\n const axis = direction === \"up\" || direction === \"down\" ? \"y\" : \"x\";\n\n const FADE_ANIMATION_VARIANTS = useMemo(() => {\n const { hidden, show, ...rest } = framerProps as {\n [name: string]: { [name: string]: number; opacity: number };\n };\n\n return {\n ...rest,\n hidden: {\n ...(hidden ?? {}),\n opacity: hidden?.opacity ?? 0,\n [axis]: hidden?.[axis] ?? directionOffset,\n },\n show: {\n ...(show ?? {}),\n opacity: show?.opacity ?? 1,\n [axis]: show?.[axis] ?? 0,\n },\n };\n }, [directionOffset, axis, framerProps]);\n\n return (\n <motion.div\n initial=\"hidden\"\n animate=\"show\"\n viewport={{ once: true }}\n variants={FADE_ANIMATION_VARIANTS}\n >\n <motion.span className={className}>{text}</motion.span>\n </motion.div>\n );\n}\n",
- "type": "registry:ui",
- "target": ""
- }
- ]
-}
\ No newline at end of file
diff --git a/public/r/styles/default/gradual-spacing.json b/public/r/styles/default/gradual-spacing.json
deleted file mode 100644
index 15eb85fa..00000000
--- a/public/r/styles/default/gradual-spacing.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "name": "gradual-spacing",
- "type": "registry:ui",
- "dependencies": [
- "motion"
- ],
- "files": [
- {
- "path": "magicui/gradual-spacing.tsx",
- "content": "\"use client\";\n\nimport { AnimatePresence, motion, Variants } from \"motion/react\";\n\nimport { cn } from \"@/lib/utils\";\n\ninterface GradualSpacingProps {\n text: string;\n duration?: number;\n delayMultiple?: number;\n framerProps?: Variants;\n className?: string;\n}\n\nexport default function GradualSpacing({\n text,\n duration = 0.5,\n delayMultiple = 0.04,\n framerProps = {\n hidden: { opacity: 0, x: -20 },\n visible: { opacity: 1, x: 0 },\n },\n className,\n}: GradualSpacingProps) {\n return (\n <div className=\"flex justify-center space-x-1\">\n <AnimatePresence>\n {text.split(\"\").map((char, i) => (\n <motion.h1\n key={i}\n initial=\"hidden\"\n animate=\"visible\"\n exit=\"hidden\"\n variants={framerProps}\n transition={{ duration, delay: i * delayMultiple }}\n className={cn(\"drop-shadow-sm \", className)}\n >\n {char === \" \" ? <span>&nbsp;</span> : char}\n </motion.h1>\n ))}\n </AnimatePresence>\n </div>\n );\n}\n",
- "type": "registry:ui",
- "target": ""
- }
- ]
-}
\ No newline at end of file
diff --git a/public/r/styles/default/icon-cloud.json b/public/r/styles/default/icon-cloud.json
index 9a97dfd2..f8524a33 100644
--- a/public/r/styles/default/icon-cloud.json
+++ b/public/r/styles/default/icon-cloud.json
@@ -1,14 +1,11 @@
{
"name": "icon-cloud",
"type": "registry:ui",
- "dependencies": [
- "next-themes",
- "react-icon-cloud"
- ],
+ "dependencies": [],
"files": [
{
"path": "magicui/icon-cloud.tsx",
- "content": "\"use client\";\n\nimport { useEffect, useRef, useState } from \"react\";\nimport { renderToString } from \"react-dom/server\";\nimport React from \"react\";\n\ninterface Icon {\n x: number;\n y: number;\n z: number;\n scale: number;\n opacity: number;\n id: number;\n}\n\ninterface IconCloudProps {\n icons?: React.ReactNode[];\n images?: string[];\n}\n\nfunction easeOutCubic(t: number): number {\n return 1 - Math.pow(1 - t, 3);\n}\n\nexport default function IconCloud({ icons, images }: IconCloudProps) {\n const canvasRef = useRef<HTMLCanvasElement>(null);\n const [iconPositions, setIconPositions] = useState<Icon[]>([]);\n const [rotation, setRotation] = useState({ x: 0, y: 0 });\n const [isDragging, setIsDragging] = useState(false);\n const [lastMousePos, setLastMousePos] = useState({ x: 0, y: 0 });\n const [mousePos, setMousePos] = useState({ x: 0, y: 0 });\n const [targetRotation, setTargetRotation] = useState<{\n x: number;\n y: number;\n startX: number;\n startY: number;\n distance: number;\n startTime: number;\n duration: number;\n } | null>(null);\n const animationFrameRef = useRef<number>();\n const rotationRef = useRef(rotation);\n const iconCanvasesRef = useRef<HTMLCanvasElement[]>([]);\n const imagesLoadedRef = useRef<boolean[]>([]);\n\n // Create icon canvases once when icons/images change\n useEffect(() => {\n if (!icons && !images) return;\n\n const items = icons || images || [];\n imagesLoadedRef.current = new Array(items.length).fill(false);\n\n const newIconCanvases = items.map((item, index) => {\n const offscreen = document.createElement(\"canvas\");\n offscreen.width = 40;\n offscreen.height = 40;\n const offCtx = offscreen.getContext(\"2d\");\n\n if (offCtx) {\n if (images) {\n // Handle image URLs directly\n const img = new Image();\n img.crossOrigin = \"anonymous\";\n img.src = items[index] as string;\n img.onload = () => {\n offCtx.clearRect(0, 0, offscreen.width, offscreen.height);\n\n // Create circular clipping path\n offCtx.beginPath();\n offCtx.arc(20, 20, 20, 0, Math.PI * 2);\n offCtx.closePath();\n offCtx.clip();\n\n // Draw the image\n offCtx.drawImage(img, 0, 0, 40, 40);\n\n imagesLoadedRef.current[index] = true;\n };\n } else {\n // Handle SVG icons\n offCtx.scale(0.4, 0.4);\n const svgString = renderToString(item as React.ReactElement);\n const img = new Image();\n img.src = \"data:image/svg+xml;base64,\" + btoa(svgString);\n img.onload = () => {\n offCtx.clearRect(0, 0, offscreen.width, offscreen.height);\n offCtx.drawImage(img, 0, 0);\n imagesLoadedRef.current[index] = true;\n };\n }\n }\n return offscreen;\n });\n\n iconCanvasesRef.current = newIconCanvases;\n }, [icons, images]);\n\n // Generate initial icon positions on a sphere\n useEffect(() => {\n const items = icons || images || [];\n const newIcons: Icon[] = [];\n const numIcons = items.length || 20;\n const phi = Math.PI * (3 - Math.sqrt(5));\n\n for (let i = 0; i < numIcons; i++) {\n const y = 1 - (i / (numIcons - 1)) * 2;\n const radius = Math.sqrt(1 - y * y);\n const theta = phi * i;\n\n const x = Math.cos(theta) * radius;\n const z = Math.sin(theta) * radius;\n\n newIcons.push({\n x: x * 100,\n y: y * 100,\n z: z * 100,\n scale: 1,\n opacity: 1,\n id: i,\n });\n }\n setIconPositions(newIcons);\n }, [icons, images]);\n\n // Handle mouse events\n const handleMouseDown = (e: React.MouseEvent<HTMLCanvasElement>) => {\n const rect = canvasRef.current?.getBoundingClientRect();\n if (!rect || !canvasRef.current) return;\n\n const x = e.clientX - rect.left;\n const y = e.clientY - rect.top;\n\n const ctx = canvasRef.current.getContext(\"2d\");\n if (!ctx) return;\n\n iconPositions.forEach((icon) => {\n const cosX = Math.cos(rotationRef.current.x);\n const sinX = Math.sin(rotationRef.current.x);\n const cosY = Math.cos(rotationRef.current.y);\n const sinY = Math.sin(rotationRef.current.y);\n\n const rotatedX = icon.x * cosY - icon.z * sinY;\n const rotatedZ = icon.x * sinY + icon.z * cosY;\n const rotatedY = icon.y * cosX + rotatedZ * sinX;\n\n const screenX = canvasRef.current!.width / 2 + rotatedX;\n const screenY = canvasRef.current!.height / 2 + rotatedY;\n\n const scale = (rotatedZ + 200) / 300;\n const radius = 20 * scale;\n const dx = x - screenX;\n const dy = y - screenY;\n\n if (dx * dx + dy * dy < radius * radius) {\n const targetX = -Math.atan2(\n icon.y,\n Math.sqrt(icon.x * icon.x + icon.z * icon.z),\n );\n const targetY = Math.atan2(icon.x, icon.z);\n\n const currentX = rotationRef.current.x;\n const currentY = rotationRef.current.y;\n const distance = Math.sqrt(\n Math.pow(targetX - currentX, 2) + Math.pow(targetY - currentY, 2),\n );\n\n const duration = Math.min(2000, Math.max(800, distance * 1000));\n\n setTargetRotation({\n x: targetX,\n y: targetY,\n startX: currentX,\n startY: currentY,\n distance,\n startTime: performance.now(),\n duration,\n });\n return;\n }\n });\n\n setIsDragging(true);\n setLastMousePos({ x: e.clientX, y: e.clientY });\n };\n\n const handleMouseMove = (e: React.MouseEvent<HTMLCanvasElement>) => {\n const rect = canvasRef.current?.getBoundingClientRect();\n if (rect) {\n const x = e.clientX - rect.left;\n const y = e.clientY - rect.top;\n setMousePos({ x, y });\n }\n\n if (isDragging) {\n const deltaX = e.clientX - lastMousePos.x;\n const deltaY = e.clientY - lastMousePos.y;\n\n rotationRef.current = {\n x: rotationRef.current.x + deltaY * 0.002,\n y: rotationRef.current.y + deltaX * 0.002,\n };\n\n setLastMousePos({ x: e.clientX, y: e.clientY });\n }\n };\n\n const handleMouseUp = () => {\n setIsDragging(false);\n };\n\n // Animation and rendering\n useEffect(() => {\n const canvas = canvasRef.current;\n const ctx = canvas?.getContext(\"2d\");\n if (!canvas || !ctx) return;\n\n const animate = () => {\n ctx.clearRect(0, 0, canvas.width, canvas.height);\n\n const centerX = canvas.width / 2;\n const centerY = canvas.height / 2;\n const maxDistance = Math.sqrt(centerX * centerX + centerY * centerY);\n const dx = mousePos.x - centerX;\n const dy = mousePos.y - centerY;\n const distance = Math.sqrt(dx * dx + dy * dy);\n const speed = 0.003 + (distance / maxDistance) * 0.006;\n\n if (targetRotation) {\n const elapsed = performance.now() - targetRotation.startTime;\n const progress = Math.min(1, elapsed / targetRotation.duration);\n const easedProgress = easeOutCubic(progress);\n\n rotationRef.current = {\n x:\n targetRotation.startX +\n (targetRotation.x - targetRotation.startX) * easedProgress,\n y:\n targetRotation.startY +\n (targetRotation.y - targetRotation.startY) * easedProgress,\n };\n\n if (progress >= 1) {\n setTargetRotation(null);\n }\n } else if (!isDragging) {\n rotationRef.current = {\n x: rotationRef.current.x + (dy / canvas.height) * speed,\n y: rotationRef.current.y + (dx / canvas.width) * speed,\n };\n }\n\n iconPositions.forEach((icon, index) => {\n const cosX = Math.cos(rotationRef.current.x);\n const sinX = Math.sin(rotationRef.current.x);\n const cosY = Math.cos(rotationRef.current.y);\n const sinY = Math.sin(rotationRef.current.y);\n\n const rotatedX = icon.x * cosY - icon.z * sinY;\n const rotatedZ = icon.x * sinY + icon.z * cosY;\n const rotatedY = icon.y * cosX + rotatedZ * sinX;\n\n const scale = (rotatedZ + 200) / 300;\n const opacity = (rotatedZ + 200) / 300;\n\n ctx.save();\n ctx.translate(\n canvas.width / 2 + rotatedX,\n canvas.height / 2 + rotatedY,\n );\n ctx.scale(scale, scale);\n ctx.globalAlpha = Math.max(0.2, opacity);\n /* ctx.globalAlpha = 1; */\n\n if (icons || images) {\n // Only try to render icons/images if they exist\n if (\n iconCanvasesRef.current[index] &&\n imagesLoadedRef.current[index]\n ) {\n ctx.drawImage(iconCanvasesRef.current[index], -20, -20, 40, 40);\n }\n } else {\n // Show numbered circles if no icons/images are provided\n ctx.beginPath();\n ctx.arc(0, 0, 20, 0, Math.PI * 2);\n ctx.fillStyle = \"#4444ff\";\n ctx.fill();\n ctx.fillStyle = \"white\";\n ctx.textAlign = \"center\";\n ctx.textBaseline = \"middle\";\n ctx.font = \"16px Arial\";\n ctx.fillText(`${icon.id + 1}`, 0, 0);\n }\n\n ctx.restore();\n });\n animationFrameRef.current = requestAnimationFrame(animate);\n };\n\n animate();\n\n return () => {\n if (animationFrameRef.current) {\n cancelAnimationFrame(animationFrameRef.current);\n }\n };\n }, [icons, images, iconPositions, isDragging, mousePos, targetRotation]);\n\n return (\n <canvas\n ref={canvasRef}\n width={400}\n height={400}\n onMouseDown={handleMouseDown}\n onMouseMove={handleMouseMove}\n onMouseUp={handleMouseUp}\n onMouseLeave={handleMouseUp}\n className=\"rounded-lg\"\n aria-label=\"Interactive 3D Icon Cloud\"\n role=\"img\"\n />\n );\n}\n",
+ "content": "\"use client\";\n\nimport React, { useEffect, useRef, useState } from \"react\";\nimport { renderToString } from \"react-dom/server\";\n\ninterface Icon {\n x: number;\n y: number;\n z: number;\n scale: number;\n opacity: number;\n id: number;\n}\n\ninterface IconCloudProps {\n icons?: React.ReactNode[];\n images?: string[];\n}\n\nfunction easeOutCubic(t: number): number {\n return 1 - Math.pow(1 - t, 3);\n}\n\nexport function IconCloud({ icons, images }: IconCloudProps) {\n const canvasRef = useRef<HTMLCanvasElement>(null);\n const [iconPositions, setIconPositions] = useState<Icon[]>([]);\n const [rotation, setRotation] = useState({ x: 0, y: 0 });\n const [isDragging, setIsDragging] = useState(false);\n const [lastMousePos, setLastMousePos] = useState({ x: 0, y: 0 });\n const [mousePos, setMousePos] = useState({ x: 0, y: 0 });\n const [targetRotation, setTargetRotation] = useState<{\n x: number;\n y: number;\n startX: number;\n startY: number;\n distance: number;\n startTime: number;\n duration: number;\n } | null>(null);\n const animationFrameRef = useRef<number>();\n const rotationRef = useRef(rotation);\n const iconCanvasesRef = useRef<HTMLCanvasElement[]>([]);\n const imagesLoadedRef = useRef<boolean[]>([]);\n\n // Create icon canvases once when icons/images change\n useEffect(() => {\n if (!icons && !images) return;\n\n const items = icons || images || [];\n imagesLoadedRef.current = new Array(items.length).fill(false);\n\n const newIconCanvases = items.map((item, index) => {\n const offscreen = document.createElement(\"canvas\");\n offscreen.width = 40;\n offscreen.height = 40;\n const offCtx = offscreen.getContext(\"2d\");\n\n if (offCtx) {\n if (images) {\n // Handle image URLs directly\n const img = new Image();\n img.crossOrigin = \"anonymous\";\n img.src = items[index] as string;\n img.onload = () => {\n offCtx.clearRect(0, 0, offscreen.width, offscreen.height);\n\n // Create circular clipping path\n offCtx.beginPath();\n offCtx.arc(20, 20, 20, 0, Math.PI * 2);\n offCtx.closePath();\n offCtx.clip();\n\n // Draw the image\n offCtx.drawImage(img, 0, 0, 40, 40);\n\n imagesLoadedRef.current[index] = true;\n };\n } else {\n // Handle SVG icons\n offCtx.scale(0.4, 0.4);\n const svgString = renderToString(item as React.ReactElement);\n const img = new Image();\n img.src = \"data:image/svg+xml;base64,\" + btoa(svgString);\n img.onload = () => {\n offCtx.clearRect(0, 0, offscreen.width, offscreen.height);\n offCtx.drawImage(img, 0, 0);\n imagesLoadedRef.current[index] = true;\n };\n }\n }\n return offscreen;\n });\n\n iconCanvasesRef.current = newIconCanvases;\n }, [icons, images]);\n\n // Generate initial icon positions on a sphere\n useEffect(() => {\n const items = icons || images || [];\n const newIcons: Icon[] = [];\n const numIcons = items.length || 20;\n\n // Fibonacci sphere parameters\n const offset = 2 / numIcons;\n const increment = Math.PI * (3 - Math.sqrt(5));\n\n for (let i = 0; i < numIcons; i++) {\n const y = i * offset - 1 + offset / 2;\n const r = Math.sqrt(1 - y * y);\n const phi = i * increment;\n\n const x = Math.cos(phi) * r;\n const z = Math.sin(phi) * r;\n\n newIcons.push({\n x: x * 100,\n y: y * 100,\n z: z * 100,\n scale: 1,\n opacity: 1,\n id: i,\n });\n }\n setIconPositions(newIcons);\n }, [icons, images]);\n\n // Handle mouse events\n const handleMouseDown = (e: React.MouseEvent<HTMLCanvasElement>) => {\n const rect = canvasRef.current?.getBoundingClientRect();\n if (!rect || !canvasRef.current) return;\n\n const x = e.clientX - rect.left;\n const y = e.clientY - rect.top;\n\n const ctx = canvasRef.current.getContext(\"2d\");\n if (!ctx) return;\n\n iconPositions.forEach((icon) => {\n const cosX = Math.cos(rotationRef.current.x);\n const sinX = Math.sin(rotationRef.current.x);\n const cosY = Math.cos(rotationRef.current.y);\n const sinY = Math.sin(rotationRef.current.y);\n\n const rotatedX = icon.x * cosY - icon.z * sinY;\n const rotatedZ = icon.x * sinY + icon.z * cosY;\n const rotatedY = icon.y * cosX + rotatedZ * sinX;\n\n const screenX = canvasRef.current!.width / 2 + rotatedX;\n const screenY = canvasRef.current!.height / 2 + rotatedY;\n\n const scale = (rotatedZ + 200) / 300;\n const radius = 20 * scale;\n const dx = x - screenX;\n const dy = y - screenY;\n\n if (dx * dx + dy * dy < radius * radius) {\n const targetX = -Math.atan2(\n icon.y,\n Math.sqrt(icon.x * icon.x + icon.z * icon.z),\n );\n const targetY = Math.atan2(icon.x, icon.z);\n\n const currentX = rotationRef.current.x;\n const currentY = rotationRef.current.y;\n const distance = Math.sqrt(\n Math.pow(targetX - currentX, 2) + Math.pow(targetY - currentY, 2),\n );\n\n const duration = Math.min(2000, Math.max(800, distance * 1000));\n\n setTargetRotation({\n x: targetX,\n y: targetY,\n startX: currentX,\n startY: currentY,\n distance,\n startTime: performance.now(),\n duration,\n });\n return;\n }\n });\n\n setIsDragging(true);\n setLastMousePos({ x: e.clientX, y: e.clientY });\n };\n\n const handleMouseMove = (e: React.MouseEvent<HTMLCanvasElement>) => {\n const rect = canvasRef.current?.getBoundingClientRect();\n if (rect) {\n const x = e.clientX - rect.left;\n const y = e.clientY - rect.top;\n setMousePos({ x, y });\n }\n\n if (isDragging) {\n const deltaX = e.clientX - lastMousePos.x;\n const deltaY = e.clientY - lastMousePos.y;\n\n rotationRef.current = {\n x: rotationRef.current.x + deltaY * 0.002,\n y: rotationRef.current.y + deltaX * 0.002,\n };\n\n setLastMousePos({ x: e.clientX, y: e.clientY });\n }\n };\n\n const handleMouseUp = () => {\n setIsDragging(false);\n };\n\n // Animation and rendering\n useEffect(() => {\n const canvas = canvasRef.current;\n const ctx = canvas?.getContext(\"2d\");\n if (!canvas || !ctx) return;\n\n const animate = () => {\n ctx.clearRect(0, 0, canvas.width, canvas.height);\n\n const centerX = canvas.width / 2;\n const centerY = canvas.height / 2;\n const maxDistance = Math.sqrt(centerX * centerX + centerY * centerY);\n const dx = mousePos.x - centerX;\n const dy = mousePos.y - centerY;\n const distance = Math.sqrt(dx * dx + dy * dy);\n const speed = 0.003 + (distance / maxDistance) * 0.01;\n\n if (targetRotation) {\n const elapsed = performance.now() - targetRotation.startTime;\n const progress = Math.min(1, elapsed / targetRotation.duration);\n const easedProgress = easeOutCubic(progress);\n\n rotationRef.current = {\n x:\n targetRotation.startX +\n (targetRotation.x - targetRotation.startX) * easedProgress,\n y:\n targetRotation.startY +\n (targetRotation.y - targetRotation.startY) * easedProgress,\n };\n\n if (progress >= 1) {\n setTargetRotation(null);\n }\n } else if (!isDragging) {\n rotationRef.current = {\n x: rotationRef.current.x + (dy / canvas.height) * speed,\n y: rotationRef.current.y + (dx / canvas.width) * speed,\n };\n }\n\n iconPositions.forEach((icon, index) => {\n const cosX = Math.cos(rotationRef.current.x);\n const sinX = Math.sin(rotationRef.current.x);\n const cosY = Math.cos(rotationRef.current.y);\n const sinY = Math.sin(rotationRef.current.y);\n\n const rotatedX = icon.x * cosY - icon.z * sinY;\n const rotatedZ = icon.x * sinY + icon.z * cosY;\n const rotatedY = icon.y * cosX + rotatedZ * sinX;\n\n const scale = (rotatedZ + 200) / 300;\n const opacity = Math.max(0.2, Math.min(1, (rotatedZ + 150) / 200));\n\n ctx.save();\n ctx.translate(\n canvas.width / 2 + rotatedX,\n canvas.height / 2 + rotatedY,\n );\n ctx.scale(scale, scale);\n ctx.globalAlpha = opacity;\n\n if (icons || images) {\n // Only try to render icons/images if they exist\n if (\n iconCanvasesRef.current[index] &&\n imagesLoadedRef.current[index]\n ) {\n ctx.drawImage(iconCanvasesRef.current[index], -20, -20, 40, 40);\n }\n } else {\n // Show numbered circles if no icons/images are provided\n ctx.beginPath();\n ctx.arc(0, 0, 20, 0, Math.PI * 2);\n ctx.fillStyle = \"#4444ff\";\n ctx.fill();\n ctx.fillStyle = \"white\";\n ctx.textAlign = \"center\";\n ctx.textBaseline = \"middle\";\n ctx.font = \"16px Arial\";\n ctx.fillText(`${icon.id + 1}`, 0, 0);\n }\n\n ctx.restore();\n });\n animationFrameRef.current = requestAnimationFrame(animate);\n };\n\n animate();\n\n return () => {\n if (animationFrameRef.current) {\n cancelAnimationFrame(animationFrameRef.current);\n }\n };\n }, [icons, images, iconPositions, isDragging, mousePos, targetRotation]);\n\n return (\n <canvas\n ref={canvasRef}\n width={400}\n height={400}\n onMouseDown={handleMouseDown}\n onMouseMove={handleMouseMove}\n onMouseUp={handleMouseUp}\n onMouseLeave={handleMouseUp}\n className=\"rounded-lg\"\n aria-label=\"Interactive 3D Icon Cloud\"\n role=\"img\"\n />\n );\n}\n",
"type": "registry:ui",
"target": ""
}
diff --git a/public/r/styles/default/letter-pullup.json b/public/r/styles/default/letter-pullup.json
deleted file mode 100644
index a79bda3a..00000000
--- a/public/r/styles/default/letter-pullup.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "name": "letter-pullup",
- "type": "registry:ui",
- "dependencies": [
- "motion"
- ],
- "files": [
- {
- "path": "magicui/letter-pullup.tsx",
- "content": "\"use client\";\n\nimport { motion } from \"motion/react\";\n\nimport { cn } from \"@/lib/utils\";\n\ninterface LetterPullupProps {\n className?: string;\n words: string;\n delay?: number;\n}\n\nexport default function LetterPullup({\n className,\n words,\n delay,\n}: LetterPullupProps) {\n const letters = words.split(\"\");\n\n const pullupVariant = {\n initial: { y: 100, opacity: 0 },\n animate: (i: number) => ({\n y: 0,\n opacity: 1,\n transition: {\n delay: i * (delay ? delay : 0.05), // By default, delay each letter's animation by 0.05 seconds\n },\n }),\n };\n\n return (\n <div className=\"flex justify-center\">\n {letters.map((letter, i) => (\n <motion.h1\n key={i}\n variants={pullupVariant}\n initial=\"initial\"\n animate=\"animate\"\n custom={i}\n className={cn(\n \"font-display text-center text-4xl font-bold tracking-[-0.02em] text-black drop-shadow-sm dark:text-white md:text-4xl md:leading-[5rem]\",\n className,\n )}\n >\n {letter === \" \" ? <span>&nbsp;</span> : letter}\n </motion.h1>\n ))}\n </div>\n );\n}\n",
- "type": "registry:ui",
- "target": ""
- }
- ]
-}
\ No newline at end of file
diff --git a/public/r/styles/default/magic-card.json b/public/r/styles/default/magic-card.json
index 8b662dbf..74a8bad9 100644
--- a/public/r/styles/default/magic-card.json
+++ b/public/r/styles/default/magic-card.json
@@ -7,7 +7,7 @@
"files": [
{
"path": "magicui/magic-card.tsx",
- "content": "\"use client\";\n\nimport { motion, useMotionTemplate, useMotionValue } from \"motion/react\";\nimport React, { useCallback, useEffect, useRef } from \"react\";\n\nimport { cn } from \"@/lib/utils\";\n\ninterface MagicCardProps extends React.HTMLAttributes<HTMLDivElement> {\n gradientSize?: number;\n gradientColor?: string;\n gradientOpacity?: number;\n gradientFrom?: string;\n gradientTo?: string;\n}\n\nexport function MagicCard({\n children,\n className,\n gradientSize = 200,\n gradientColor = \"#262626\",\n gradientOpacity = 0.8,\n gradientFrom = \"#9E7AFF\",\n gradientTo = \"#FE8BBB\",\n}: MagicCardProps) {\n const cardRef = useRef<HTMLDivElement>(null);\n const mouseX = useMotionValue(-gradientSize);\n const mouseY = useMotionValue(-gradientSize);\n\n const handleMouseMove = useCallback(\n (e: MouseEvent) => {\n if (cardRef.current) {\n const { left, top } = cardRef.current.getBoundingClientRect();\n const clientX = e.clientX;\n const clientY = e.clientY;\n mouseX.set(clientX - left);\n mouseY.set(clientY - top);\n }\n },\n [mouseX, mouseY],\n );\n\n const handleMouseOut = useCallback(\n (e: MouseEvent) => {\n if (!e.relatedTarget) {\n document.removeEventListener(\"mousemove\", handleMouseMove);\n mouseX.set(-gradientSize);\n mouseY.set(-gradientSize);\n }\n },\n [handleMouseMove, mouseX, gradientSize, mouseY],\n );\n\n const handleMouseEnter = useCallback(() => {\n document.addEventListener(\"mousemove\", handleMouseMove);\n mouseX.set(-gradientSize);\n mouseY.set(-gradientSize);\n }, [handleMouseMove, mouseX, gradientSize, mouseY]);\n\n useEffect(() => {\n document.addEventListener(\"mousemove\", handleMouseMove);\n document.addEventListener(\"mouseout\", handleMouseOut);\n document.addEventListener(\"mouseenter\", handleMouseEnter);\n\n return () => {\n document.removeEventListener(\"mousemove\", handleMouseMove);\n document.removeEventListener(\"mouseout\", handleMouseOut);\n document.removeEventListener(\"mouseenter\", handleMouseEnter);\n };\n }, [handleMouseEnter, handleMouseMove, handleMouseOut]);\n\n useEffect(() => {\n mouseX.set(-gradientSize);\n mouseY.set(-gradientSize);\n }, [gradientSize, mouseX, mouseY]);\n\n return (\n <div\n ref={cardRef}\n className={cn(\"group relative flex size-full rounded-xl\", className)}\n >\n <div className=\"absolute inset-px z-10 rounded-xl bg-neutral-100 dark:bg-neutral-900\" />\n <div className=\"relative z-30\">{children}</div>\n <motion.div\n className=\"pointer-events-none absolute inset-px z-10 rounded-xl opacity-0 transition-opacity duration-300 group-hover:opacity-100\"\n style={{\n background: useMotionTemplate`\n radial-gradient(${gradientSize}px circle at ${mouseX}px ${mouseY}px, ${gradientColor}, transparent 100%)\n `,\n opacity: gradientOpacity,\n }}\n />\n <motion.div\n className=\"pointer-events-none absolute inset-0 rounded-xl duration-300 group-hover:opacity-100\"\n style={{\n background: useMotionTemplate`\n radial-gradient(${gradientSize}px circle at ${mouseX}px ${mouseY}px,\n ${gradientFrom}, \n ${gradientTo}, \n transparent 100%\n )\n `,\n }}\n />\n </div>\n );\n}\n",
+ "content": "\"use client\";\n\nimport { motion, useMotionTemplate, useMotionValue } from \"motion/react\";\nimport React, { useCallback, useEffect, useRef } from \"react\";\n\nimport { cn } from \"@/lib/utils\";\n\ninterface MagicCardProps extends React.HTMLAttributes<HTMLDivElement> {\n gradientSize?: number;\n gradientColor?: string;\n gradientOpacity?: number;\n gradientFrom?: string;\n gradientTo?: string;\n}\n\nexport function MagicCard({\n children,\n className,\n gradientSize = 200,\n gradientColor = \"#262626\",\n gradientOpacity = 0.8,\n gradientFrom = \"#9E7AFF\",\n gradientTo = \"#FE8BBB\",\n}: MagicCardProps) {\n const cardRef = useRef<HTMLDivElement>(null);\n const mouseX = useMotionValue(-gradientSize);\n const mouseY = useMotionValue(-gradientSize);\n\n const handleMouseMove = useCallback(\n (e: MouseEvent) => {\n if (cardRef.current) {\n const { left, top } = cardRef.current.getBoundingClientRect();\n const clientX = e.clientX;\n const clientY = e.clientY;\n mouseX.set(clientX - left);\n mouseY.set(clientY - top);\n }\n },\n [mouseX, mouseY],\n );\n\n const handleMouseOut = useCallback(\n (e: MouseEvent) => {\n if (!e.relatedTarget) {\n document.removeEventListener(\"mousemove\", handleMouseMove);\n mouseX.set(-gradientSize);\n mouseY.set(-gradientSize);\n }\n },\n [handleMouseMove, mouseX, gradientSize, mouseY],\n );\n\n const handleMouseEnter = useCallback(() => {\n document.addEventListener(\"mousemove\", handleMouseMove);\n mouseX.set(-gradientSize);\n mouseY.set(-gradientSize);\n }, [handleMouseMove, mouseX, gradientSize, mouseY]);\n\n useEffect(() => {\n document.addEventListener(\"mousemove\", handleMouseMove);\n document.addEventListener(\"mouseout\", handleMouseOut);\n document.addEventListener(\"mouseenter\", handleMouseEnter);\n\n return () => {\n document.removeEventListener(\"mousemove\", handleMouseMove);\n document.removeEventListener(\"mouseout\", handleMouseOut);\n document.removeEventListener(\"mouseenter\", handleMouseEnter);\n };\n }, [handleMouseEnter, handleMouseMove, handleMouseOut]);\n\n useEffect(() => {\n mouseX.set(-gradientSize);\n mouseY.set(-gradientSize);\n }, [gradientSize, mouseX, mouseY]);\n\n return (\n <div\n ref={cardRef}\n className={cn(\"group relative flex size-full rounded-xl\", className)}\n >\n <div className=\"absolute inset-px z-10 rounded-xl bg-background\" />\n <div className=\"relative z-30\">{children}</div>\n <motion.div\n className=\"pointer-events-none absolute inset-px z-10 rounded-xl opacity-0 transition-opacity duration-300 group-hover:opacity-100\"\n style={{\n background: useMotionTemplate`\n radial-gradient(${gradientSize}px circle at ${mouseX}px ${mouseY}px, ${gradientColor}, transparent 100%)\n `,\n opacity: gradientOpacity,\n }}\n />\n <motion.div\n className=\"pointer-events-none absolute inset-0 rounded-xl bg-border duration-300 group-hover:opacity-100\"\n style={{\n background: useMotionTemplate`\n radial-gradient(${gradientSize}px circle at ${mouseX}px ${mouseY}px,\n ${gradientFrom}, \n ${gradientTo}, \n hsl(var(--border)) 100%\n )\n `,\n }}\n />\n </div>\n );\n}\n",
"type": "registry:ui",
"target": ""
}
diff --git a/public/r/styles/default/orbiting-circles.json b/public/r/styles/default/orbiting-circles.json
index ba963c2f..bb443dca 100644
--- a/public/r/styles/default/orbiting-circles.json
+++ b/public/r/styles/default/orbiting-circles.json
@@ -4,7 +4,7 @@
"files": [
{
"path": "magicui/orbiting-circles.tsx",
- "content": "import { cn } from \"@/lib/utils\";\nimport React from \"react\";\n\nexport interface OrbitingCirclesProps\n extends React.HTMLAttributes<HTMLDivElement> {\n className?: string;\n children?: React.ReactNode;\n reverse?: boolean;\n duration?: number;\n delay?: number;\n radius?: number;\n path?: boolean;\n iconSize?: number;\n speed?: number;\n}\n\nexport function OrbitingCircles({\n className,\n children,\n reverse,\n duration = 20,\n radius = 160,\n path = true,\n iconSize = 30,\n speed = 1,\n ...props\n}: OrbitingCirclesProps) {\n const calculatedDuration = duration / speed;\n return (\n <>\n {path && (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n version=\"1.1\"\n className=\"pointer-events-none absolute inset-0 size-full\"\n >\n <circle\n className=\"stroke-black/10 stroke-1 dark:stroke-white/10\"\n cx=\"50%\"\n cy=\"50%\"\n r={radius}\n fill=\"none\"\n />\n </svg>\n )}\n {React.Children.map(children, (child, index) => {\n const angle = (360 / React.Children.count(children)) * index;\n return (\n <div\n style={\n {\n \"--duration\": calculatedDuration,\n \"--radius\": radius,\n \"--angle\": angle,\n \"--icon-size\": `${iconSize}px`,\n position: \"absolute\",\n } as React.CSSProperties\n }\n className={cn(\n `flex size-[var(--icon-size)] transform-gpu animate-orbit items-center justify-center rounded-full`,\n { \"[animation-direction:reverse]\": reverse },\n className\n )}\n {...props}\n >\n {child}\n </div>\n );\n })}\n </>\n );\n}\n",
+ "content": "import { cn } from \"@/lib/utils\";\nimport React from \"react\";\n\nexport interface OrbitingCirclesProps\n extends React.HTMLAttributes<HTMLDivElement> {\n className?: string;\n children?: React.ReactNode;\n reverse?: boolean;\n duration?: number;\n delay?: number;\n radius?: number;\n path?: boolean;\n iconSize?: number;\n speed?: number;\n}\n\nexport function OrbitingCircles({\n className,\n children,\n reverse,\n duration = 20,\n radius = 160,\n path = true,\n iconSize = 30,\n speed = 1,\n ...props\n}: OrbitingCirclesProps) {\n const calculatedDuration = duration / speed;\n return (\n <>\n {path && (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n version=\"1.1\"\n className=\"pointer-events-none absolute inset-0 size-full\"\n >\n <circle\n className=\"stroke-black/10 stroke-1 dark:stroke-white/10\"\n cx=\"50%\"\n cy=\"50%\"\n r={radius}\n fill=\"none\"\n />\n </svg>\n )}\n {React.Children.map(children, (child, index) => {\n const angle = (360 / React.Children.count(children)) * index;\n return (\n <div\n style={\n {\n \"--duration\": calculatedDuration,\n \"--radius\": radius,\n \"--angle\": angle,\n \"--icon-size\": `${iconSize}px`,\n } as React.CSSProperties\n }\n className={cn(\n `absolute flex size-[var(--icon-size)] transform-gpu animate-orbit items-center justify-center rounded-full`,\n { \"[animation-direction:reverse]\": reverse },\n className,\n )}\n {...props}\n >\n {child}\n </div>\n );\n })}\n </>\n );\n}\n",
"type": "registry:ui",
"target": ""
}
@@ -19,10 +19,10 @@
"keyframes": {
"orbit": {
"0%": {
- "transform": "rotate(0deg) translateY(calc(var(--radius) * 1px)) rotate(0deg)"
+ "transform": "rotate(calc(var(--angle) * 1deg)) translateY(calc(var(--radius) * 1px)) rotate(calc(var(--angle) * -1deg))"
},
"100%": {
- "transform": "rotate(360deg) translateY(calc(var(--radius) * 1px)) rotate(-360deg)"
+ "transform": "rotate(calc(var(--angle) * 1deg + 360deg)) translateY(calc(var(--radius) * 1px)) rotate(calc((var(--angle) * -1deg) - 360deg))"
}
}
}
diff --git a/public/r/styles/default/word-pull-up.json b/public/r/styles/default/word-pull-up.json
deleted file mode 100644
index 7d91bbcd..00000000
--- a/public/r/styles/default/word-pull-up.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "name": "word-pull-up",
- "type": "registry:ui",
- "dependencies": [
- "motion"
- ],
- "files": [
- {
- "path": "magicui/word-pull-up.tsx",
- "content": "\"use client\";\n\nimport { cn } from \"@/lib/utils\";\nimport { motion, MotionProps, useInView, Variants } from \"motion/react\";\nimport { useRef } from \"react\";\n\ninterface WordPullUpProps extends MotionProps {\n children: string;\n className?: string;\n delayMultiple?: number;\n variants?: Variants;\n wordVariants?: Variants;\n startOnView?: boolean;\n as?: React.ElementType;\n}\n\nexport default function WordPullUp({\n children,\n className,\n as: Component = \"h1\",\n variants = {\n hidden: { opacity: 0 },\n show: {\n opacity: 1,\n transition: {\n staggerChildren: 0.2,\n },\n },\n },\n wordVariants = {\n hidden: { y: 20, opacity: 0 },\n show: { y: 0, opacity: 1 },\n },\n startOnView = false,\n}: WordPullUpProps) {\n const MotionComponent = motion.create(Component);\n const ref = useRef<HTMLElement>(null);\n const inView = useInView(ref, { once: true, margin: \"-30% 0px -30% 0px\" });\n const shouldAnimate = startOnView ? inView : true;\n\n return (\n <MotionComponent\n ref={ref}\n variants={variants}\n initial=\"hidden\"\n animate={shouldAnimate ? \"show\" : \"hidden\"}\n className={cn(\n \"text-4xl font-bold leading-[5rem] tracking-[-0.02em]\",\n className,\n )}\n >\n {children.split(\" \").map((word, i) => (\n <motion.span\n key={i}\n variants={wordVariants}\n style={{ display: \"inline-block\", paddingRight: \"8px\" }}\n >\n {word === \"\" ? <span>&nbsp;</span> : word}\n </motion.span>\n ))}\n </MotionComponent>\n );\n}\n",
- "type": "registry:ui",
- "target": ""
- }
- ]
-}
\ No newline at end of file
diff --git a/registry/default/example/blur-in-demo.tsx b/registry/default/example/blur-in-demo.tsx
deleted file mode 100644
index fda33906..00000000
--- a/registry/default/example/blur-in-demo.tsx
+++ /dev/null
@@ -1,10 +0,0 @@
-import BlurIn from "@/registry/default/magicui/blur-in";
-
-export default function BlurInDemo() {
- return (
- <BlurIn
- word="Blur In"
- className="text-4xl font-bold text-black dark:text-white"
- />
- );
-}
diff --git a/registry/default/example/fade-text-demo.tsx b/registry/default/example/fade-text-demo.tsx
deleted file mode 100644
index db5cdfe8..00000000
--- a/registry/default/example/fade-text-demo.tsx
+++ /dev/null
@@ -1,40 +0,0 @@
-import { FadeText } from "@/registry/default/magicui/fade-text";
-
-export default function FadeTextDemo() {
- return (
- <div className="flex flex-col space-y-8 text-center">
- <FadeText
- className="text-4xl font-bold text-black dark:text-white"
- direction="up"
- framerProps={{
- show: { transition: { delay: 0.2 } },
- }}
- text="Fade Up"
- />
- <FadeText
- className="text-4xl font-bold text-black dark:text-white"
- direction="right"
- framerProps={{
- show: { transition: { delay: 0.4 } },
- }}
- text="Fade Right"
- />
- <FadeText
- className="text-4xl font-bold text-black dark:text-white"
- direction="down"
- framerProps={{
- show: { transition: { delay: 0.6 } },
- }}
- text="Fade Down"
- />
- <FadeText
- className="text-4xl font-bold text-black dark:text-white"
- direction="left"
- framerProps={{
- show: { transition: { delay: 0.8 } },
- }}
- text="Fade Left"
- />
- </div>
- );
-}
diff --git a/registry/default/example/gradual-spacing-demo.tsx b/registry/default/example/gradual-spacing-demo.tsx
deleted file mode 100644
index f163441c..00000000
--- a/registry/default/example/gradual-spacing-demo.tsx
+++ /dev/null
@@ -1,10 +0,0 @@
-import GradualSpacing from "@/registry/default/magicui/gradual-spacing";
-
-export default function GradualSpacingDemo() {
- return (
- <GradualSpacing
- className="font-display text-center text-4xl font-bold -tracking-widest text-black dark:text-white md:text-7xl md:leading-[5rem]"
- text="Gradual Spacing"
- />
- );
-}
diff --git a/registry/default/example/letter-pullup-demo.tsx b/registry/default/example/letter-pullup-demo.tsx
deleted file mode 100644
index 99c5fc06..00000000
--- a/registry/default/example/letter-pullup-demo.tsx
+++ /dev/null
@@ -1,5 +0,0 @@
-import LetterPullup from "@/registry/default/magicui/letter-pullup";
-
-export default function LetterPullupDemo() {
- return <LetterPullup words={"Staggered Letter Pull Up"} delay={0.05} />;
-}
diff --git a/registry/default/example/word-pull-up-demo.tsx b/registry/default/example/word-pull-up-demo.tsx
deleted file mode 100644
index dd28461f..00000000
--- a/registry/default/example/word-pull-up-demo.tsx
+++ /dev/null
@@ -1,5 +0,0 @@
-import WordPullUp from "@/registry/default/magicui/word-pull-up";
-
-export default function WordPullUpDemo() {
- return <WordPullUp>Word Pull Up</WordPullUp>;
-}
diff --git a/registry/default/magicui/blur-in.tsx b/registry/default/magicui/blur-in.tsx
deleted file mode 100644
index 606e2b2d..00000000
--- a/registry/default/magicui/blur-in.tsx
+++ /dev/null
@@ -1,39 +0,0 @@
-"use client";
-
-import { motion } from "motion/react";
-
-import { cn } from "@/lib/utils";
-
-interface BlurInProps {
- word: string;
- className?: string;
- variant?: {
- hidden: { filter: string; opacity: number };
- visible: { filter: string; opacity: number };
- };
- duration?: number;
-}
-const BlurIn = ({ word, className, variant, duration = 1 }: BlurInProps) => {
- const defaultVariants = {
- hidden: { filter: "blur(10px)", opacity: 0 },
- visible: { filter: "blur(0px)", opacity: 1 },
- };
- const combinedVariants = variant || defaultVariants;
-
- return (
- <motion.h1
- initial="hidden"
- animate="visible"
- transition={{ duration }}
- variants={combinedVariants}
- className={cn(
- "font-display text-center text-4xl font-bold tracking-[-0.02em] drop-shadow-sm md:text-7xl md:leading-[5rem]",
- className,
- )}
- >
- {word}
- </motion.h1>
- );
-};
-
-export default BlurIn;
diff --git a/registry/default/magicui/fade-text.tsx b/registry/default/magicui/fade-text.tsx
deleted file mode 100644
index 04f291f3..00000000
--- a/registry/default/magicui/fade-text.tsx
+++ /dev/null
@@ -1,59 +0,0 @@
-"use client";
-
-import { useMemo } from "react";
-import { motion, Variants } from "motion/react";
-
-type FadeTextProps = {
- className?: string;
- direction?: "up" | "down" | "left" | "right";
- framerProps?: Variants;
- text: string;
-};
-
-export function FadeText({
- direction = "up",
- className,
- framerProps = {
- hidden: { opacity: 0 },
- show: { opacity: 1, transition: { type: "spring" } },
- },
- text,
-}: FadeTextProps) {
- const directionOffset = useMemo(() => {
- const map = { up: 10, down: -10, left: -10, right: 10 };
- return map[direction];
- }, [direction]);
-
- const axis = direction === "up" || direction === "down" ? "y" : "x";
-
- const FADE_ANIMATION_VARIANTS = useMemo(() => {
- const { hidden, show, ...rest } = framerProps as {
- [name: string]: { [name: string]: number; opacity: number };
- };
-
- return {
- ...rest,
- hidden: {
- ...(hidden ?? {}),
- opacity: hidden?.opacity ?? 0,
- [axis]: hidden?.[axis] ?? directionOffset,
- },
- show: {
- ...(show ?? {}),
- opacity: show?.opacity ?? 1,
- [axis]: show?.[axis] ?? 0,
- },
- };
- }, [directionOffset, axis, framerProps]);
-
- return (
- <motion.div
- initial="hidden"
- animate="show"
- viewport={{ once: true }}
- variants={FADE_ANIMATION_VARIANTS}
- >
- <motion.span className={className}>{text}</motion.span>
- </motion.div>
- );
-}
diff --git a/registry/default/magicui/gradual-spacing.tsx b/registry/default/magicui/gradual-spacing.tsx
deleted file mode 100644
index 55206614..00000000
--- a/registry/default/magicui/gradual-spacing.tsx
+++ /dev/null
@@ -1,44 +0,0 @@
-"use client";
-
-import { AnimatePresence, motion, Variants } from "motion/react";
-
-import { cn } from "@/lib/utils";
-
-interface GradualSpacingProps {
- text: string;
- duration?: number;
- delayMultiple?: number;
- framerProps?: Variants;
- className?: string;
-}
-
-export default function GradualSpacing({
- text,
- duration = 0.5,
- delayMultiple = 0.04,
- framerProps = {
- hidden: { opacity: 0, x: -20 },
- visible: { opacity: 1, x: 0 },
- },
- className,
-}: GradualSpacingProps) {
- return (
- <div className="flex justify-center space-x-1">
- <AnimatePresence>
- {text.split("").map((char, i) => (
- <motion.h1
- key={i}
- initial="hidden"
- animate="visible"
- exit="hidden"
- variants={framerProps}
- transition={{ duration, delay: i * delayMultiple }}
- className={cn("drop-shadow-sm ", className)}
- >
- {char === " " ? <span>&nbsp;</span> : char}
- </motion.h1>
- ))}
- </AnimatePresence>
- </div>
- );
-}
diff --git a/registry/default/magicui/letter-pullup.tsx b/registry/default/magicui/letter-pullup.tsx
deleted file mode 100644
index 8ada1e17..00000000
--- a/registry/default/magicui/letter-pullup.tsx
+++ /dev/null
@@ -1,50 +0,0 @@
-"use client";
-
-import { motion } from "motion/react";
-
-import { cn } from "@/lib/utils";
-
-interface LetterPullupProps {
- className?: string;
- words: string;
- delay?: number;
-}
-
-export default function LetterPullup({
- className,
- words,
- delay,
-}: LetterPullupProps) {
- const letters = words.split("");
-
- const pullupVariant = {
- initial: { y: 100, opacity: 0 },
- animate: (i: number) => ({
- y: 0,
- opacity: 1,
- transition: {
- delay: i * (delay ? delay : 0.05), // By default, delay each letter's animation by 0.05 seconds
- },
- }),
- };
-
- return (
- <div className="flex justify-center">
- {letters.map((letter, i) => (
- <motion.h1
- key={i}
- variants={pullupVariant}
- initial="initial"
- animate="animate"
- custom={i}
- className={cn(
- "font-display text-center text-4xl font-bold tracking-[-0.02em] text-black drop-shadow-sm dark:text-white md:text-4xl md:leading-[5rem]",
- className,
- )}
- >
- {letter === " " ? <span>&nbsp;</span> : letter}
- </motion.h1>
- ))}
- </div>
- );
-}
diff --git a/registry/default/magicui/word-pull-up.tsx b/registry/default/magicui/word-pull-up.tsx
deleted file mode 100644
index ce8c1d60..00000000
--- a/registry/default/magicui/word-pull-up.tsx
+++ /dev/null
@@ -1,63 +0,0 @@
-"use client";
-
-import { cn } from "@/lib/utils";
-import { motion, MotionProps, useInView, Variants } from "motion/react";
-import { useRef } from "react";
-
-interface WordPullUpProps extends MotionProps {
- children: string;
- className?: string;
- delayMultiple?: number;
- variants?: Variants;
- wordVariants?: Variants;
- startOnView?: boolean;
- as?: React.ElementType;
-}
-
-export default function WordPullUp({
- children,
- className,
- as: Component = "h1",
- variants = {
- hidden: { opacity: 0 },
- show: {
- opacity: 1,
- transition: {
- staggerChildren: 0.2,
- },
- },
- },
- wordVariants = {
- hidden: { y: 20, opacity: 0 },
- show: { y: 0, opacity: 1 },
- },
- startOnView = false,
-}: WordPullUpProps) {
- const MotionComponent = motion.create(Component);
- const ref = useRef<HTMLElement>(null);
- const inView = useInView(ref, { once: true, margin: "-30% 0px -30% 0px" });
- const shouldAnimate = startOnView ? inView : true;
-
- return (
- <MotionComponent
- ref={ref}
- variants={variants}
- initial="hidden"
- animate={shouldAnimate ? "show" : "hidden"}
- className={cn(
- "text-4xl font-bold leading-[5rem] tracking-[-0.02em]",
- className,
- )}
- >
- {children.split(" ").map((word, i) => (
- <motion.span
- key={i}
- variants={wordVariants}
- style={{ display: "inline-block", paddingRight: "8px" }}
- >
- {word === "" ? <span>&nbsp;</span> : word}
- </motion.span>
- ))}
- </MotionComponent>
- );
-}
diff --git a/registry/registry-examples.ts b/registry/registry-examples.ts
index f6b7f062..ad0b20f6 100644
--- a/registry/registry-examples.ts
+++ b/registry/registry-examples.ts
@@ -331,24 +331,12 @@ export const examples: Registry = [
registryDependencies: ["avatar-circles"],
files: ["example/avatar-circles-demo.tsx"],
},
- {
- name: "word-pull-up-demo",
- type: "registry:example",
- registryDependencies: ["word-pull-up"],
- files: ["example/word-pull-up-demo.tsx"],
- },
{
name: "typing-animation-demo",
type: "registry:example",
registryDependencies: ["typing-animation"],
files: ["example/typing-animation-demo.tsx"],
},
- {
- name: "blur-in-demo",
- type: "registry:example",
- registryDependencies: ["blur-in"],
- files: ["example/blur-in-demo.tsx"],
- },
{
name: "scroll-based-velocity-demo",
type: "registry:example",
@@ -361,12 +349,6 @@ export const examples: Registry = [
registryDependencies: ["scratch-to-reveal"],
files: ["example/scratch-to-reveal-demo.tsx"],
},
- {
- name: "letter-pullup-demo",
- type: "registry:example",
- registryDependencies: ["letter-pullup"],
- files: ["example/letter-pullup-demo.tsx"],
- },
{
name: "flip-text-demo",
type: "registry:example",
@@ -396,11 +378,6 @@ export const examples: Registry = [
registryDependencies: ["icon-cloud"],
files: ["example/icon-cloud-demo-3.tsx"],
},
- {
- name: "gradual-spacing-demo",
- type: "registry:example",
- files: ["example/gradual-spacing-demo.tsx"],
- },
{
name: "text-animate-demo",
type: "registry:example",
@@ -426,11 +403,6 @@ export const examples: Registry = [
type: "registry:example",
files: ["example/text-animate-demo-5.tsx"],
},
- {
- name: "fade-text-demo",
- type: "registry:example",
- files: ["example/fade-text-demo.tsx"],
- },
{
name: "shiny-button-demo",
type: "registry:example",
diff --git a/registry/registry-ui.ts b/registry/registry-ui.ts
index 0a933012..de3c321d 100644
--- a/registry/registry-ui.ts
+++ b/registry/registry-ui.ts
@@ -416,30 +416,12 @@ export const ui: Registry = [
type: "registry:ui",
files: ["magicui/avatar-circles.tsx"],
},
- {
- name: "word-pull-up",
- type: "registry:ui",
- dependencies: ["motion"],
- files: ["magicui/word-pull-up.tsx"],
- },
{
name: "typing-animation",
type: "registry:ui",
dependencies: ["motion"],
files: ["magicui/typing-animation.tsx"],
},
- {
- name: "blur-in",
- type: "registry:ui",
- dependencies: ["motion"],
- files: ["magicui/blur-in.tsx"],
- },
- {
- name: "letter-pullup",
- type: "registry:ui",
- dependencies: ["motion"],
- files: ["magicui/letter-pullup.tsx"],
- },
{
name: "sparkles-text",
type: "registry:ui",
@@ -458,12 +440,6 @@ export const ui: Registry = [
dependencies: [],
files: ["magicui/icon-cloud.tsx"],
},
- {
- name: "gradual-spacing",
- type: "registry:ui",
- dependencies: ["motion"],
- files: ["magicui/gradual-spacing.tsx"],
- },
{
name: "text-animate",
type: "registry:ui",
@@ -482,12 +458,6 @@ export const ui: Registry = [
dependencies: ["motion"],
files: ["magicui/scratch-to-reveal.tsx"],
},
- {
- name: "fade-text",
- type: "registry:ui",
- dependencies: ["motion"],
- files: ["magicui/fade-text.tsx"],
- },
{
name: "shiny-button",
type: "registry:ui",