{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "site-header-parts",
  "title": "Site header parts",
  "description": "What the Site header blocks share: the links they take, the row of menus a wide screen shows, the sheet a phone opens instead, the button that opens it, and the way a header follows the page’s scroll.",
  "dependencies": [],
  "registryDependencies": [
    "https://kinoui.com/r/icon-tile.json",
    "https://kinoui.com/r/button.json",
    "https://kinoui.com/r/hero-parts.json",
    "https://kinoui.com/r/navigation-menu.json",
    "https://kinoui.com/r/resize.json",
    "https://kinoui.com/r/scroll.json",
    "https://kinoui.com/r/drawer.json",
    "https://kinoui.com/r/theme.json"
  ],
  "files": [
    {
      "path": "registry/lib/site-header-parts.tsx",
      "content": "'use client'\n\nimport { buttonVariants } from '@/registry/components/kino/button'\nimport {\n  Drawer,\n  DrawerBody,\n  DrawerContent,\n  DrawerFooter,\n  DrawerHeader,\n  DrawerTitle,\n  DrawerTrigger,\n} from '@/registry/components/kino/drawer'\nimport { IconTile } from '@/registry/components/kino/icon-tile'\nimport {\n  NavigationMenu,\n  NavigationMenuContent,\n  NavigationMenuItem,\n  NavigationMenuLink,\n  NavigationMenuList,\n  NavigationMenuTrigger,\n} from '@/registry/components/kino/navigation-menu'\nimport { IconPlaceholder } from '@/registry/icons/icon-placeholder'\nimport { pageColumnClassName } from '@/registry/lib/hero-parts'\nimport { withoutTransition } from '@/registry/lib/resize'\nimport { scrollerOf } from '@/registry/lib/scroll'\nimport { Button as ButtonPrimitive } from '@ui-sdk/react/button'\nimport {\n  type ComponentProps,\n  type ReactNode,\n  type RefObject,\n  useEffect,\n  useRef,\n  useState,\n} from 'react'\n\nimport { cn } from '@/lib/utils'\n\n/*\n * What the Site header blocks share: the links they take, the row of menus a\n * wide screen shows, the sheet a phone opens instead, the button that opens it\n * and the way a header follows the page's scroll.\n */\n\n/** A page the header links to. */\ninterface SiteHeaderLink {\n  label: string\n  href: string\n  /** A line under the label, in a section's panel. */\n  description?: string\n  /** An icon beside the label, in a section's panel and the phone's menu. */\n  icon?: ReactNode\n  /** The page the visitor is on: marked for them and for screen readers. */\n  current?: boolean\n}\n\n/** A group of links that opens as a panel, such as Product. */\ninterface SiteHeaderSection {\n  label: string\n  links: SiteHeaderLink[]\n  /** A card beside the links in the panel, such as what's new: a `NavigationMenuLink`. */\n  feature?: ReactNode\n}\n\ntype SiteHeaderItem = SiteHeaderLink | SiteHeaderSection\n\n/** What every Site header block takes. */\ninterface SiteHeaderProps extends Omit<ComponentProps<'header'>, 'children'> {\n  /** A link to the home page, around the logo. */\n  logo: ReactNode\n  items: SiteHeaderItem[]\n  /** Links in a Button's look, such as Sign in and Get started: the main one last. */\n  actions?: ReactNode\n  /** The navigation's name for screen readers. */\n  label?: string\n}\n\nfunction isSection(item: SiteHeaderItem): item is SiteHeaderSection {\n  return 'links' in item\n}\n\n/** The header's column: the Hero's, so their edges line up. */\nconst siteHeaderColumnClassName = pageColumnClassName\n\n/*\n * Each part's room: the actions show from 36rem, where they fit beside the\n * logo and the menu's button, and the menus from 48rem, where four short\n * ones fit, unless `useHeaderFit` finds they don't: then they step out of\n * the row, kept measurable but unseen, and the phone's menu holds them.\n */\nconst siteHeaderNavClassName =\n  'hidden @3xl/site-header:flex group-data-crowded/header:invisible group-data-crowded/header:absolute'\nconst siteHeaderActionsClassName =\n  'hidden items-center gap-2 @xl/site-header:flex [&>*]:shrink-0'\nconst siteHeaderMenuClassName = '@3xl/site-header:group-not-data-crowded/header:hidden'\n\n/** What a section's link shows, in its panel and on a phone: its icon in an Icon tile, its label and the line under it. */\nfunction SiteHeaderLinkBody({ link }: { link: SiteHeaderLink }) {\n  return (\n    <>\n      {link.icon ? <IconTile size='md'>{link.icon}</IconTile> : null}\n      <span className='flex min-w-0 flex-col gap-0.5'>\n        <span className='leading-snug font-medium'>{link.label}</span>\n        {link.description ? (\n          <span className='text-muted-foreground text-[0.8125rem] leading-snug text-pretty'>\n            {link.description}\n          </span>\n        ) : null}\n      </span>\n    </>\n  )\n}\n\n/** A link in a section's panel. */\nfunction PanelLink({ link }: { link: SiteHeaderLink }) {\n  return (\n    <NavigationMenuLink\n      href={link.href}\n      current={link.current}\n      className='flex-row items-start gap-3'\n    >\n      <SiteHeaderLinkBody link={link} />\n    </NavigationMenuLink>\n  )\n}\n\n/**\n * A section's panel: its links in one column, or two once there are four,\n * and its feature beside them.\n */\nfunction SectionPanel({ section }: { section: SiteHeaderSection }) {\n  const twoColumns = section.links.length >= 4\n  return (\n    <NavigationMenuContent\n      // Its links are in the page from the start, hidden, so search engines find them.\n      keepMounted\n      className={cn(\n        '@container',\n        twoColumns ? 'w-[36rem]' : 'w-80',\n        section.feature && (twoColumns ? 'w-[48rem]' : 'w-[34rem]'),\n      )}\n    >\n      <div className={cn('grid gap-2', section.feature && '@lg:grid-cols-[1fr_13rem]')}>\n        <div\n          className={cn('grid content-start gap-0.5', twoColumns && '@md:grid-cols-2')}\n        >\n          {section.links.map((link) => (\n            <PanelLink key={link.href} link={link} />\n          ))}\n        </div>\n        {section.feature}\n      </div>\n    </NavigationMenuContent>\n  )\n}\n\n/** The row of menus a wide screen shows: a section opens its panel, a link goes straight to its page. */\nfunction SiteHeaderNav({\n  items,\n  label,\n  className,\n}: {\n  items: SiteHeaderItem[]\n  label: string\n  className?: string\n}) {\n  return (\n    <NavigationMenu aria-label={label} className={className}>\n      <NavigationMenuList>\n        {items.map((item) =>\n          isSection(item) ? (\n            <NavigationMenuItem key={item.label}>\n              <NavigationMenuTrigger>{item.label}</NavigationMenuTrigger>\n              <SectionPanel section={item} />\n            </NavigationMenuItem>\n          ) : (\n            <NavigationMenuItem key={item.href}>\n              <NavigationMenuLink href={item.href} current={item.current}>\n                {item.label}\n              </NavigationMenuLink>\n            </NavigationMenuItem>\n          ),\n        )}\n      </NavigationMenuList>\n    </NavigationMenu>\n  )\n}\n\n/**\n * Three lines that fold into a cross while the menu its button opens is\n * open: the outer two close onto the middle as it fades, then turn into a\n * cross, and turn back before they part again.\n */\nfunction MenuToggleIcon({ className }: { className?: string }) {\n  // The lines meet in the first part of the morph and turn in the rest.\n  const slide =\n    'transition-[transform] duration-[calc(var(--motion-morph-duration)*0.5)] ease-(--motion-morph-fade-easing) group-not-aria-expanded/menu:delay-[calc(var(--motion-morph-duration)*0.4)] motion-reduce:transition-none'\n  const turn =\n    '[transform-box:fill-box] origin-center transition-[transform] duration-(--motion-morph-duration) ease-(--motion-morph-easing) group-aria-expanded/menu:delay-[calc(var(--motion-morph-duration)*0.4)] motion-reduce:transition-none'\n  return (\n    <svg\n      aria-hidden\n      viewBox='0 0 16 16'\n      fill='none'\n      stroke='currentColor'\n      strokeWidth='1.5'\n      strokeLinecap='round'\n      data-slot='site-header-menu-icon'\n      className={cn('size-4', className)}\n    >\n      <g className={cn(slide, 'group-aria-expanded/menu:[transform:translateY(4px)]')}>\n        <path\n          d='M2.5 4h11'\n          className={cn(turn, 'group-aria-expanded/menu:[transform:rotate(45deg)]')}\n        />\n      </g>\n      <path\n        d='M2.5 8h11'\n        className='transition-opacity duration-[calc(var(--motion-morph-duration)*0.5)] ease-(--motion-morph-fade-easing) group-aria-expanded/menu:opacity-0'\n      />\n      <g className={cn(slide, 'group-aria-expanded/menu:[transform:translateY(-4px)]')}>\n        <path\n          d='M2.5 12h11'\n          className={cn(turn, 'group-aria-expanded/menu:[transform:rotate(-45deg)]')}\n        />\n      </g>\n    </svg>\n  )\n}\n\n/** The look of the button that opens the phone's menu. */\nconst menuButtonClassName = cn(\n  buttonVariants({ variant: 'ghost', size: 'icon' }),\n  'group/menu',\n)\n\n/** A row of the phone's menu: a link, or a section's trigger, as tall as a thumb needs. */\nconst phoneRowClassName =\n  'focus-visible:ring-ring/50 hover:bg-muted/60 aria-[current=page]:bg-muted flex min-h-11 w-full items-center gap-3 rounded-(--control-radius-capped) px-(--control-padding) text-base font-medium transition-colors duration-(--motion-press-duration) ease-(--motion-press-fade-easing) focus-visible:ring-3 focus-visible:outline-hidden forced-colors:aria-[current=page]:underline'\n\n/** The actions at the foot of the phone's menu, each its width, the main one first. */\nconst phoneActionsClassName = 'flex flex-col-reverse gap-2 [&>*]:w-full'\n\n/** One screen of the phone's menu: the list, or a section's links. It slides aside while the other shows. */\nconst screenClassName =\n  'col-start-1 row-start-1 flex min-w-0 flex-col transition-[opacity,translate] duration-(--motion-layout-duration) ease-[var(--motion-layout-fade-easing),var(--motion-layout-easing)] motion-reduce:transition-opacity'\n\nfunction ChevronIcon({ back = false }: { back?: boolean }) {\n  return back ? (\n    <IconPlaceholder\n      lucide='ChevronLeftIcon'\n      tabler='IconChevronLeft'\n      hugeicons='ArrowLeft01Icon'\n      phosphor='CaretLeftIcon'\n      remixicon='RiArrowLeftSLine'\n      aria-hidden\n      className='size-4 shrink-0 rtl:-scale-x-100'\n    />\n  ) : (\n    <IconPlaceholder\n      lucide='ChevronRightIcon'\n      tabler='IconChevronRight'\n      hugeicons='ArrowRight01Icon'\n      phosphor='CaretRightIcon'\n      remixicon='RiArrowRightSLine'\n      aria-hidden\n      className='text-muted-foreground ms-auto size-4 shrink-0 rtl:-scale-x-100'\n    />\n  )\n}\n\n/**\n * The phone's menu, opened by a button in the header: a sheet from the side\n * holding the list of links and sections, with the logo at its top and the\n * actions at its foot, each the sheet's width, the main one first. A section slides in as a screen of its own, over the list as it\n * steps back, and Back slides it away again. Focus goes to Back as a section\n * opens and to its row as it closes. Following a link closes the sheet.\n */\nfunction SiteHeaderPhoneMenu({\n  logo,\n  items,\n  actions,\n  label,\n}: {\n  logo: ReactNode\n  items: SiteHeaderItem[]\n  actions?: ReactNode\n  label: string\n}) {\n  const [open, setOpen] = useState(false)\n  // The section on screen, and the last one shown, which stays drawn as it slides away.\n  const [section, setSection] = useState<string | null>(null)\n  const [drawn, setDrawn] = useState<string | null>(null)\n  const back = useRef<HTMLButtonElement>(null)\n  const list = useRef<HTMLDivElement>(null)\n  const moved = useRef(false)\n\n  useEffect(() => {\n    if (!moved.current) return\n    moved.current = false\n    if (section) back.current?.focus()\n    else\n      list.current\n        ?.querySelector<HTMLElement>(`[data-section=\"${CSS.escape(drawn ?? '')}\"]`)\n        ?.focus()\n  }, [section, drawn])\n\n  const go = (to: string | null) => {\n    moved.current = true\n    if (to) setDrawn(to)\n    setSection(to)\n  }\n  const close = () => setOpen(false)\n  const shown = items.find((item) => isSection(item) && item.label === drawn)\n\n  return (\n    <Drawer\n      side='end'\n      open={open}\n      onOpenChange={(next) => {\n        // Opened again, it starts from the list.\n        if (next) setSection(null)\n        setOpen(next)\n      }}\n    >\n      <DrawerTrigger aria-label='Menu' className={menuButtonClassName}>\n        <MenuToggleIcon />\n      </DrawerTrigger>\n      <DrawerContent\n        className='w-[min(24rem,calc(100%-(--spacing(12))))]'\n        // Any link in it closes it, the logo and the actions too, so it never stays over the page it opened.\n        onClick={(event) => {\n          if (event.target instanceof Element && event.target.closest('a[href]')) close()\n        }}\n      >\n        <DrawerHeader className='border-b'>\n          {/* The logo where the header showed it; the title names the sheet for screen readers. */}\n          <DrawerTitle className='sr-only'>Menu</DrawerTitle>\n          {logo}\n        </DrawerHeader>\n        <DrawerBody className='p-0'>\n          <nav aria-label={label} className='grid overflow-x-clip p-(--surface-padding)'>\n            <div\n              ref={list}\n              inert={section !== null}\n              className={cn(\n                screenClassName,\n                section !== null &&\n                  '-translate-x-(--site-header-recede,25%) opacity-0 rtl:translate-x-(--site-header-recede,25%)',\n              )}\n            >\n              <ul className='flex flex-col'>\n                {items.map((item) => (\n                  <li key={item.label} className='border-b last:border-b-0'>\n                    {isSection(item) ? (\n                      <ButtonPrimitive\n                        data-section={item.label}\n                        onClick={() => go(item.label)}\n                        className={phoneRowClassName}\n                      >\n                        {item.label}\n                        <ChevronIcon />\n                      </ButtonPrimitive>\n                    ) : (\n                      <a\n                        href={item.href}\n                        aria-current={item.current ? 'page' : undefined}\n                        className={phoneRowClassName}\n                      >\n                        {item.label}\n                      </a>\n                    )}\n                  </li>\n                ))}\n              </ul>\n            </div>\n            <div\n              inert={section === null}\n              className={cn(\n                screenClassName,\n                'gap-2',\n                section === null && 'translate-x-full opacity-0 rtl:-translate-x-full',\n              )}\n            >\n              <ButtonPrimitive\n                ref={back}\n                onClick={() => go(null)}\n                className={cn(\n                  phoneRowClassName,\n                  'text-muted-foreground hover:text-foreground w-fit gap-1.5 text-sm transition-colors duration-(--motion-press-duration) ease-(--motion-press-fade-easing)',\n                )}\n              >\n                <ChevronIcon back />\n                Back\n              </ButtonPrimitive>\n              {shown && isSection(shown) ? (\n                <>\n                  <h3 className='px-(--control-padding) text-lg font-medium'>\n                    {shown.label}\n                  </h3>\n                  <ul className='flex flex-col gap-1'>\n                    {shown.links.map((link) => (\n                      <li key={link.href}>\n                        <a\n                          href={link.href}\n                          aria-current={link.current ? 'page' : undefined}\n                          className='focus-visible:ring-ring/50 hover:bg-muted aria-[current=page]:bg-muted flex items-start gap-3 rounded-(--control-radius-capped) p-(--control-padding) transition-colors duration-(--motion-press-duration) ease-(--motion-press-fade-easing) focus-visible:ring-3 focus-visible:outline-hidden'\n                        >\n                          <SiteHeaderLinkBody link={link} />\n                        </a>\n                      </li>\n                    ))}\n                  </ul>\n                </>\n              ) : null}\n            </div>\n          </nav>\n        </DrawerBody>\n        {actions ? (\n          <DrawerFooter className={phoneActionsClassName}>{actions}</DrawerFooter>\n        ) : null}\n      </DrawerContent>\n    </Drawer>\n  )\n}\n\n/**\n * Whether a header's parts fit side by side in its row: the logo, the menus\n * and the actions, `gap` apart, in `row` pixels. A part with nothing in it,\n * such as actions hidden on a narrow screen, takes no gap.\n */\nfunction headerFits({\n  row,\n  start,\n  nav,\n  actions,\n  gap,\n}: {\n  row: number\n  start: number\n  nav: number\n  actions: number\n  gap: number\n}) {\n  const parts = [start, nav, actions].filter((width) => width > 0)\n  return parts.reduce((sum, width) => sum + width, 0) + gap * (parts.length - 1) <= row\n}\n\n/**\n * Marks the header `data-crowded` while its menus don't fit beside the logo\n * and the actions, such as long labels in a narrow window, so the phone's\n * menu holds them instead. The menus stay measurable while they are out of\n * the row, so it knows when they fit again. The row is the logo's parent,\n * the part marked `data-site-header-part='start'`.\n */\nfunction useHeaderFit(ref: RefObject<HTMLElement | null>) {\n  useEffect(() => {\n    const header = ref.current\n    const start = header?.querySelector<HTMLElement>('[data-site-header-part=start]')\n    const nav = header?.querySelector<HTMLElement>('[data-slot=navigation-menu]')\n    const actions = header?.querySelector<HTMLElement>('[data-site-header-part=actions]')\n    const row = start?.parentElement\n    if (!header || !start || !nav || !row) return\n    const measure = () => {\n      const style = getComputedStyle(row)\n      const fits =\n        nav.offsetWidth === 0 ||\n        headerFits({\n          row:\n            row.clientWidth -\n            (Number.parseFloat(style.paddingInlineStart) || 0) -\n            (Number.parseFloat(style.paddingInlineEnd) || 0),\n          start: start.offsetWidth,\n          nav: nav.offsetWidth,\n          actions: actions?.offsetWidth ?? 0,\n          gap: Number.parseFloat(style.columnGap) || 0,\n        })\n      header.toggleAttribute('data-crowded', !fits)\n    }\n    measure()\n    const observer = new ResizeObserver(measure)\n    for (const each of [row, start, nav, actions]) if (each) observer.observe(each)\n    return () => observer.disconnect()\n  }, [ref])\n}\n\n/**\n * Whether a header that draws in is drawn in. It draws in as soon as the page\n * scrolls, even under the pointer, or a scroll there shows a wide bar until\n * the pointer leaves. Back at the top it stays drawn in while the pointer is\n * on it, so nothing slides from under the pointer, and an open menu holds it\n * either way.\n */\nfunction headerDrawn({\n  drawn,\n  scrolled,\n  pointed,\n  open,\n}: {\n  drawn: boolean\n  scrolled: boolean\n  pointed: boolean\n  open: boolean\n}): boolean {\n  if (open) return drawn\n  if (!scrolled && pointed) return drawn\n  return scrolled\n}\n\n/** Where the page has scrolled to, as the header shows it. */\ninterface HeaderScroll {\n  /** Past the top: the header shows its surface. */\n  scrolled: boolean\n  /** Moved out of the way, while the visitor reads on down. */\n  hidden: boolean\n}\n\n/** How far the page moves one way before a hiding header follows it, in pixels. */\nconst HIDE_AFTER_PX = 8\n\n/**\n * Where a header stands after the page scrolls from `from` to `to`. It shows\n * its surface once the page is past the top. With `hides`, it moves out of\n * the way once the page has scrolled past its height and on down by\n * `HIDE_AFTER_PX`, and comes back as soon as the page moves up by as much,\n * or reaches the top. `anchor` is where the page last turned.\n */\nfunction headerScroll({\n  previous,\n  anchor,\n  to,\n  height,\n  hides,\n}: {\n  previous: HeaderScroll\n  anchor: number\n  to: number\n  height: number\n  hides: boolean\n}): { state: HeaderScroll; anchor: number } {\n  const scrolled = to > 0\n  if (!hides || to <= height) return { state: { scrolled, hidden: false }, anchor: to }\n  const moved = to - anchor\n  if (previous.hidden ? moved < -HIDE_AFTER_PX : moved > HIDE_AFTER_PX) {\n    return { state: { scrolled, hidden: !previous.hidden }, anchor: to }\n  }\n  // Still going the same way: the turn point follows, so a turn counts from where it happens.\n  const sameWay = previous.hidden ? moved > 0 : moved < 0\n  return {\n    state: { scrolled, hidden: previous.hidden },\n    anchor: sameWay ? to : anchor,\n  }\n}\n\n/**\n * Follows the scroll of the box the header sits in, or the page, and marks\n * the header `data-scrolled` past the top and, with `hides`, `data-hidden`\n * while it is out of the way. It writes the attributes itself, so nothing\n * renders as the page scrolls, and writes the first of them with no\n * transition, so a page loaded part way down shows its header settled.\n * A header that holds keyboard focus or an open menu never hides.\n *\n * With `draws`, it also marks `data-drawn` as it marks `data-scrolled`, but\n * holds it while a menu is open, and keeps it while the pointer is on the\n * header back at the top, so what moves on it never slides out from under\n * the pointer as it is about to be used.\n */\nfunction useHeaderScroll(\n  ref: RefObject<HTMLElement | null>,\n  { hides = false, draws = false }: { hides?: boolean; draws?: boolean } = {},\n) {\n  useEffect(() => {\n    const header = ref.current\n    if (!header) return\n    // The box that scrolls the header, or the page. One whose content arrives\n    // later only scrolls later, so the first scroll from any box around the\n    // header makes it the one followed.\n    let box = scrollerOf(header)\n    const position = () => (box ? box.scrollTop : window.scrollY)\n    let state: HeaderScroll = { scrolled: false, hidden: false }\n    let drawn = false\n    let pointed = false\n    let anchor = position()\n    // A trigger says its popup is open.\n    const open = () => header.querySelector('[aria-expanded=true]') !== null\n    const write = () => {\n      header.toggleAttribute('data-scrolled', state.scrolled)\n      header.toggleAttribute('data-hidden', state.hidden)\n      if (!draws) return\n      drawn = headerDrawn({ drawn, scrolled: state.scrolled, pointed, open: open() })\n      header.toggleAttribute('data-drawn', drawn)\n    }\n    const update = () => {\n      const next = headerScroll({\n        previous: state,\n        anchor,\n        to: Math.max(0, position()),\n        height: header.offsetHeight,\n        hides,\n      })\n      anchor = next.anchor\n      // Focus from the keyboard only: a link clicked with a mouse keeps focus too.\n      const busy = header.matches(':has(:focus-visible)') || open()\n      state = busy ? { ...next.state, hidden: false } : next.state\n      write()\n    }\n    // Focus coming in by keyboard brings a hidden header back.\n    const reveal = (event: FocusEvent) => {\n      if (!state.hidden || !(event.target instanceof Element)) return\n      if (!event.target.matches(':focus-visible')) return\n      state = { ...state, hidden: false }\n      write()\n    }\n    const enter = () => (pointed = true)\n    const leave = () => {\n      pointed = false\n      write()\n    }\n    // A menu that closes lets what it held catch up.\n    const menus = new MutationObserver(write)\n    const scroll = (event: Event) => {\n      const from = event.target\n      if (from instanceof HTMLElement) {\n        if (from === header || !from.contains(header)) return\n        box = from\n      } else if (box) return\n      update()\n    }\n    withoutTransition(header, update, { subtree: true })\n    // Scroll events don't bubble, so they are caught on their way down.\n    document.addEventListener('scroll', scroll, { capture: true, passive: true })\n    header.addEventListener('focusin', reveal)\n    if (draws) {\n      header.addEventListener('pointerenter', enter)\n      header.addEventListener('pointerleave', leave)\n      menus.observe(header, { subtree: true, attributeFilter: ['aria-expanded'] })\n    }\n    return () => {\n      document.removeEventListener('scroll', scroll, { capture: true })\n      header.removeEventListener('focusin', reveal)\n      header.removeEventListener('pointerenter', enter)\n      header.removeEventListener('pointerleave', leave)\n      menus.disconnect()\n    }\n  }, [ref, hides, draws])\n}\n\nexport {\n  headerDrawn,\n  headerFits,\n  headerScroll,\n  type HeaderScroll,\n  siteHeaderActionsClassName,\n  siteHeaderColumnClassName,\n  siteHeaderMenuClassName,\n  siteHeaderNavClassName,\n  type SiteHeaderItem,\n  type SiteHeaderLink,\n  SiteHeaderNav,\n  SiteHeaderPhoneMenu,\n  type SiteHeaderProps,\n  type SiteHeaderSection,\n  useHeaderFit,\n  useHeaderScroll,\n}\n",
      "type": "registry:lib",
      "target": "@lib/site-header-parts.tsx"
    }
  ],
  "type": "registry:lib"
}