{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "site-shell-static",
  "title": "Site Shell Static",
  "description": "The shell of a site that hydrates no part of the shell: theme provider, skip link, header, page and footer.",
  "dependencies": [
    "@vllnt/ui@^0.3.0"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/default/site-shell-static/site-shell-static.tsx",
      "content": "import type { ReactNode } from \"react\";\n\nimport { SiteMain } from \"@vllnt/ui\";\nimport { SkipLink } from \"@vllnt/ui\";\nimport { SiteThemeProvider } from \"@vllnt/ui\";\n\n/** Props for {@link SiteShellStatic}. */\nexport type SiteShellStaticProps = {\n  /** The page. */\n  children: ReactNode;\n  /** The footer: `SiteFooter`, or the app's own component around it. */\n  footer: ReactNode;\n  /** The header: `SiteHeaderStatic`, or the app's own component around it. */\n  header: ReactNode;\n  /** Classes for the `main` element, e.g. `flex-1` in a flex column body. */\n  mainClassName?: string;\n  /** The text of the skip link, which jumps to the page. */\n  skipLabel: string;\n};\n\n/**\n * The shell of a site that hydrates no part of the shell: the theme provider,\n * the skip link, the header, the page and the footer, in the order of\n * `SiteShell`. It has no settings, because a setting is a control that needs\n * script, so the site follows the system.\n *\n * It lives in its own module and never imports the theme control: a page that\n * renders this shell ships none of the control's code. Pair it with\n * `SiteHeaderStatic`.\n *\n * The theme provider puts the `dark` or `light` class on `<html>` with its one\n * inline script, before the first paint. It leaves `color-scheme` to the\n * stylesheet of the app, which follows the system as it changes; on a page that\n * runs no script, the provider reads the system once. Inside a theme provider\n * of the app, this one adds nothing.\n *\n * @example\n * <SiteShellStatic\n *   footer={<SiteFooter {...footer} />}\n *   header={<SiteHeaderStatic {...header} />}\n *   skipLabel=\"Skip to content\"\n * >\n *   {children}\n * </SiteShellStatic>\n */\nconst SiteShellStatic = /* @__PURE__ */ named(\n  \"SiteShellStatic\",\n  ({\n    children,\n    footer,\n    header,\n    mainClassName,\n    skipLabel,\n  }: SiteShellStaticProps): React.ReactElement => (\n    <SiteThemeProvider enableColorScheme={false}>\n      <SkipLink>{skipLabel}</SkipLink>\n      {header}\n      <SiteMain\n        {...(mainClassName === undefined ? {} : { className: mainClassName })}\n      >\n        {children}\n      </SiteMain>\n      {footer}\n    </SiteThemeProvider>\n  ),\n);\n\nexport { SiteShellStatic };\n\nfunction named<TComponent extends object>(\n  displayName: string,\n  component: TComponent,\n): TComponent & { displayName: string };\nfunction named<TComponent extends object, TStatics extends object>(\n  displayName: string,\n  component: TComponent,\n  statics: () => TStatics,\n): TComponent & TStatics & { displayName: string };\nfunction named(\n  displayName: string,\n  component: object,\n  statics?: () => object,\n): object {\n  return Object.assign(component, statics?.(), { displayName });\n}\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component",
  "version": "0.3.0",
  "stability": "stable",
  "platforms": [
    "web"
  ]
}
