@theguild/components 8.0.0-alpha-20241120102532-796443cefde986fe82579346506d05e4f6320679 → 8.0.0-alpha-20241120105145-cd16661303b7d080c2fd1c50e3ed8d407c9106f7
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.
- package/dist/components/cookies-consent.d.mts +1 -2
- package/dist/components/footer.d.mts +9 -0
- package/dist/components/footer.js +116 -0
- package/dist/components/get-your-api-game-right-section.js +2 -2
- package/dist/components/guild-navbar-logo.d.mts +19 -0
- package/dist/components/guild-navbar-logo.js +62 -0
- package/dist/components/hive-footer.d.mts +12 -0
- package/dist/components/{hive-footer/index.js → hive-footer.js} +27 -14
- package/dist/components/hive-navigation/index.d.mts +4 -6
- package/dist/components/hive-navigation/index.js +27 -33
- package/dist/components/icons/index.d.mts +1 -1
- package/dist/components/icons/index.js +52 -50
- package/dist/components/index.d.mts +5 -4
- package/dist/components/index.js +7 -3
- package/dist/components/schema-type.js +1 -1
- package/dist/components/stud.d.mts +1 -2
- package/dist/helpers/render-slot.d.mts +3 -0
- package/dist/helpers/render-slot.js +21 -0
- package/dist/index.d.mts +8 -6
- package/dist/index.js +1 -3
- package/dist/logos/guild.js +1 -1
- package/dist/logos/index.d.mts +21 -20
- package/dist/logos/index.js +13 -16
- package/dist/products.js +17 -15
- package/dist/server/index.d.mts +8 -7
- package/dist/server/index.js +1 -2
- package/dist/server/mdx-components.d.mts +213 -2
- package/dist/server/next.config.js +2 -16
- package/dist/server/theme-layout.d.mts +1 -7
- package/dist/server/theme-layout.js +15 -31
- package/dist/types/components.d.mts +6 -1
- package/package.json +2 -2
- package/style.css +30 -6
- package/dist/components/hive-footer/contact-us.d.mts +0 -5
- package/dist/components/hive-footer/contact-us.js +0 -21
- package/dist/components/hive-footer/index.d.mts +0 -16
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ComponentProps } from 'react';
|
|
3
2
|
|
|
4
|
-
type CookiesConsentProps =
|
|
3
|
+
type CookiesConsentProps = React.HTMLAttributes<HTMLElement>;
|
|
5
4
|
declare function CookiesConsent(props: CookiesConsentProps): react_jsx_runtime.JSX.Element | null;
|
|
6
5
|
|
|
7
6
|
export { CookiesConsent, type CookiesConsentProps };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { IFooterExtendedProps } from '../types/components.mjs';
|
|
3
|
+
import 'next/image';
|
|
4
|
+
import 'next/link';
|
|
5
|
+
import 'react-player';
|
|
6
|
+
|
|
7
|
+
declare function Footer({ className, resources, logo }: IFooterExtendedProps): ReactElement;
|
|
8
|
+
|
|
9
|
+
export { Footer };
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { clsx } from "clsx";
|
|
3
|
+
import { siteOrigin } from "../constants";
|
|
4
|
+
import { GuildLogo, TheGuild } from "../logos";
|
|
5
|
+
import { PRODUCTS } from "../products";
|
|
6
|
+
import { Anchor } from "./anchor";
|
|
7
|
+
import {
|
|
8
|
+
CSAStarLevelOneIcon,
|
|
9
|
+
DiscordIcon,
|
|
10
|
+
GitHubIcon,
|
|
11
|
+
LinkedInIcon,
|
|
12
|
+
TwitterIcon,
|
|
13
|
+
YouTubeIcon
|
|
14
|
+
} from "./icons";
|
|
15
|
+
const COMPANY = [
|
|
16
|
+
{
|
|
17
|
+
children: "About",
|
|
18
|
+
title: "Learn more about us",
|
|
19
|
+
href: `${siteOrigin}/about-us`
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
children: "Blog",
|
|
23
|
+
title: "Read our blog",
|
|
24
|
+
href: `${siteOrigin}/blog`
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
children: "Newsletter",
|
|
28
|
+
title: "Newsletter",
|
|
29
|
+
href: `${siteOrigin}/newsletter`
|
|
30
|
+
}
|
|
31
|
+
];
|
|
32
|
+
const COMMUNITY = [
|
|
33
|
+
{
|
|
34
|
+
icon: TwitterIcon,
|
|
35
|
+
title: "Visit our Twitter",
|
|
36
|
+
href: "https://twitter.com/TheGuildDev"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
icon: LinkedInIcon,
|
|
40
|
+
title: "Visit our LinkedIn",
|
|
41
|
+
href: "https://linkedin.com/company/the-guild-software"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
icon: DiscordIcon,
|
|
45
|
+
title: "Reach us on Discord",
|
|
46
|
+
href: "https://discord.com/invite/xud7bH9"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
icon: GitHubIcon,
|
|
50
|
+
title: "Check our GitHub account",
|
|
51
|
+
href: "https://github.com/the-guild-org"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
icon: YouTubeIcon,
|
|
55
|
+
title: "Watch Our Videos",
|
|
56
|
+
href: "https://youtube.com/watch?v=d_GBgH-L5c4&list=PLhCf3AUOg4PgQoY_A6xWDQ70yaNtPYtZd"
|
|
57
|
+
}
|
|
58
|
+
];
|
|
59
|
+
const products = [
|
|
60
|
+
PRODUCTS.HIVE,
|
|
61
|
+
PRODUCTS.MESH,
|
|
62
|
+
PRODUCTS.YOGA,
|
|
63
|
+
PRODUCTS.CODEGEN,
|
|
64
|
+
PRODUCTS.NEXTRA,
|
|
65
|
+
{ ...PRODUCTS.SOFA, name: "GraphQL to REST" }
|
|
66
|
+
].map(({ name, href, title }) => ({
|
|
67
|
+
children: name,
|
|
68
|
+
href,
|
|
69
|
+
title
|
|
70
|
+
}));
|
|
71
|
+
const classes = {
|
|
72
|
+
title: clsx("mb-2.5 text-lg font-medium text-gray-900 dark:text-gray-100"),
|
|
73
|
+
anchor: clsx("text-gray-500 hover:text-black dark:text-[#b4b5be] hover:dark:text-gray-100")
|
|
74
|
+
};
|
|
75
|
+
const renderLinks = (list) => /* @__PURE__ */ jsx("ul", { className: "m-0 mb-8 list-none p-0 last:mb-0", children: list.map((link, i) => /* @__PURE__ */ jsx("li", { className: "mb-3 last:mb-0", children: /* @__PURE__ */ jsx(Anchor, { className: clsx(classes.anchor, "inline-block text-sm"), ...link }) }, i)) });
|
|
76
|
+
function Footer({ className, resources = [], logo }) {
|
|
77
|
+
return /* @__PURE__ */ jsx(
|
|
78
|
+
"footer",
|
|
79
|
+
{
|
|
80
|
+
className: clsx(
|
|
81
|
+
"bg-[#fafafa] py-[60px] text-base md:py-[140px] dark:bg-[#0f1114]",
|
|
82
|
+
className
|
|
83
|
+
),
|
|
84
|
+
children: /* @__PURE__ */ jsx("div", { className: "container max-w-[90rem]", children: /* @__PURE__ */ jsxs("div", { className: "relative flex justify-between gap-10 max-md:flex-col", children: [
|
|
85
|
+
/* @__PURE__ */ jsxs(Anchor, { className: "flex items-center gap-2 self-start", href: `${siteOrigin}/`, ...logo, children: [
|
|
86
|
+
/* @__PURE__ */ jsx(GuildLogo, { className: "h-9 w-auto" }),
|
|
87
|
+
/* @__PURE__ */ jsx(TheGuild, { className: "h-7 w-auto" })
|
|
88
|
+
] }),
|
|
89
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
90
|
+
/* @__PURE__ */ jsx("h3", { className: classes.title, children: "Products" }),
|
|
91
|
+
/* @__PURE__ */ jsx("div", { className: "flex gap-6", children: renderLinks(products) })
|
|
92
|
+
] }),
|
|
93
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
94
|
+
/* @__PURE__ */ jsx("h3", { className: classes.title, children: "Resources" }),
|
|
95
|
+
renderLinks([
|
|
96
|
+
{
|
|
97
|
+
children: "Press Kit",
|
|
98
|
+
title: "Press Kit",
|
|
99
|
+
href: `${siteOrigin}/logos`
|
|
100
|
+
},
|
|
101
|
+
...resources
|
|
102
|
+
])
|
|
103
|
+
] }),
|
|
104
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
105
|
+
/* @__PURE__ */ jsx("h3", { className: classes.title, children: "Company" }),
|
|
106
|
+
renderLinks(COMPANY)
|
|
107
|
+
] }),
|
|
108
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-start gap-5 text-[#b4b5be]", children: COMMUNITY.map(({ icon: Icon, ...iconProps }) => /* @__PURE__ */ jsx(Anchor, { className: classes.anchor, ...iconProps, children: /* @__PURE__ */ jsx(Icon, { className: "h-5 w-auto" }) }, iconProps.title)) }),
|
|
109
|
+
/* @__PURE__ */ jsx(CSAStarLevelOneIcon, { className: "absolute right-0 ml-auto h-[4.5rem] w-auto md:bottom-0" })
|
|
110
|
+
] }) })
|
|
111
|
+
}
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
export {
|
|
115
|
+
Footer
|
|
116
|
+
};
|
|
@@ -13,7 +13,7 @@ function GetYourAPIGameRightSection({ className }) {
|
|
|
13
13
|
/* @__PURE__ */ jsx(GreenArchDecoration, { className: "absolute inset-y-0 right-0 hidden opacity-10 md:block [@media(min-width:1300px)]:opacity-100" }),
|
|
14
14
|
/* @__PURE__ */ jsx(StrokeDecoration, { className: "absolute right-[607px] max-md:right-[-36px] max-md:top-[-71px] max-md:size-[200px] max-md:rotate-180 md:bottom-0" })
|
|
15
15
|
] }),
|
|
16
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-stretch justify-between gap-x-6 gap-y-4 p-4
|
|
16
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-stretch justify-between gap-x-6 gap-y-4 p-4 sm:items-center md:h-[308px] md:flex-row md:px-24", children: [
|
|
17
17
|
/* @__PURE__ */ jsx(
|
|
18
18
|
Heading,
|
|
19
19
|
{
|
|
@@ -23,7 +23,7 @@ function GetYourAPIGameRightSection({ className }) {
|
|
|
23
23
|
children: "Get your API game right."
|
|
24
24
|
}
|
|
25
25
|
),
|
|
26
|
-
/* @__PURE__ */ jsxs("div", { className: "flex gap-x-4 gap-y-2 whitespace-pre
|
|
26
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-x-4 gap-y-2 whitespace-pre sm:flex-row", children: [
|
|
27
27
|
/* @__PURE__ */ jsx(CallToAction, { variant: "secondary-inverted", href: "https://app.graphql-hive.com/", children: "Get started for free" }),
|
|
28
28
|
/* @__PURE__ */ jsx(
|
|
29
29
|
CallToAction,
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode, FC } from 'react';
|
|
3
|
+
|
|
4
|
+
declare const GuildUnifiedLogo: FC<{
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
title: string;
|
|
7
|
+
description: string;
|
|
8
|
+
}>;
|
|
9
|
+
/**
|
|
10
|
+
* GraphQL-related products live under the Hive platform brand, so we use a single logo for them.
|
|
11
|
+
* The rest gets The Guild / {Product} logo.
|
|
12
|
+
*/
|
|
13
|
+
declare function getNavbarLogo({ logo, websiteName, description, }: {
|
|
14
|
+
logo: ReactNode;
|
|
15
|
+
websiteName: string;
|
|
16
|
+
description: string;
|
|
17
|
+
}): react_jsx_runtime.JSX.Element;
|
|
18
|
+
|
|
19
|
+
export { GuildUnifiedLogo, getNavbarLogo };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import { siteOrigin } from "../constants";
|
|
4
|
+
import { GuildLogo, TheGuild } from "../logos";
|
|
5
|
+
import { Anchor } from "./anchor";
|
|
6
|
+
const GuildUnifiedLogo = ({ children, title, description }) => {
|
|
7
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8
|
+
/* @__PURE__ */ jsxs(
|
|
9
|
+
Anchor,
|
|
10
|
+
{
|
|
11
|
+
title: "View our website",
|
|
12
|
+
className: clsx(
|
|
13
|
+
"flex items-center gap-x-1.5 transition-opacity hover:opacity-75",
|
|
14
|
+
children && "max-md:hidden"
|
|
15
|
+
),
|
|
16
|
+
href: `${siteOrigin}/`,
|
|
17
|
+
children: [
|
|
18
|
+
/* @__PURE__ */ jsx(GuildLogo, { className: "h-9 w-auto" }),
|
|
19
|
+
/* @__PURE__ */ jsx(TheGuild, { className: "w-11" })
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
),
|
|
23
|
+
children && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
24
|
+
/* @__PURE__ */ jsx(
|
|
25
|
+
"svg",
|
|
26
|
+
{
|
|
27
|
+
height: "22",
|
|
28
|
+
viewBox: "0 0 10 22",
|
|
29
|
+
stroke: "currentColor",
|
|
30
|
+
className: "mx-6 shrink-0 max-md:hidden",
|
|
31
|
+
children: /* @__PURE__ */ jsx("path", { d: "M8.6001 0.833313L0.600097 20.8333" })
|
|
32
|
+
}
|
|
33
|
+
),
|
|
34
|
+
/* @__PURE__ */ jsxs(
|
|
35
|
+
Anchor,
|
|
36
|
+
{
|
|
37
|
+
title,
|
|
38
|
+
className: "flex shrink-0 items-center gap-x-1.5 hover:opacity-75",
|
|
39
|
+
href: "/",
|
|
40
|
+
children: [
|
|
41
|
+
children,
|
|
42
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
43
|
+
/* @__PURE__ */ jsx("h1", { className: "text-sm font-bold leading-tight", children: title }),
|
|
44
|
+
/* @__PURE__ */ jsx("h2", { className: "text-xs max-lg:hidden", children: description })
|
|
45
|
+
] })
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
)
|
|
49
|
+
] })
|
|
50
|
+
] });
|
|
51
|
+
};
|
|
52
|
+
function getNavbarLogo({
|
|
53
|
+
logo,
|
|
54
|
+
websiteName,
|
|
55
|
+
description
|
|
56
|
+
}) {
|
|
57
|
+
return websiteName === "Hive" ? /* @__PURE__ */ jsx(Anchor, { title: websiteName, href: "/", children: logo }) : /* @__PURE__ */ jsx(GuildUnifiedLogo, { description, title: websiteName, children: logo });
|
|
58
|
+
}
|
|
59
|
+
export {
|
|
60
|
+
GuildUnifiedLogo,
|
|
61
|
+
getNavbarLogo
|
|
62
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { IFooterExtendedProps } from '../types/components.mjs';
|
|
3
|
+
import 'next/image';
|
|
4
|
+
import 'next/link';
|
|
5
|
+
import 'react-player';
|
|
6
|
+
|
|
7
|
+
interface HiveFooterProps extends IFooterExtendedProps {
|
|
8
|
+
description?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const HiveFooter: FC<HiveFooterProps>;
|
|
11
|
+
|
|
12
|
+
export { HiveFooter, type HiveFooterProps };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from "
|
|
3
|
-
import { siteOrigin } from "
|
|
4
|
-
import { HiveCombinationMark } from "
|
|
5
|
-
import { PRODUCTS } from "
|
|
6
|
-
import { Anchor } from "
|
|
2
|
+
import { cn } from "../cn";
|
|
3
|
+
import { siteOrigin } from "../constants";
|
|
4
|
+
import { HiveCombinationMark } from "../logos";
|
|
5
|
+
import { PRODUCTS } from "../products";
|
|
6
|
+
import { Anchor } from "./anchor";
|
|
7
7
|
import {
|
|
8
8
|
CSAStarLevelOneIcon,
|
|
9
9
|
DiscordIcon,
|
|
@@ -11,24 +11,24 @@ import {
|
|
|
11
11
|
LinkedInIcon,
|
|
12
12
|
TwitterIcon,
|
|
13
13
|
YouTubeIcon
|
|
14
|
-
} from "
|
|
15
|
-
import { ContactUs } from "./contact-us";
|
|
14
|
+
} from "./icons";
|
|
16
15
|
const HiveFooter = ({
|
|
17
16
|
className,
|
|
18
|
-
logo
|
|
19
|
-
href = `${siteOrigin}/`,
|
|
17
|
+
logo,
|
|
20
18
|
resources = [],
|
|
21
|
-
description
|
|
19
|
+
description
|
|
22
20
|
}) => {
|
|
21
|
+
description ||= "Open-source GraphQL management platform";
|
|
23
22
|
return /* @__PURE__ */ jsxs("footer", { className: cn("relative flex justify-center px-4 py-6 xl:px-[120px]", className), children: [
|
|
24
23
|
/* @__PURE__ */ jsxs("div", { className: "mx-4 grid w-full max-w-[75rem] grid-cols-1 gap-x-6 text-green-800 max-lg:gap-y-16 sm:grid-cols-4 lg:gap-x-8 xl:gap-x-10 dark:text-neutral-400", children: [
|
|
25
24
|
/* @__PURE__ */ jsxs("div", { className: "max-lg:col-span-full", children: [
|
|
26
25
|
/* @__PURE__ */ jsx(
|
|
27
26
|
Anchor,
|
|
28
27
|
{
|
|
29
|
-
href
|
|
28
|
+
href: `${siteOrigin}/`,
|
|
29
|
+
...logo,
|
|
30
30
|
className: "hive-focus -m-1.5 flex rounded p-1.5 text-green-1000 dark:text-white",
|
|
31
|
-
children: logo
|
|
31
|
+
children: logo?.children || /* @__PURE__ */ jsx(HiveCombinationMark, { className: "h-8 w-auto" })
|
|
32
32
|
}
|
|
33
33
|
),
|
|
34
34
|
/* @__PURE__ */ jsx("p", { className: "mt-6 lg:mt-8", children: description })
|
|
@@ -50,11 +50,24 @@ const HiveFooter = ({
|
|
|
50
50
|
children: "Pricing"
|
|
51
51
|
}
|
|
52
52
|
),
|
|
53
|
-
/* @__PURE__ */ jsx(
|
|
53
|
+
/* @__PURE__ */ jsx(
|
|
54
|
+
"a",
|
|
55
|
+
{
|
|
56
|
+
className: "hive-focus -m-2 rounded p-2 font-medium hover:text-blue-700 hover:underline dark:hover:text-blue-100",
|
|
57
|
+
href: "https://the-guild.dev/contact",
|
|
58
|
+
onClick: (event) => {
|
|
59
|
+
if (window.$crisp) {
|
|
60
|
+
window.$crisp.push(["do", "chat:open"]);
|
|
61
|
+
event.preventDefault();
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
children: "Contact Us"
|
|
65
|
+
}
|
|
66
|
+
)
|
|
54
67
|
] }),
|
|
55
68
|
/* @__PURE__ */ jsx(CSAStarLink, { className: "sm:col-start-[-1] lg:col-start-[-2]" })
|
|
56
69
|
] }),
|
|
57
|
-
/* @__PURE__ */ jsxs("div", { className: "col-span-full flex flex-wrap justify-between gap-x-[inherit] gap-y-8 lg:w-full lg:pb-2 lg:pt-8", children: [
|
|
70
|
+
/* @__PURE__ */ jsxs("div", { className: "col-span-full flex flex-row flex-wrap justify-between gap-x-[inherit] gap-y-8 lg:w-full lg:pb-2 lg:pt-8", children: [
|
|
58
71
|
/* @__PURE__ */ jsx("div", { className: "flex gap-6 lg:order-1", children: COMMUNITY.map(({ icon: Icon, ...iconProps }) => /* @__PURE__ */ jsx(
|
|
59
72
|
Anchor,
|
|
60
73
|
{
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import react__default, { ReactNode
|
|
3
|
-
import { Search } from 'nextra/components';
|
|
2
|
+
import react__default, { ReactNode } from 'react';
|
|
4
3
|
export { GraphQLConfCard, GraphQLConfCardProps } from './graphql-conf-card.mjs';
|
|
5
4
|
import 'next/image';
|
|
6
5
|
|
|
@@ -24,7 +23,6 @@ interface HiveNavigationProps {
|
|
|
24
23
|
}>;
|
|
25
24
|
children: ReactNode;
|
|
26
25
|
}[];
|
|
27
|
-
searchProps?: ComponentProps<typeof Search>;
|
|
28
26
|
}
|
|
29
27
|
/**
|
|
30
28
|
*
|
|
@@ -38,15 +36,15 @@ interface HiveNavigationProps {
|
|
|
38
36
|
* </HiveNavigation>
|
|
39
37
|
* ```
|
|
40
38
|
*/
|
|
41
|
-
declare function HiveNavigation({ companyMenuChildren, children, className, productName, logo, navLinks, developerMenu,
|
|
39
|
+
declare function HiveNavigation({ companyMenuChildren, children, className, productName, logo, navLinks, developerMenu, }: HiveNavigationProps): react_jsx_runtime.JSX.Element;
|
|
42
40
|
interface ProductsMenuProps extends MenuContentColumnsProps {
|
|
43
41
|
productName: string;
|
|
44
42
|
}
|
|
45
43
|
/**
|
|
46
44
|
* @internal
|
|
47
45
|
*/
|
|
48
|
-
declare const ProductsMenu: react__default.ForwardRefExoticComponent<
|
|
49
|
-
type MenuContentColumnsProps =
|
|
46
|
+
declare const ProductsMenu: react__default.ForwardRefExoticComponent<ProductsMenuProps & react__default.RefAttributes<HTMLDivElement>>;
|
|
47
|
+
type MenuContentColumnsProps = react__default.HTMLAttributes<HTMLDivElement>;
|
|
50
48
|
interface DeveloperMenuProps extends react__default.HTMLAttributes<HTMLDivElement> {
|
|
51
49
|
isHive: boolean;
|
|
52
50
|
developerMenu: undefined | {
|
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import React, {
|
|
4
|
-
forwardRef,
|
|
5
|
-
Fragment,
|
|
6
|
-
useEffect,
|
|
7
|
-
useRef
|
|
8
|
-
} from "react";
|
|
3
|
+
import React, { forwardRef, Fragment, useEffect, useRef } from "react";
|
|
9
4
|
import { createPortal } from "react-dom";
|
|
10
5
|
import { usePathname } from "next/navigation";
|
|
11
|
-
import { setMenu, useMenu } from "nextra-theme-docs";
|
|
12
|
-
import { Search } from "nextra/components";
|
|
6
|
+
import { setMenu, useMenu, useThemeConfig } from "nextra-theme-docs";
|
|
13
7
|
import { useMounted } from "nextra/hooks";
|
|
14
8
|
import { MenuIcon } from "nextra/icons";
|
|
15
9
|
import { cn } from "../../cn";
|
|
16
|
-
import {
|
|
10
|
+
import { renderSlot } from "../../helpers/render-slot";
|
|
17
11
|
import { GraphQLFoundationLogo, GuildLogo, HiveCombinationMark, TheGuild } from "../../logos";
|
|
18
12
|
import { PRODUCTS, SIX_HIGHLIGHTED_PRODUCTS } from "../../products";
|
|
19
13
|
import { Anchor } from "../anchor";
|
|
@@ -49,18 +43,20 @@ function HiveNavigation({
|
|
|
49
43
|
children,
|
|
50
44
|
className,
|
|
51
45
|
productName,
|
|
52
|
-
logo
|
|
53
|
-
navLinks
|
|
54
|
-
|
|
55
|
-
href: productName === "Hive" ? "/pricing" : "https://the-guild.dev/graphql/hive/pricing",
|
|
56
|
-
children: "Pricing"
|
|
57
|
-
}
|
|
58
|
-
],
|
|
59
|
-
developerMenu,
|
|
60
|
-
searchProps
|
|
46
|
+
logo,
|
|
47
|
+
navLinks,
|
|
48
|
+
developerMenu
|
|
61
49
|
}) {
|
|
50
|
+
const Search = useThemeConfig().search;
|
|
62
51
|
const isHive = productName === "Hive";
|
|
63
52
|
const containerRef = useRef(null);
|
|
53
|
+
logo ||= /* @__PURE__ */ jsx(HiveLogoLink, { isHive });
|
|
54
|
+
navLinks ||= [
|
|
55
|
+
{
|
|
56
|
+
href: isHive ? "/pricing" : "https://the-guild.dev/graphql/hive/pricing",
|
|
57
|
+
children: "Pricing"
|
|
58
|
+
}
|
|
59
|
+
];
|
|
64
60
|
return /* @__PURE__ */ jsxs(
|
|
65
61
|
"div",
|
|
66
62
|
{
|
|
@@ -107,19 +103,17 @@ function HiveNavigation({
|
|
|
107
103
|
] }),
|
|
108
104
|
/* @__PURE__ */ jsx("div", { className: "flex-1" }),
|
|
109
105
|
children,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}
|
|
116
|
-
),
|
|
106
|
+
renderSlot(Search, {
|
|
107
|
+
className: cn(
|
|
108
|
+
"relative ml-4 basis-64 [&_:is(input,kbd)]:text-green-700 dark:[&_:is(input,kbd)]:text-neutral-300 [&_input]:h-12 [&_input]:w-full [&_input]:rounded-lg [&_input]:border [&_input]:border-green-200 [&_input]:bg-white [&_input]:pl-4 [&_input]:pr-8 [&_input]:ring-[hsl(var(--nextra-primary-hue)_var(--nextra-primary-saturation)_32%/var(--tw-ring-opacity))] [&_input]:ring-offset-[rgb(var(--nextra-bg))] dark:[&_input]:border-neutral-800 [&_input]:dark:bg-inherit [&_kbd]:absolute [&_kbd]:right-4 [&_kbd]:top-1/2 [&_kbd]:my-0 [&_kbd]:-translate-y-1/2 [&_kbd]:border-none [&_kbd]:bg-green-200 dark:[&_kbd]:bg-neutral-700"
|
|
109
|
+
)
|
|
110
|
+
}),
|
|
117
111
|
/* @__PURE__ */ jsxs(
|
|
118
112
|
CallToAction,
|
|
119
113
|
{
|
|
120
114
|
className: "ml-4 max-lg:hidden",
|
|
121
115
|
variant: "tertiary",
|
|
122
|
-
href:
|
|
116
|
+
href: "https://the-guild.dev/contact",
|
|
123
117
|
target: "_blank",
|
|
124
118
|
rel: "noopener noreferrer",
|
|
125
119
|
onClick: (event) => {
|
|
@@ -182,7 +176,7 @@ const ProductsMenu = React.forwardRef(
|
|
|
182
176
|
NavigationMenuLink,
|
|
183
177
|
{
|
|
184
178
|
href: bidirectionalProductLink(product),
|
|
185
|
-
className: "flex items-center gap-4 p-4",
|
|
179
|
+
className: "flex flex-row items-center gap-4 p-4",
|
|
186
180
|
children: [
|
|
187
181
|
/* @__PURE__ */ jsx("div", { className: "size-12 rounded-lg bg-blue-400 p-2.5", children: /* @__PURE__ */ jsx(Logo, { className: "size-7 text-green-1000" }) }),
|
|
188
182
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -202,7 +196,7 @@ const ProductsMenu = React.forwardRef(
|
|
|
202
196
|
NavigationMenuLink,
|
|
203
197
|
{
|
|
204
198
|
href: bidirectionalProductLink(product),
|
|
205
|
-
className: "flex items-center gap-3 px-4 py-2",
|
|
199
|
+
className: "flex flex-row items-center gap-3 px-4 py-2",
|
|
206
200
|
arrow: true,
|
|
207
201
|
children: [
|
|
208
202
|
/* @__PURE__ */ jsx("div", { className: "flex size-8 items-center justify-center rounded bg-beige-200 p-[5px] dark:bg-white/5", children: /* @__PURE__ */ jsx(Logo, { className: "size-8 text-green-1000 dark:text-neutral-300" }) }),
|
|
@@ -253,7 +247,7 @@ const DeveloperMenu = React.forwardRef(
|
|
|
253
247
|
icon: RightCornerIcon,
|
|
254
248
|
children: "Product Updates"
|
|
255
249
|
},
|
|
256
|
-
{ href:
|
|
250
|
+
{ href: "https://the-guild.dev/blog", icon: PencilIcon, children: "Blog" },
|
|
257
251
|
{
|
|
258
252
|
href: "https://github.com/dotansimha/graphql-code-generator",
|
|
259
253
|
icon: GitHubIcon,
|
|
@@ -291,7 +285,7 @@ function MenuColumnListItem({
|
|
|
291
285
|
NavigationMenuLink,
|
|
292
286
|
{
|
|
293
287
|
href,
|
|
294
|
-
className: "flex items-center gap-3 text-nowrap px-4 py-2",
|
|
288
|
+
className: "flex flex-row items-center gap-3 text-nowrap px-4 py-2",
|
|
295
289
|
arrow: true,
|
|
296
290
|
children: [
|
|
297
291
|
/* @__PURE__ */ jsx(Icon, { className: "size-6 shrink-0" }),
|
|
@@ -331,11 +325,11 @@ function CompanyMenu({ children }) {
|
|
|
331
325
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
332
326
|
/* @__PURE__ */ jsx(ColumnLabel, { children: "Company" }),
|
|
333
327
|
/* @__PURE__ */ jsxs("ul", { children: [
|
|
334
|
-
/* @__PURE__ */ jsx(MenuColumnListItem, { icon: GroupIcon, href:
|
|
335
|
-
/* @__PURE__ */ jsx(MenuColumnListItem, { icon: AppsIcon, href:
|
|
328
|
+
/* @__PURE__ */ jsx(MenuColumnListItem, { icon: GroupIcon, href: "https://the-guild.dev/about-us", children: "About Us" }),
|
|
329
|
+
/* @__PURE__ */ jsx(MenuColumnListItem, { icon: AppsIcon, href: "https://the-guild.dev/logos", children: "Brand Assets" })
|
|
336
330
|
] }),
|
|
337
331
|
/* @__PURE__ */ jsx(ColumnLabel, { children: "Proudly made by" }),
|
|
338
|
-
/* @__PURE__ */ jsxs(NavigationMenuLink, { href:
|
|
332
|
+
/* @__PURE__ */ jsxs(NavigationMenuLink, { href: "https://the-guild.dev", className: "px-4 py-2", arrow: true, children: [
|
|
339
333
|
/* @__PURE__ */ jsx(GuildLogo, { className: "-my-2 size-10" }),
|
|
340
334
|
/* @__PURE__ */ jsx(TheGuild, { className: "h-8" })
|
|
341
335
|
] }),
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { ReactComponent as AccountBox, ReactComponent as AppsIcon, ReactComponent as ArrowIcon, ReactComponent as BardIcon, ReactComponent as CSAStarLevelOneIcon, ReactComponent as CaretSlimIcon, ReactComponent as CheckIcon, ReactComponent as CloseIcon, ReactComponent as CodegenIcon, ReactComponent as GroupIcon, ReactComponent as HiveGatewayIcon, ReactComponent as HiveIcon, ReactComponent as HonourIcon, ReactComponent as LinkedInIcon, ReactComponent as ListIcon, ReactComponent as MeshIcon, ReactComponent as MoreIcon, ReactComponent as PaperIcon, ReactComponent as PencilIcon, ReactComponent as RightCornerIcon, ReactComponent as SearchIcon, ReactComponent as ShareIcon, ReactComponent as ShieldFlashIcon, ReactComponent as TargetIcon, ReactComponent as TwitterIcon, ReactComponent as YogaIcon, ReactComponent as YouTubeIcon } from '../../logos/angular.mjs';
|
|
1
|
+
export { ReactComponent as AccountBox, ReactComponent as AppsIcon, ReactComponent as ArrowIcon, ReactComponent as BardIcon, ReactComponent as CSAStarLevelOneIcon, ReactComponent as CaretSlimIcon, ReactComponent as CheckIcon, ReactComponent as CloseIcon, ReactComponent as CodegenIcon, ReactComponent as GroupIcon, ReactComponent as HiveGatewayIcon, ReactComponent as HiveIcon, ReactComponent as HonourIcon, ReactComponent as LinkedInIcon, ReactComponent as ListIcon, ReactComponent as MeshIcon, ReactComponent as MoonIcon, ReactComponent as MoreIcon, ReactComponent as PaperIcon, ReactComponent as PencilIcon, ReactComponent as RightCornerIcon, ReactComponent as SearchIcon, ReactComponent as ShareIcon, ReactComponent as ShieldFlashIcon, ReactComponent as TargetIcon, ReactComponent as TwitterIcon, ReactComponent as YogaIcon, ReactComponent as YouTubeIcon } from '../../logos/angular.mjs';
|
|
2
2
|
export { DiscordIcon, GitHubIcon, InformationCircleIcon } from 'nextra/icons';
|
|
3
3
|
import 'react';
|
|
@@ -1,60 +1,62 @@
|
|
|
1
1
|
import { ReactComponent } from "./caret-slim";
|
|
2
2
|
import { ReactComponent as ReactComponent2 } from "./close";
|
|
3
|
-
import { ReactComponent as ReactComponent3 } from "./
|
|
4
|
-
import { ReactComponent as ReactComponent4 } from "./
|
|
5
|
-
import { ReactComponent as ReactComponent5 } from "./
|
|
6
|
-
import { ReactComponent as ReactComponent6 } from "./
|
|
7
|
-
import { ReactComponent as ReactComponent7 } from "./
|
|
8
|
-
import { ReactComponent as ReactComponent8 } from "./
|
|
9
|
-
import { ReactComponent as ReactComponent9 } from "./
|
|
10
|
-
import { ReactComponent as ReactComponent10 } from "./
|
|
11
|
-
import { ReactComponent as ReactComponent11 } from "./
|
|
12
|
-
import { ReactComponent as ReactComponent12 } from "./
|
|
13
|
-
import { ReactComponent as ReactComponent13 } from "./
|
|
14
|
-
import { ReactComponent as ReactComponent14 } from "./
|
|
15
|
-
import { ReactComponent as ReactComponent15 } from "./hive
|
|
3
|
+
import { ReactComponent as ReactComponent3 } from "./moon";
|
|
4
|
+
import { ReactComponent as ReactComponent4 } from "./more";
|
|
5
|
+
import { ReactComponent as ReactComponent5 } from "./search";
|
|
6
|
+
import { ReactComponent as ReactComponent6 } from "./share";
|
|
7
|
+
import { ReactComponent as ReactComponent7 } from "./csa-star-level-one";
|
|
8
|
+
import { ReactComponent as ReactComponent8 } from "./arrow-icon";
|
|
9
|
+
import { ReactComponent as ReactComponent9 } from "./twitter";
|
|
10
|
+
import { ReactComponent as ReactComponent10 } from "./linkedin";
|
|
11
|
+
import { ReactComponent as ReactComponent11 } from "./youtube";
|
|
12
|
+
import { ReactComponent as ReactComponent12 } from "./codegen";
|
|
13
|
+
import { ReactComponent as ReactComponent13 } from "./mesh";
|
|
14
|
+
import { ReactComponent as ReactComponent14 } from "./yoga";
|
|
15
|
+
import { ReactComponent as ReactComponent15 } from "./hive";
|
|
16
|
+
import { ReactComponent as ReactComponent16 } from "./hive-gateway";
|
|
16
17
|
import { InformationCircleIcon, GitHubIcon, DiscordIcon } from "nextra/icons";
|
|
17
|
-
import { ReactComponent as
|
|
18
|
-
import { ReactComponent as
|
|
19
|
-
import { ReactComponent as
|
|
20
|
-
import { ReactComponent as
|
|
21
|
-
import { ReactComponent as
|
|
22
|
-
import { ReactComponent as
|
|
23
|
-
import { ReactComponent as
|
|
24
|
-
import { ReactComponent as
|
|
25
|
-
import { ReactComponent as
|
|
26
|
-
import { ReactComponent as
|
|
27
|
-
import { ReactComponent as
|
|
28
|
-
import { ReactComponent as
|
|
18
|
+
import { ReactComponent as ReactComponent17 } from "./list";
|
|
19
|
+
import { ReactComponent as ReactComponent18 } from "./paper";
|
|
20
|
+
import { ReactComponent as ReactComponent19 } from "./target";
|
|
21
|
+
import { ReactComponent as ReactComponent20 } from "./right-corner";
|
|
22
|
+
import { ReactComponent as ReactComponent21 } from "./pencil";
|
|
23
|
+
import { ReactComponent as ReactComponent22 } from "./account-box";
|
|
24
|
+
import { ReactComponent as ReactComponent23 } from "./bard";
|
|
25
|
+
import { ReactComponent as ReactComponent24 } from "./honour";
|
|
26
|
+
import { ReactComponent as ReactComponent25 } from "./shield-flash";
|
|
27
|
+
import { ReactComponent as ReactComponent26 } from "./group";
|
|
28
|
+
import { ReactComponent as ReactComponent27 } from "./apps";
|
|
29
|
+
import { ReactComponent as ReactComponent28 } from "./check";
|
|
29
30
|
export {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
ReactComponent22 as AccountBox,
|
|
32
|
+
ReactComponent27 as AppsIcon,
|
|
33
|
+
ReactComponent8 as ArrowIcon,
|
|
34
|
+
ReactComponent23 as BardIcon,
|
|
35
|
+
ReactComponent7 as CSAStarLevelOneIcon,
|
|
35
36
|
ReactComponent as CaretSlimIcon,
|
|
36
|
-
|
|
37
|
+
ReactComponent28 as CheckIcon,
|
|
37
38
|
ReactComponent2 as CloseIcon,
|
|
38
|
-
|
|
39
|
+
ReactComponent12 as CodegenIcon,
|
|
39
40
|
DiscordIcon,
|
|
40
41
|
GitHubIcon,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
ReactComponent26 as GroupIcon,
|
|
43
|
+
ReactComponent16 as HiveGatewayIcon,
|
|
44
|
+
ReactComponent15 as HiveIcon,
|
|
45
|
+
ReactComponent24 as HonourIcon,
|
|
45
46
|
InformationCircleIcon,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
ReactComponent3 as
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
ReactComponent5 as
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
47
|
+
ReactComponent10 as LinkedInIcon,
|
|
48
|
+
ReactComponent17 as ListIcon,
|
|
49
|
+
ReactComponent13 as MeshIcon,
|
|
50
|
+
ReactComponent3 as MoonIcon,
|
|
51
|
+
ReactComponent4 as MoreIcon,
|
|
52
|
+
ReactComponent18 as PaperIcon,
|
|
53
|
+
ReactComponent21 as PencilIcon,
|
|
54
|
+
ReactComponent20 as RightCornerIcon,
|
|
55
|
+
ReactComponent5 as SearchIcon,
|
|
56
|
+
ReactComponent6 as ShareIcon,
|
|
57
|
+
ReactComponent25 as ShieldFlashIcon,
|
|
58
|
+
ReactComponent19 as TargetIcon,
|
|
59
|
+
ReactComponent9 as TwitterIcon,
|
|
60
|
+
ReactComponent14 as YogaIcon,
|
|
61
|
+
ReactComponent11 as YouTubeIcon
|
|
60
62
|
};
|