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

36 lines
2.8 KiB
JSON

{
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "kanban-icon",
"type": "registry:ui",
"title": "Kanban Icon",
"description": "Kanban icon component.",
"dependencies": [
"motion"
],
"files": [
{
"path": "registry/icons/kanban/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 KanbanProps = IconProps<keyof typeof animations>;\n\nconst animations = {\n default: {\n line1: {\n initial: {\n y2: 19,\n },\n animate: {\n y2: [19, 11, 16, 19],\n transition: { duration: 0.6, ease: 'linear' },\n },\n },\n line2: {\n initial: {\n y2: 11,\n },\n animate: {\n y2: [11, 16, 19, 11],\n transition: { duration: 0.6, ease: 'linear' },\n },\n },\n line3: {\n initial: {\n y2: 16,\n },\n animate: {\n y2: [16, 19, 11, 16],\n transition: { duration: 0.6, ease: 'linear' },\n },\n },\n } satisfies Record<string, Variants>,\n} as const;\n\nfunction IconComponent({ size, ...props }: KanbanProps) {\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 {...props}\n >\n <motion.line\n x1={18}\n y1={5}\n x2={18}\n y2={19}\n variants={variants.line1}\n initial=\"initial\"\n animate={controls}\n />\n <motion.line\n x1={12}\n y1={5}\n x2={12}\n y2={11}\n variants={variants.line2}\n initial=\"initial\"\n animate={controls}\n />\n <motion.line\n x1={6}\n y1={5}\n x2={6}\n y2={16}\n variants={variants.line3}\n initial=\"initial\"\n animate={controls}\n />\n </motion.svg>\n );\n}\n\nfunction Kanban(props: KanbanProps) {\n return <IconWrapper icon={IconComponent} {...props} />;\n}\n\nexport {\n animations,\n Kanban,\n Kanban as KanbanIcon,\n type KanbanProps,\n type KanbanProps as KanbanIconProps,\n};\n",
"type": "registry:ui",
"target": "components/animate-ui/icons/kanban.tsx"
}
],
"meta": {
"keywords": [
"projects",
"manage",
"overview",
"board",
"tickets",
"issues",
"roadmap",
"plan",
"intentions",
"productivity",
"work",
"agile",
"code",
"coding"
]
}
}