@theguild/components 9.2.0-alpha-20250121194517-4eee7cf80606d4e9cc5f9602bdd6001647ba5fb4 → 9.2.0-alpha-20250121194733-98250190ee15baf315f766dc3246ee829ef4c660

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,4 +1,4 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
1
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
2
  import { cloneElement, useId } from "react";
3
3
  import { cn } from "../../cn";
4
4
  import { Heading } from "../heading";
@@ -15,14 +15,14 @@ const Hero = (props) => {
15
15
  props.className
16
16
  ),
17
17
  children: [
18
- /* @__PURE__ */ jsxs("div", { className: "relative", children: [
19
- props.top && ("logo" in props.top ? cloneElement(props.top.logo, {
18
+ /* @__PURE__ */ jsx("div", { className: "relative", children: props.top && ("logo" in props.top ? /* @__PURE__ */ jsxs(Fragment, { children: [
19
+ 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
23
  props.top.logo.props.className
24
24
  )
25
- }) : props.top.children),
25
+ }),
26
26
  /* @__PURE__ */ jsxs(
27
27
  "svg",
28
28
  {
@@ -95,7 +95,7 @@ const Hero = (props) => {
95
95
  ]
96
96
  }
97
97
  )
98
- ] }),
98
+ ] }) : props.top.children) }),
99
99
  /* @__PURE__ */ jsx(Heading, { as: "h1", size: "xl", className: "mx-auto max-w-3xl text-balance text-center", children: props.heading }),
100
100
  /* @__PURE__ */ jsx("p", { className: "mx-auto w-[512px] max-w-[80%] text-center leading-6 text-green-800", children: props.text }),
101
101
  /* @__PURE__ */ jsx("ul", { className: "mx-auto flex list-none gap-x-6 gap-y-2 text-sm font-medium max-md:flex-col", children: props.checkmarks.map((text) => /* @__PURE__ */ jsxs("li", { className: "flex items-center gap-2", children: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theguild/components",
3
- "version": "9.2.0-alpha-20250121194517-4eee7cf80606d4e9cc5f9602bdd6001647ba5fb4",
3
+ "version": "9.2.0-alpha-20250121194733-98250190ee15baf315f766dc3246ee829ef4c660",
4
4
  "repository": {
5
5
  "url": "https://github.com/the-guild-org/docs",
6
6
  "directory": "packages/components"