Fortura/apps/www/public/r/move-down-icon.json
2025-08-20 04:12:49 -06:00

28 lines
4.3 KiB
JSON

{
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "move-down-icon",
"type": "registry:ui",
"title": "Move Down Icon",
"description": "Move down icon component.",
"dependencies": [
"motion"
],
"files": [
{
"path": "registry/icons/move-down/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 MoveDownProps = IconProps<keyof typeof animations>;\n\nconst animations = {\n default: {\n group1: {\n initial: {\n y: 0,\n transition: { ease: 'easeInOut', duration: 0.3 },\n },\n animate: {\n y: '15%',\n transition: { ease: 'easeInOut', duration: 0.3 },\n },\n },\n group2: {},\n path1: {},\n path2: {},\n } satisfies Record<string, Variants>,\n 'default-loop': {\n group1: {\n initial: {\n y: 0,\n },\n animate: {\n y: [0, '15%', 0],\n transition: { ease: 'easeInOut', duration: 0.6 },\n },\n },\n group2: {},\n path1: {},\n path2: {},\n } satisfies Record<string, Variants>,\n pointing: {\n group1: {},\n group2: {},\n path1: {\n initial: {\n d: 'M12 2V22',\n transition: { ease: 'easeInOut', duration: 0.3 },\n },\n animate: {\n d: 'M12 2V12',\n transition: { ease: 'easeInOut', duration: 0.3 },\n },\n },\n path2: {\n initial: {\n d: 'M8 18L12 22L16 18',\n transition: { ease: 'easeInOut', duration: 0.3 },\n },\n animate: {\n d: 'M8 8L12 12L16 8',\n transition: { ease: 'easeInOut', duration: 0.3 },\n },\n },\n } satisfies Record<string, Variants>,\n 'pointing-loop': {\n group1: {},\n group2: {},\n path1: {\n initial: {\n d: 'M12 2V22',\n },\n animate: {\n d: ['M12 2V22', 'M12 2V12', 'M12 2V22'],\n transition: { ease: 'easeInOut', duration: 0.6 },\n },\n },\n path2: {\n initial: {\n d: 'M8 18L12 22L16 18',\n },\n animate: {\n d: ['M8 18L12 22L16 18', 'M8 8L12 12L16 8', 'M8 18L12 22L16 18'],\n transition: { ease: 'easeInOut', duration: 0.6 },\n },\n },\n } satisfies Record<string, Variants>,\n out: {\n group1: {},\n group2: {\n initial: {\n y: 0,\n },\n animate: {\n y: [0, '150%', '-150%', 0],\n transition: {\n default: { ease: 'easeInOut', duration: 0.8 },\n y: {\n ease: 'easeInOut',\n duration: 0.8,\n times: [0, 0.5, 0.5, 1],\n },\n },\n },\n },\n path1: {},\n path2: {},\n } satisfies Record<string, Variants>,\n} as const;\n\nfunction IconComponent({ size, ...props }: MoveDownProps) {\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 variants={variants.group1}\n initial=\"initial\"\n animate={controls}\n {...props}\n >\n <motion.g variants={variants.group2} initial=\"initial\" animate={controls}>\n <motion.path\n d=\"M12 2V22\"\n variants={variants.path1}\n initial=\"initial\"\n animate={controls}\n />\n <motion.path\n d=\"M8 18L12 22L16 18\"\n variants={variants.path2}\n initial=\"initial\"\n animate={controls}\n />\n </motion.g>\n </motion.svg>\n );\n}\n\nfunction MoveDown(props: MoveDownProps) {\n return <IconWrapper icon={IconComponent} {...props} />;\n}\n\nexport {\n animations,\n MoveDown,\n MoveDown as MoveDownIcon,\n type MoveDownProps,\n type MoveDownProps as MoveDownIconProps,\n};\n",
"type": "registry:ui",
"target": "components/animate-ui/icons/move-down.tsx"
}
],
"meta": {
"keywords": [
"move",
"arrow",
"down",
"direction",
"south",
"↓"
]
}
}