UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
fix: dock improvement (#454)
Arghya Daseeee51e5e884
diff --git a/__registry__/index.tsx b/__registry__/index.tsxindex 4cc1bdf7..756a9c7d 100644--- a/__registry__/index.tsx+++ b/__registry__/index.tsx@@ -1,1628 +1,1965 @@// @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> = {- "default": {+ default: {"magic-card": {name: "magic-card",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/magic-card.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/magic-card.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/magic-card.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"scroll-progress": {name: "scroll-progress",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/scroll-progress.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/scroll-progress.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/scroll-progress.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"neon-gradient-card": {name: "neon-gradient-card",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/neon-gradient-card.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/neon-gradient-card.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/neon-gradient-card.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},- "meteors": {+ meteors: {name: "meteors",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/meteors.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/meteors.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/meteors.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"grid-pattern": {name: "grid-pattern",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/grid-pattern.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/grid-pattern.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/grid-pattern.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"dot-pattern": {name: "dot-pattern",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/dot-pattern.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/dot-pattern.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/dot-pattern.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"flickering-grid": {name: "flickering-grid",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/flickering-grid.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/flickering-grid.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/flickering-grid.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"hero-video-dialog": {name: "hero-video-dialog",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/hero-video-dialog.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/hero-video-dialog.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/hero-video-dialog.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"code-comparison": {name: "code-comparison",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/code-comparison.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/code-comparison.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/code-comparison.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},- "marquee": {+ marquee: {name: "marquee",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/marquee.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/marquee.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/marquee.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},- "globe": {+ globe: {name: "globe",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/globe.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/globe.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/globe.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"shimmer-button": {name: "shimmer-button",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/shimmer-button.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/shimmer-button.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/shimmer-button.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"tweet-card": {name: "tweet-card",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/tweet-card.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/tweet-card.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/tweet-card.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"client-tweet-card": {name: "client-tweet-card",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/client-tweet-card.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/client-tweet-card.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/client-tweet-card.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"bento-grid": {name: "bento-grid",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/bento-grid.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/bento-grid.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/bento-grid.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},- "particles": {+ particles: {name: "particles",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/particles.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/particles.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/particles.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"number-ticker": {name: "number-ticker",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/number-ticker.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/number-ticker.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/number-ticker.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},- "ripple": {+ ripple: {name: "ripple",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/ripple.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/ripple.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/ripple.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"retro-grid": {name: "retro-grid",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/retro-grid.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/retro-grid.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/retro-grid.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"animated-list": {name: "animated-list",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/animated-list.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/animated-list.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/animated-list.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"animated-shiny-text": {name: "animated-shiny-text",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/animated-shiny-text.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/animated-shiny-text.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/animated-shiny-text.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"animated-grid-pattern": {name: "animated-grid-pattern",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/animated-grid-pattern.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/animated-grid-pattern.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/animated-grid-pattern.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"border-beam": {name: "border-beam",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/border-beam.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/border-beam.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/border-beam.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"animated-beam": {name: "animated-beam",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/animated-beam.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/animated-beam.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/animated-beam.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"text-reveal": {name: "text-reveal",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/text-reveal.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/text-reveal.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/text-reveal.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"hyper-text": {name: "hyper-text",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/hyper-text.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/hyper-text.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/hyper-text.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"animated-gradient-text": {name: "animated-gradient-text",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/animated-gradient-text.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/animated-gradient-text.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/animated-gradient-text.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"orbiting-circles": {name: "orbiting-circles",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/orbiting-circles.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/orbiting-circles.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/orbiting-circles.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},- "dock": {+ dock: {name: "dock",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/dock.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/dock.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/dock.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"word-rotate": {name: "word-rotate",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/word-rotate.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/word-rotate.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/word-rotate.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"avatar-circles": {name: "avatar-circles",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/avatar-circles.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/avatar-circles.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/avatar-circles.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ 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")),+ component: React.lazy(+ () => import("@/registry/default/magicui/word-pull-up.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"typing-animation": {name: "typing-animation",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/typing-animation.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/typing-animation.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/typing-animation.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ 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")),+ component: React.lazy(+ () => import("@/registry/default/magicui/blur-in.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ 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")),+ component: React.lazy(+ () => import("@/registry/default/magicui/letter-pullup.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"sparkles-text": {name: "sparkles-text",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/sparkles-text.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/sparkles-text.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/sparkles-text.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"flip-text": {name: "flip-text",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/flip-text.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/flip-text.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/flip-text.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"icon-cloud": {name: "icon-cloud",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/icon-cloud.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/icon-cloud.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/icon-cloud.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ 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")),+ component: React.lazy(+ () => import("@/registry/default/magicui/gradual-spacing.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"word-fade-in": {name: "word-fade-in",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/word-fade-in.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/word-fade-in.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/word-fade-in.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"scroll-based-velocity": {name: "scroll-based-velocity",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/scroll-based-velocity.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/scroll-based-velocity.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/scroll-based-velocity.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"scratch-to-reveal": {name: "scratch-to-reveal",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/scratch-to-reveal.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/scratch-to-reveal.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/scratch-to-reveal.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ 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")),+ component: React.lazy(+ () => import("@/registry/default/magicui/fade-text.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"shiny-button": {name: "shiny-button",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/shiny-button.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/shiny-button.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/shiny-button.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"box-reveal": {name: "box-reveal",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/box-reveal.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/box-reveal.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/box-reveal.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"shine-border": {name: "shine-border",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/shine-border.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/shine-border.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/shine-border.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"animated-circular-progress-bar": {name: "animated-circular-progress-bar",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/animated-circular-progress-bar.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/animated-circular-progress-bar.tsx")),+ component: React.lazy(+ () =>+ import(+ "@/registry/default/magicui/animated-circular-progress-bar.tsx"+ ),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},- "confetti": {+ confetti: {name: "confetti",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/confetti.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/confetti.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/confetti.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"animated-subscribe-button": {name: "animated-subscribe-button",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/animated-subscribe-button.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/animated-subscribe-button.tsx")),+ component: React.lazy(+ () =>+ import("@/registry/default/magicui/animated-subscribe-button.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"cool-mode": {name: "cool-mode",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/cool-mode.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/cool-mode.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/cool-mode.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"pulsating-button": {name: "pulsating-button",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/pulsating-button.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/pulsating-button.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/pulsating-button.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"ripple-button": {name: "ripple-button",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/ripple-button.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/ripple-button.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/ripple-button.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"file-tree": {name: "file-tree",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/file-tree.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/file-tree.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/file-tree.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"blur-fade": {name: "blur-fade",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/blur-fade.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/blur-fade.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/blur-fade.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},- "safari": {+ safari: {name: "safari",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/safari.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/safari.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/safari.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"iphone-15-pro": {name: "iphone-15-pro",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/iphone-15-pro.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/iphone-15-pro.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/iphone-15-pro.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"rainbow-button": {name: "rainbow-button",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/rainbow-button.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/rainbow-button.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/rainbow-button.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"interactive-hover-button": {name: "interactive-hover-button",type: "registry:ui",registryDependencies: undefined,files: ["registry/default/magicui/interactive-hover-button.tsx"],- component: React.lazy(() => import("@/registry/default/magicui/interactive-hover-button.tsx")),+ component: React.lazy(+ () => import("@/registry/default/magicui/interactive-hover-button.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"magic-card-demo": {name: "magic-card-demo",type: "registry:example",registryDependencies: ["magic-card"],files: ["registry/default/example/magic-card-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/magic-card-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/magic-card-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"scroll-progress-demo": {name: "scroll-progress-demo",type: "registry:example",registryDependencies: ["scroll-progress"],files: ["registry/default/example/scroll-progress-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/scroll-progress-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/scroll-progress-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"neon-gradient-card-demo": {name: "neon-gradient-card-demo",type: "registry:example",registryDependencies: undefined,files: ["registry/default/example/neon-gradient-card-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/neon-gradient-card-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/neon-gradient-card-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"meteors-demo": {name: "meteors-demo",type: "registry:example",registryDependencies: ["meteors"],files: ["registry/default/example/meteors-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/meteors-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/meteors-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"grid-pattern-demo": {name: "grid-pattern-demo",type: "registry:example",registryDependencies: ["grid-pattern"],files: ["registry/default/example/grid-pattern-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/grid-pattern-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/grid-pattern-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"grid-pattern-linear-gradient": {name: "grid-pattern-linear-gradient",type: "registry:example",registryDependencies: ["grid-pattern"],files: ["registry/default/example/grid-pattern-linear-gradient.tsx"],- component: React.lazy(() => import("@/registry/default/example/grid-pattern-linear-gradient.tsx")),+ component: React.lazy(+ () =>+ import("@/registry/default/example/grid-pattern-linear-gradient.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"grid-pattern-dashed": {name: "grid-pattern-dashed",type: "registry:example",registryDependencies: ["grid-pattern"],files: ["registry/default/example/grid-pattern-dashed.tsx"],- component: React.lazy(() => import("@/registry/default/example/grid-pattern-dashed.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/grid-pattern-dashed.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"dot-pattern-demo": {name: "dot-pattern-demo",type: "registry:example",registryDependencies: ["dot-pattern"],files: ["registry/default/example/dot-pattern-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/dot-pattern-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/dot-pattern-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"dot-pattern-linear-gradient": {name: "dot-pattern-linear-gradient",type: "registry:example",registryDependencies: ["dot-pattern"],files: ["registry/default/example/dot-pattern-linear-gradient.tsx"],- component: React.lazy(() => import("@/registry/default/example/dot-pattern-linear-gradient.tsx")),+ component: React.lazy(+ () =>+ import("@/registry/default/example/dot-pattern-linear-gradient.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"flickering-grid-demo": {name: "flickering-grid-demo",type: "registry:example",registryDependencies: undefined,files: ["registry/default/example/flickering-grid-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/flickering-grid-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/flickering-grid-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"flickering-grid-rounded-demo": {name: "flickering-grid-rounded-demo",type: "registry:example",registryDependencies: undefined,files: ["registry/default/example/flickering-grid-rounded-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/flickering-grid-rounded-demo.tsx")),+ component: React.lazy(+ () =>+ import("@/registry/default/example/flickering-grid-rounded-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"hero-video-dialog-demo": {name: "hero-video-dialog-demo",type: "registry:example",registryDependencies: undefined,files: ["registry/default/example/hero-video-dialog-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/hero-video-dialog-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/hero-video-dialog-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"hero-video-dialog-demo-top-in-bottom-out": {name: "hero-video-dialog-demo-top-in-bottom-out",type: "registry:example",registryDependencies: undefined,- files: ["registry/default/example/hero-video-dialog-demo-top-in-bottom-out.tsx"],- component: React.lazy(() => import("@/registry/default/example/hero-video-dialog-demo-top-in-bottom-out.tsx")),+ files: [+ "registry/default/example/hero-video-dialog-demo-top-in-bottom-out.tsx",+ ],+ component: React.lazy(+ () =>+ import(+ "@/registry/default/example/hero-video-dialog-demo-top-in-bottom-out.tsx"+ ),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"code-comparison-demo": {name: "code-comparison-demo",type: "registry:example",registryDependencies: undefined,files: ["registry/default/example/code-comparison-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/code-comparison-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/code-comparison-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"marquee-demo": {name: "marquee-demo",type: "registry:example",registryDependencies: ["marquee"],files: ["registry/default/example/marquee-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/marquee-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/marquee-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"marquee-demo-vertical": {name: "marquee-demo-vertical",type: "registry:example",registryDependencies: ["marquee"],files: ["registry/default/example/marquee-demo-vertical.tsx"],- component: React.lazy(() => import("@/registry/default/example/marquee-demo-vertical.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/marquee-demo-vertical.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"marquee-logos": {name: "marquee-logos",type: "registry:example",registryDependencies: ["marquee"],files: ["registry/default/example/marquee-logos.tsx"],- component: React.lazy(() => import("@/registry/default/example/marquee-logos.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/marquee-logos.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"marquee-3d": {name: "marquee-3d",type: "registry:example",registryDependencies: ["marquee"],files: ["registry/default/example/marquee-3d.tsx"],- component: React.lazy(() => import("@/registry/default/example/marquee-3d.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/marquee-3d.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"globe-demo": {name: "globe-demo",type: "registry:example",registryDependencies: ["globe"],files: ["registry/default/example/globe-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/globe-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/globe-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"tweet-card-demo": {name: "tweet-card-demo",type: "registry:example",registryDependencies: ["tweet-card"],files: ["registry/default/example/tweet-card-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/tweet-card-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/tweet-card-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"tweet-card-images": {name: "tweet-card-images",type: "registry:example",registryDependencies: ["tweet-card"],files: ["registry/default/example/tweet-card-images.tsx"],- component: React.lazy(() => import("@/registry/default/example/tweet-card-images.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/tweet-card-images.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"tweet-card-meta-preview": {name: "tweet-card-meta-preview",type: "registry:example",registryDependencies: ["tweet-card"],files: ["registry/default/example/tweet-card-meta-preview.tsx"],- component: React.lazy(() => import("@/registry/default/example/tweet-card-meta-preview.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/tweet-card-meta-preview.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"shimmer-button-demo": {name: "shimmer-button-demo",type: "registry:example",registryDependencies: ["shimmer-button"],files: ["registry/default/example/shimmer-button-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/shimmer-button-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/shimmer-button-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"bento-demo": {name: "bento-demo",type: "registry:example",- registryDependencies: ["bento-grid","marquee","animated-list-demo","animated-beam-multiple-outputs","shadcn:command","shadcn:calendar"],+ registryDependencies: [+ "bento-grid",+ "marquee",+ "animated-list-demo",+ "animated-beam-multiple-outputs",+ "shadcn:command",+ "shadcn:calendar",+ ],files: ["registry/default/example/bento-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/bento-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/bento-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"bento-demo-vertical": {name: "bento-demo-vertical",type: "registry:example",registryDependencies: ["bento-grid"],files: ["registry/default/example/bento-demo-vertical.tsx"],- component: React.lazy(() => import("@/registry/default/example/bento-demo-vertical.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/bento-demo-vertical.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"number-ticker-demo": {name: "number-ticker-demo",type: "registry:example",registryDependencies: ["number-ticker"],files: ["registry/default/example/number-ticker-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/number-ticker-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/number-ticker-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"number-ticker-decimal-demo": {name: "number-ticker-decimal-demo",type: "registry:example",registryDependencies: ["number-ticker"],files: ["registry/default/example/number-ticker-decimal-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/number-ticker-decimal-demo.tsx")),+ component: React.lazy(+ () =>+ import("@/registry/default/example/number-ticker-decimal-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"ripple-demo": {name: "ripple-demo",type: "registry:example",registryDependencies: ["ripple"],files: ["registry/default/example/ripple-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/ripple-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/ripple-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"retro-grid-demo": {name: "retro-grid-demo",type: "registry:example",registryDependencies: undefined,files: ["registry/default/example/retro-grid-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/retro-grid-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/retro-grid-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"animated-list-demo": {name: "animated-list-demo",type: "registry:example",registryDependencies: ["animated-list"],files: ["registry/default/example/animated-list-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/animated-list-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/animated-list-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"animated-shiny-text-demo": {name: "animated-shiny-text-demo",type: "registry:example",registryDependencies: ["animated-shiny-text"],files: ["registry/default/example/animated-shiny-text-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/animated-shiny-text-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/animated-shiny-text-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"particles-demo": {name: "particles-demo",type: "registry:example",registryDependencies: ["particles"],files: ["registry/default/example/particles-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/particles-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/particles-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"animated-grid-pattern-demo": {name: "animated-grid-pattern-demo",type: "registry:example",registryDependencies: ["animated-grid-pattern"],files: ["registry/default/example/animated-grid-pattern-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/animated-grid-pattern-demo.tsx")),+ component: React.lazy(+ () =>+ import("@/registry/default/example/animated-grid-pattern-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"border-beam-demo": {name: "border-beam-demo",type: "registry:example",registryDependencies: ["border-beam"],files: ["registry/default/example/border-beam-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/border-beam-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/border-beam-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"animated-beam-demo": {name: "animated-beam-demo",type: "registry:example",registryDependencies: ["animated-beam"],files: ["registry/default/example/animated-beam-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/animated-beam-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/animated-beam-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"animated-beam-unidirectional": {name: "animated-beam-unidirectional",type: "registry:example",registryDependencies: ["animated-beam"],files: ["registry/default/example/animated-beam-unidirectional.tsx"],- component: React.lazy(() => import("@/registry/default/example/animated-beam-unidirectional.tsx")),+ component: React.lazy(+ () =>+ import("@/registry/default/example/animated-beam-unidirectional.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"animated-beam-bidirectional": {name: "animated-beam-bidirectional",type: "registry:example",registryDependencies: ["animated-beam"],files: ["registry/default/example/animated-beam-bidirectional.tsx"],- component: React.lazy(() => import("@/registry/default/example/animated-beam-bidirectional.tsx")),+ component: React.lazy(+ () =>+ import("@/registry/default/example/animated-beam-bidirectional.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"animated-beam-multiple-inputs": {name: "animated-beam-multiple-inputs",type: "registry:example",registryDependencies: ["animated-beam"],files: ["registry/default/example/animated-beam-multiple-inputs.tsx"],- component: React.lazy(() => import("@/registry/default/example/animated-beam-multiple-inputs.tsx")),+ component: React.lazy(+ () =>+ import(+ "@/registry/default/example/animated-beam-multiple-inputs.tsx"+ ),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"animated-beam-multiple-outputs": {name: "animated-beam-multiple-outputs",type: "registry:example",registryDependencies: ["animated-beam"],files: ["registry/default/example/animated-beam-multiple-outputs.tsx"],- component: React.lazy(() => import("@/registry/default/example/animated-beam-multiple-outputs.tsx")),+ component: React.lazy(+ () =>+ import(+ "@/registry/default/example/animated-beam-multiple-outputs.tsx"+ ),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"text-reveal-demo": {name: "text-reveal-demo",type: "registry:example",registryDependencies: ["text-reveal"],files: ["registry/default/example/text-reveal-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/text-reveal-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/text-reveal-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"animated-gradient-text-demo": {name: "animated-gradient-text-demo",type: "registry:example",registryDependencies: ["animated-gradient-text"],files: ["registry/default/example/animated-gradient-text-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/animated-gradient-text-demo.tsx")),+ component: React.lazy(+ () =>+ import("@/registry/default/example/animated-gradient-text-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"orbiting-circles-demo": {name: "orbiting-circles-demo",type: "registry:example",registryDependencies: ["orbiting-circles"],files: ["registry/default/example/orbiting-circles-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/orbiting-circles-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/orbiting-circles-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"dock-demo": {name: "dock-demo",type: "registry:example",registryDependencies: ["dock"],files: ["registry/default/example/dock-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/dock-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/dock-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"dock-demo-2": {name: "dock-demo-2",type: "registry:example",registryDependencies: ["dock"],files: ["registry/default/example/dock-demo-2.tsx"],- component: React.lazy(() => import("@/registry/default/example/dock-demo-2.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/dock-demo-2.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"dock-demo-3": {name: "dock-demo-3",type: "registry:example",registryDependencies: ["dock"],files: ["registry/default/example/dock-demo-3.tsx"],- component: React.lazy(() => import("@/registry/default/example/dock-demo-3.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/dock-demo-3.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"word-rotate-demo": {name: "word-rotate-demo",type: "registry:example",registryDependencies: ["word-rotate"],files: ["registry/default/example/word-rotate-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/word-rotate-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/word-rotate-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"hyper-text-demo": {name: "hyper-text-demo",type: "registry:example",registryDependencies: ["hyper-text"],files: ["registry/default/example/hyper-text-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/hyper-text-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/hyper-text-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"avatar-circles-demo": {name: "avatar-circles-demo",type: "registry:example",registryDependencies: ["avatar-circles"],files: ["registry/default/example/avatar-circles-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/avatar-circles-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/avatar-circles-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ 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")),+ component: React.lazy(+ () => import("@/registry/default/example/word-pull-up-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"typing-animation-demo": {name: "typing-animation-demo",type: "registry:example",registryDependencies: ["typing-animation"],files: ["registry/default/example/typing-animation-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/typing-animation-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/typing-animation-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ 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")),+ component: React.lazy(+ () => import("@/registry/default/example/blur-in-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"scroll-based-velocity-demo": {name: "scroll-based-velocity-demo",type: "registry:example",registryDependencies: ["scroll-based-velocity"],files: ["registry/default/example/scroll-based-velocity-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/scroll-based-velocity-demo.tsx")),+ component: React.lazy(+ () =>+ import("@/registry/default/example/scroll-based-velocity-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"scratch-to-reveal-demo": {name: "scratch-to-reveal-demo",type: "registry:example",registryDependencies: ["scratch-to-reveal"],files: ["registry/default/example/scratch-to-reveal-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/scratch-to-reveal-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/scratch-to-reveal-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ 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")),+ component: React.lazy(+ () => import("@/registry/default/example/letter-pullup-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"flip-text-demo": {name: "flip-text-demo",type: "registry:example",registryDependencies: ["flip-text"],files: ["registry/default/example/flip-text-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/flip-text-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/flip-text-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"sparkles-text-demo": {name: "sparkles-text-demo",type: "registry:example",registryDependencies: undefined,files: ["registry/default/example/sparkles-text-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/sparkles-text-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/sparkles-text-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"icon-cloud-demo": {name: "icon-cloud-demo",type: "registry:example",registryDependencies: ["icon-cloud"],files: ["registry/default/example/icon-cloud-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/icon-cloud-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/icon-cloud-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ 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")),+ component: React.lazy(+ () => import("@/registry/default/example/gradual-spacing-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"word-fade-in-demo": {name: "word-fade-in-demo",type: "registry:example",registryDependencies: undefined,files: ["registry/default/example/word-fade-in-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/word-fade-in-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/word-fade-in-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ 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")),+ component: React.lazy(+ () => import("@/registry/default/example/fade-text-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"shiny-button-demo": {name: "shiny-button-demo",type: "registry:example",registryDependencies: undefined,files: ["registry/default/example/shiny-button-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/shiny-button-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/shiny-button-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"box-reveal-demo": {name: "box-reveal-demo",type: "registry:example",registryDependencies: undefined,files: ["registry/default/example/box-reveal-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/box-reveal-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/box-reveal-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"animated-circular-progress-bar-demo": {name: "animated-circular-progress-bar-demo",type: "registry:example",registryDependencies: undefined,- files: ["registry/default/example/animated-circular-progress-bar-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/animated-circular-progress-bar-demo.tsx")),+ files: [+ "registry/default/example/animated-circular-progress-bar-demo.tsx",+ ],+ component: React.lazy(+ () =>+ import(+ "@/registry/default/example/animated-circular-progress-bar-demo.tsx"+ ),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"shine-border-demo": {name: "shine-border-demo",type: "registry:example",registryDependencies: undefined,files: ["registry/default/example/shine-border-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/shine-border-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/shine-border-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"shine-border-demo-2": {name: "shine-border-demo-2",type: "registry:example",registryDependencies: undefined,files: ["registry/default/example/shine-border-demo-2.tsx"],- component: React.lazy(() => import("@/registry/default/example/shine-border-demo-2.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/shine-border-demo-2.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"confetti-demo": {name: "confetti-demo",type: "registry:example",registryDependencies: undefined,files: ["registry/default/example/confetti-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/confetti-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/confetti-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"confetti-basic-cannon": {name: "confetti-basic-cannon",type: "registry:example",registryDependencies: undefined,files: ["registry/default/example/confetti-basic-cannon.tsx"],- component: React.lazy(() => import("@/registry/default/example/confetti-basic-cannon.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/confetti-basic-cannon.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"confetti-random-direction": {name: "confetti-random-direction",type: "registry:example",registryDependencies: undefined,files: ["registry/default/example/confetti-random-direction.tsx"],- component: React.lazy(() => import("@/registry/default/example/confetti-random-direction.tsx")),+ component: React.lazy(+ () =>+ import("@/registry/default/example/confetti-random-direction.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"confetti-fireworks": {name: "confetti-fireworks",type: "registry:example",registryDependencies: undefined,files: ["registry/default/example/confetti-fireworks.tsx"],- component: React.lazy(() => import("@/registry/default/example/confetti-fireworks.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/confetti-fireworks.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"confetti-stars": {name: "confetti-stars",type: "registry:example",registryDependencies: undefined,files: ["registry/default/example/confetti-stars.tsx"],- component: React.lazy(() => import("@/registry/default/example/confetti-stars.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/confetti-stars.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"confetti-side-cannons": {name: "confetti-side-cannons",type: "registry:example",registryDependencies: undefined,files: ["registry/default/example/confetti-side-cannons.tsx"],- component: React.lazy(() => import("@/registry/default/example/confetti-side-cannons.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/confetti-side-cannons.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"confetti-custom-shapes": {name: "confetti-custom-shapes",type: "registry:example",registryDependencies: undefined,files: ["registry/default/example/confetti-custom-shapes.tsx"],- component: React.lazy(() => import("@/registry/default/example/confetti-custom-shapes.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/confetti-custom-shapes.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"confetti-emoji": {name: "confetti-emoji",type: "registry:example",registryDependencies: undefined,files: ["registry/default/example/confetti-emoji.tsx"],- component: React.lazy(() => import("@/registry/default/example/confetti-emoji.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/confetti-emoji.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"animated-subscribe-button-demo": {name: "animated-subscribe-button-demo",type: "registry:example",registryDependencies: undefined,files: ["registry/default/example/animated-subscribe-button-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/animated-subscribe-button-demo.tsx")),+ component: React.lazy(+ () =>+ import(+ "@/registry/default/example/animated-subscribe-button-demo.tsx"+ ),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"cool-mode-demo": {name: "cool-mode-demo",type: "registry:example",registryDependencies: undefined,files: ["registry/default/example/cool-mode-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/cool-mode-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/cool-mode-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"cool-mode-custom": {name: "cool-mode-custom",type: "registry:example",registryDependencies: undefined,files: ["registry/default/example/cool-mode-custom.tsx"],- component: React.lazy(() => import("@/registry/default/example/cool-mode-custom.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/cool-mode-custom.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"pulsating-button-demo": {name: "pulsating-button-demo",type: "registry:example",registryDependencies: undefined,files: ["registry/default/example/pulsating-button-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/pulsating-button-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/pulsating-button-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"ripple-button-demo": {name: "ripple-button-demo",type: "registry:example",registryDependencies: undefined,files: ["registry/default/example/ripple-button-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/ripple-button-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/ripple-button-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"file-tree-demo": {name: "file-tree-demo",type: "registry:example",registryDependencies: undefined,files: ["registry/default/example/file-tree-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/file-tree-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/file-tree-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"blur-fade-demo": {name: "blur-fade-demo",type: "registry:example",registryDependencies: undefined,files: ["registry/default/example/blur-fade-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/blur-fade-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/blur-fade-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"blur-fade-text-demo": {name: "blur-fade-text-demo",type: "registry:example",registryDependencies: undefined,files: ["registry/default/example/blur-fade-text-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/blur-fade-text-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/blur-fade-text-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"safari-demo": {name: "safari-demo",type: "registry:example",registryDependencies: undefined,files: ["registry/default/example/safari-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/safari-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/safari-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"safari-demo-2": {name: "safari-demo-2",type: "registry:example",registryDependencies: undefined,files: ["registry/default/example/safari-demo-2.tsx"],- component: React.lazy(() => import("@/registry/default/example/safari-demo-2.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/safari-demo-2.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"safari-demo-3": {name: "safari-demo-3",type: "registry:example",registryDependencies: undefined,files: ["registry/default/example/safari-demo-3.tsx"],- component: React.lazy(() => import("@/registry/default/example/safari-demo-3.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/safari-demo-3.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"iphone-15-pro-demo": {name: "iphone-15-pro-demo",type: "registry:example",registryDependencies: undefined,files: ["registry/default/example/iphone-15-pro-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/iphone-15-pro-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/iphone-15-pro-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"iphone-15-pro-demo-2": {name: "iphone-15-pro-demo-2",type: "registry:example",registryDependencies: undefined,files: ["registry/default/example/iphone-15-pro-demo-2.tsx"],- component: React.lazy(() => import("@/registry/default/example/iphone-15-pro-demo-2.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/iphone-15-pro-demo-2.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"iphone-15-pro-demo-3": {name: "iphone-15-pro-demo-3",type: "registry:example",registryDependencies: undefined,files: ["registry/default/example/iphone-15-pro-demo-3.tsx"],- component: React.lazy(() => import("@/registry/default/example/iphone-15-pro-demo-3.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/iphone-15-pro-demo-3.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"rainbow-button-demo": {name: "rainbow-button-demo",type: "registry:example",registryDependencies: undefined,files: ["registry/default/example/rainbow-button-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/rainbow-button-demo.tsx")),+ component: React.lazy(+ () => import("@/registry/default/example/rainbow-button-demo.tsx"),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},"interactive-hover-button-demo": {name: "interactive-hover-button-demo",type: "registry:example",registryDependencies: undefined,files: ["registry/default/example/interactive-hover-button-demo.tsx"],- component: React.lazy(() => import("@/registry/default/example/interactive-hover-button-demo.tsx")),+ component: React.lazy(+ () =>+ import(+ "@/registry/default/example/interactive-hover-button-demo.tsx"+ ),+ ),source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},- "utils": {+ utils: {name: "utils",type: "registry:lib",registryDependencies: undefined,@@ -1631,7 +1968,7 @@ export const Index: Record<string, any> = {source: "",category: "undefined",subcategory: "undefined",- chunks: []+ chunks: [],},},-}+};diff --git a/content/docs/components/dock.mdx b/content/docs/components/dock.mdxindex 5823df85..2eb3f9b7 100644--- a/content/docs/components/dock.mdx+++ b/content/docs/components/dock.mdx@@ -55,19 +55,20 @@ npx shadcn@latest add "https://magicui.design/r/dock"### Dock-| Prop | Type | Description | Default |-| ------------- | --------- | ------------------------------------ | -------- |-| className | string | Custom CSS class for styling | - |-| children | ReactNode | Children elements | - |-| magnification | number | Level of icon magnification | 60 |-| distance | number | Distance from cursor to magnify icon | 140 |-| direction | string | Direction of the dock | "bottom" |+| Prop | Type | Description | Default |+| ----------------- | --------- | ------------------------------------ | -------- |+| className | string | Custom CSS class for styling | - |+| children | ReactNode | Children elements | - |+| iconSize | number | Size of the icon | 40 |+| iconMagnification | number | Level of icon magnification | 60 |+| iconDistance | number | Distance from cursor to magnify icon | 140 |+| direction | string | Direction of the dock | "middle" |### DockIcon| Prop | Type | Description | Default || ------------- | ----------------- | ------------------------------------ | ------- |-| size | number | Size of the icon | - |+| size | number | Size of the icon | 40 || magnification | number | Level of icon magnification | 60 || distance | number | Distance from cursor to magnify icon | 140 || mouseX | any | Mouse X position for magnification | - |diff --git a/public/r/styles/default/dock.json b/public/r/styles/default/dock.jsonindex 4644bf28..08908f20 100644--- a/public/r/styles/default/dock.json+++ b/public/r/styles/default/dock.json@@ -7,7 +7,7 @@"files": [{"path": "magicui/dock.tsx",- "content": "\"use client\";\n\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport {\n motion,\n MotionProps,\n useMotionValue,\n useSpring,\n useTransform,\n} from \"motion/react\";\nimport React, { useRef } from \"react\";\n\nimport { cn } from \"@/lib/utils\";\n\nexport interface DockProps extends VariantProps<typeof dockVariants> {\n className?: string;\n magnification?: number;\n distance?: number;\n direction?: \"top\" | \"middle\" | \"bottom\";\n children: React.ReactNode;\n}\n\nconst DEFAULT_MAGNIFICATION = 60;\nconst DEFAULT_DISTANCE = 140;\n\nconst dockVariants = cva(\n \"supports-backdrop-blur:bg-white/10 supports-backdrop-blur:dark:bg-black/10 mx-auto mt-8 flex h-[58px] w-max gap-2 rounded-2xl border p-2 backdrop-blur-md\",\n);\n\nconst Dock = React.forwardRef<HTMLDivElement, DockProps>(\n (\n {\n className,\n children,\n magnification = DEFAULT_MAGNIFICATION,\n distance = DEFAULT_DISTANCE,\n direction = \"bottom\",\n ...props\n },\n ref,\n ) => {\n const mouseX = useMotionValue(Infinity);\n\n const renderChildren = () => {\n return React.Children.map(children, (child) => {\n if (React.isValidElement(child) && child.type === DockIcon) {\n return React.cloneElement(child, {\n ...child.props,\n mouseX: mouseX,\n magnification: magnification,\n distance: distance,\n });\n }\n return child;\n });\n };\n\n return (\n <motion.div\n ref={ref}\n onMouseMove={(e) => mouseX.set(e.pageX)}\n onMouseLeave={() => mouseX.set(Infinity)}\n {...props}\n className={cn(dockVariants({ className }), {\n \"items-start\": direction === \"top\",\n \"items-center\": direction === \"middle\",\n \"items-end\": direction === \"bottom\",\n })}\n >\n {renderChildren()}\n </motion.div>\n );\n },\n);\n\nDock.displayName = \"Dock\";\nexport interface DockIconProps\n extends Omit<MotionProps & React.HTMLAttributes<HTMLDivElement>, \"children\"> {\n size?: number;\n magnification?: number;\n distance?: number;\n mouseX?: any;\n className?: string;\n children?: React.ReactNode;\n}\n\nconst DockIcon = ({\n size,\n magnification = DEFAULT_MAGNIFICATION,\n distance = DEFAULT_DISTANCE,\n mouseX,\n className,\n children,\n ...props\n}: DockIconProps) => {\n const ref = useRef<HTMLDivElement>(null);\n\n const distanceCalc = useTransform(mouseX, (val: number) => {\n const bounds = ref.current?.getBoundingClientRect() ?? { x: 0, width: 0 };\n\n return val - bounds.x - bounds.width / 2;\n });\n\n const widthSync = useTransform(\n distanceCalc,\n [-distance, 0, distance],\n [40, magnification, 40],\n );\n\n const width = useSpring(widthSync, {\n mass: 0.1,\n stiffness: 150,\n damping: 12,\n });\n\n return (\n <motion.div\n ref={ref}\n style={{ width }}\n className={cn(\n \"flex aspect-square cursor-pointer items-center justify-center rounded-full\",\n className,\n )}\n {...props}\n >\n {children}\n </motion.div>\n );\n};\n\nDockIcon.displayName = \"DockIcon\";\n\nexport { Dock, DockIcon, dockVariants };\n",+ "content": "\"use client\";\n\nimport React, { PropsWithChildren, useRef } from \"react\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport {\n motion,\n MotionValue,\n useMotionValue,\n useSpring,\n useTransform,\n} from \"framer-motion\";\n\nimport { cn } from \"@/lib/utils\";\n\nexport interface DockProps extends VariantProps<typeof dockVariants> {\n className?: string;\n iconSize?: number;\n iconMagnification?: number;\n iconDistance?: number;\n direction?: \"top\" | \"middle\" | \"bottom\";\n children: React.ReactNode;\n}\n\nconst DEFAULT_SIZE = 40;\nconst DEFAULT_MAGNIFICATION = 60;\nconst DEFAULT_DISTANCE = 140;\n\nconst dockVariants = cva(\n \"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\",\n);\n\nconst Dock = React.forwardRef<HTMLDivElement, DockProps>(\n (\n {\n className,\n children,\n iconSize = DEFAULT_SIZE,\n iconMagnification = DEFAULT_MAGNIFICATION,\n iconDistance = DEFAULT_DISTANCE,\n direction = \"middle\",\n ...props\n },\n ref,\n ) => {\n const mouseX = useMotionValue(Infinity);\n\n const renderChildren = () => {\n return React.Children.map(children, (child) => {\n if (React.isValidElement(child) && child.type === DockIcon) {\n return React.cloneElement(child, {\n ...child.props,\n mouseX: mouseX,\n size: iconSize,\n magnification: iconMagnification,\n distance: iconDistance,\n });\n }\n return child;\n });\n };\n\n return (\n <motion.div\n ref={ref}\n onMouseMove={(e) => mouseX.set(e.pageX)}\n onMouseLeave={() => mouseX.set(Infinity)}\n {...props}\n className={cn(dockVariants({ className }), {\n \"items-start\": direction === \"top\",\n \"items-center\": direction === \"middle\",\n \"items-end\": direction === \"bottom\",\n })}\n >\n {renderChildren()}\n </motion.div>\n );\n },\n);\n\nDock.displayName = \"Dock\";\n\nexport interface DockIconProps {\n size?: number;\n magnification?: number;\n distance?: number;\n mouseX?: MotionValue<number>;\n className?: string;\n children?: React.ReactNode;\n props?: PropsWithChildren;\n}\n\nconst DockIcon = ({\n size = DEFAULT_SIZE,\n magnification = DEFAULT_MAGNIFICATION,\n distance = DEFAULT_DISTANCE,\n mouseX,\n className,\n children,\n ...props\n}: DockIconProps) => {\n const ref = useRef<HTMLDivElement>(null);\n const padding = Math.max(6, size * 0.2);\n const defaultMouseX = useMotionValue(Infinity);\n\n const distanceCalc = useTransform(mouseX ?? defaultMouseX, (val: number) => {\n const bounds = ref.current?.getBoundingClientRect() ?? { x: 0, width: 0 };\n return val - bounds.x - bounds.width / 2;\n });\n\n const sizeTransform = useTransform(\n distanceCalc,\n [-distance, 0, distance],\n [size, magnification, size],\n );\n\n const scaleSize = useSpring(sizeTransform, {\n mass: 0.1,\n stiffness: 150,\n damping: 12,\n });\n\n return (\n <motion.div\n ref={ref}\n style={{ width: scaleSize, height: scaleSize, padding }}\n className={cn(\n \"flex aspect-square cursor-pointer items-center justify-center rounded-full\",\n className,\n )}\n {...props}\n >\n {children}\n </motion.div>\n );\n};\n\nDockIcon.displayName = \"DockIcon\";\n\nexport { Dock, DockIcon, dockVariants };\n","type": "registry:ui","target": ""}diff --git a/registry/default/example/dock-demo-3.tsx b/registry/default/example/dock-demo-3.tsxindex 13d75317..34b2a377 100644--- a/registry/default/example/dock-demo-3.tsx+++ b/registry/default/example/dock-demo-3.tsx@@ -7,17 +7,17 @@ export type IconProps = React.HTMLAttributes<SVGElement>;export default function DockDemo() {return (<div className="relative">- <Dock magnification={60} distance={100}>- <DockIcon className="bg-black/10 dark:bg-white/10 p-3">+ <Dock iconMagnification={60} iconDistance={100}>+ <DockIcon className="bg-black/10 dark:bg-white/10"><Icons.gitHub className="size-full" /></DockIcon>- <DockIcon className="bg-black/10 dark:bg-white/10 p-3">+ <DockIcon className="bg-black/10 dark:bg-white/10"><Icons.googleDrive className="size-full" /></DockIcon>- <DockIcon className="bg-black/10 dark:bg-white/10 p-3">+ <DockIcon className="bg-black/10 dark:bg-white/10"><Icons.notion className="size-full" /></DockIcon>- <DockIcon className="bg-black/10 dark:bg-white/10 p-3">+ <DockIcon className="bg-black/10 dark:bg-white/10"><Icons.whatsapp className="size-full" /></DockIcon></Dock>diff --git a/registry/default/magicui/dock.tsx b/registry/default/magicui/dock.tsxindex 4274e716..1e89faa7 100644--- a/registry/default/magicui/dock.tsx+++ b/registry/default/magicui/dock.tsx@@ -1,30 +1,32 @@"use client";+import React, { PropsWithChildren, useRef } from "react";import { cva, type VariantProps } from "class-variance-authority";import {motion,- MotionProps,+ MotionValue,useMotionValue,useSpring,useTransform,-} from "motion/react";-import React, { useRef } from "react";+} from "framer-motion";import { cn } from "@/lib/utils";export interface DockProps extends VariantProps<typeof dockVariants> {className?: string;- magnification?: number;- distance?: number;+ iconSize?: number;+ iconMagnification?: number;+ iconDistance?: number;direction?: "top" | "middle" | "bottom";children: React.ReactNode;}+const DEFAULT_SIZE = 40;const DEFAULT_MAGNIFICATION = 60;const DEFAULT_DISTANCE = 140;const dockVariants = cva(- "supports-backdrop-blur:bg-white/10 supports-backdrop-blur:dark:bg-black/10 mx-auto mt-8 flex h-[58px] w-max 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>(@@ -32,9 +34,10 @@ const Dock = React.forwardRef<HTMLDivElement, DockProps>({className,children,- magnification = DEFAULT_MAGNIFICATION,- distance = DEFAULT_DISTANCE,- direction = "bottom",+ iconSize = DEFAULT_SIZE,+ iconMagnification = DEFAULT_MAGNIFICATION,+ iconDistance = DEFAULT_DISTANCE,+ direction = "middle",...props},ref,@@ -47,8 +50,9 @@ const Dock = React.forwardRef<HTMLDivElement, DockProps>(return React.cloneElement(child, {...child.props,mouseX: mouseX,- magnification: magnification,- distance: distance,+ size: iconSize,+ magnification: iconMagnification,+ distance: iconDistance,});}return child;@@ -74,18 +78,19 @@ const Dock = React.forwardRef<HTMLDivElement, DockProps>();Dock.displayName = "Dock";-export interface DockIconProps- extends Omit<MotionProps & React.HTMLAttributes<HTMLDivElement>, "children"> {++export interface DockIconProps {size?: number;magnification?: number;distance?: number;- mouseX?: any;+ mouseX?: MotionValue<number>;className?: string;children?: React.ReactNode;+ props?: PropsWithChildren;}const DockIcon = ({- size,+ size = DEFAULT_SIZE,magnification = DEFAULT_MAGNIFICATION,distance = DEFAULT_DISTANCE,mouseX,@@ -94,20 +99,21 @@ const DockIcon = ({...props}: DockIconProps) => {const ref = useRef<HTMLDivElement>(null);+ const padding = Math.max(6, size * 0.2);+ const defaultMouseX = useMotionValue(Infinity);- const distanceCalc = useTransform(mouseX, (val: number) => {+ const distanceCalc = useTransform(mouseX ?? defaultMouseX, (val: number) => {const bounds = ref.current?.getBoundingClientRect() ?? { x: 0, width: 0 };-return val - bounds.x - bounds.width / 2;});- const widthSync = useTransform(+ const sizeTransform = useTransform(distanceCalc,[-distance, 0, distance],- [40, magnification, 40],+ [size, magnification, size],);- const width = useSpring(widthSync, {+ const scaleSize = useSpring(sizeTransform, {mass: 0.1,stiffness: 150,damping: 12,@@ -116,7 +122,7 @@ const DockIcon = ({return (<motion.divref={ref}- style={{ width }}+ style={{ width: scaleSize, height: scaleSize, padding }}className={cn("flex aspect-square cursor-pointer items-center justify-center rounded-full",className,