{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "calendar-icon",
  "title": "Calendar Icon",
  "description": "An animated calendar icon.",
  "dependencies": [
    "motion"
  ],
  "files": [
    {
      "path": "registry/chamaac/animated-icons/calendar-icon.tsx",
      "content": "\"use client\";\n\nimport { useState } from \"react\";\nimport { m, LazyMotion, domAnimation, SVGMotionProps } from \"motion/react\";\n\ninterface CalendarIconProps\n  extends Omit<SVGMotionProps<SVGSVGElement>, \"strokeWidth\"> {\n  size?: number;\n  duration?: number;\n  strokeWidth?: number;\n  isHovered?: boolean;\n}\n\nconst CalendarIcon = (props: CalendarIconProps) => {\n  const {\n    size = 28,\n    duration = 2,\n    strokeWidth = 2,\n    isHovered = false,\n    className,\n    ...restProps\n  } = props;\n  const [isHoveredInternal, setIsHoveredInternal] = useState(false);\n\n  const shouldAnimate = isHovered ? isHoveredInternal : true;\n\n  const dateAnimationProps = {\n    animate: shouldAnimate\n      ? {\n          scale: [1, 1.2, 1],\n          opacity: [0.7, 1, 0.7],\n        }\n      : { scale: 1, opacity: 1 },\n    transition: {\n      duration: duration,\n      ease: \"easeInOut\" as const,\n      repeat: isHovered ? 0 : Infinity,\n    },\n  };\n\n  return (\n    <LazyMotion features={domAnimation}>\n      <m.svg\n        {...restProps}\n        xmlns=\"http://www.w3.org/2000/svg\"\n        width={size}\n        height={size}\n        viewBox=\"0 0 24 24\"\n        fill=\"none\"\n        stroke=\"currentColor\"\n        strokeWidth={strokeWidth}\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n        className={className}\n        onMouseEnter={() => isHovered && setIsHoveredInternal(true)}\n        onMouseLeave={() => isHovered && setIsHoveredInternal(false)}\n      >\n        <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\" />\n        <rect x=\"4\" y=\"5\" width=\"16\" height=\"16\" rx=\"2\" />\n        <path d=\"M16 3v4\" />\n        <path d=\"M8 3v4\" />\n        <path d=\"M4 11h16\" />\n        <m.g style={{ transformOrigin: \"12px 16px\" }} {...dateAnimationProps}>\n          <circle cx=\"12\" cy=\"16\" r=\"1.5\" fill=\"currentColor\" stroke=\"none\" />\n        </m.g>\n      </m.svg>\n    </LazyMotion>\n  );\n};\n\nexport default CalendarIcon;\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component"
}