@theguild/components 9.2.0-alpha-20250121181149-9550398f482790af47bb57c0d8e988595400460a → 9.2.0-alpha-20250121185028-bbc679e613c82498fe385309c2bd6c2b2f149572

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,18 @@ 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(
9
+ "body",
10
+ {
11
+ className: cn(
12
+ className,
13
+ isLightOnlyPage && "light text-green-1000 [&_#h-navmenu-container]:max-w-[1392px]"
14
+ ),
15
+ ...rest,
16
+ children
17
+ }
18
+ );
9
19
  };
10
20
  export {
11
21
  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-20250121185028-bbc679e613c82498fe385309c2bd6c2b2f149572",
4
4
  "repository": {
5
5
  "url": "https://github.com/the-guild-org/docs",
6
6
  "directory": "packages/components"