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

24 lines
3.7 KiB
JSON

{
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "users-icon",
"type": "registry:ui",
"title": "Users Icon",
"description": "Users icon component.",
"dependencies": [
"motion"
],
"files": [
{
"path": "registry/icons/users/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 UsersProps = IconProps<keyof typeof animations>;\n\nconst animations = {\n default: {\n path1: {\n initial: {\n y: 0,\n },\n animate: {\n y: [0, 2, -2, 0],\n transition: {\n duration: 0.6,\n ease: 'easeInOut',\n delay: 0.1,\n },\n },\n },\n path2: {\n initial: {\n y: 0,\n },\n animate: {\n y: [0, 4, -2, 0],\n transition: {\n duration: 0.6,\n ease: 'easeInOut',\n },\n },\n },\n path3: {\n initial: {\n y: 0,\n },\n animate: {\n y: [0, 2, -2, 0],\n transition: {\n duration: 0.6,\n ease: 'easeInOut',\n },\n },\n },\n circle: {\n initial: {\n y: 0,\n },\n animate: {\n y: [0, 4, -2, 0],\n transition: {\n duration: 0.6,\n ease: 'easeInOut',\n delay: 0.1,\n },\n },\n },\n } satisfies Record<string, Variants>,\n appear: {\n path1: {},\n path2: {\n initial: {\n x: -6,\n opacity: 0,\n },\n animate: {\n x: 0,\n opacity: 1,\n transition: {\n type: 'spring',\n stiffness: 100,\n damping: 10,\n },\n },\n },\n path3: {\n initial: {\n x: -6,\n opacity: 0,\n },\n animate: {\n x: 0,\n opacity: 1,\n transition: {\n type: 'spring',\n stiffness: 100,\n damping: 10,\n },\n },\n },\n circle: {},\n } satisfies Record<string, Variants>,\n} as const;\n\nfunction IconComponent({ size, ...props }: UsersProps) {\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.path\n d=\"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2\"\n variants={variants.path1}\n initial=\"initial\"\n animate={controls}\n />\n <motion.path\n d=\"M16 3.128a4 4 0 0 1 0 7.744\"\n variants={variants.path2}\n initial=\"initial\"\n animate={controls}\n />\n <motion.path\n d=\"M22 21v-2a4 4 0 0 0-3-3.87\"\n variants={variants.path3}\n initial=\"initial\"\n animate={controls}\n />\n <motion.circle\n cx={9}\n cy={7}\n r={4}\n variants={variants.circle}\n initial=\"initial\"\n animate={controls}\n />\n </motion.svg>\n );\n}\n\nfunction Users(props: UsersProps) {\n return <IconWrapper icon={IconComponent} {...props} />;\n}\n\nexport {\n animations,\n Users,\n Users as UsersIcon,\n type UsersProps,\n type UsersProps as UsersIconProps,\n};\n",
"type": "registry:ui",
"target": "components/animate-ui/icons/users.tsx"
}
],
"meta": {
"keywords": [
"group",
"people"
]
}
}