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

23 lines
5.9 KiB
JSON

{
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "alarm-clock-icon",
"type": "registry:ui",
"title": "Alarm Clock Icon",
"description": "Alarm clock icon component.",
"dependencies": [
"motion"
],
"files": [
{
"path": "registry/icons/alarm-clock/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 AlarmClockProps = IconProps<keyof typeof animations>;\n\nconst animations = {\n default: {\n group: {\n initial: {\n x: 0,\n y: 0,\n },\n animate: {\n x: [\n 0,\n '2%',\n '-2%',\n '2%',\n '-2%',\n '2%',\n '-2%',\n '2%',\n '-2%',\n '2%',\n '-2%',\n 0,\n ],\n y: [\n 0,\n '-5%',\n '-5%',\n '-5%',\n '-5%',\n '-5%',\n '-5%',\n '-5%',\n '-5%',\n '-5%',\n 0,\n ],\n transition: {\n ease: 'easeInOut',\n duration: 0.6,\n },\n },\n },\n circle: {},\n line1: {\n initial: {\n rotate: 0,\n },\n animate: {\n transformOrigin: 'bottom left',\n rotate: [0, 5, -5, 5, -5, 5, -5, 5, -5, 5, -5, 0],\n transition: { ease: 'easeInOut', duration: 0.6 },\n },\n },\n line2: {\n initial: {\n rotate: 0,\n },\n animate: {\n transformOrigin: 'top left',\n rotate: [0, 5, -5, 5, -5, 5, -5, 5, -5, 5, -5, 0],\n transition: { ease: 'easeInOut', duration: 0.6 },\n },\n },\n path1: {\n initial: {\n x: 0,\n },\n animate: {\n x: [0, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 0],\n transition: { ease: 'easeInOut', duration: 0.6 },\n },\n },\n path2: {\n initial: {\n x: 0,\n },\n animate: {\n x: [0, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 0],\n transition: { ease: 'easeInOut', duration: 0.6 },\n },\n },\n path3: {},\n path4: {},\n } satisfies Record<string, Variants>,\n 'default-loop': {\n group: {\n initial: {\n x: 0,\n y: 0,\n },\n animate: {\n x: ['2%', '-2%', '2%', '-2%', '2%', '-2%', '2%', '-2%', '2%', '-2%'],\n y: '-5%',\n transition: {\n duration: 0.5,\n x: {\n repeat: Infinity,\n repeatType: 'loop',\n },\n y: {\n duration: 0.2,\n },\n },\n },\n },\n circle: {},\n line1: {\n initial: {\n rotate: 0,\n },\n animate: {\n transformOrigin: 'bottom left',\n rotate: [0, 10, -10, 10, -10, 10, -10, 10, -10, 10, -10, 0],\n transition: { duration: 0.5, repeat: Infinity, repeatType: 'loop' },\n },\n },\n line2: {\n initial: {\n rotate: 0,\n },\n animate: {\n transformOrigin: 'top left',\n rotate: [0, 10, -10, 10, -10, 10, -10, 10, -10, 10, -10, 0],\n transition: { duration: 0.5, repeat: Infinity, repeatType: 'loop' },\n },\n },\n path1: {\n initial: {\n x: 0,\n },\n animate: {\n x: [0, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 0],\n transition: { duration: 0.5, repeat: Infinity, repeatType: 'loop' },\n },\n },\n path2: {\n initial: {\n x: 0,\n },\n animate: {\n x: [0, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 0],\n transition: { duration: 0.5, repeat: Infinity, repeatType: 'loop' },\n },\n },\n path3: {},\n path4: {},\n } satisfies Record<string, Variants>,\n} as const;\n\nfunction IconComponent({ size, ...props }: AlarmClockProps) {\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.circle\n cx={12}\n cy={13}\n r={8}\n variants={variants.circle}\n initial=\"initial\"\n animate={controls}\n />\n <motion.line\n x1={12}\n y1={9}\n x2={12}\n y2={13}\n variants={variants.line1}\n initial=\"initial\"\n animate={controls}\n />\n <motion.line\n x1={14}\n y1={15}\n x2={12}\n y2={13}\n variants={variants.line2}\n initial=\"initial\"\n animate={controls}\n />\n <motion.path\n d=\"M5 3 2 6\"\n variants={variants.path1}\n initial=\"initial\"\n animate={controls}\n />\n <motion.path\n d=\"m22 6-3-3\"\n variants={variants.path2}\n initial=\"initial\"\n animate={controls}\n />\n <motion.path\n d=\"M6.38 18.7 4 21\"\n variants={variants.path3}\n initial=\"initial\"\n animate={controls}\n />\n <motion.path\n d=\"M17.64 18.67 20 21\"\n variants={variants.path4}\n initial=\"initial\"\n animate={controls}\n />\n </motion.svg>\n );\n}\n\nfunction AlarmClock(props: AlarmClockProps) {\n return <IconWrapper icon={IconComponent} {...props} />;\n}\n\nexport {\n animations,\n AlarmClock,\n AlarmClock as AlarmClockIcon,\n type AlarmClockProps,\n type AlarmClockProps as AlarmClockIconProps,\n};\n",
"type": "registry:ui",
"target": "components/animate-ui/icons/alarm-clock.tsx"
}
],
"meta": {
"keywords": [
"morning"
]
}
}