Fortura/apps/www/public/r/message-square-diff-icon.json
2025-08-20 04:12:49 -06:00

39 lines
3.7 KiB
JSON

{
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "message-square-diff-icon",
"type": "registry:ui",
"title": "Message Square Diff Icon",
"description": "Message square diff icon component.",
"dependencies": [
"motion"
],
"files": [
{
"path": "registry/icons/message-square-diff/index.tsx",
"content": "'use client';\n\nimport * as React from 'react';\nimport { motion, type Variants } from 'motion/react';\n\nimport {\n getVariants,\n useAnimateIconContext,\n IconWrapper,\n type IconProps,\n} from '@/components/animate-ui/icons/icon';\n\ntype MessageSquareDiffProps = IconProps<keyof typeof animations>;\n\nconst animations = {\n default: {\n group: {\n initial: {\n rotate: 0,\n },\n animate: {\n transformOrigin: 'bottom left',\n rotate: [0, 8, -8, 2, 0],\n transition: {\n ease: 'easeInOut',\n duration: 0.8,\n times: [0, 0.4, 0.6, 0.8, 1],\n },\n },\n },\n path1: {},\n path2: {\n initial: {\n rotate: 0,\n },\n animate: {\n rotate: [0, 45, 0],\n transition: {\n ease: 'easeInOut',\n duration: 0.6,\n },\n },\n },\n path3: {\n initial: {\n rotate: 0,\n },\n animate: {\n rotate: [0, 45, 0],\n transition: {\n ease: 'easeInOut',\n duration: 0.6,\n delay: 0.05,\n },\n },\n },\n path4: {\n initial: {\n y: 0,\n },\n animate: {\n y: [0, 1, -1, 0],\n transition: {\n ease: 'easeInOut',\n duration: 0.7,\n },\n },\n },\n } satisfies Record<string, Variants>,\n} as const;\n\nfunction IconComponent({ size, ...props }: MessageSquareDiffProps) {\n const { controls } = useAnimateIconContext();\n const variants = getVariants(animations);\n\n return (\n <motion.svg\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={2}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n {...props}\n >\n <motion.g variants={variants.group} initial=\"initial\" animate={controls}>\n <motion.path\n d=\"m5 19-2 2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2\"\n variants={variants.path1}\n initial=\"initial\"\n animate={controls}\n />\n <motion.path\n d=\"M12 7v6\"\n variants={variants.path2}\n initial=\"initial\"\n animate={controls}\n />\n <motion.path\n d=\"M9 10h6\"\n variants={variants.path3}\n initial=\"initial\"\n animate={controls}\n />\n <motion.path\n d=\"M9 17h6\"\n variants={variants.path4}\n initial=\"initial\"\n animate={controls}\n />\n </motion.g>\n </motion.svg>\n );\n}\n\nfunction MessageSquareDiff(props: MessageSquareDiffProps) {\n return <IconWrapper icon={IconComponent} {...props} />;\n}\n\nexport {\n animations,\n MessageSquareDiff,\n MessageSquareDiff as MessageSquareDiffIcon,\n type MessageSquareDiffProps,\n type MessageSquareDiffProps as MessageSquareDiffIconProps,\n};\n",
"type": "registry:ui",
"target": "components/animate-ui/icons/message-square-diff.tsx"
}
],
"meta": {
"keywords": [
"comment",
"chat",
"conversation",
"dialog",
"feedback",
"speech bubble",
"add",
"patch",
"difference",
"plus",
"minus",
"plus-minus",
"math",
"code review",
"coding",
"version control",
"git"
]
}
}