diff --git a/apps/www/__registry__/index.tsx b/apps/www/__registry__/index.tsx index 4942166f..1ce4c453 100644 --- a/apps/www/__registry__/index.tsx +++ b/apps/www/__registry__/index.tsx @@ -20783,6 +20783,42 @@ export const index: Record = { })(), command: '@animate-ui/icons-user', }, + 'icons-user-cog': { + name: 'icons-user-cog', + description: 'User cog icon component.', + type: 'registry:ui', + dependencies: ['motion'], + devDependencies: undefined, + registryDependencies: ['@animate-ui/icons-icon'], + files: [ + { + path: 'registry/icons/user-cog/index.tsx', + type: 'registry:ui', + target: 'components/animate-ui/icons/user-cog.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 UserCogProps = IconProps;\n\nconst animations = {\n default: {\n path: {\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 },\n },\n },\n group: {\n initial: {\n rotate: 0,\n },\n animate: {\n rotate: [0, 90, 180],\n transition: {\n duration: 1.25,\n ease: \'easeInOut\',\n },\n },\n },\n } satisfies Record,\n rotate: {\n path: {},\n circle: {},\n group: {\n initial: {\n rotate: 0,\n },\n animate: {\n rotate: 360,\n transition: {\n duration: 2,\n ease: \'linear\',\n repeat: Infinity,\n },\n },\n },\n } satisfies Record,\n} as const;\n\nfunction IconComponent({ size, ...props }: UserCogProps) {\n const { controls } = useAnimateIconContext();\n const variants = getVariants(animations);\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n}\n\nfunction UserCog(props: UserCogProps) {\n return ;\n}\n\nexport {\n animations,\n UserCog,\n UserCog as UserCogIcon,\n type UserCogProps,\n type UserCogProps as UserCogIconProps,\n};', + }, + ], + keywords: ['settings', 'edit', 'cog', 'gear'], + component: (function () { + const LazyComp = React.lazy(async () => { + const mod = await import('@/registry/icons/user-cog/index.tsx'); + const exportName = + Object.keys(mod).find( + (key) => + typeof mod[key] === 'function' || typeof mod[key] === 'object', + ) || 'icons-user-cog'; + const Comp = mod.default || mod[exportName]; + if (mod.animations) { + (LazyComp as any).animations = mod.animations; + } + return { default: Comp }; + }); + LazyComp.demoProps = {}; + return LazyComp; + })(), + command: '@animate-ui/icons-user-cog', + }, 'icons-user-round': { name: 'icons-user-round', description: 'User round icon component.', @@ -20819,6 +20855,42 @@ export const index: Record = { })(), command: '@animate-ui/icons-user-round', }, + 'icons-user-round-cog': { + name: 'icons-user-round-cog', + description: 'User round cog icon component.', + type: 'registry:ui', + dependencies: ['motion'], + devDependencies: undefined, + registryDependencies: ['@animate-ui/icons-icon'], + files: [ + { + path: 'registry/icons/user-round-cog/index.tsx', + type: 'registry:ui', + target: 'components/animate-ui/icons/user-round-cog.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 UserRoundCogProps = IconProps;\n\nconst animations = {\n default: {\n path: {\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 circle: {\n initial: {\n y: 0,\n },\n animate: {\n y: [0, 1, -2, 0],\n transition: {\n duration: 0.6,\n ease: \'easeInOut\',\n },\n },\n },\n group: {\n initial: {\n rotate: 0,\n },\n animate: {\n rotate: [0, 90, 180],\n transition: {\n duration: 1.25,\n ease: \'easeInOut\',\n },\n },\n },\n } satisfies Record,\n rotate: {\n path: {},\n circle: {},\n group: {\n initial: {\n rotate: 0,\n },\n animate: {\n rotate: 360,\n transition: {\n duration: 2,\n ease: \'linear\',\n },\n },\n },\n } satisfies Record,\n} as const;\n\nfunction IconComponent({ size, ...props }: UserRoundCogProps) {\n const { controls } = useAnimateIconContext();\n const variants = getVariants(animations);\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n}\n\nfunction UserRoundCog(props: UserRoundCogProps) {\n return ;\n}\n\nexport {\n animations,\n UserRoundCog,\n UserRoundCog as UserRoundCogIcon,\n type UserRoundCogProps,\n type UserRoundCogProps as UserRoundCogIconProps,\n};', + }, + ], + keywords: ['settings', 'edit', 'cog', 'gear'], + component: (function () { + const LazyComp = React.lazy(async () => { + const mod = await import('@/registry/icons/user-round-cog/index.tsx'); + const exportName = + Object.keys(mod).find( + (key) => + typeof mod[key] === 'function' || typeof mod[key] === 'object', + ) || 'icons-user-round-cog'; + const Comp = mod.default || mod[exportName]; + if (mod.animations) { + (LazyComp as any).animations = mod.animations; + } + return { default: Comp }; + }); + LazyComp.demoProps = {}; + return LazyComp; + })(), + command: '@animate-ui/icons-user-round-cog', + }, 'icons-users': { name: 'icons-users', description: 'Users icon component.', diff --git a/apps/www/public/r/icons-user-cog.json b/apps/www/public/r/icons-user-cog.json new file mode 100644 index 00000000..ea23f9d2 --- /dev/null +++ b/apps/www/public/r/icons-user-cog.json @@ -0,0 +1,29 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "icons-user-cog", + "title": "User Cog Icon", + "description": "User cog icon component.", + "dependencies": [ + "motion" + ], + "registryDependencies": [ + "@animate-ui/icons-icon" + ], + "files": [ + { + "path": "registry/icons/user-cog/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 UserCogProps = IconProps;\n\nconst animations = {\n default: {\n path: {\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 },\n },\n },\n group: {\n initial: {\n rotate: 0,\n },\n animate: {\n rotate: [0, 90, 180],\n transition: {\n duration: 1.25,\n ease: 'easeInOut',\n },\n },\n },\n } satisfies Record,\n rotate: {\n path: {},\n circle: {},\n group: {\n initial: {\n rotate: 0,\n },\n animate: {\n rotate: 360,\n transition: {\n duration: 2,\n ease: 'linear',\n repeat: Infinity,\n },\n },\n },\n } satisfies Record,\n} as const;\n\nfunction IconComponent({ size, ...props }: UserCogProps) {\n const { controls } = useAnimateIconContext();\n const variants = getVariants(animations);\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n}\n\nfunction UserCog(props: UserCogProps) {\n return ;\n}\n\nexport {\n animations,\n UserCog,\n UserCog as UserCogIcon,\n type UserCogProps,\n type UserCogProps as UserCogIconProps,\n};\n", + "type": "registry:ui", + "target": "components/animate-ui/icons/user-cog.tsx" + } + ], + "meta": { + "keywords": [ + "settings", + "edit", + "cog", + "gear" + ] + }, + "type": "registry:ui" +} \ No newline at end of file diff --git a/apps/www/public/r/icons-user-round-cog.json b/apps/www/public/r/icons-user-round-cog.json new file mode 100644 index 00000000..cb4b81dc --- /dev/null +++ b/apps/www/public/r/icons-user-round-cog.json @@ -0,0 +1,29 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "icons-user-round-cog", + "title": "User Round Cog Icon", + "description": "User round cog icon component.", + "dependencies": [ + "motion" + ], + "registryDependencies": [ + "@animate-ui/icons-icon" + ], + "files": [ + { + "path": "registry/icons/user-round-cog/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 UserRoundCogProps = IconProps;\n\nconst animations = {\n default: {\n path: {\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 circle: {\n initial: {\n y: 0,\n },\n animate: {\n y: [0, 1, -2, 0],\n transition: {\n duration: 0.6,\n ease: 'easeInOut',\n },\n },\n },\n group: {\n initial: {\n rotate: 0,\n },\n animate: {\n rotate: [0, 90, 180],\n transition: {\n duration: 1.25,\n ease: 'easeInOut',\n },\n },\n },\n } satisfies Record,\n rotate: {\n path: {},\n circle: {},\n group: {\n initial: {\n rotate: 0,\n },\n animate: {\n rotate: 360,\n transition: {\n duration: 2,\n ease: 'linear',\n },\n },\n },\n } satisfies Record,\n} as const;\n\nfunction IconComponent({ size, ...props }: UserRoundCogProps) {\n const { controls } = useAnimateIconContext();\n const variants = getVariants(animations);\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n}\n\nfunction UserRoundCog(props: UserRoundCogProps) {\n return ;\n}\n\nexport {\n animations,\n UserRoundCog,\n UserRoundCog as UserRoundCogIcon,\n type UserRoundCogProps,\n type UserRoundCogProps as UserRoundCogIconProps,\n};\n", + "type": "registry:ui", + "target": "components/animate-ui/icons/user-round-cog.tsx" + } + ], + "meta": { + "keywords": [ + "settings", + "edit", + "cog", + "gear" + ] + }, + "type": "registry:ui" +} \ No newline at end of file diff --git a/apps/www/public/r/registry.json b/apps/www/public/r/registry.json index 475efb99..b1221cab 100644 --- a/apps/www/public/r/registry.json +++ b/apps/www/public/r/registry.json @@ -14042,6 +14042,33 @@ ] } }, + { + "name": "icons-user-cog", + "type": "registry:ui", + "title": "User Cog Icon", + "description": "User cog icon component.", + "registryDependencies": [ + "@animate-ui/icons-icon" + ], + "dependencies": [ + "motion" + ], + "files": [ + { + "path": "registry/icons/user-cog/index.tsx", + "type": "registry:ui", + "target": "components/animate-ui/icons/user-cog.tsx" + } + ], + "meta": { + "keywords": [ + "settings", + "edit", + "cog", + "gear" + ] + } + }, { "name": "icons-user-round", "type": "registry:ui", @@ -14068,6 +14095,33 @@ ] } }, + { + "name": "icons-user-round-cog", + "type": "registry:ui", + "title": "User Round Cog Icon", + "description": "User round cog icon component.", + "registryDependencies": [ + "@animate-ui/icons-icon" + ], + "dependencies": [ + "motion" + ], + "files": [ + { + "path": "registry/icons/user-round-cog/index.tsx", + "type": "registry:ui", + "target": "components/animate-ui/icons/user-round-cog.tsx" + } + ], + "meta": { + "keywords": [ + "settings", + "edit", + "cog", + "gear" + ] + } + }, { "name": "icons-users", "type": "registry:ui", diff --git a/apps/www/registry/icons/user-cog/index.tsx b/apps/www/registry/icons/user-cog/index.tsx new file mode 100644 index 00000000..6f73395d --- /dev/null +++ b/apps/www/registry/icons/user-cog/index.tsx @@ -0,0 +1,134 @@ +'use client'; + +import * as React from 'react'; +import { motion, type Variants } from 'motion/react'; + +import { + getVariants, + useAnimateIconContext, + IconWrapper, + type IconProps, +} from '@/registry/icons/icon'; + +type UserCogProps = IconProps; + +const animations = { + default: { + path: { + initial: { + y: 0, + }, + animate: { + y: [0, 2, -2, 0], + transition: { + duration: 0.6, + ease: 'easeInOut', + }, + }, + }, + circle: { + initial: { + y: 0, + }, + animate: { + y: [0, 4, -2, 0], + transition: { + duration: 0.6, + ease: 'easeInOut', + }, + }, + }, + group: { + initial: { + rotate: 0, + }, + animate: { + rotate: [0, 90, 180], + transition: { + duration: 1.25, + ease: 'easeInOut', + }, + }, + }, + } satisfies Record, + rotate: { + path: {}, + circle: {}, + group: { + initial: { + rotate: 0, + }, + animate: { + rotate: 360, + transition: { + duration: 2, + ease: 'linear', + repeat: Infinity, + }, + }, + }, + } satisfies Record, +} as const; + +function IconComponent({ size, ...props }: UserCogProps) { + const { controls } = useAnimateIconContext(); + const variants = getVariants(animations); + + return ( + + + + + + + + + + + + + + + + ); +} + +function UserCog(props: UserCogProps) { + return ; +} + +export { + animations, + UserCog, + UserCog as UserCogIcon, + type UserCogProps, + type UserCogProps as UserCogIconProps, +}; diff --git a/apps/www/registry/icons/user-cog/registry-item.json b/apps/www/registry/icons/user-cog/registry-item.json new file mode 100644 index 00000000..7e629017 --- /dev/null +++ b/apps/www/registry/icons/user-cog/registry-item.json @@ -0,0 +1,19 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "icons-user-cog", + "type": "registry:ui", + "title": "User Cog Icon", + "description": "User cog icon component.", + "registryDependencies": ["@animate-ui/icons-icon"], + "dependencies": ["motion"], + "files": [ + { + "path": "registry/icons/user-cog/index.tsx", + "type": "registry:ui", + "target": "components/animate-ui/icons/user-cog.tsx" + } + ], + "meta": { + "keywords": ["settings", "edit", "cog", "gear"] + } +} diff --git a/apps/www/registry/icons/user-round-cog/index.tsx b/apps/www/registry/icons/user-round-cog/index.tsx new file mode 100644 index 00000000..5da70ad3 --- /dev/null +++ b/apps/www/registry/icons/user-round-cog/index.tsx @@ -0,0 +1,133 @@ +'use client'; + +import * as React from 'react'; +import { motion, type Variants } from 'motion/react'; + +import { + getVariants, + useAnimateIconContext, + IconWrapper, + type IconProps, +} from '@/registry/icons/icon'; + +type UserRoundCogProps = IconProps; + +const animations = { + default: { + path: { + initial: { + y: 0, + }, + animate: { + y: [0, 4, -2, 0], + transition: { + duration: 0.6, + ease: 'easeInOut', + }, + }, + }, + circle: { + initial: { + y: 0, + }, + animate: { + y: [0, 1, -2, 0], + transition: { + duration: 0.6, + ease: 'easeInOut', + }, + }, + }, + group: { + initial: { + rotate: 0, + }, + animate: { + rotate: [0, 90, 180], + transition: { + duration: 1.25, + ease: 'easeInOut', + }, + }, + }, + } satisfies Record, + rotate: { + path: {}, + circle: {}, + group: { + initial: { + rotate: 0, + }, + animate: { + rotate: 360, + transition: { + duration: 2, + ease: 'linear', + }, + }, + }, + } satisfies Record, +} as const; + +function IconComponent({ size, ...props }: UserRoundCogProps) { + const { controls } = useAnimateIconContext(); + const variants = getVariants(animations); + + return ( + + + + + + + + + + + + + + + + ); +} + +function UserRoundCog(props: UserRoundCogProps) { + return ; +} + +export { + animations, + UserRoundCog, + UserRoundCog as UserRoundCogIcon, + type UserRoundCogProps, + type UserRoundCogProps as UserRoundCogIconProps, +}; diff --git a/apps/www/registry/icons/user-round-cog/registry-item.json b/apps/www/registry/icons/user-round-cog/registry-item.json new file mode 100644 index 00000000..b8af88c6 --- /dev/null +++ b/apps/www/registry/icons/user-round-cog/registry-item.json @@ -0,0 +1,19 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "icons-user-round-cog", + "type": "registry:ui", + "title": "User Round Cog Icon", + "description": "User round cog icon component.", + "registryDependencies": ["@animate-ui/icons-icon"], + "dependencies": ["motion"], + "files": [ + { + "path": "registry/icons/user-round-cog/index.tsx", + "type": "registry:ui", + "target": "components/animate-ui/icons/user-round-cog.tsx" + } + ], + "meta": { + "keywords": ["settings", "edit", "cog", "gear"] + } +}