{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "loading-spinner",
  "type": "registry:ui",
  "title": "Loading Spinner",
  "description": "A modern neon ring spinner with smooth cubic-bezier rotation.",
  "dependencies": [
    "react"
  ],
  "devDependencies": [
    "@types/react"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "ui/loading-spinner.tsx",
      "content": "'use client';\n\nimport React from 'react';\nimport { cn } from '@/lib/utils';\n\ninterface LoadingSpinnerProps {\n  className?: string;\n  text?: string;\n  size?: 'sm' | 'md' | 'lg';\n  showText?: boolean;\n}\n\nexport default function LoadingSpinner({\n  className,\n  text = 'Loading...',\n  size = 'md',\n  showText = true,\n}: LoadingSpinnerProps) {\n  const sizeClasses = {\n    sm: 'h-4 w-4',\n    md: 'h-5 w-5',\n    lg: 'h-7 w-7',\n  };\n\n  const textSizeClasses = {\n    sm: 'text-xs',\n    md: 'text-sm',\n    lg: 'text-base',\n  };\n\n  return (\n    <div className={cn('inline-flex items-center gap-2.5 select-none', className)}>\n      <div className={cn('relative flex items-center justify-center shrink-0', sizeClasses[size])}>\n        {/* Static Background Track Circle */}\n        <svg\n          viewBox=\"0 0 18 18\"\n          className=\"absolute inset-0 h-full w-full text-neutral-200 dark:text-neutral-800\"\n          aria-hidden=\"true\"\n        >\n          <circle\n            cx=\"9\"\n            cy=\"9\"\n            r=\"7.25\"\n            fill=\"none\"\n            strokeWidth=\"2\"\n            stroke=\"currentColor\"\n            className=\"opacity-75 dark:opacity-60\"\n          />\n        </svg>\n\n        {/* Dynamic Rotating Arc Container */}\n        <div className=\"loading-spinner-rotator absolute inset-0 h-full w-full\">\n          {/* Subtle Ambient Glow Behind Head */}\n          <svg\n            viewBox=\"0 0 18 18\"\n            className=\"absolute inset-0 h-full w-full text-black opacity-35 blur-[2px] dark:text-white\"\n            aria-hidden=\"true\"\n          >\n            <circle\n              cx=\"9\"\n              cy=\"9\"\n              r=\"7.25\"\n              fill=\"none\"\n              strokeWidth=\"2.5\"\n              stroke=\"currentColor\"\n              strokeLinecap=\"round\"\n              className=\"loading-spinner-arc\"\n            />\n          </svg>\n\n          {/* Crisp Main Stroke Segment */}\n          <svg\n            viewBox=\"0 0 18 18\"\n            className=\"absolute inset-0 h-full w-full text-neutral-900 dark:text-neutral-100\"\n            aria-hidden=\"true\"\n          >\n            <circle\n              cx=\"9\"\n              cy=\"9\"\n              r=\"7.25\"\n              fill=\"none\"\n              strokeWidth=\"2\"\n              stroke=\"currentColor\"\n              strokeLinecap=\"round\"\n              className=\"loading-spinner-arc\"\n            />\n          </svg>\n        </div>\n\n        {/* 100% Self-Contained Styles: No globals.css modifications needed */}\n        <style>{`\n          .loading-spinner-rotator {\n            animation: loading-spinner-spin 1.8s linear infinite;\n            transform-origin: center;\n          }\n\n          .loading-spinner-arc {\n            animation: loading-spinner-dash 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n            transform-origin: center;\n          }\n\n          @keyframes loading-spinner-spin {\n            from {\n              transform: rotate(0deg);\n            }\n            to {\n              transform: rotate(360deg);\n            }\n          }\n\n          @keyframes loading-spinner-dash {\n            0% {\n              stroke-dasharray: 2 45.5;\n              stroke-dashoffset: 0;\n            }\n            28% {\n              stroke-dasharray: 28 45.5;\n              stroke-dashoffset: -4;\n            }\n            50% {\n              stroke-dasharray: 10 45.5;\n              stroke-dashoffset: -18;\n            }\n            72% {\n              stroke-dasharray: 34 45.5;\n              stroke-dashoffset: -25;\n            }\n            100% {\n              stroke-dasharray: 2 45.5;\n              stroke-dashoffset: -45.5;\n            }\n          }\n\n          .loading-spinner-text {\n            --shimmer-base: #a1a1aa;\n            --shimmer-wave: #09090b;\n            background-image: linear-gradient(\n              90deg,\n              var(--shimmer-base) 0%,\n              var(--shimmer-base) 20%,\n              var(--shimmer-wave) 50%,\n              var(--shimmer-base) 80%,\n              var(--shimmer-base) 100%\n            );\n            background-size: 200% 100%;\n            -webkit-background-clip: text;\n            background-clip: text;\n            -webkit-text-fill-color: transparent;\n            color: transparent;\n            display: inline-block;\n            animation: loading-text-shimmer 2.2s linear infinite;\n          }\n\n          :is(.dark, [data-theme='dark']) .loading-spinner-text {\n            --shimmer-base: #71717a;\n            --shimmer-wave: #ffffff;\n          }\n\n          @keyframes loading-text-shimmer {\n            0% {\n              background-position: 100% 0;\n            }\n            100% {\n              background-position: -100% 0;\n            }\n          }\n        `}</style>\n      </div>\n\n      {/* Shimmering Text Wave: Only text glyphs, zero background */}\n      {showText && text && (\n        <span\n          className={cn(\n            'loading-spinner-text font-sans font-medium tracking-normal select-none',\n            textSizeClasses[size]\n          )}\n        >\n          {text}\n        </span>\n      )}\n    </div>\n  );\n}\n\n",
      "type": "registry:ui"
    }
  ]
}