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

26 lines
3.4 KiB
JSON

{
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "bell-ring-icon",
"type": "registry:ui",
"title": "Bell Ring Icon",
"description": "Bell ring icon component.",
"dependencies": [
"motion"
],
"files": [
{
"path": "registry/icons/bell-ring/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 BellRingProps = IconProps<keyof typeof animations>;\n\nconst animations = {\n default: {\n group: {\n initial: {\n rotate: 0,\n },\n animate: {\n rotate: [0, 20, -10, 10, -5, 3, 0],\n transformOrigin: 'top center',\n transition: { duration: 0.9, ease: 'easeInOut' },\n },\n },\n path1: {\n initial: {\n x: 0,\n },\n animate: {\n x: [0, -6, 5, -5, 4, -3, 2, 0],\n transition: { duration: 1.1, ease: 'easeInOut' },\n },\n },\n path2: {\n initial: {\n y: 0,\n scale: 1,\n },\n animate: {\n y: [0, 1, -0.5, 0.5, -0.25, 0],\n scale: [1, 0.8, 0.9, 1, 1],\n\n transition: { duration: 0.8, ease: 'easeInOut' },\n },\n },\n path3: {\n initial: {\n y: 0,\n scale: 1,\n },\n animate: {\n y: [0, -0.5, 1, -0.5, 0.25, 0],\n scale: [1, 0.8, 0.9, 1, 1],\n transition: { duration: 0.8, ease: 'easeInOut' },\n },\n },\n path4: {},\n } satisfies Record<string, Variants>,\n} as const;\n\nfunction IconComponent({ size, ...props }: BellRingProps) {\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=\"M10.268 21a2 2 0 0 0 3.464 0\"\n variants={variants.path1}\n initial=\"initial\"\n animate={controls}\n />\n <motion.path\n d=\"M22 8c0-2.3-.8-4.3-2-6\"\n variants={variants.path2}\n initial=\"initial\"\n animate={controls}\n />\n <motion.path\n d=\"M4 2C2.8 3.7 2 5.7 2 8\"\n variants={variants.path3}\n initial=\"initial\"\n animate={controls}\n />\n <motion.path\n d=\"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326\"\n variants={variants.path4}\n initial=\"initial\"\n animate={controls}\n />\n </motion.svg>\n );\n}\n\nfunction BellRing(props: BellRingProps) {\n return <IconWrapper icon={IconComponent} {...props} />;\n}\n\nexport {\n animations,\n BellRing,\n BellRing as BellRingIcon,\n type BellRingProps,\n type BellRingProps as BellRingIconProps,\n};\n",
"type": "registry:ui",
"target": "components/animate-ui/icons/bell-ring.tsx"
}
],
"meta": {
"keywords": [
"alarm",
"notification",
"sound",
"reminder"
]
}
}