{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "boiling-lines",
  "type": "registry:component",
  "title": "Boiling Lines",
  "description": "Hand-drawn line motion with subtle, default, and intense presets.",
  "dependencies": [],
  "registryDependencies": [
    "https://steez-ui.thomasjvu.com/r-steez/theme-tokens.json",
    "https://steez-ui.thomasjvu.com/r-steez/motion-activity.json"
  ],
  "docs": "Files install at the project root. Import styles/steez/tokens.css once from your global stylesheet or root layout, then import components from components/steez. No Steez npm packages are required.",
  "files": [
    {
      "path": "components/steez/BoilingLines.tsx",
      "type": "registry:file",
      "target": "components/steez/BoilingLines.tsx",
      "content": "\"use client\";\n\nimport React, { useId } from \"react\";\nimport { useMotionActivity } from \"../hooks/useMotionActivity\";\nimport styles from \"./BoilingLines.module.css\";\n\nexport interface BoilingLinesProps\n  extends React.HTMLAttributes<HTMLDivElement> {\n  children: React.ReactNode;\n  /** Presets share one implementation; use scale to fine-tune displacement. */\n  intensity?: \"subtle\" | \"default\" | \"intense\";\n  /** Milliseconds per frame, clamped to at least 16ms. */\n  speedMs?: number;\n  scale?: number;\n  paused?: boolean;\n}\n\nconst scales = { subtle: 2, default: 4, intense: 8 };\nconst seeds = [1, 25, 45];\n\n/** Wrap artwork, an SVG, or a decorative border. Keep long text outside the effect. */\nexport function BoilingLines({\n  children,\n  intensity = \"default\",\n  speedMs = 100,\n  scale,\n  paused = false,\n  className = \"\",\n  style,\n  ...props\n}: BoilingLinesProps) {\n  const { ref, running } = useMotionActivity(paused);\n  const id = `steez-boil-${useId().replace(/[^a-zA-Z0-9_-]/g, \"\")}`;\n  const displacement = scale ?? scales[intensity];\n  const effectStyle = {\n    ...style,\n    \"--boil-duration\": `${(Number.isFinite(speedMs) ? Math.max(16, speedMs) : 100) * 3}ms`,\n    ...Object.fromEntries(\n      seeds.map((_, i) => [`--boil-frame-${i}`, `url(#${id}-${i})`]),\n    ),\n  } as React.CSSProperties;\n\n  return (\n    <div\n      {...props}\n      ref={ref}\n      className={`${styles.root} ${className}`.trim()}\n      style={effectStyle}\n    >\n      <svg className={styles.filters} aria-hidden=\"true\" focusable=\"false\">\n        <defs>\n          {seeds.map((seed, i) => (\n            <filter\n              key={seed}\n              id={`${id}-${i}`}\n              x=\"-20%\"\n              y=\"-20%\"\n              width=\"140%\"\n              height=\"140%\"\n            >\n              <feTurbulence\n                type=\"fractalNoise\"\n                baseFrequency=\"0.015\"\n                numOctaves={2}\n                seed={seed}\n                result=\"warp\"\n              />\n              <feDisplacementMap\n                in=\"SourceGraphic\"\n                in2=\"warp\"\n                scale={\n                  Number.isFinite(displacement) ? Math.max(0, displacement) : 4\n                }\n                xChannelSelector=\"R\"\n                yChannelSelector=\"G\"\n              />\n            </filter>\n          ))}\n        </defs>\n      </svg>\n      <div className={styles.content} data-paused={!running || undefined}>\n        {children}\n      </div>\n    </div>\n  );\n}\n",
      "source": "packages/ui/src/components/BoilingLines.tsx"
    },
    {
      "path": "components/steez/BoilingLines.module.css",
      "type": "registry:file",
      "target": "components/steez/BoilingLines.module.css",
      "content": ".root { position: relative; }\n.filters { position: absolute; width: 0; height: 0; pointer-events: none; }\n.content { animation: boil var(--boil-duration, 300ms) steps(1, end) infinite; }\n.content[data-paused] { animation-play-state: paused; }\n@keyframes boil {\n  0%, 100% { filter: var(--boil-frame-0); }\n  33.333% { filter: var(--boil-frame-1); }\n  66.666% { filter: var(--boil-frame-2); }\n}\n@media (prefers-reduced-motion: reduce) {\n  .content { animation: none; filter: none; }\n}\n",
      "source": "packages/ui/src/components/BoilingLines.module.css"
    }
  ]
}
