{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "heart-signal",
  "title": "Heart Signal",
  "author": "AlgorizeTech",
  "description": "Ask the user to pick one of 3 heart signal variants: https://avaraui.com/view/heart-signal. This item holds 3 of them as looks of one component (ecg-line, pulse-heart, cardiac-wave). Skip the question if the user already named one. A slow, ultra-smooth cardiac heart signal waveform component with 2 visual variants (realtime EKG line trace and fluid multi-lead cardiac wave).",
  "dependencies": [
    "next-themes"
  ],
  "registryDependencies": [
    "utils"
  ],
  "files": [
    {
      "path": "src/components/custom/blocks/HeartSignalBlock.tsx",
      "content": "\"use client\";\n\nimport React, { useEffect, useRef, useState, useSyncExternalStore } from \"react\";\n\n/**\n * False while server-rendering and during hydration, true afterwards — without\n * the extra render an effect-flipped useState costs.\n */\nconst subscribeToNothing = () => () => {};\nconst useIsMounted = () =>\n  useSyncExternalStore(\n    subscribeToNothing,\n    () => true,\n    () => false,\n  );\n\nimport { useTheme } from \"next-themes\";\nimport { cn } from \"@/lib/utils\";\n\nexport type HeartSignalVariant = \"ecg-line\" | \"cardiac-wave\" | \"pulse-heart\";\n\nexport interface HeartSignalProps extends React.HTMLAttributes<HTMLDivElement> {\n  variant?: HeartSignalVariant;\n  bpm?: number;\n  speed?: number;\n  color?: string;\n  showBPM?: boolean;\n  showGrid?: boolean;\n  className?: string;\n}\n\nconst PRESET_ACCENT_HEX: Record<string, string> = {\n  indigo: \"#6366f1\",\n  rose: \"#f43f5e\",\n  emerald: \"#10b981\",\n  zinc: \"#18181b\",\n};\n\n/** Turns a preset accent name or custom hex string into a CSS color, or null for default theme. */\nfunction resolveColorAccent(color?: string): string | null {\n  if (!color || color === \"primary\" || color === \"default\") return null;\n  return PRESET_ACCENT_HEX[color] ?? color;\n}\n\nexport function HeartSignal({\n  variant = \"ecg-line\",\n  bpm = 75,\n  speed = 0.25,\n  color,\n  showBPM = true,\n  showGrid = true,\n  className,\n  ...props\n}: HeartSignalProps) {\n  const { resolvedTheme } = useTheme();\n  const mounted = useIsMounted();\n  const [themePrimaryColor, setThemePrimaryColor] = useState<string>(\"currentColor\");\n  const [themeTrackColor, setThemeTrackColor] = useState<string | null>(null);\n\n  const canvasRef = useRef<HTMLCanvasElement | null>(null);\n  const containerRef = useRef<HTMLDivElement | null>(null);\n  const animationFrameRef = useRef<number | null>(null);\n\n\n  // Real-time semantic CSS theme color resolver (supports standard CSS vars and Shadcn HSL variables)\n  const getActivePrimaryColor = (): string => {\n    if (typeof window === \"undefined\") return resolvedTheme === \"dark\" ? \"#f43f5e\" : \"#e11d48\";\n    try {\n      // 1. Direct CSS variable evaluation\n      const dummy = document.createElement(\"div\");\n      dummy.style.color = \"var(--primary)\";\n      dummy.style.position = \"absolute\";\n      dummy.style.visibility = \"hidden\";\n      dummy.style.pointerEvents = \"none\";\n      document.body.appendChild(dummy);\n      let computedColor = window.getComputedStyle(dummy).color;\n      document.body.removeChild(dummy);\n\n      if (computedColor && computedColor !== \"rgba(0, 0, 0, 0)\" && computedColor !== \"transparent\") {\n        return computedColor;\n      }\n\n      // 2. Shadcn HSL CSS variable format fallback (hsl(var(--primary)))\n      const dummyHsl = document.createElement(\"div\");\n      dummyHsl.style.color = \"hsl(var(--primary))\";\n      dummyHsl.style.position = \"absolute\";\n      dummyHsl.style.visibility = \"hidden\";\n      dummyHsl.style.pointerEvents = \"none\";\n      document.body.appendChild(dummyHsl);\n      computedColor = window.getComputedStyle(dummyHsl).color;\n      document.body.removeChild(dummyHsl);\n\n      if (computedColor && computedColor !== \"rgba(0, 0, 0, 0)\" && computedColor !== \"transparent\") {\n        return computedColor;\n      }\n    } catch {\n      // Colour could not be resolved; the theme default below is used.\n    }\n    return resolvedTheme === \"dark\" ? \"#f43f5e\" : \"#e11d48\";\n  };\n\n  // Dynamically observe and resolve exact active site theme --primary CSS color variable\n  useEffect(() => {\n    if (typeof window === \"undefined\" || !mounted) return;\n\n    const updateThemeColor = () => {\n      const activeColor = getActivePrimaryColor();\n      setThemePrimaryColor(activeColor);\n\n      // The unlit track follows the theme's --muted surface.\n      const probe = document.createElement(\"div\");\n      probe.style.color = \"var(--muted)\";\n      probe.style.position = \"absolute\";\n      probe.style.visibility = \"hidden\";\n      probe.style.pointerEvents = \"none\";\n      document.body.appendChild(probe);\n      const muted = window.getComputedStyle(probe).color;\n      document.body.removeChild(probe);\n      setThemeTrackColor(muted && muted !== \"rgba(0, 0, 0, 0)\" && muted !== \"transparent\" ? muted : null);\n    };\n\n    updateThemeColor();\n\n    const observer = new MutationObserver(() => updateThemeColor());\n    observer.observe(document.documentElement, {\n      attributes: true,\n      attributeFilter: [\"class\", \"style\", \"data-theme\"],\n    });\n\n    return () => observer.disconnect();\n  }, [mounted, resolvedTheme]);\n\n  // Resolve picked color from color picker or fallback to exact active header primary theme color\n  const resolvedPickerColor = resolveColorAccent(color);\n  const effectiveColor =\n    resolvedPickerColor ||\n    (themePrimaryColor !== \"currentColor\"\n      ? themePrimaryColor\n      : getActivePrimaryColor());\n\n  // Real-time Canvas Rendering Engine\n  useEffect(() => {\n    const canvas = canvasRef.current;\n    const container = containerRef.current;\n    if (!canvas || !container) return;\n\n    const ctx = canvas.getContext(\"2d\");\n    if (!ctx) return;\n\n    let width = (canvas.width = container.clientWidth);\n    let height = (canvas.height = container.clientHeight);\n\n    const handleResize = () => {\n      if (!container || !canvas) return;\n      width = canvas.width = container.clientWidth;\n      height = canvas.height = container.clientHeight;\n    };\n\n    const resizeObserver = new ResizeObserver(() => handleResize());\n    resizeObserver.observe(container);\n\n    let time = 0;\n    const maxHistory = 450;\n    const historyPoints: number[] = [];\n\n    // Sharp linear piecewise vertex calculator\n    const getSharpPiecewiseY = (cycleNorm: number, h: number, pScale: number, dScale: number, tScale: number): number => {\n      const cy = h / 2;\n      const tNorm = ((cycleNorm % 1) + 1) % 1;\n\n      const keypoints: [number, number][] = [\n        [0.0, 0],\n        [0.06, 0],\n        [0.10, -h * 0.16 * tScale],\n        [0.14, 0],\n        [0.18, h * 0.20 * dScale],\n        [0.23, -h * 0.44 * pScale],\n        [0.28, h * 0.24 * dScale],\n        [0.32, 0],\n        [0.40, 0],\n        [0.45, -h * 0.14 * tScale],\n        [0.50, 0],\n        [1.0, 0],\n      ];\n\n      for (let i = 0; i < keypoints.length - 1; i++) {\n        const [t1, y1] = keypoints[i];\n        const [t2, y2] = keypoints[i + 1];\n\n        if (tNorm >= t1 && tNorm <= t2) {\n          const segP = (tNorm - t1) / (t2 - t1);\n          return cy + (y1 + segP * (y2 - y1));\n        }\n      }\n\n      return cy;\n    };\n\n    // Smooth Reference Image Waveform Calculator for Pulse Heart Variant\n    const getReferenceSmoothWaveY = (t: number, h: number, amplitudeMult = 1.0): number => {\n      const cy = h / 2;\n      const tNorm = ((t % 1) + 1) % 1;\n\n      if (tNorm < 0.08 || tNorm > 0.92) return cy;\n\n      // Left EKG Pulse Wave\n      if (tNorm >= 0.08 && tNorm < 0.16) {\n        const p = (tNorm - 0.08) / 0.08;\n        return cy - Math.sin(p * Math.PI) * (h * 0.14 * amplitudeMult);\n      }\n      if (tNorm >= 0.16 && tNorm < 0.22) {\n        const p = (tNorm - 0.16) / 0.06;\n        return cy + Math.sin(p * Math.PI) * (h * 0.2 * amplitudeMult);\n      }\n      if (tNorm >= 0.22 && tNorm < 0.32) {\n        const p = (tNorm - 0.22) / 0.10;\n        return cy - Math.sin(p * Math.PI) * (h * 0.38 * amplitudeMult);\n      }\n      if (tNorm >= 0.32 && tNorm < 0.38) {\n        const p = (tNorm - 0.32) / 0.06;\n        return cy + Math.sin(p * Math.PI) * (h * 0.22 * amplitudeMult);\n      }\n\n      // Middle baseline segment behind organ\n      if (tNorm >= 0.38 && tNorm < 0.62) return cy;\n\n      // Right EKG Pulse Wave\n      if (tNorm >= 0.62 && tNorm < 0.68) {\n        const p = (tNorm - 0.62) / 0.06;\n        return cy - Math.sin(p * Math.PI) * (h * 0.14 * amplitudeMult);\n      }\n      if (tNorm >= 0.68 && tNorm < 0.74) {\n        const p = (tNorm - 0.68) / 0.06;\n        return cy + Math.sin(p * Math.PI) * (h * 0.2 * amplitudeMult);\n      }\n      if (tNorm >= 0.74 && tNorm < 0.84) {\n        const p = (tNorm - 0.74) / 0.10;\n        return cy - Math.sin(p * Math.PI) * (h * 0.4 * amplitudeMult);\n      }\n      if (tNorm >= 0.84 && tNorm < 0.92) {\n        const p = (tNorm - 0.84) / 0.08;\n        return cy + Math.sin(p * Math.PI) * (h * 0.22 * amplitudeMult);\n      }\n\n      return cy;\n    };\n\n    // Clean Classic Vector SVG Heart Icon\n    const drawClassicHeartIcon = (c: CanvasRenderingContext2D, cx: number, cy: number, scale: number) => {\n      c.save();\n      c.translate(cx, cy);\n      c.scale(scale * 6.5, scale * 6.5);\n      c.translate(-12, -12);\n\n      const path = new Path2D(\n        \"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z\"\n      );\n      c.fill(path);\n      c.restore();\n    };\n\n    const render = () => {\n      const isDark = resolvedTheme === \"dark\";\n      const currentBaselineY = height / 2;\n\n      // 100% Solid Opaque Base Colors (Zero Alpha Overlap Seams): the theme's\n      // --muted, with neutral hex fallbacks until it resolves.\n      const baseSolidColor = themeTrackColor ?? (isDark ? \"#27272a\" : \"#e4e4e7\");\n\n      const pulseFrequency = (bpm / 120) * speed * 0.35;\n      time += 0.004 * pulseFrequency * 60;\n\n      ctx.clearRect(0, 0, width, height);\n\n      const gridSize = width < 640 ? 24 : 32;\n\n      // 1. GRID BACKGROUND LAYER\n      if (showGrid) {\n        ctx.strokeStyle = isDark ? \"rgba(255, 255, 255, 0.04)\" : \"rgba(0, 0, 0, 0.035)\";\n        ctx.lineWidth = 1;\n\n        for (let x = 0; x < width; x += gridSize) {\n          ctx.beginPath();\n          ctx.moveTo(x, 0);\n          ctx.lineTo(x, height);\n          ctx.stroke();\n        }\n\n        for (let y = 0; y < height; y += gridSize) {\n          ctx.beginPath();\n          ctx.moveTo(0, y);\n          ctx.lineTo(width, y);\n          ctx.stroke();\n        }\n      }\n\n      // VARIANT 1: \"ecg-line\"\n      if (variant === \"ecg-line\") {\n        ctx.lineJoin = \"miter\";\n        ctx.lineCap = \"square\";\n        ctx.miterLimit = 10;\n\n        const cycleProgress = time * 0.38;\n        const beatIndex = Math.floor(cycleProgress);\n\n        const peakScale = 0.55 + Math.abs(Math.sin(beatIndex * 2.3) * 0.55 + Math.cos(beatIndex * 0.9) * 0.25);\n        const dipScale = 0.6 + Math.abs(Math.cos(beatIndex * 1.8) * 0.45);\n        const tWaveScale = 0.6 + Math.abs(Math.sin(beatIndex * 1.3) * 0.45);\n\n        const cycle = cycleProgress % 1;\n        const signalY = getSharpPiecewiseY(cycle, height, peakScale, dipScale, tWaveScale);\n\n        historyPoints.push(signalY);\n        if (historyPoints.length > maxHistory) {\n          historyPoints.shift();\n        }\n\n        const targetPercent = width >= 768 ? 0.82 : 0.72;\n        const targetThresholdX = width * targetPercent;\n        const stepX = targetThresholdX / (maxHistory - 1);\n        const strokeW = width < 640 ? 2.8 : 3.2;\n\n        // Ambient outer glow trace\n        ctx.save();\n        ctx.beginPath();\n        for (let i = 0; i < historyPoints.length; i++) {\n          const px = i * stepX;\n          const py = historyPoints[i];\n          if (i === 0) ctx.moveTo(px, py);\n          else ctx.lineTo(px, py);\n        }\n        ctx.strokeStyle = effectiveColor;\n        ctx.globalAlpha = 0.25;\n        ctx.lineWidth = strokeW * 2.2;\n        ctx.stroke();\n        ctx.restore();\n\n        // Main sharp line trace\n        ctx.save();\n        ctx.beginPath();\n        for (let i = 0; i < historyPoints.length; i++) {\n          const px = i * stepX;\n          const py = historyPoints[i];\n          if (i === 0) ctx.moveTo(px, py);\n          else ctx.lineTo(px, py);\n        }\n\n        ctx.strokeStyle = effectiveColor;\n        ctx.lineWidth = strokeW;\n        ctx.stroke();\n        ctx.restore();\n\n        // Active Glowing Tip Cursor\n        if (historyPoints.length > 0) {\n          const headX = Math.min((historyPoints.length - 1) * stepX, targetThresholdX);\n          const headY = historyPoints[historyPoints.length - 1];\n\n          const pulseRing = (time * 4) % 1;\n          const dotR = width < 640 ? 6 : 7;\n\n          ctx.strokeStyle = effectiveColor;\n          ctx.globalAlpha = (1 - pulseRing) * 0.85;\n          ctx.lineWidth = 2;\n          ctx.beginPath();\n          ctx.arc(headX, headY, dotR - 1 + pulseRing * 13, 0, Math.PI * 2);\n          ctx.stroke();\n          ctx.globalAlpha = 1.0;\n\n          ctx.fillStyle = effectiveColor;\n          ctx.beginPath();\n          ctx.arc(headX, headY, dotR, 0, Math.PI * 2);\n          ctx.fill();\n\n          ctx.fillStyle = \"#ffffff\";\n          ctx.beginPath();\n          ctx.arc(headX, headY, dotR * 0.4, 0, Math.PI * 2);\n          ctx.fill();\n        }\n      }\n\n      // VARIANT 2: \"cardiac-wave\"\n      else if (variant === \"cardiac-wave\") {\n        const leads = 3;\n        const strokeW = width < 640 ? 2.6 : 3.2;\n\n        for (let l = 0; l < leads; l++) {\n          ctx.beginPath();\n          const opacity = 1 - l * 0.28;\n          const freq = 0.012 + l * 0.004;\n\n          const waveModulation = 0.75 + Math.sin(time * 0.25 + l) * 0.35;\n          const amp = height * (0.2 - l * 0.04) * waveModulation;\n          const speedOffset = time * (0.35 + l * 0.12);\n\n          for (let x = 0; x < width; x += 3) {\n            const y = currentBaselineY + Math.sin(x * freq + speedOffset) * amp * Math.sin((x / width) * Math.PI);\n            if (x === 0) ctx.moveTo(x, y);\n            else ctx.lineTo(x, y);\n          }\n\n          ctx.strokeStyle = effectiveColor;\n          ctx.globalAlpha = opacity;\n          ctx.lineWidth = strokeW - l * 0.5;\n          ctx.stroke();\n        }\n        ctx.globalAlpha = 1.0;\n\n        // Soft bottom equalizer bars\n        const bars = width < 640 ? 18 : 24;\n        const barWidth = width / (bars * 2.2);\n        for (let i = 0; i < bars; i++) {\n          const dynamicHeightMod = 0.65 + Math.sin(time * 0.9 + i) * 0.4;\n          const barHeight = (12 + Math.abs(Math.sin(time * 0.9 + i * 0.3)) * (height * 0.18)) * dynamicHeightMod;\n          const bx = (i * width) / bars + barWidth;\n          const by = height - 16;\n\n          ctx.fillStyle = effectiveColor;\n          ctx.globalAlpha = 0.45 + Math.sin(time * 1.2 + i) * 0.2;\n          ctx.fillRect(bx, by - barHeight, barWidth, barHeight);\n        }\n        ctx.globalAlpha = 1.0;\n      }\n\n      // VARIANT 3: \"pulse-heart\"\n      else if (variant === \"pulse-heart\") {\n        ctx.lineJoin = \"round\";\n        ctx.lineCap = \"round\";\n\n        const padX = width < 640 ? 35 : 70;\n        const startX = padX;\n        const endX = width - padX;\n        const drawW = endX - startX;\n        const centerX = width / 2;\n        const baseHeartScale = Math.min(width, height) * 0.00165;\n\n        const sweepProgress = (time * 0.14) % 1;\n        const sweepX = startX + sweepProgress * drawW;\n\n        const distFromCenter = Math.abs(sweepX - centerX);\n        const heartPulse = distFromCenter < 110 ? Math.sin((1 - distFromCenter / 110) * Math.PI) * 0.12 : 0;\n        const currentHeartScale = baseHeartScale * (1 + heartPulse);\n\n        const heartOverlapRadius = 46 * currentHeartScale;\n        const heartLeftWallX = centerX - heartOverlapRadius;\n        const heartRightWallX = centerX + heartOverlapRadius;\n\n        const drawExteriorWaveformSegments = (c: CanvasRenderingContext2D) => {\n          c.beginPath();\n          const points = 350;\n\n          let drawingLeft = false;\n          for (let i = 0; i <= points; i++) {\n            const t = i / points;\n            const px = startX + t * drawW;\n            if (px > heartLeftWallX) break;\n\n            const py = getReferenceSmoothWaveY(t, height, 0.55);\n            if (!drawingLeft) {\n              c.moveTo(px, py);\n              drawingLeft = true;\n            } else {\n              c.lineTo(px, py);\n            }\n          }\n\n          let drawingRight = false;\n          for (let i = 0; i <= points; i++) {\n            const t = i / points;\n            const px = startX + t * drawW;\n            if (px < heartRightWallX) continue;\n\n            const py = getReferenceSmoothWaveY(t, height, 0.55);\n            if (!drawingRight) {\n              c.moveTo(px, py);\n              drawingRight = true;\n            } else {\n              c.lineTo(px, py);\n            }\n          }\n        };\n\n        const dotR = width < 640 ? 7 : 9;\n\n        // 1. Base Track Layer\n        ctx.save();\n        ctx.fillStyle = baseSolidColor;\n        ctx.beginPath();\n        ctx.arc(startX, currentBaselineY, dotR, 0, Math.PI * 2);\n        ctx.fill();\n\n        ctx.beginPath();\n        ctx.arc(endX, currentBaselineY, dotR, 0, Math.PI * 2);\n        ctx.fill();\n\n        drawExteriorWaveformSegments(ctx);\n        ctx.strokeStyle = baseSolidColor;\n        ctx.lineWidth = 3.8;\n        ctx.stroke();\n\n        drawClassicHeartIcon(ctx, centerX, currentBaselineY, currentHeartScale);\n        ctx.restore();\n\n        // 2. Vibrant Primary Color Sweep Layer\n        ctx.save();\n        ctx.beginPath();\n        ctx.rect(0, 0, sweepX, height);\n        ctx.clip();\n\n        drawExteriorWaveformSegments(ctx);\n        ctx.strokeStyle = effectiveColor;\n        ctx.globalAlpha = 0.3;\n        ctx.lineWidth = 8;\n        ctx.stroke();\n\n        drawExteriorWaveformSegments(ctx);\n        ctx.strokeStyle = effectiveColor;\n        ctx.globalAlpha = 1.0;\n        ctx.lineWidth = 4.2;\n        ctx.stroke();\n\n        ctx.save();\n        ctx.fillStyle = effectiveColor;\n        drawClassicHeartIcon(ctx, centerX, currentBaselineY, currentHeartScale);\n        ctx.restore();\n\n        if (sweepX >= startX) {\n          ctx.fillStyle = effectiveColor;\n          ctx.beginPath();\n          ctx.arc(startX, currentBaselineY, dotR, 0, Math.PI * 2);\n          ctx.fill();\n        }\n        if (sweepX >= endX - 5) {\n          ctx.fillStyle = effectiveColor;\n          ctx.beginPath();\n          ctx.arc(endX, currentBaselineY, dotR, 0, Math.PI * 2);\n          ctx.fill();\n        }\n\n        ctx.restore();\n\n        // 3. Leading Sweep Head Tip\n        if (sweepX >= startX && sweepX <= endX) {\n          if (sweepX < heartLeftWallX || sweepX > heartRightWallX) {\n            const sweepNorm = sweepProgress;\n            const sweepY = getReferenceSmoothWaveY(sweepNorm, height, 0.55);\n            const pulseRing = (time * 4) % 1;\n\n            ctx.save();\n            ctx.strokeStyle = effectiveColor;\n            ctx.globalAlpha = (1 - pulseRing) * 0.85;\n            ctx.lineWidth = 2.2;\n            ctx.beginPath();\n            ctx.arc(sweepX, sweepY, dotR + pulseRing * 14, 0, Math.PI * 2);\n            ctx.stroke();\n            ctx.globalAlpha = 1.0;\n\n            ctx.fillStyle = effectiveColor;\n            ctx.beginPath();\n            ctx.arc(sweepX, sweepY, dotR + 1, 0, Math.PI * 2);\n            ctx.fill();\n\n            ctx.fillStyle = \"#ffffff\";\n            ctx.beginPath();\n            ctx.arc(sweepX, sweepY, dotR * 0.4, 0, Math.PI * 2);\n            ctx.fill();\n            ctx.restore();\n          }\n        }\n      }\n\n      animationFrameRef.current = requestAnimationFrame(render);\n    };\n\n    render();\n\n    return () => {\n      if (animationFrameRef.current) {\n        cancelAnimationFrame(animationFrameRef.current);\n      }\n      resizeObserver.disconnect();\n    };\n  }, [variant, bpm, speed, effectiveColor, themeTrackColor, showGrid, resolvedTheme]);\n\n  return (\n    <div\n      ref={containerRef}\n      className={cn(\n        \"relative w-full h-full min-h-[450px] sm:min-h-[540px] lg:min-h-[640px] flex items-center justify-center select-none overflow-hidden rounded-2xl bg-card text-card-foreground border border-border p-3 sm:p-5 md:p-6\",\n        className\n      )}\n      {...props}\n    >\n      {/* Realtime Canvas Renderer */}\n      <canvas ref={canvasRef} className=\"block w-full h-full\" />\n\n      {/* Floating BPM Vital Telemetry Badge */}\n      {showBPM && (\n        <div className=\"absolute top-4 left-4 sm:top-5 sm:left-5 flex items-center gap-2 px-3 py-1.5 sm:px-4 sm:py-2 rounded-xl bg-background/90 backdrop-blur-md border border-border shadow-sm pointer-events-none z-10\">\n          <div className=\"relative flex items-center justify-center\">\n            <span\n              className=\"w-2.5 h-2.5 rounded-full animate-ping absolute\"\n              style={{ backgroundColor: effectiveColor }}\n            />\n            <span\n              className=\"w-2.5 h-2.5 rounded-full relative\"\n              style={{ backgroundColor: effectiveColor }}\n            />\n          </div>\n          <div className=\"flex items-baseline gap-1\">\n            <span className=\"text-sm sm:text-base font-semibold tracking-tight text-foreground leading-none\">\n              {bpm}\n            </span>\n            <span className=\"text-[9px] sm:text-[10px] font-semibold text-muted-foreground uppercase leading-none\">\n              BPM\n            </span>\n          </div>\n        </div>\n      )}\n    </div>\n  );\n}\n\nexport default HeartSignal;\n",
      "type": "registry:component",
      "target": "components/custom/blocks/HeartSignalBlock.tsx"
    }
  ],
  "docs": "Named export: HeartSignal. Supports 2 smooth variants (ecg-line and cardiac-wave), live BPM telemetry badge, speed control, and active theme color integration.",
  "categories": [
    "data-display",
    "media"
  ],
  "type": "registry:component"
}
