{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "career-stats-header-glass", "type": "registry:block", "title": "Career Stats Header Glass", "description": "Career Stats Header Glass component with glass effects", "dependencies": [ "lucide-react", "react" ], "registryDependencies": [ "cn" ], "files": [ { "path": "components/glass/composite/career-stats-header-glass.tsx", "type": "registry:component", "content": "// ========================================\n// CAREER STATS HEADER GLASS - COMPOSITE COMPONENT\n// Career statistics header with total counts\n// Level 3: Composite (extracted from CareerStatsGlass)\n// ========================================\n\nimport { forwardRef, type HTMLAttributes, type CSSProperties } from 'react';\nimport { TrendingUp, Code, GitPullRequest, FolderGit2 } from 'lucide-react';\nimport { cn } from '@/lib/utils';\nimport '@/glass-theme.css';\n\nexport interface CareerStatsHeaderGlassProps extends HTMLAttributes {\n /** Total commits count */\n readonly totalCommits: number;\n /** Total pull requests count */\n readonly totalPRs: number;\n /** Total repositories count */\n readonly totalRepos: number;\n /** Header title */\n readonly title?: string;\n /** Stats wrap on mobile */\n readonly wrapStats?: boolean;\n}\n\nexport const CareerStatsHeaderGlass = forwardRef<\n HTMLDivElement,\n CareerStatsHeaderGlassProps\n>(\n (\n {\n totalCommits,\n totalPRs,\n totalRepos,\n title = 'Career Stats',\n wrapStats = true,\n className,\n ...props\n },\n ref\n ) => {\n const titleStyles: CSSProperties = {\n color: 'var(--text-primary)',\n };\n\n const accentStyles: CSSProperties = {\n color: 'var(--text-accent)',\n };\n\n const statsStyles: CSSProperties = {\n color: 'var(--text-secondary)',\n };\n\n return (\n
\n \n \n {title}\n \n \n \n \n {totalCommits.toLocaleString()} commits\n \n ·\n \n \n {totalPRs} PRs\n \n ·\n \n \n {totalRepos} repos\n \n

\n
\n );\n }\n);\n\nCareerStatsHeaderGlass.displayName = 'CareerStatsHeaderGlass';\n" } ], "categories": [ "composite" ] }