{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "concierge-bell",
  "type": "registry:ui",
  "registryDependencies": [],
  "dependencies": ["motion"],
  "devDependencies": [],
  "files": [
    {
      "path": "concierge-bell.tsx",
      "content": "\"use client\";\n\nimport type { Variants } from \"motion/react\";\nimport { motion, useAnimation } from \"motion/react\";\nimport type { HTMLAttributes } from \"react\";\nimport { forwardRef, useCallback, useImperativeHandle, useRef } from \"react\";\nimport { cn } from \"@/lib/utils\";\n\nexport interface ConciergeBellHandle {\n  startAnimation: () => void;\n  stopAnimation: () => void;\n}\n\ninterface ConciergeBellProps extends HTMLAttributes<HTMLDivElement> {\n  size?: number;\n}\n\nconst STEM_VARIANTS: Variants = {\n  normal: { y: 0 },\n  animate: {\n    y: 2,\n    transition: { duration: 0.1 },\n  },\n};\n\nconst BELL_VARIANTS: Variants = {\n  normal: { rotate: 0 },\n  animate: {\n    rotate: [0, -2, 2, -2, 2, -1, 1, 0],\n    transition: {\n      delay: 0.1,\n      duration: 0.28,\n      ease: \"easeInOut\",\n    },\n  },\n};\n\nconst SOUND_WAVES_VARIANTS: Variants = {\n  normal: { opacity: 0, scale: 1 },\n  animate: {\n    opacity: [0, 1, 0],\n    scale: [0.8, 1, 1.3],\n    transition: {\n      delay: 0.13,\n      duration: 0.7,\n      ease: \"easeOut\",\n      times: [0, 0.2, 1],\n    },\n  },\n};\n\nconst ConciergeBellIcon = forwardRef<ConciergeBellHandle, ConciergeBellProps>(\n  ({ onMouseEnter, onMouseLeave, className, size = 28, ...props }, ref) => {\n    const controls = useAnimation();\n    const isControlledRef = useRef(false);\n\n    const triggerEffect = useCallback(() => {\n      controls.start(\"animate\").then(() => {\n        controls.start(\"normal\");\n      });\n    }, [controls]);\n\n    useImperativeHandle(ref, () => {\n      isControlledRef.current = true;\n      return {\n        startAnimation: triggerEffect,\n        stopAnimation: () => controls.start(\"normal\"),\n      };\n    });\n\n    return (\n      <div\n        className={cn(className)}\n        onMouseEnter={onMouseEnter}\n        onMouseLeave={onMouseLeave}\n        {...props}\n      >\n        <svg\n          fill=\"none\"\n          height={size}\n          stroke=\"currentColor\"\n          strokeLinecap=\"round\"\n          strokeLinejoin=\"round\"\n          strokeWidth=\"2\"\n          style={{ overflow: \"visible\" }}\n          viewBox=\"0 0 24 24\"\n          width={size}\n          xmlns=\"http://www.w3.org/2000/svg\"\n        >\n          <path d=\"M3 20a1 1 0 0 1-1-1v-1a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1Z\" />\n\n          <motion.g\n            animate={controls}\n            initial=\"normal\"\n            style={{ originX: \"50%\", originY: \"100%\" }}\n            variants={BELL_VARIANTS}\n          >\n            <path d=\"M20 16a8 8 0 1 0-16 0\" />\n\n            <motion.g variants={STEM_VARIANTS}>\n              <path d=\"M10 4h4\" />\n              <path d=\"M12 4v4\" />\n            </motion.g>\n          </motion.g>\n\n          <motion.g\n            animate={controls}\n            initial=\"normal\"\n            style={{ originX: \"14px\", originY: \"18px\" }}\n            variants={SOUND_WAVES_VARIANTS}\n          >\n            <path d=\"M2 13a7 7 0 0 1 1-3.5\" opacity=\"0.7\" strokeWidth=\"1.5\" />\n            <path d=\"M21 13a7 7 0 0 0-1-3.5\" opacity=\"0.7\" strokeWidth=\"1.5\" />\n          </motion.g>\n        </svg>\n      </div>\n    );\n  }\n);\n\nConciergeBellIcon.displayName = \"ConciergeBellIcon\";\n\nexport { ConciergeBellIcon };\n",
      "type": "registry:ui"
    }
  ]
}
