{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "marquee",
  "type": "registry:ui",
  "title": "Marquee",
  "dependencies": [
    "@base-ui-next/react",
    "class-variance-authority"
  ],
  "registryDependencies": [
    "https://hamur.dev/r/react/utils.json",
    "https://hamur.dev/r/react/button.json"
  ],
  "files": [
    {
      "path": "react/marquee.tsx",
      "content": "'use client'\n\nimport type * as React from 'react' // base-ui-next/ui marquee@0.1.1\nimport { Marquee as MarqueePrimitive } from '@base-ui-next/react/marquee'\nimport type { VariantProps } from 'class-variance-authority'\nimport { cn } from '@/lib/utils'\nimport { buttonVariants } from '@/components/ui/button'\n\nconst marqueeClassName = 'relative flex items-center gap-2'\n\nconst marqueePlayControlClassName =\n  'group/marquee-play-control shrink-0 aria-disabled:cursor-not-allowed aria-disabled:opacity-50'\n\nconst marqueePlayControlPauseClassName =\n  'hidden group-data-playing/marquee-play-control:block'\n\nconst marqueePlayControlPlayClassName = 'group-data-playing/marquee-play-control:hidden'\n\nconst marqueeViewportClassName =\n  'min-w-0 flex-1 gap-6 [mask-image:linear-gradient(to_right,transparent,#000_2rem,#000_calc(100%_-_2rem),transparent)] data-[orientation=vertical]:[mask-image:linear-gradient(to_bottom,transparent,#000_2rem,#000_calc(100%_-_2rem),transparent)]'\n\nconst marqueeContentClassName =\n  'flex items-center gap-6 data-[orientation=vertical]:flex-col [&_:focus-visible]:rounded-sm [&_:focus-visible]:ring-3 [&_:focus-visible]:ring-ring/50 [&_:focus-visible]:outline-none'\n\ntype ButtonVariants = VariantProps<typeof buttonVariants>\n\nfunction SvgIcon({ children, ...props }: React.ComponentProps<'svg'>) {\n  return (\n    <svg\n      xmlns=\"http://www.w3.org/2000/svg\"\n      viewBox=\"0 0 24 24\"\n      fill=\"none\"\n      stroke=\"currentColor\"\n      strokeWidth=\"2\"\n      strokeLinecap=\"round\"\n      strokeLinejoin=\"round\"\n      aria-hidden=\"true\"\n      {...props}\n    >\n      {children}\n    </svg>\n  )\n}\n\nfunction Marquee({ className, ...props }: MarqueePrimitive.Root.Props) {\n  return (\n    <MarqueePrimitive.Root\n      data-slot=\"marquee\"\n      className={cn(marqueeClassName, className)}\n      {...props}\n    />\n  )\n}\n\nfunction MarqueePlayControl({\n  className,\n  variant = 'outline',\n  size = 'icon-sm',\n  children,\n  ...props\n}: MarqueePrimitive.PlayControl.Props & ButtonVariants) {\n  return (\n    <MarqueePrimitive.PlayControl\n      data-slot=\"marquee-play-control\"\n      className={cn(buttonVariants({ variant, size }), marqueePlayControlClassName, className)}\n      {...props}\n    >\n      {children ?? (\n        <>\n          <SvgIcon className={marqueePlayControlPauseClassName}>\n            <rect x=\"14\" y=\"3\" width=\"5\" height=\"18\" rx=\"1\" />\n            <rect x=\"5\" y=\"3\" width=\"5\" height=\"18\" rx=\"1\" />\n          </SvgIcon>\n          <SvgIcon className={marqueePlayControlPlayClassName}>\n            <path d=\"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z\" />\n          </SvgIcon>\n        </>\n      )}\n    </MarqueePrimitive.PlayControl>\n  )\n}\n\nfunction MarqueeViewport({ className, ...props }: MarqueePrimitive.Viewport.Props) {\n  return (\n    <MarqueePrimitive.Viewport\n      data-slot=\"marquee-viewport\"\n      className={cn(marqueeViewportClassName, className)}\n      {...props}\n    />\n  )\n}\n\nfunction MarqueeContent({ className, ...props }: MarqueePrimitive.Content.Props) {\n  return (\n    <MarqueePrimitive.Content\n      data-slot=\"marquee-content\"\n      className={cn(marqueeContentClassName, className)}\n      {...props}\n    />\n  )\n}\n\nexport { Marquee, MarqueeContent, MarqueePlayControl, MarqueeViewport }\n",
      "type": "registry:ui",
      "target": "@ui/marquee.tsx"
    }
  ],
  "meta": {
    "baseUiNext": {
      "version": "0.1.1",
      "hash": "840744bf1ea61d7ef29d9412686850396c63b60200f16952ab387701f427b388",
      "files": {
        "@ui/marquee.tsx": "26a1cd8b8c758ecc0d26a81af9a139739978a9530db9e2d43bfc6ed23997f3d5"
      }
    }
  }
}
