33 lines
3.4 KiB
JSON
33 lines
3.4 KiB
JSON
{
|
|
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
"name": "refresh-ccw-dot-icon",
|
|
"type": "registry:ui",
|
|
"title": "Refresh Ccw Dot Icon",
|
|
"description": "Refresh ccw dot icon component.",
|
|
"dependencies": [
|
|
"motion"
|
|
],
|
|
"files": [
|
|
{
|
|
"path": "registry/icons/refresh-ccw-dot/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 RefreshCcwProps = IconProps<keyof typeof animations>;\n\nconst animations = {\n default: {\n group: {\n initial: {\n rotate: 0,\n transition: { type: 'spring', stiffness: 150, damping: 25 },\n },\n animate: {\n rotate: -45,\n transition: { type: 'spring', stiffness: 150, damping: 25 },\n },\n },\n path1: {},\n path2: {},\n path3: {},\n path4: {},\n circle: {},\n } satisfies Record<string, Variants>,\n rotate: {\n group: {\n initial: {\n rotate: 0,\n transition: { type: 'spring', stiffness: 100, damping: 25 },\n },\n animate: {\n rotate: -360,\n transition: { type: 'spring', stiffness: 100, damping: 25 },\n },\n },\n path1: {},\n path2: {},\n path3: {},\n path4: {},\n circle: {},\n } satisfies Record<string, Variants>,\n} as const;\n\nfunction IconComponent({ size, ...props }: RefreshCcwProps) {\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.group}\n initial=\"initial\"\n animate={controls}\n {...props}\n >\n <motion.path\n d=\"M21 12A9 9 0 0 0 6 5.3L3 8\"\n variants={variants.path1}\n initial=\"initial\"\n animate={controls}\n />\n <motion.path\n d=\"M3 2v6h6\"\n variants={variants.path2}\n initial=\"initial\"\n animate={controls}\n />\n <motion.path\n d=\"M3 12a9 9 0 0 0 15 6.7l3-2.7\"\n variants={variants.path3}\n initial=\"initial\"\n animate={controls}\n />\n <motion.path\n d=\"M21 22v-6h-6\"\n variants={variants.path4}\n initial=\"initial\"\n animate={controls}\n />\n <motion.circle\n cx=\"12\"\n cy=\"12\"\n r=\"1\"\n variants={variants.circle}\n initial=\"initial\"\n animate={controls}\n />\n </motion.svg>\n );\n}\n\nfunction RefreshCcw(props: RefreshCcwProps) {\n return <IconWrapper icon={IconComponent} {...props} />;\n}\n\nexport {\n animations,\n RefreshCcw,\n RefreshCcw as RefreshCcwIcon,\n type RefreshCcwProps,\n type RefreshCcwProps as RefreshCcwIconProps,\n};\n",
|
|
"type": "registry:ui",
|
|
"target": "components/animate-ui/icons/refresh-ccw-dot.tsx"
|
|
}
|
|
],
|
|
"meta": {
|
|
"keywords": [
|
|
"rotate",
|
|
"arrows",
|
|
"synchronise",
|
|
"reload",
|
|
"rerun",
|
|
"circular",
|
|
"cycle",
|
|
"issue",
|
|
"code",
|
|
"coding",
|
|
"version control"
|
|
]
|
|
}
|
|
} |