{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "shimmer-sweep",
  "type": "registry:component",
  "title": "ShimmerSweep",
  "description": "A single band of light sweeps across text once (or on a loop), drawing the eye without moving the layout. Restrained highlight emphasis built on the house easing.",
  "dependencies": [
    "remotion",
    "zod",
    "react"
  ],
  "registryDependencies": [
    "lib-canvas",
    "lib-easing",
    "lib-motion"
  ],
  "files": [
    {
      "path": "registry/components/shimmer-sweep/ShimmerSweep.tsx",
      "type": "registry:component",
      "target": "components/onda/shimmer-sweep/ShimmerSweep.tsx",
      "content": "import React from 'react';\nimport { useCurrentFrame, useVideoConfig, interpolate } from 'remotion';\nimport { PlacementBox, resolveSize } from '../../../lib/canvas';\nimport { HOUSE_EASE } from '../../../lib/easing';\nimport { shimmerSweepSchema, type ShimmerSweepProps } from './schema';\n\nexport { shimmerSweepSchema, type ShimmerSweepProps };\n\n/**\n * A single band of light sweeps across the text — restrained emphasis, not a\n * disco. The base text sits in `--onda-dim`; a brighter band travels through\n * once (or loops), drawing the eye without moving the layout.\n *\n * @example\n * <ShimmerSweep text=\"Shipping today\" />\n */\nexport const ShimmerSweep: React.FC<ShimmerSweepProps> = ({\n  text, delay, duration, loop, interval, color, shimmerColor, angle,\n  fontSize, size, fontFamily, fontWeight, letterSpacing, lineHeight, align, placement,\n}) => {\n  const frame = useCurrentFrame();\n  const { width, height } = useVideoConfig();\n  const local = frame - delay;\n  const resolvedFontSize = size ? resolveSize(size, { width, height }) : fontSize;\n\n  const t = loop\n    ? (((local % interval) + interval) % interval) / interval\n    : interpolate(local, [0, duration], [0, 1], {\n        extrapolateLeft: 'clamp',\n        extrapolateRight: 'clamp',\n        easing: HOUSE_EASE,\n      });\n\n  // The highlight band travels from off-right to off-left across the text.\n  const posX = interpolate(t, [0, 1], [150, -50]);\n  const gradient = `linear-gradient(${angle}deg, ${color} 40%, ${shimmerColor} 50%, ${color} 60%)`;\n\n  return (\n    <PlacementBox placement={placement}>\n      <div\n        style={{\n          fontSize: resolvedFontSize,\n          fontFamily,\n          fontWeight,\n          letterSpacing,\n          lineHeight,\n          textAlign: align,\n          backgroundImage: gradient,\n          backgroundSize: '250% 100%',\n          backgroundPositionX: `${posX}%`,\n          WebkitBackgroundClip: 'text',\n          backgroundClip: 'text',\n          color: 'transparent',\n          WebkitTextFillColor: 'transparent',\n        }}\n      >\n        {text}\n      </div>\n    </PlacementBox>\n  );\n};\n"
    },
    {
      "path": "registry/components/shimmer-sweep/schema.ts",
      "type": "registry:component",
      "target": "components/onda/shimmer-sweep/schema.ts",
      "content": "import { z } from 'zod';\nimport { DURATION } from '../../../lib/motion';\nimport { placementSchema, sizeRoleSchema } from '../../../lib/canvas-schemas';\n\n/** Zod schema for {@link ShimmerSweep} props. */\nexport const shimmerSweepSchema = z.object({\n  /** Discriminator literal — matches this entry's registry slug. Auto-populated when omitted. */\n  kind: z.literal('shimmer-sweep').default('shimmer-sweep'),\n  /** The text to sweep light across. */\n  text: z.string().default('Onda'),\n  /** Frames before the sweep starts. */\n  delay: z.number().int().min(0).default(0),\n  /** Frames for one sweep pass. */\n  duration: z.number().int().min(1).default(DURATION.slower),\n  /** Loop the sweep instead of a single pass. */\n  loop: z.boolean().default(false),\n  /** Frames between sweeps when looping. */\n  interval: z.number().int().min(1).default(60),\n  /** Base text color. Defaults to `--onda-dim` so the bright band reads as a highlight. */\n  color: z.string().default('var(--onda-dim, #8E8E98)'),\n  /** The sweeping highlight color. Defaults to `--onda-text`. */\n  shimmerColor: z.string().default('var(--onda-text, #F2F2F4)'),\n  /** Sweep angle in degrees. */\n  angle: z.number().default(110),\n  /** Pixels. Wins over `size` if both are passed. */\n  fontSize: z.number().default(96),\n  /** Semantic typography role — canvas-aware pixels. */\n  size: sizeRoleSchema.optional(),\n  /** Onda display font. Never default to Inter / Arial / system. */\n  fontFamily: z.string().default('var(--onda-font-display, \"Clash Display\", sans-serif)'),\n  /** Font weight. */\n  fontWeight: z.number().default(600),\n  /** CSS letter-spacing. */\n  letterSpacing: z.string().optional(),\n  /** Unitless line height. */\n  lineHeight: z.number().default(1.1),\n  /** Text alignment. */\n  align: z.enum(['left', 'center', 'right']).default('left'),\n  /** Where on the canvas this sits. */\n  placement: placementSchema.optional(),\n});\n\n/** Inferred props for {@link ShimmerSweep}. */\nexport type ShimmerSweepProps = z.infer<typeof shimmerSweepSchema>;\n"
    },
    {
      "path": "registry/components/shimmer-sweep/shimmer-sweep.meta.json",
      "type": "registry:file",
      "target": "components/onda/shimmer-sweep/shimmer-sweep.meta.json",
      "content": "{\n  \"name\": \"shimmer-sweep\",\n  \"title\": \"ShimmerSweep\",\n  \"description\": \"A single band of light sweeps across text once (or on a loop), drawing the eye without moving the layout. Restrained highlight emphasis built on the house easing.\",\n  \"pickWhen\": \"subtle emphasis on already-revealed text — premium / luxe feel, no color. Use `highlight` for marker; `underline` for a rule.\",\n  \"category\": \"graphics\",\n  \"tags\": [\n    \"text\",\n    \"shimmer\",\n    \"sweep\",\n    \"highlight\",\n    \"emphasis\"\n  ],\n  \"dependencies\": [\n    \"remotion\",\n    \"zod\",\n    \"react\"\n  ]\n}\n"
    },
    {
      "path": "registry/components/shimmer-sweep/README.md",
      "type": "registry:file",
      "target": "components/onda/shimmer-sweep/README.md",
      "content": "# ShimmerSweep\n\nA single band of light sweeps across the text — restrained emphasis, not a disco. The base text sits in `--onda-dim` while a brighter band (`--onda-text` by default) travels through once, or loops on an interval. The layout never moves; only the highlight does, so it reads as polish rather than effect.\n\n## Props\n\n| Prop | Type | Default | Notes |\n| --- | --- | --- | --- |\n| `text` | `string` | `\"Onda\"` | The text to sweep. |\n| `delay` | `number` | `0` | Frames before the sweep starts. |\n| `duration` | `number` | `30` | Frames for one sweep pass. |\n| `loop` | `boolean` | `false` | Loop instead of a single pass. |\n| `interval` | `number` | `60` | Frames between sweeps when looping. |\n| `color` | `string` | `#8E8E98` | Base (dim) text color. |\n| `shimmerColor` | `string` | `#F2F2F4` | The sweeping highlight color. |\n| `angle` | `number` | `110` | Sweep angle in degrees. |\n| `fontSize` / `size` | `number` / role | `96` | Explicit px or canvas-aware role. |\n| `fontFamily`, `fontWeight`, `letterSpacing`, `lineHeight`, `align` | — | display defaults | Standard typography vocabulary. |\n| `placement` | region or `{x,y,anchor}` | — | Canvas placement. |\n\n## Usage\n\n```tsx\nimport { Composition } from 'remotion';\nimport { ShimmerSweep } from './components/onda/shimmer-sweep/ShimmerSweep';\n\nexport const ShimmerComp = () => (\n  <ShimmerSweep text=\"Shipping today\" align=\"center\" placement=\"center\" />\n);\n```\n"
    }
  ]
}
