{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "logo-sting",
  "type": "registry:component",
  "title": "LogoSting",
  "description": "Silent, restrained branded reveal: an SVG logo stroke draws in, a title settles beneath it, and a single accent underline lands last. A scene block composed strictly from DrawOn, ScaleIn, and Underline — no particles, no streaks, no flourish.",
  "dependencies": [
    "remotion",
    "@remotion/paths",
    "zod",
    "react"
  ],
  "files": [
    {
      "path": "registry/components/logo-sting/LogoSting.tsx",
      "type": "registry:component",
      "target": "components/onda/logo-sting/LogoSting.tsx",
      "content": "import React from 'react';\nimport { AbsoluteFill } from 'remotion';\nimport { z } from 'zod';\nimport { DrawOn } from '../draw-on/DrawOn';\nimport { ScaleIn } from '../scale-in/ScaleIn';\nimport { Underline } from '../underline/Underline';\nimport { DURATION } from '../../../lib/motion';\nimport { PlacementBox } from '../../../lib/canvas';\nimport { logoStingSchema } from './schema';\n\nexport { logoStingSchema };\nexport type LogoStingProps = z.infer<typeof logoStingSchema>;\n\n/**\n * Silent, restrained branded reveal. Composition order:\n *\n * 1. `DrawOn`    — the logo stroke draws itself in (the \"mark arrives\")\n * 2. `ScaleIn`   — the title settles into place beneath the stroke\n * 3. `Underline` — a single accent rule lands last, only when `accent === true`\n *\n * All motion lives in the three primitives; this file only choreographs the\n * offsets between them. No particles, no streaks, no glitch, no spinning,\n * no accelerating spring. Restraint IS the brand.\n *\n * @example\n * <LogoSting d=\"M 50 60 Q 100 20 150 60 T 250 60\" title=\"Onda\" />\n */\nexport const LogoSting: React.FC<LogoStingProps> = ({\n  d,\n  title,\n  delay,\n  accent,\n  viewBox,\n  pathWidth,\n  pathHeight,\n  strokeWidth,\n  stroke,\n  accentColor,\n  titleFontSize,\n  color,\n  fontFamily,\n  placement,\n}) => {\n  // Choreography offsets — frames *after* the block's own delay.\n  // The stroke (DrawOn) defaults to DURATION.slow (24 frames). The title begins\n  // before the stroke is fully settled so the two reveals feel linked rather\n  // than sequential. The underline lands last so the eye reads mark -> word\n  // -> accent.\n  const TITLE_OFFSET = 18;     // title starts as the stroke is almost home\n  const UNDERLINE_OFFSET = 34; // underline waits for the title to land\n\n  const fillCanvas = placement === undefined;\n\n  const stack = (\n    <>\n      {/* 1. Logo stroke — the mark arrives. */}\n      <DrawOn kind=\"draw-on\"\n        d={d}\n        delay={delay}\n        duration={DURATION.slow}\n        viewBox={viewBox}\n        width={pathWidth}\n        height={pathHeight}\n        strokeWidth={strokeWidth}\n        stroke={stroke}\n      />\n\n      {/* 2. Title — settles in beneath the mark. */}\n      <ScaleIn kind=\"scale-in\"\n        text={title}\n        delay={delay + TITLE_OFFSET}\n        duration={DURATION.base}\n        fromScale={0.9}\n        color={color}\n        fontSize={titleFontSize}\n        fontFamily={fontFamily}\n      />\n\n      {/* 3. Accent underline — earned, single, last. Only renders when\n          accent === true. The Underline primitive draws both the (here\n          invisible) text and the rule; we pass an empty string and zero\n          line offset so only the rule reads. */}\n      {accent ? (\n        <Underline kind=\"underline\"\n          text=\"\"\n          delay={delay + UNDERLINE_OFFSET}\n          color={color}\n          accentColor={accentColor}\n          fontSize={titleFontSize}\n          fontFamily={fontFamily}\n          duration={1}\n          lineDelay={0}\n          lineThickness={3}\n          lineOffset={0}\n          lineDuration={10}\n        />\n      ) : null}\n    </>\n  );\n\n  if (fillCanvas) {\n    return (\n      <AbsoluteFill\n        style={{\n          alignItems: 'center',\n          justifyContent: 'center',\n          flexDirection: 'column',\n          gap: 32,\n          fontFamily,\n        }}\n      >\n        {stack}\n      </AbsoluteFill>\n    );\n  }\n\n  return (\n    <PlacementBox placement={placement}>\n      <div\n        style={{\n          display: 'flex',\n          alignItems: 'center',\n          justifyContent: 'center',\n          flexDirection: 'column',\n          gap: 32,\n          fontFamily,\n        }}\n      >\n        {stack}\n      </div>\n    </PlacementBox>\n  );\n};\n\nexport default LogoSting;\n"
    },
    {
      "path": "registry/components/logo-sting/schema.ts",
      "type": "registry:component",
      "target": "components/onda/logo-sting/schema.ts",
      "content": "import { z } from 'zod';\nimport { placementSchema } from '../../../lib/canvas-schemas';\n\n/** Zod schema for `LogoSting` props. */\nexport const logoStingSchema = z.object({\n  /** Discriminator literal — matches this entry's registry slug. Auto-populated when omitted (`schema.parse({})` works as before). Lets consumers build `z.discriminatedUnion('kind', [...])` directly over onda schemas. */\n  kind: z.literal('logo-sting').default('logo-sting'),\n  /** SVG path `d` for the logo mark. The default is a sample wave. */\n  d: z.string().default('M 50 60 Q 100 20 150 60 T 250 60'),\n  /** The brand / product title beneath the mark. */\n  title: z.string().default('Onda'),\n  /** Frames before the stroke starts drawing. */\n  delay: z.number().int().min(0).default(0),\n  /** Show the accent rule beneath the title. */\n  accent: z.boolean().default(true),\n  /** SVG viewBox — must match the coordinate space of `d`. */\n  viewBox: z.string().default('0 0 300 120'),\n  /** Rendered width of the SVG stroke in px. */\n  pathWidth: z.number().default(400),\n  /** Rendered height of the SVG stroke in px. */\n  pathHeight: z.number().default(160),\n  /** Stroke width in path coordinate units. */\n  strokeWidth: z.number().default(3),\n  /** Logo stroke color. Defaults to `--onda-text`. */\n  stroke: z.string().default('var(--onda-text, #F2F2F4)'),\n  /** Underline accent color. Defaults to `--onda-accent`. */\n  accentColor: z.string().default('var(--onda-accent, #D96B82)'),\n  /** Title font size in px. */\n  titleFontSize: z.number().default(96),\n  /** Title color. Defaults to `--onda-text`. */\n  color: z.string().default('var(--onda-text, #F2F2F4)'),\n  /** Onda display font. */\n  fontFamily: z.string().default('var(--onda-font-display, \"Clash Display\", sans-serif)'),\n  /** Where on the canvas this sits. Region (`'center'`, `'upper-third'`, ...) or `{ x, y, anchor }` in 0..1 canvas fractions. When omitted, the component fills the entire canvas (default behavior). Coordinates may be negative or >1 for off-canvas. */\n  placement: placementSchema.optional(),\n});\n\n/** Inferred props for `LogoSting`. */\nexport type LogoStingProps = z.infer<typeof logoStingSchema>;\n"
    },
    {
      "path": "registry/components/logo-sting/logo-sting.meta.json",
      "type": "registry:file",
      "target": "components/onda/logo-sting/logo-sting.meta.json",
      "content": "{\n  \"name\": \"logo-sting\",\n  \"title\": \"LogoSting\",\n  \"description\": \"Silent, restrained branded reveal: an SVG logo stroke draws in, a title settles beneath it, and a single accent underline lands last. A scene block composed strictly from DrawOn, ScaleIn, and Underline — no particles, no streaks, no flourish.\",\n  \"pickWhen\": \"a brand sting at the head or tail of the piece — restrained scale + underline, not a 3D flourish.\",\n  \"composes\": [\n    \"draw-on\",\n    \"scale-in\",\n    \"underline\"\n  ],\n  \"category\": \"scenes\",\n  \"tags\": [\n    \"scene\",\n    \"logo\",\n    \"sting\",\n    \"branded\",\n    \"reveal\",\n    \"composition\"\n  ],\n  \"dependencies\": [\n    \"remotion\",\n    \"@remotion/paths\",\n    \"zod\",\n    \"react\"\n  ]\n}\n"
    },
    {
      "path": "registry/components/logo-sting/README.md",
      "type": "registry:file",
      "target": "components/onda/logo-sting/README.md",
      "content": "# LogoSting\n\nA silent, restrained branded reveal. An SVG logo stroke draws itself in, a title settles beneath it, and a single accent underline lands last. That is the entire show — no particles, no light streaks, no glitch, no spinning. The Onda logo-sting wins by what it doesn't do: it is the calmest sting in the catalog, and that restraint is the brand.\n\n## Props\n\n| Name | Type | Default | Notes |\n| --- | --- | --- | --- |\n| `d` | `string` | `\"M 50 60 Q 100 20 150 60 T 250 60\"` | The SVG path `d` attribute for the logo mark. The default is a gentle wave — Onda the wave. Pass a custom `d` (and matching `viewBox`) to swap in any logo path. |\n| `title` | `string` | `\"Onda\"` | The wordmark rendered beneath the stroke. |\n| `delay` | `integer ≥ 0` | `0` | Frames before the sting starts. |\n| `accent` | `boolean` | `true` | Whether the accent rose underline draws after the title. The single earned color moment in the block; turn off for monochrome stings. |\n| `viewBox` | `string` | `\"0 0 300 120\"` | SVG viewBox — must match the coordinate space of `d`. |\n| `pathWidth` | `number` | `400` | Rendered width of the logo SVG in CSS pixels. |\n| `pathHeight` | `number` | `160` | Rendered height of the logo SVG in CSS pixels. |\n| `strokeWidth` | `number` | `3` | Logo stroke thickness, in `viewBox` units. |\n| `stroke` | `string` | `\"#F2F2F4\"` | Logo stroke color — defaults to `--onda-text`. |\n| `accentColor` | `string` | `\"#D96B82\"` | Underline color — defaults to `--onda-accent`, the signature dusty rose. |\n| `titleFontSize` | `number` | `96` | Title size in px. |\n| `color` | `string` | `\"#F2F2F4\"` | Title color — defaults to `--onda-text`. |\n| `fontFamily` | `string` | `'\"Clash Display\", sans-serif'` | The Onda display font. Never default to Inter / Arial / system. |\n| `placement` | `Placement?` | – | Where on the canvas this sits. Region (`\"center\"`, `\"upper-third\"`, …) or `{ x, y, anchor }` in 0..1 canvas fractions. Coordinates may be negative or >1 for off-canvas. |\n\n## Usage\n\n```tsx\nimport { Composition } from 'remotion';\nimport { LogoSting, logoStingSchema } from './components/onda/logo-sting/LogoSting';\n\nexport const Root: React.FC = () => (\n  <Composition\n    id=\"MyLogoSting\"\n    component={LogoSting}\n    durationInFrames={90}\n    fps={30}\n    width={1920}\n    height={1080}\n    schema={logoStingSchema}\n    defaultProps={{\n      d: 'M 50 60 Q 100 20 150 60 T 250 60',\n      title: 'Onda',\n      delay: 0,\n      accent: true,\n      viewBox: '0 0 300 120',\n      pathWidth: 400,\n      pathHeight: 160,\n      strokeWidth: 3,\n      stroke: '#F2F2F4',\n      accentColor: '#D96B82',\n      titleFontSize: 96,\n      color: '#F2F2F4',\n      fontFamily: '\"Clash Display\", sans-serif',\n    }}\n  />\n);\n```\n\n## Motion notes\n\n- **Three composed primitives — nothing else.** This block imports `DrawOn`, `ScaleIn`, and `Underline`. All motion lives inside those primitives; the block only chooses offsets and lays them out vertically inside an `<AbsoluteFill>`. If you find yourself reaching for a sparkle, a light streak, a particle field, a glitch, or any \"wow flourish\" — delete it. The restraint is the point.\n- **Choreography.** The stroke begins at `delay`. The title begins at `delay + 18`, so it starts to materialize while the stroke is on its final approach — the two reveals feel linked rather than sequential. The accent underline lands last at `delay + 34`, so the eye reads *mark → word → accent* in that exact order. One earned beat per element, no overlap-noise.\n- **The accent is earned, once.** Per CLAUDE.md §3 the dusty rose is used sparingly. The underline is the single accent moment in this block, and the `accent` prop turns it off entirely for a monochrome variant.\n- **No overshoot. No bounce.** All motion runs on `SPRING_SMOOTH` via the composed primitives. The stroke lands and stays. The title settles. The underline draws in. Nothing whips, nothing wobbles, nothing re-enters.\n- **Deterministic.** Pure function of `useCurrentFrame()`. No state, no effects, no randomness — every frame renders correctly in isolation.\n"
    }
  ],
  "registryDependencies": [
    "draw-on",
    "lib-motion",
    "scale-in",
    "underline"
  ]
}
