@theguild/components 9.2.0-alpha-20250121181149-9550398f482790af47bb57c0d8e988595400460a → 9.2.0-alpha-20250121184546-179debd67115ecf59d6277e4cd3c7249b2f54f79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  import { DetailedHTMLProps, HtmlHTMLAttributes, FC } from 'react';
2
2
 
3
3
  interface BodyProps extends DetailedHTMLProps<HtmlHTMLAttributes<HTMLBodyElement>, HTMLBodyElement> {
4
- lightOnlyPages?: string[];
4
+ lightOnlyPages: string[];
5
5
  }
6
6
  declare const Body: FC<BodyProps>;
7
7
 
@@ -4,8 +4,8 @@ import { usePathname } from "next/navigation";
4
4
  import { cn } from "../cn";
5
5
  const Body = ({ lightOnlyPages, children, className, ...rest }) => {
6
6
  const pathname = usePathname();
7
- const isLightOnlyPage = lightOnlyPages?.includes(pathname);
8
- return /* @__PURE__ */ jsx("body", { className: cn(className, isLightOnlyPage && "light text-green-1000"), ...rest, children });
7
+ const isLightOnlyPage = lightOnlyPages.includes(pathname);
8
+ return /* @__PURE__ */ jsx("body", { className: cn(className, isLightOnlyPage && "light text-green-1000 [&_#h-navmenu-container]:max-w-[1392px]"), ...rest, children });
9
9
  };
10
10
  export {
11
11
  Body
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theguild/components",
3
- "version": "9.2.0-alpha-20250121181149-9550398f482790af47bb57c0d8e988595400460a",
3
+ "version": "9.2.0-alpha-20250121184546-179debd67115ecf59d6277e4cd3c7249b2f54f79",
4
4
  "repository": {
5
5
  "url": "https://github.com/the-guild-org/docs",
6
6
  "directory": "packages/components"