@theguild/components 9.2.0-alpha-20250121193843-60a247ed3712e2dc1f311a48addea18f794156af → 9.2.0-alpha-20250121194041-edcf00152e21881e8e2ac98bbc3c33e8d8e5ec81

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.
@@ -5,10 +5,14 @@ interface HeroProps {
5
5
  heading: string;
6
6
  text: string;
7
7
  checkmarks: string[];
8
- logo?: ReactElement<{
9
- className?: string;
10
- fill?: string;
11
- }>;
8
+ top?: {
9
+ logo: ReactElement<{
10
+ className?: string;
11
+ fill?: string;
12
+ }>;
13
+ } | {
14
+ children: ReactNode;
15
+ };
12
16
  children?: ReactNode;
13
17
  }
14
18
  declare const Hero: FC<HeroProps>;
@@ -16,13 +16,13 @@ const Hero = (props) => {
16
16
  ),
17
17
  children: [
18
18
  /* @__PURE__ */ jsxs("div", { className: "relative", children: [
19
- props.logo && cloneElement(props.logo, {
19
+ props.top && ("logo" in props.top ? cloneElement(props.top.logo, {
20
20
  fill: `url(#${gradientWhiteId})`,
21
21
  className: cn(
22
22
  "absolute inset-1/2 size-1/2 -translate-x-1/2 -translate-y-1/2",
23
- props.logo.props.className
23
+ props.top.logo.props.className
24
24
  )
25
- }),
25
+ }) : props.top.children),
26
26
  /* @__PURE__ */ jsxs(
27
27
  "svg",
28
28
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theguild/components",
3
- "version": "9.2.0-alpha-20250121193843-60a247ed3712e2dc1f311a48addea18f794156af",
3
+ "version": "9.2.0-alpha-20250121194041-edcf00152e21881e8e2ac98bbc3c33e8d8e5ec81",
4
4
  "repository": {
5
5
  "url": "https://github.com/the-guild-org/docs",
6
6
  "directory": "packages/components"