Skip to content

Commit

Permalink
revert registry, it's working now
Browse files Browse the repository at this point in the history
  • Loading branch information
pqoqubbw committed Dec 21, 2024
1 parent acfa9f7 commit d82aea8
Show file tree
Hide file tree
Showing 147 changed files with 293 additions and 293 deletions.
4 changes: 2 additions & 2 deletions public/c/activity.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "activity",
"type": "registry:icons",
"type": "registry:ui",
"registryDependencies": [],
"dependencies": [
"motion"
Expand All @@ -15,7 +15,7 @@
{
"path": "activity.tsx",
"content": "'use client';\n\nimport type { Variants } from 'motion/react';\nimport { motion, useAnimation } from 'motion/react';\n\nconst variants: Variants = {\n normal: {\n opacity: 1,\n pathLength: 1,\n pathOffset: 0,\n transition: {\n duration: 0.4,\n opacity: { duration: 0.1 },\n },\n },\n animate: {\n opacity: [0, 1],\n pathLength: [0, 1],\n pathOffset: [1, 0],\n transition: {\n duration: 0.6,\n ease: 'linear',\n opacity: { duration: 0.1 },\n },\n },\n};\n\nconst ActivityIcon = () => {\n const controls = useAnimation();\n\n return (\n <div\n className=\"cursor-pointer select-none p-2 hover:bg-accent rounded-md transition-colors duration-200 flex items-center justify-center\"\n onMouseEnter={() => {\n controls.start('animate');\n }}\n onMouseLeave={() => {\n controls.start('normal');\n }}\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"28\"\n height=\"28\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <motion.path\n variants={variants}\n animate={controls}\n initial=\"normal\"\n d=\"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2\"\n />\n </svg>\n </div>\n );\n};\n\nexport { ActivityIcon };\n",
"type": "registry:icons"
"type": "registry:ui"
}
]
}
4 changes: 2 additions & 2 deletions public/c/airplane.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "airplane",
"type": "registry:icons",
"type": "registry:ui",
"registryDependencies": [],
"dependencies": [
"motion"
Expand All @@ -15,7 +15,7 @@
{
"path": "airplane.tsx",
"content": "'use client';\n\nimport { motion, useAnimation } from 'motion/react';\n\nconst SPEED_LINES = [\n { x1: 5, y1: 15, x2: 1, y2: 19, delay: 0.1 },\n { x1: 7, y1: 17, x2: 3, y2: 21, delay: 0.2 },\n { x1: 9, y1: 19, x2: 5, y2: 23, delay: 0.3 },\n];\n\nconst AirplaneIcon = () => {\n const controls = useAnimation();\n\n return (\n <div\n className=\"cursor-pointer select-none p-2 hover:bg-accent rounded-md transition-colors duration-200 flex items-center justify-center\"\n onMouseEnter={() => controls.start('animate')}\n onMouseLeave={() => controls.start('normal')}\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"28\"\n height=\"28\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <motion.path\n animate={controls}\n transition={{\n duration: 0.5,\n times: [0, 0.6, 1],\n type: 'spring',\n stiffness: 200,\n damping: 10,\n }}\n variants={{\n normal: { x: 0, y: 0, scale: 1 },\n animate: {\n x: [0, 5, 3],\n y: [0, -5, -3],\n scale: 0.8,\n },\n }}\n d=\"M17.8 19.2L16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z\"\n />\n {SPEED_LINES.map((line, index) => (\n <motion.line\n key={index}\n x1={line.x1}\n y1={line.y1}\n x2={line.x2}\n y2={line.y2}\n stroke=\"currentColor\"\n strokeWidth={1}\n initial={{ opacity: 0, pathLength: 1, pathSpacing: 1 }}\n variants={{\n normal: {\n pathOffset: [0, 1],\n translateX: -3,\n translateY: 3,\n opacity: 0,\n transition: {\n duration: 0.3,\n times: [0, 0.6, 1],\n type: 'spring',\n stiffness: 200,\n damping: 10,\n },\n },\n animate: {\n pathOffset: [1, 2],\n translateX: [0, 0],\n translateY: [0, 0],\n opacity: 1,\n },\n }}\n transition={{ duration: 0.15, delay: line.delay }}\n animate={controls}\n />\n ))}\n </svg>\n </div>\n );\n};\n\nexport { AirplaneIcon };\n",
"type": "registry:icons"
"type": "registry:ui"
}
]
}
4 changes: 2 additions & 2 deletions public/c/alarm-clock.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "alarm-clock",
"type": "registry:icons",
"type": "registry:ui",
"registryDependencies": [],
"dependencies": [
"motion"
Expand All @@ -15,7 +15,7 @@
{
"path": "alarm-clock.tsx",
"content": "'use client';\n\nimport type { Variants } from 'motion/react';\nimport { motion, useAnimation } from 'motion/react';\n\nconst pathVariants: Variants = {\n normal: {\n y: 0,\n x: 0,\n transition: {\n duration: 0.2,\n type: 'spring',\n stiffness: 200,\n damping: 25,\n },\n },\n animate: {\n y: -1.5,\n x: [-1, 1, -1, 1, -1, 0],\n transition: {\n y: {\n duration: 0.2,\n type: 'spring',\n stiffness: 200,\n damping: 25,\n },\n x: {\n duration: 0.3,\n repeat: Infinity,\n ease: 'linear',\n },\n },\n },\n};\n\nconst secondaryPathVariants: Variants = {\n normal: {\n y: 0,\n x: 0,\n transition: {\n duration: 0.2,\n type: 'spring',\n stiffness: 200,\n damping: 25,\n },\n },\n animate: {\n y: -2.5,\n x: [-2, 2, -2, 2, -2, 0],\n transition: {\n y: {\n duration: 0.2,\n type: 'spring',\n stiffness: 200,\n damping: 25,\n },\n x: {\n duration: 0.3,\n repeat: Infinity,\n ease: 'linear',\n },\n },\n },\n};\n\nconst AlarmClockIcon = () => {\n const controls = useAnimation();\n\n return (\n <div\n className=\"cursor-pointer select-none p-2 hover:bg-accent rounded-md transition-colors duration-200 flex items-center justify-center\"\n onMouseEnter={() => controls.start('animate')}\n onMouseLeave={() => controls.start('normal')}\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"28\"\n height=\"28\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <motion.path\n variants={pathVariants}\n initial=\"normal\"\n animate={controls}\n d=\"M18 20.5L19.5 22\"\n />\n <motion.path\n variants={pathVariants}\n initial=\"normal\"\n animate={controls}\n d=\"M6 20.5L4.5 22\"\n />\n <motion.path\n variants={pathVariants}\n initial=\"normal\"\n animate={controls}\n d=\"M21 13C21 17.968 16.968 22 12 22C7.032 22 3 17.968 3 13C3 8.032 7.032 4 12 4C16.968 4 21 8.032 21 13Z\"\n />\n <motion.path\n variants={pathVariants}\n initial=\"normal\"\n animate={controls}\n d=\"M15.339 15.862L12.549 14.197C12.063 13.909 11.667 13.216 11.667 12.649V8.95898\"\n />\n <motion.path\n variants={secondaryPathVariants}\n initial=\"normal\"\n animate={controls}\n d=\"M18 2L21.747 5.31064\"\n />\n <motion.path\n variants={secondaryPathVariants}\n initial=\"normal\"\n animate={controls}\n d=\"M6 2L2.25304 5.31064\"\n />\n </svg>\n </div>\n );\n};\n\nexport { AlarmClockIcon };\n",
"type": "registry:icons"
"type": "registry:ui"
}
]
}
4 changes: 2 additions & 2 deletions public/c/align-center.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "align-center",
"type": "registry:icons",
"type": "registry:ui",
"registryDependencies": [],
"dependencies": [
"motion"
Expand All @@ -15,7 +15,7 @@
{
"path": "align-center.tsx",
"content": "'use client';\n\nimport { motion, useAnimation } from 'motion/react';\n\nconst AlignCenterIcon = () => {\n const controls = useAnimation();\n\n return (\n <div\n className=\"cursor-pointer select-none p-2 hover:bg-accent rounded-md transition-colors duration-200 flex items-center justify-center\"\n onMouseEnter={() => controls.start('animate')}\n onMouseLeave={() => controls.start('normal')}\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width={28}\n height={28}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth={2}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <motion.path\n d=\"M17 12H7\"\n variants={{\n normal: { translateX: 0 },\n animate: {\n translateX: [0, 3, -3, 2, -2, 0],\n transition: {\n ease: 'linear',\n translateX: {\n duration: 1,\n },\n },\n },\n }}\n animate={controls}\n />\n <path d=\"M19 18H5\" />\n <path d=\"M21 6H3\" />\n </svg>\n </div>\n );\n};\n\nexport { AlignCenterIcon };\n",
"type": "registry:icons"
"type": "registry:ui"
}
]
}
4 changes: 2 additions & 2 deletions public/c/align-horizontal.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "align-horizontal",
"type": "registry:icons",
"type": "registry:ui",
"registryDependencies": [],
"dependencies": [
"motion"
Expand All @@ -15,7 +15,7 @@
{
"path": "align-horizontal.tsx",
"content": "'use client';\n\nimport type { Transition } from 'motion/react';\nimport { motion, useAnimation } from 'motion/react';\n\nconst defaultTransition: Transition = {\n type: 'spring',\n stiffness: 160,\n damping: 17,\n mass: 1,\n};\n\nconst AlignHorizontalIcon = () => {\n const controls = useAnimation();\n\n return (\n <div\n className=\"cursor-pointer select-none p-2 hover:bg-accent rounded-md transition-colors duration-200 flex items-center justify-center\"\n onMouseEnter={() => controls.start('animate')}\n onMouseLeave={() => controls.start('normal')}\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width={28}\n height={28}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth={2}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <motion.rect\n variants={{\n normal: { scaleX: 1 },\n animate: { scaleX: 0.85 },\n }}\n animate={controls}\n transition={defaultTransition}\n width={6}\n height={10}\n x={9}\n y={7}\n rx={2}\n />\n <motion.path\n d=\"M4 22V2\"\n variants={{\n normal: { translateX: 0, scaleY: 1 },\n animate: {\n translateX: 2,\n scaleY: 0.9,\n },\n }}\n animate={controls}\n transition={defaultTransition}\n />\n <motion.path\n d=\"M20 22V2\"\n variants={{\n normal: { translateX: 0, scaleY: 1 },\n animate: {\n translateX: -2,\n scaleY: 0.9,\n },\n }}\n animate={controls}\n transition={defaultTransition}\n />\n </svg>\n </div>\n );\n};\n\nexport { AlignHorizontalIcon };\n",
"type": "registry:icons"
"type": "registry:ui"
}
]
}
4 changes: 2 additions & 2 deletions public/c/align-vertical.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "align-vertical",
"type": "registry:icons",
"type": "registry:ui",
"registryDependencies": [],
"dependencies": [
"motion"
Expand All @@ -15,7 +15,7 @@
{
"path": "align-vertical.tsx",
"content": "'use client';\n\nimport type { Transition } from 'motion/react';\nimport { motion, useAnimation } from 'motion/react';\n\nconst defaultTransition: Transition = {\n type: 'spring',\n stiffness: 160,\n damping: 17,\n mass: 1,\n};\n\nconst AlignVerticalIcon = () => {\n const controls = useAnimation();\n\n return (\n <div\n className=\"cursor-pointer select-none p-2 hover:bg-accent rounded-md transition-colors duration-200 flex items-center justify-center\"\n onMouseEnter={() => controls.start('animate')}\n onMouseLeave={() => controls.start('normal')}\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width={28}\n height={28}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth={2}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <motion.rect\n variants={{\n normal: { scaleY: 1 },\n animate: { scaleY: 0.8 },\n }}\n animate={controls}\n width={10}\n height={6}\n x={7}\n y={9}\n rx={2}\n transition={defaultTransition}\n />\n <motion.path\n variants={{\n normal: { translateY: 0, scaleX: 1 },\n animate: {\n translateY: -2,\n scaleX: 0.9,\n },\n }}\n animate={controls}\n transition={defaultTransition}\n d=\"M22 20H2\"\n />\n <motion.path\n variants={{\n normal: { translateY: 0, scaleX: 1 },\n animate: {\n translateY: 2,\n scaleX: 0.9,\n },\n }}\n animate={controls}\n transition={defaultTransition}\n d=\"M22 4H2\"\n />\n </svg>\n </div>\n );\n};\n\nexport { AlignVerticalIcon };\n",
"type": "registry:icons"
"type": "registry:ui"
}
]
}
4 changes: 2 additions & 2 deletions public/c/angry.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angry",
"type": "registry:icons",
"type": "registry:ui",
"registryDependencies": [],
"dependencies": [
"motion"
Expand All @@ -15,7 +15,7 @@
{
"path": "angry.tsx",
"content": "'use client';\n\nimport type { Variants } from 'motion/react';\nimport { motion, useAnimation } from 'motion/react';\n\nconst EYEBROW_ROTATION = 20;\nconst DURATION = 0.6;\n\nconst pathVariantsFace: Variants = {\n normal: { scale: 1, rotate: 0 },\n animate: {\n scale: [1, 1.2, 1.2, 1.2, 1],\n rotate: [0, -3, 3, -1, 1, 0],\n transition: {\n duration: DURATION,\n times: [0, 0.2, 0.4, 0.6, 1],\n ease: 'easeInOut',\n },\n },\n};\n\nconst pathVariantsLeftEyebrow: Variants = {\n normal: { rotate: 0 },\n animate: {\n rotate: [0, EYEBROW_ROTATION, 0],\n transition: {\n duration: DURATION + 0.2,\n },\n },\n};\n\nconst pathVariantsRightEyebrow: Variants = {\n normal: { rotate: 0 },\n animate: {\n rotate: [0, -EYEBROW_ROTATION, 0],\n transition: {\n duration: DURATION + 0.2,\n },\n },\n};\n\nconst pathVariantsEye: Variants = {\n normal: { scale: 1 },\n animate: {\n scale: [1, 1.2, 1],\n transition: {\n duration: DURATION,\n },\n },\n};\n\nconst pathVariantsMouth: Variants = {\n normal: { translateY: 0 },\n animate: {\n translateY: [0, -0.5, 0],\n transition: {\n duration: DURATION,\n },\n },\n};\n\nconst AngryIcon = () => {\n const controls = useAnimation();\n\n return (\n <div\n className=\"cursor-pointer select-none p-2 hover:bg-accent rounded-md transition-colors duration-200 flex items-center justify-center\"\n onMouseEnter={() => controls.start('animate')}\n onMouseLeave={() => controls.start('normal')}\n >\n <motion.svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"28\"\n height=\"28\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n animate={controls}\n variants={pathVariantsFace}\n >\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <motion.path\n variants={pathVariantsMouth}\n animate={controls}\n d=\"M16 16s-1.5-2-4-2-4 2-4 2\"\n />\n <motion.path\n variants={pathVariantsLeftEyebrow}\n animate={controls}\n d=\"M7.5 8 10 9\"\n />\n <motion.path\n variants={pathVariantsRightEyebrow}\n animate={controls}\n d=\"m14 9 2.5-1\"\n />\n <motion.path\n variants={pathVariantsEye}\n animate={controls}\n d=\"M9 10h.01\"\n />\n <motion.path\n variants={pathVariantsEye}\n animate={controls}\n d=\"M15 10h.01\"\n />\n </motion.svg>\n </div>\n );\n};\n\nexport { AngryIcon };\n",
"type": "registry:icons"
"type": "registry:ui"
}
]
}
4 changes: 2 additions & 2 deletions public/c/archive.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "archive",
"type": "registry:icons",
"type": "registry:ui",
"registryDependencies": [],
"dependencies": [
"motion"
Expand All @@ -15,7 +15,7 @@
{
"path": "archive.tsx",
"content": "'use client';\n\nimport type { Variants } from 'motion/react';\nimport { motion, useAnimation } from 'motion/react';\n\nconst rectVariants: Variants = {\n normal: {\n translateY: 0,\n transition: {\n duration: 0.2,\n type: 'spring',\n stiffness: 200,\n damping: 25,\n },\n },\n animate: {\n translateY: -1.5,\n transition: {\n duration: 0.2,\n type: 'spring',\n stiffness: 200,\n damping: 25,\n },\n },\n};\n\nconst pathVariants: Variants = {\n normal: { d: 'M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8' },\n animate: { d: 'M4 11v9a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V11' },\n};\n\nconst secondaryPathVariants: Variants = {\n normal: { d: 'M10 12h4' },\n animate: { d: 'M10 15h4' },\n};\n\nconst ArchiveIcon = () => {\n const controls = useAnimation();\n\n return (\n <div\n className=\"cursor-pointer select-none p-2 hover:bg-accent rounded-md transition-colors duration-200 flex items-center justify-center\"\n onMouseEnter={() => controls.start('animate')}\n onMouseLeave={() => controls.start('normal')}\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"28\"\n height=\"28\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <motion.rect\n width=\"20\"\n height=\"5\"\n x=\"2\"\n y=\"3\"\n rx=\"1\"\n initial=\"normal\"\n animate={controls}\n variants={rectVariants}\n />\n <motion.path\n d=\"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8\"\n variants={pathVariants}\n animate={controls}\n />\n <motion.path\n d=\"M10 12h4\"\n variants={secondaryPathVariants}\n animate={controls}\n />\n </svg>\n </div>\n );\n};\n\nexport { ArchiveIcon };\n",
"type": "registry:icons"
"type": "registry:ui"
}
]
}
Loading

0 comments on commit d82aea8

Please sign in to comment.