@theguild/components 8.0.0-alpha-20241205153040-941f0e69f61349bf789b5e08d108ea2196a2436a → 8.0.0-alpha-20241205182626-0c530a9ef4b92616ceb02d93a30c7fb4f876114d

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.
@@ -0,0 +1,18 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { CallToActionProps } from './call-to-action.mjs';
3
+ import './anchor.mjs';
4
+ import 'react';
5
+ import 'url';
6
+ import '../types/components.mjs';
7
+ import 'next/image';
8
+ import 'next/link';
9
+ import 'react-player';
10
+
11
+ interface ContactTextLinkProps extends Omit<React.HTMLAttributes<HTMLAnchorElement>, 'href' | 'onClick'> {
12
+ }
13
+ declare function ContactTextLink(props: ContactTextLinkProps): react_jsx_runtime.JSX.Element;
14
+ interface ContactButtonProps extends Omit<CallToActionProps.AnchorProps, 'onClick' | 'href'> {
15
+ }
16
+ declare function ContactButton(props: ContactButtonProps): react_jsx_runtime.JSX.Element;
17
+
18
+ export { ContactButton, type ContactButtonProps, ContactTextLink, type ContactTextLinkProps };
@@ -0,0 +1,32 @@
1
+ "use client";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import { cn } from "../cn";
4
+ import { CallToAction } from "./call-to-action";
5
+ const openCrisp = (event) => {
6
+ if (window.$crisp) {
7
+ window.$crisp.push(["do", "chat:open"]);
8
+ event.preventDefault();
9
+ }
10
+ };
11
+ function ContactTextLink(props) {
12
+ return /* @__PURE__ */ jsx(
13
+ "a",
14
+ {
15
+ ...props,
16
+ className: cn(
17
+ "hive-focus -m-2 rounded p-2 font-medium hover:text-blue-700 hover:underline dark:hover:text-blue-100",
18
+ props.className
19
+ ),
20
+ href: "https://the-guild.dev/contact",
21
+ onClick: openCrisp,
22
+ children: props.children || "Contact Us"
23
+ }
24
+ );
25
+ }
26
+ function ContactButton(props) {
27
+ return /* @__PURE__ */ jsx(CallToAction, { href: "https://the-guild.dev/contact", onClick: openCrisp, ...props, children: props.children || "Contact Us" });
28
+ }
29
+ export {
30
+ ContactButton,
31
+ ContactTextLink
32
+ };
@@ -1,25 +1,30 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
- import { useState } from "react";
3
+ import { useLayoutEffect, useState } from "react";
4
4
  import { cn } from "../cn";
5
5
  import { CallToAction } from "./call-to-action";
6
6
  function CookiesConsent(props) {
7
- const [consented, setConsented] = useState(() => localStorage.getItem("cookies") === "true");
8
- const onAccept = () => {
9
- setConsented(true);
10
- localStorage.setItem("cookies", "true");
11
- };
12
- if (consented) {
7
+ const [consented, setConsented] = useState("unknown");
8
+ useLayoutEffect(() => {
9
+ setConsented(localStorage.getItem("cookies") === "true" ? "yes" : "no");
10
+ }, []);
11
+ if (consented === "unknown" || consented === "yes") {
13
12
  return null;
14
13
  }
15
14
  return /* @__PURE__ */ jsxs(
16
15
  "div",
17
16
  {
18
17
  ...props,
18
+ "data-state": consented,
19
19
  className: cn(
20
- "fixed bottom-0 z-50 flex flex-wrap items-center justify-center gap-x-4 gap-y-3 rounded-lg border border-beige-200 bg-beige-100 p-4 text-sm text-green-800 shadow-xl lg:flex-nowrap lg:justify-between lg:text-left dark:border-neutral-800 dark:bg-neutral-900 dark:text-neutral-200",
20
+ "ease fixed bottom-0 z-50 flex flex-wrap items-center justify-center gap-x-4 gap-y-3 rounded-lg border border-beige-200 bg-beige-100 p-4 text-sm text-green-800 shadow-xl duration-300 animate-in fade-in-0 slide-in-from-bottom-6 fill-mode-forwards data-[state=closing]:animate-out data-[state=closing]:fade-out data-[state=closing]:slide-out-to-bottom-6 lg:flex-nowrap lg:justify-between lg:text-left dark:border-neutral-800 dark:bg-neutral-900 dark:text-neutral-200",
21
21
  props.className
22
22
  ),
23
+ onAnimationEnd: () => {
24
+ if (consented === "closing") {
25
+ setConsented("yes");
26
+ }
27
+ },
23
28
  children: [
24
29
  /* @__PURE__ */ jsxs("div", { children: [
25
30
  /* @__PURE__ */ jsx("p", { className: "max-sm:inline", children: "This site uses cookies for analytics and improving your experience." }),
@@ -37,7 +42,18 @@ function CookiesConsent(props) {
37
42
  children: "Privacy Policy"
38
43
  }
39
44
  ),
40
- /* @__PURE__ */ jsx(CallToAction, { variant: "tertiary", onClick: onAccept, className: "px-4 py-2", children: "Allow" })
45
+ /* @__PURE__ */ jsx(
46
+ CallToAction,
47
+ {
48
+ variant: "tertiary",
49
+ onClick: () => {
50
+ setConsented("closing");
51
+ localStorage.setItem("cookies", "true");
52
+ },
53
+ className: "px-4 py-2",
54
+ children: "Allow"
55
+ }
56
+ )
41
57
  ] })
42
58
  ]
43
59
  }
@@ -1,6 +1,7 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { cn } from "../cn";
3
3
  import { CallToAction } from "./call-to-action";
4
+ import { ContactButton } from "./contact-us";
4
5
  import { DecorationIsolation } from "./decorations";
5
6
  import { Heading } from "./heading";
6
7
  function GetYourAPIGameRightSection({ className }) {
@@ -25,20 +26,7 @@ function GetYourAPIGameRightSection({ className }) {
25
26
  ),
26
27
  /* @__PURE__ */ jsxs("div", { className: "flex gap-x-4 gap-y-2 whitespace-pre max-sm:flex-col", children: [
27
28
  /* @__PURE__ */ jsx(CallToAction, { variant: "secondary-inverted", href: "https://app.graphql-hive.com/", children: "Get started for free" }),
28
- /* @__PURE__ */ jsx(
29
- CallToAction,
30
- {
31
- variant: "tertiary",
32
- href: "https://the-guild.dev/contact",
33
- onClick: (event) => {
34
- if (window.$crisp) {
35
- window.$crisp.push(["do", "chat:open"]);
36
- event.preventDefault();
37
- }
38
- },
39
- children: "Talk to us"
40
- }
41
- )
29
+ /* @__PURE__ */ jsx(ContactButton, { variant: "tertiary", children: "Talk to us" })
42
30
  ] })
43
31
  ] })
44
32
  ]
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { jsx } from "react/jsx-runtime";
2
3
  import { cn } from "../cn";
3
4
  function Heading({ as: _as, size, className, children, ...rest }) {
@@ -4,6 +4,7 @@ import { siteOrigin } from "../../constants";
4
4
  import { HiveCombinationMark } from "../../logos";
5
5
  import { FOUR_MAIN_PRODUCTS, SIX_HIGHLIGHTED_PRODUCTS } from "../../products";
6
6
  import { Anchor } from "../anchor";
7
+ import { ContactTextLink } from "../contact-us";
7
8
  import {
8
9
  CSAStarLevelOneIcon,
9
10
  DiscordIcon,
@@ -12,7 +13,6 @@ import {
12
13
  TwitterIcon,
13
14
  YouTubeIcon
14
15
  } from "../icons/index";
15
- import { ContactUs } from "./contact-us";
16
16
  function HiveFooter({
17
17
  className,
18
18
  logo = /* @__PURE__ */ jsx(HiveCombinationMark, { className: "h-8 w-auto" }),
@@ -50,7 +50,7 @@ function HiveFooter({
50
50
  },
51
51
  i
52
52
  )),
53
- /* @__PURE__ */ jsx(ContactUs, {})
53
+ /* @__PURE__ */ jsx(ContactTextLink, {})
54
54
  ] }),
55
55
  /* @__PURE__ */ jsx(CSAStarLink, { className: "sm:col-start-[-1] lg:col-start-[-2]" })
56
56
  ] }),
@@ -9,7 +9,7 @@ function GraphQLConfCard({ image }) {
9
9
  href: "https://www.youtube.com/playlist?list=PL43V96KpNj7OMvmfL0WFKP6LpoboM8Hde",
10
10
  className: "group w-[358px]",
11
11
  children: [
12
- /* @__PURE__ */ jsx(Image, { alt: "", ...image, width: 358, height: 200 }),
12
+ /* @__PURE__ */ jsx(Image, { alt: "", src: image, width: 358, height: 200 }),
13
13
  /* @__PURE__ */ jsx("strong", { className: "mt-6 block text-xl font-medium leading-7 text-green-1000 dark:text-neutral-100", children: "GraphQLConf 2024" }),
14
14
  /* @__PURE__ */ jsx("p", { className: "mt-4 text-sm font-medium leading-5 text-green-800 dark:text-neutral-200", children: "September 10-12 | San Francisco CA" }),
15
15
  /* @__PURE__ */ jsx("p", { className: "mt-2 text-sm font-normal leading-5 text-green-800 dark:text-neutral-200", children: "The official GraphQL conference hosted by GraphQL Foundation." }),
@@ -17,13 +17,8 @@ type HiveNavigationProps = {
17
17
  href: string;
18
18
  children: ReactNode;
19
19
  }[];
20
+ developerMenu: DeveloperMenuProps['developerMenu'];
20
21
  searchProps?: ComponentProps<typeof Search>;
21
- developerMenu?: {
22
- href: string;
23
- title?: string;
24
- icon: ReactNode;
25
- children: ReactNode;
26
- }[];
27
22
  };
28
23
  /**
29
24
  *
@@ -104,7 +104,7 @@ function HiveNavigation({
104
104
  /* @__PURE__ */ jsx(
105
105
  Search,
106
106
  {
107
- className: "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",
107
+ className: "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]:-translate-y-1/2 [&_kbd]:border-none [&_kbd]:bg-green-200 dark:[&_kbd]:bg-neutral-700",
108
108
  ...searchProps
109
109
  }
110
110
  ),
@@ -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 MoreIcon, ReactComponent as PaperIcon, ReactComponent as PencilIcon, ReactComponent as RightCornerIcon, ReactComponent as SearchIcon, ReactComponent as ShareIcon, ReactComponent as ShieldFlashIcon, ReactComponent as StellateIcon, 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';
@@ -13,47 +13,49 @@ import { ReactComponent as ReactComponent12 } from "./mesh";
13
13
  import { ReactComponent as ReactComponent13 } from "./yoga";
14
14
  import { ReactComponent as ReactComponent14 } from "./hive";
15
15
  import { ReactComponent as ReactComponent15 } from "./hive-gateway";
16
+ import { ReactComponent as ReactComponent16 } from "./stellate";
16
17
  import { InformationCircleIcon, GitHubIcon, DiscordIcon } from "nextra/icons";
17
- import { ReactComponent as ReactComponent16 } from "./list";
18
- import { ReactComponent as ReactComponent17 } from "./paper";
19
- import { ReactComponent as ReactComponent18 } from "./target";
20
- import { ReactComponent as ReactComponent19 } from "./right-corner";
21
- import { ReactComponent as ReactComponent20 } from "./pencil";
22
- import { ReactComponent as ReactComponent21 } from "./account-box";
23
- import { ReactComponent as ReactComponent22 } from "./bard";
24
- import { ReactComponent as ReactComponent23 } from "./honour";
25
- import { ReactComponent as ReactComponent24 } from "./shield-flash";
26
- import { ReactComponent as ReactComponent25 } from "./group";
27
- import { ReactComponent as ReactComponent26 } from "./apps";
28
- import { ReactComponent as ReactComponent27 } from "./check";
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
- ReactComponent21 as AccountBox,
31
- ReactComponent26 as AppsIcon,
31
+ ReactComponent22 as AccountBox,
32
+ ReactComponent27 as AppsIcon,
32
33
  ReactComponent7 as ArrowIcon,
33
- ReactComponent22 as BardIcon,
34
+ ReactComponent23 as BardIcon,
34
35
  ReactComponent6 as CSAStarLevelOneIcon,
35
36
  ReactComponent as CaretSlimIcon,
36
- ReactComponent27 as CheckIcon,
37
+ ReactComponent28 as CheckIcon,
37
38
  ReactComponent2 as CloseIcon,
38
39
  ReactComponent11 as CodegenIcon,
39
40
  DiscordIcon,
40
41
  GitHubIcon,
41
- ReactComponent25 as GroupIcon,
42
+ ReactComponent26 as GroupIcon,
42
43
  ReactComponent15 as HiveGatewayIcon,
43
44
  ReactComponent14 as HiveIcon,
44
- ReactComponent23 as HonourIcon,
45
+ ReactComponent24 as HonourIcon,
45
46
  InformationCircleIcon,
46
47
  ReactComponent9 as LinkedInIcon,
47
- ReactComponent16 as ListIcon,
48
+ ReactComponent17 as ListIcon,
48
49
  ReactComponent12 as MeshIcon,
49
50
  ReactComponent3 as MoreIcon,
50
- ReactComponent17 as PaperIcon,
51
- ReactComponent20 as PencilIcon,
52
- ReactComponent19 as RightCornerIcon,
51
+ ReactComponent18 as PaperIcon,
52
+ ReactComponent21 as PencilIcon,
53
+ ReactComponent20 as RightCornerIcon,
53
54
  ReactComponent4 as SearchIcon,
54
55
  ReactComponent5 as ShareIcon,
55
- ReactComponent24 as ShieldFlashIcon,
56
- ReactComponent18 as TargetIcon,
56
+ ReactComponent25 as ShieldFlashIcon,
57
+ ReactComponent16 as StellateIcon,
58
+ ReactComponent19 as TargetIcon,
57
59
  ReactComponent8 as TwitterIcon,
58
60
  ReactComponent13 as YogaIcon,
59
61
  ReactComponent10 as YouTubeIcon
@@ -0,0 +1,3 @@
1
+ import 'react';
2
+ export { ReactComponent } from '../../logos/angular.mjs';
3
+ import 'nextra/icons';
@@ -0,0 +1,12 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ const SvgStellate = (props) => /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 32 33", width: 32, height: 33, fill: "none", ...props, children: [
3
+ /* @__PURE__ */ jsxs("g", { clipPath: "url(#st-a)", fillRule: "evenodd", clipRule: "evenodd", fill: "currentColor", children: [
4
+ /* @__PURE__ */ jsx("path", { d: "M26.6299 25.7766c.2277-.8491.2769-2.049-.7815-2.9659l-3.2735-2.8366-15.37699 8.11 6.99009 4.0365c.9907.5723 2.209.5723 3.1997 0l8.9284-5.1503.3199-1.1875-.0061-.0062Z" }),
5
+ /* @__PURE__ */ jsx("path", { d: "m28.4697 7.37838-.3753-.21536-8.9407 8.22078 7.5008 6.4978c1.1814 1.0214 1.6183 2.5167 1.163 4.215l.6522-.3754c.9907-.5722 1.5999-1.6306 1.5999-2.7689v-12.805c0-1.14446-.6092-2.19667-1.5999-2.76892ZM4.83506 7.26147c-.17229 1.12604.17229 2.04903.98452 2.68282l5.06412 3.90731 9.8021-10.9651L17.3815.978994c-.9906-.572252-2.209-.572252-3.1996 0L4.98274 6.28925l-.14768.97222Z" }),
6
+ /* @__PURE__ */ jsx("path", { d: "M15.4002 18.8911 5.06889 10.9227c-1.16297-.8984-1.69215-2.25214-1.45217-3.83968l-.51687.30151C2.10917 7.95678 1.5 9.01514 1.5 10.1535v12.7988c0 1.1445.60917 2.1967 1.59985 2.7689l2.95971 1.7106 9.34064-8.5345v-.0062Z" })
7
+ ] }),
8
+ /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "st-a", children: /* @__PURE__ */ jsx("path", { fill: "#fff", transform: "translate(0 .0498047)", d: "M0 0h32v32H0z" }) }) })
9
+ ] });
10
+ export {
11
+ SvgStellate as ReactComponent
12
+ };
@@ -6,7 +6,7 @@ export { HeroGradient } from './hero-gradient.mjs';
6
6
  export { HeroIllustration } from './hero-illustration.mjs';
7
7
  export { HeroMarketplace } from './hero-marketplace.mjs';
8
8
  export { HeroVideo } from './hero-video.mjs';
9
- export { ReactComponent as AccountBox, ReactComponent as AppsIcon, ReactComponent as ArchDecoration, ReactComponent as ArchDecorationGradientDefs, 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 HighlightDecoration, ReactComponent as HiveGatewayIcon, ReactComponent as HiveIcon, ReactComponent as HonourIcon, ReactComponent as LargeHiveIconDecoration, 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';
9
+ export { ReactComponent as AccountBox, ReactComponent as AppsIcon, ReactComponent as ArchDecoration, ReactComponent as ArchDecorationGradientDefs, 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 HighlightDecoration, ReactComponent as HiveGatewayIcon, ReactComponent as HiveIcon, ReactComponent as HonourIcon, ReactComponent as LargeHiveIconDecoration, 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 StellateIcon, ReactComponent as TargetIcon, ReactComponent as TwitterIcon, ReactComponent as YogaIcon, ReactComponent as YouTubeIcon } from '../logos/angular.mjs';
10
10
  export { DiscordIcon, GitHubIcon, InformationCircleIcon } from 'nextra/icons';
11
11
  export { Image } from './image.mjs';
12
12
  export { InfoList } from './info-list.mjs';
@@ -26,6 +26,7 @@ export { Heading, HeadingProps } from './heading.mjs';
26
26
  export { InfoCard, InfoCardProps } from './info-card.mjs';
27
27
  export { Stud, StudProps } from './stud.mjs';
28
28
  export { ExploreMainProductCards, ExploreMainProductCardsProps } from './explore-main-product-cards.mjs';
29
+ export { ContactButton, ContactButtonProps, ContactTextLink, ContactTextLinkProps } from './contact-us.mjs';
29
30
  export { Giscus } from './giscus.mjs';
30
31
  export { GraphQLConfCard, GraphQLConfCardProps } from './hive-navigation/graphql-conf-card.mjs';
31
32
  import 'react';
@@ -25,6 +25,7 @@ export * from "./heading";
25
25
  export * from "./info-card";
26
26
  export * from "./stud";
27
27
  export * from "./explore-main-product-cards";
28
+ export * from "./contact-us";
28
29
  import { Giscus } from "./giscus";
29
30
  export {
30
31
  Anchor,
@@ -1,7 +1,8 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
 
3
- declare function ToolsAndLibrariesCards({ className }: {
3
+ declare function ToolsAndLibrariesCards({ className, isHive, }: {
4
4
  className?: string;
5
+ isHive?: boolean;
5
6
  }): react_jsx_runtime.JSX.Element;
6
7
 
7
8
  export { ToolsAndLibrariesCards };
@@ -4,7 +4,10 @@ import { FOUR_MAIN_PRODUCTS, SIX_HIGHLIGHTED_PRODUCTS } from "../../products";
4
4
  import { CallToAction } from "../call-to-action";
5
5
  import { Heading } from "../heading";
6
6
  import { AncillaryProductCard, MainProductCard } from "../product-card";
7
- function ToolsAndLibrariesCards({ className }) {
7
+ function ToolsAndLibrariesCards({
8
+ className,
9
+ isHive
10
+ }) {
8
11
  return /* @__PURE__ */ jsxs(
9
12
  "section",
10
13
  {
@@ -18,7 +21,14 @@ function ToolsAndLibrariesCards({ className }) {
18
21
  /* @__PURE__ */ jsx("ul", { className: "-mx-12 -my-2 flex grid-cols-2 gap-[22px] overflow-auto px-12 py-2 lg:grid xl:grid-cols-4", children: FOUR_MAIN_PRODUCTS.map((product) => /* @__PURE__ */ jsx(MainProductCard, { as: "li", product }, product.name)) }),
19
22
  /* @__PURE__ */ jsx("p", { className: "text-green-800", children: "Our libraries to support all your GraphQL needs" }),
20
23
  /* @__PURE__ */ jsx("ul", { className: "-mx-12 -my-2 flex h-max grid-cols-6 gap-[22px] overflow-x-auto overflow-y-hidden px-12 py-2 max-sm:-mx-8 max-sm:px-8 sm:grid sm:grid-cols-2 lg:grid-cols-3", children: SIX_HIGHLIGHTED_PRODUCTS.map((product) => /* @__PURE__ */ jsx(AncillaryProductCard, { as: "li", product }, product.name)) }),
21
- /* @__PURE__ */ jsx(CallToAction, { href: "https://github.com/the-guild-org", variant: "primary", children: "Explore the Ecosystem" })
24
+ /* @__PURE__ */ jsx(
25
+ CallToAction,
26
+ {
27
+ href: isHive ? "/ecosystem" : "https://the-guild.dev/graphql/hive/ecosystem",
28
+ variant: "primary",
29
+ children: "Explore the Ecosystem"
30
+ }
31
+ )
22
32
  ]
23
33
  }
24
34
  );
package/dist/index.d.mts CHANGED
@@ -9,7 +9,7 @@ export { HeroGradient } from './components/hero-gradient.mjs';
9
9
  export { HeroIllustration } from './components/hero-illustration.mjs';
10
10
  export { HeroMarketplace } from './components/hero-marketplace.mjs';
11
11
  export { HeroVideo } from './components/hero-video.mjs';
12
- export { ReactComponent as AccountBox, ReactComponent as AngularLogo, ReactComponent as AppsIcon, ReactComponent as ArchDecoration, ReactComponent as ArchDecorationGradientDefs, ReactComponent as ArrowIcon, ReactComponent as BardIcon, ReactComponent as CSAStarLevelOneIcon, ReactComponent as CaretSlimIcon, ReactComponent as CheckIcon, ReactComponent as CloseIcon, ReactComponent as CodeGeneratorLogo, ReactComponent as CodegenIcon, ReactComponent as ConductorLogo, ReactComponent as ConfigLogo, ReactComponent as FetsLogo, ReactComponent as GraphQLFoundationLogo, ReactComponent as GroupIcon, ReactComponent as GuildLogo, ReactComponent as HeltinLogo, ReactComponent as HighlightDecoration, ReactComponent as HiveCombinationMark, ReactComponent as HiveGatewayIcon, ReactComponent as HiveIcon, ReactComponent as HonourIcon, ReactComponent as KitQLLogo, ReactComponent as LargeHiveIconDecoration, ReactComponent as LinkedInIcon, ReactComponent as ListIcon, ReactComponent as MeshIcon, ReactComponent as MeshLogo, ReactComponent as ModulesLogo, ReactComponent as MoreIcon, ReactComponent as NextraLogo, ReactComponent as PaperIcon, ReactComponent as PencilIcon, ReactComponent as RightCornerIcon, ReactComponent as SSELogo, ReactComponent as SearchIcon, ReactComponent as ShareIcon, ReactComponent as ShieldFlashIcon, ReactComponent as StitchingLogo, ReactComponent as TargetIcon, ReactComponent as TheGuild, ReactComponent as ToolsLogo, ReactComponent as TwitterIcon, ReactComponent as WSLogo, ReactComponent as WhatsAppLogo, ReactComponent as YogaIcon, ReactComponent as YogaLogo, ReactComponent as YouTubeIcon } from './logos/angular.mjs';
12
+ export { ReactComponent as AccountBox, ReactComponent as AngularLogo, ReactComponent as AppsIcon, ReactComponent as ArchDecoration, ReactComponent as ArchDecorationGradientDefs, ReactComponent as ArrowIcon, ReactComponent as BardIcon, ReactComponent as CSAStarLevelOneIcon, ReactComponent as CaretSlimIcon, ReactComponent as CheckIcon, ReactComponent as CloseIcon, ReactComponent as CodeGeneratorLogo, ReactComponent as CodegenIcon, ReactComponent as ConductorLogo, ReactComponent as ConfigLogo, ReactComponent as FetsLogo, ReactComponent as GraphQLFoundationLogo, ReactComponent as GroupIcon, ReactComponent as GuildLogo, ReactComponent as HeltinLogo, ReactComponent as HighlightDecoration, ReactComponent as HiveCombinationMark, ReactComponent as HiveGatewayIcon, ReactComponent as HiveIcon, ReactComponent as HonourIcon, ReactComponent as KitQLLogo, ReactComponent as LargeHiveIconDecoration, ReactComponent as LinkedInIcon, ReactComponent as ListIcon, ReactComponent as MeshIcon, ReactComponent as MeshLogo, ReactComponent as ModulesLogo, ReactComponent as MoreIcon, ReactComponent as NextraLogo, ReactComponent as PaperIcon, ReactComponent as PencilIcon, ReactComponent as RightCornerIcon, ReactComponent as SSELogo, ReactComponent as SearchIcon, ReactComponent as ShareIcon, ReactComponent as ShieldFlashIcon, ReactComponent as StellateIcon, ReactComponent as StitchingLogo, ReactComponent as TargetIcon, ReactComponent as TheGuild, ReactComponent as ToolsLogo, ReactComponent as TwitterIcon, ReactComponent as WSLogo, ReactComponent as WhatsAppLogo, ReactComponent as YogaIcon, ReactComponent as YogaLogo, ReactComponent as YouTubeIcon } from './logos/angular.mjs';
13
13
  export { DiscordIcon, GitHubIcon, InformationCircleIcon } from 'nextra/icons';
14
14
  export { Image } from './components/image.mjs';
15
15
  export { InfoList } from './components/info-list.mjs';
@@ -29,6 +29,7 @@ export { Heading, HeadingProps } from './components/heading.mjs';
29
29
  export { InfoCard, InfoCardProps } from './components/info-card.mjs';
30
30
  export { Stud, StudProps } from './components/stud.mjs';
31
31
  export { ExploreMainProductCards, ExploreMainProductCardsProps } from './components/explore-main-product-cards.mjs';
32
+ export { ContactButton, ContactButtonProps, ContactTextLink, ContactTextLinkProps } from './components/contact-us.mjs';
32
33
  export { Giscus } from './components/giscus.mjs';
33
34
  export { PRODUCTS } from './products.mjs';
34
35
  export { IEditorProps, IFeatureListProps, IHeroGradientProps, IHeroIllustrationProps, IHeroMarketplaceProps, IHeroVideoProps, IInfoListProps, ILink, IMarketplaceItemProps, IMarketplaceItemsProps, IMarketplaceListProps, IMarketplaceSearchProps, ISchemaPageProps } from './types/components.mjs';
@@ -1,6 +1,7 @@
1
- import { FC, SVGProps, HTMLProps, ReactNode } from 'react';
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { FC, SVGProps, HTMLProps } from 'react';
2
3
 
3
- type ProductType = 'HIVE' | 'HIVE_GATEWAY' | 'CONDUCTOR' | 'YOGA' | 'ENVELOP' | 'INSPECTOR' | 'CODEGEN' | 'MESH' | 'TOOLS' | 'MODULES' | 'ESLINT' | 'CONFIG' | 'SCALARS' | 'SOFA' | 'STITCHING' | 'ANGULAR' | 'WHATSAPP' | 'KITQL' | 'SSE' | 'WS' | 'FETS' | 'HELTIN' | 'NEXTRA';
4
+ type ProductType = 'HIVE' | 'HIVE_GATEWAY' | 'CONDUCTOR' | 'YOGA' | 'ENVELOP' | 'INSPECTOR' | 'CODEGEN' | 'MESH' | 'TOOLS' | 'MODULES' | 'ESLINT' | 'CONFIG' | 'SCALARS' | 'SOFA' | 'STITCHING' | 'ANGULAR' | 'WHATSAPP' | 'KITQL' | 'SSE' | 'WS' | 'FETS' | 'HELTIN' | 'NEXTRA' | 'STELLATE';
4
5
  interface ProductInfo {
5
6
  name: string;
6
7
  title: string;
@@ -12,9 +13,11 @@ declare const PRODUCTS: Record<ProductType, ProductInfo>;
12
13
  declare const FOUR_MAIN_PRODUCTS: ProductInfo[];
13
14
  declare const SIX_HIGHLIGHTED_PRODUCTS: ProductInfo[];
14
15
  /** List of products displayed in hamburger menu. */
15
- declare const PRODUCTS_MENU_LIST: Record<string, {
16
- type: 'separator';
17
- title: ReactNode;
18
- }>;
16
+ declare const PRODUCTS_MENU_LIST: {
17
+ [k: string]: {
18
+ href: string;
19
+ title: react_jsx_runtime.JSX.Element;
20
+ };
21
+ };
19
22
 
20
23
  export { FOUR_MAIN_PRODUCTS, PRODUCTS, PRODUCTS_MENU_LIST, type ProductInfo, type ProductType, SIX_HIGHLIGHTED_PRODUCTS };
package/dist/products.js CHANGED
@@ -1,6 +1,13 @@
1
1
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
2
  import { cn } from "./cn";
3
- import { CodegenIcon, HiveGatewayIcon, HiveIcon, MeshIcon, YogaIcon } from "./components/icons";
3
+ import {
4
+ CodegenIcon,
5
+ HiveGatewayIcon,
6
+ HiveIcon,
7
+ MeshIcon,
8
+ StellateIcon,
9
+ YogaIcon
10
+ } from "./components/icons";
4
11
  import {
5
12
  AngularLettermark,
6
13
  ConductorLettermark,
@@ -182,6 +189,13 @@ const PRODUCTS = {
182
189
  href: "https://nextra.site",
183
190
  logo: NextraLogo,
184
191
  primaryColor: "#000"
192
+ },
193
+ STELLATE: {
194
+ name: "Stellate",
195
+ title: "GraphQL Edge Caching, Metrics and Security.",
196
+ href: "https://stellate.co",
197
+ logo: StellateIcon,
198
+ primaryColor: "#FF7752"
185
199
  }
186
200
  };
187
201
  const FOUR_MAIN_PRODUCTS = [
@@ -199,19 +213,15 @@ const SIX_HIGHLIGHTED_PRODUCTS = [
199
213
  PRODUCTS.ESLINT
200
214
  ];
201
215
  const PRODUCTS_MENU_LIST = Object.fromEntries(
202
- [
203
- "The GraphQL Stack",
204
- ...FOUR_MAIN_PRODUCTS,
205
- "Libraries",
206
- ...SIX_HIGHLIGHTED_PRODUCTS
207
- ].map((item, i) => {
216
+ ["The GraphQL Stack", ...FOUR_MAIN_PRODUCTS, "Libraries", ...SIX_HIGHLIGHTED_PRODUCTS].map((item, i) => {
208
217
  if (typeof item === "string") {
209
218
  return [
210
219
  i,
211
220
  {
212
- type: "separator",
221
+ // BUG: Nextra 4 doesn't support separators inside menu items.
222
+ href: "#",
213
223
  title: /* @__PURE__ */ jsxs(Fragment, { children: [
214
- /* @__PURE__ */ jsx("style", { className: "hive-label-separator", children: "li:has(>.hive-label-separator) { margin: 0.75rem 0 0.25rem 0; padding: 0 }" }),
224
+ /* @__PURE__ */ jsx("style", { className: "hive-label-separator", children: ":is(a,li):has(>.hive-label-separator) { margin: 0.75rem 0 0.25rem 0; padding: 0 }" }),
215
225
  /* @__PURE__ */ jsx("span", { className: "ml-2 font-medium text-gray-500 dark:text-neutral-400", children: item })
216
226
  ] })
217
227
  }
@@ -220,7 +230,6 @@ const PRODUCTS_MENU_LIST = Object.fromEntries(
220
230
  return [
221
231
  i,
222
232
  {
223
- type: "page",
224
233
  href: item.href,
225
234
  title: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
226
235
  /* @__PURE__ */ jsx(
@@ -7,11 +7,11 @@ export { fetchPackageInfo } from './npm.mjs';
7
7
  export { GuildLayout, getDefaultMetadata } from './theme-layout.mjs';
8
8
  import 'next/image';
9
9
  import 'nextra';
10
- import 'nextra/components';
11
10
  import 'nextra/mdx-components/pre/index';
12
11
  import 'react/jsx-runtime';
13
12
  import 'react';
14
13
  import 'next';
15
14
  import 'nextra-theme-docs';
15
+ import 'nextra/components';
16
16
  import '../components/hive-navigation/index.mjs';
17
17
  import '../components/hive-navigation/graphql-conf-card.mjs';
@@ -1,6 +1,5 @@
1
1
  import * as next_image from 'next/image';
2
2
  import * as nextra from 'nextra';
3
- import * as nextra_components from 'nextra/components';
4
3
  import * as nextra_mdx_components_pre_index from 'nextra/mdx-components/pre/index';
5
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
5
  import * as react from 'react';
@@ -20,26 +19,13 @@ declare const useMDXComponents: (components?: object) => {
20
19
  small?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
21
20
  sub?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
22
21
  sup?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
23
- div?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">> | undefined;
24
- slot?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.SlotHTMLAttributes<HTMLSlotElement>, HTMLSlotElement>, "ref">> | undefined;
25
- style?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.StyleHTMLAttributes<HTMLStyleElement>, HTMLStyleElement>, "ref">> | undefined;
26
- span?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref">> | undefined;
27
- button?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">> | undefined;
28
- dialog?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.DialogHTMLAttributes<HTMLDialogElement>, HTMLDialogElement>, "ref">> | undefined;
29
- figure?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
30
- form?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "ref">> | undefined;
31
- main?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
32
- menuitem?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
33
- option?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.OptionHTMLAttributes<HTMLOptionElement>, HTMLOptionElement>, "ref">> | undefined;
34
- switch?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.SVGProps<SVGSwitchElement>, "ref">> | undefined;
35
- table: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "ref">> | (({ className, ...props }: Omit<react.DetailedHTMLProps<react.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "ref">) => react_jsx_runtime.JSX.Element);
36
- text?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.SVGTextElementAttributes<SVGTextElement>, "ref">> | undefined;
37
- time?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.TimeHTMLAttributes<HTMLTimeElement>, HTMLTimeElement>, "ref">> | undefined;
38
22
  code: keyof react.JSX.IntrinsicElements | react.FC<react.ClassAttributes<HTMLElement> & react.HTMLAttributes<HTMLElement> & {
39
23
  "data-language"?: string;
40
24
  }> | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">>;
41
25
  path?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.SVGProps<SVGPathElement>, "ref">> | undefined;
42
26
  set?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.SVGProps<SVGSetElement>, "ref">> | undefined;
27
+ time?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.TimeHTMLAttributes<HTMLTimeElement>, HTMLTimeElement>, "ref">> | undefined;
28
+ span?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref">> | undefined;
43
29
  a: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref">>;
44
30
  abbr?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
45
31
  address?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
@@ -53,6 +39,7 @@ declare const useMDXComponents: (components?: object) => {
53
39
  blockquote: keyof react.JSX.IntrinsicElements | react.FunctionComponent<react.DetailedHTMLProps<react.BlockquoteHTMLAttributes<HTMLQuoteElement>, HTMLQuoteElement>> | react.FC<Omit<react.DetailedHTMLProps<react.BlockquoteHTMLAttributes<HTMLQuoteElement>, HTMLQuoteElement>, "ref">>;
54
40
  body?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLBodyElement>, HTMLBodyElement>, "ref">> | undefined;
55
41
  br?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLBRElement>, HTMLBRElement>, "ref">> | undefined;
42
+ button?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">> | undefined;
56
43
  canvas?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.CanvasHTMLAttributes<HTMLCanvasElement>, HTMLCanvasElement>, "ref">> | undefined;
57
44
  caption?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
58
45
  center?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
@@ -65,12 +52,16 @@ declare const useMDXComponents: (components?: object) => {
65
52
  del?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.DelHTMLAttributes<HTMLModElement>, HTMLModElement>, "ref">> | undefined;
66
53
  details: keyof react.JSX.IntrinsicElements | react.FC<react.DetailedHTMLProps<react.DetailsHTMLAttributes<HTMLDetailsElement>, HTMLDetailsElement>> | react.FC<Omit<react.DetailedHTMLProps<react.DetailsHTMLAttributes<HTMLDetailsElement>, HTMLDetailsElement>, "ref">>;
67
54
  dfn?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
55
+ dialog?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.DialogHTMLAttributes<HTMLDialogElement>, HTMLDialogElement>, "ref">> | undefined;
56
+ div?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">> | undefined;
68
57
  dl?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDListElement>, HTMLDListElement>, "ref">> | undefined;
69
58
  dt?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
70
59
  em?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
71
60
  embed?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.EmbedHTMLAttributes<HTMLEmbedElement>, HTMLEmbedElement>, "ref">> | undefined;
72
61
  fieldset?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>, "ref">> | undefined;
73
62
  figcaption?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
63
+ figure?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
64
+ form?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "ref">> | undefined;
74
65
  h1: keyof react.JSX.IntrinsicElements | react.FC<react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>> | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">>;
75
66
  h2: keyof react.JSX.IntrinsicElements | react.FC<react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>> | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">>;
76
67
  h3: keyof react.JSX.IntrinsicElements | react.FC<react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>> | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">>;
@@ -91,7 +82,9 @@ declare const useMDXComponents: (components?: object) => {
91
82
  label?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref">> | undefined;
92
83
  legend?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLLegendElement>, HTMLLegendElement>, "ref">> | undefined;
93
84
  li: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref">> | ((props: Omit<react.DetailedHTMLProps<react.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref">) => react_jsx_runtime.JSX.Element);
85
+ main?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
94
86
  mark?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
87
+ menuitem?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
95
88
  meta?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.MetaHTMLAttributes<HTMLMetaElement>, HTMLMetaElement>, "ref">> | undefined;
96
89
  meter?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.MeterHTMLAttributes<HTMLMeterElement>, HTMLMeterElement>, "ref">> | undefined;
97
90
  nav?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
@@ -99,6 +92,7 @@ declare const useMDXComponents: (components?: object) => {
99
92
  noscript?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
100
93
  ol: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref">> | ((props: Omit<react.DetailedHTMLProps<react.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref">) => react_jsx_runtime.JSX.Element);
101
94
  optgroup?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.OptgroupHTMLAttributes<HTMLOptGroupElement>, HTMLOptGroupElement>, "ref">> | undefined;
95
+ option?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.OptionHTMLAttributes<HTMLOptionElement>, HTMLOptionElement>, "ref">> | undefined;
102
96
  output?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.OutputHTMLAttributes<HTMLOutputElement>, HTMLOutputElement>, "ref">> | undefined;
103
97
  p: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref">> | ((props: Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref">) => react_jsx_runtime.JSX.Element);
104
98
  param?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.ParamHTMLAttributes<HTMLParamElement>, HTMLParamElement>, "ref">> | undefined;
@@ -111,12 +105,15 @@ declare const useMDXComponents: (components?: object) => {
111
105
  ruby?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
112
106
  s?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
113
107
  samp?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
108
+ slot?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.SlotHTMLAttributes<HTMLSlotElement>, HTMLSlotElement>, "ref">> | undefined;
114
109
  script?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.ScriptHTMLAttributes<HTMLScriptElement>, HTMLScriptElement>, "ref">> | undefined;
115
110
  section?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
116
111
  select?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>, "ref">> | undefined;
117
112
  source?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.SourceHTMLAttributes<HTMLSourceElement>, HTMLSourceElement>, "ref">> | undefined;
118
113
  strong?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
119
- summary: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | typeof nextra_components.Summary;
114
+ style?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.StyleHTMLAttributes<HTMLStyleElement>, HTMLStyleElement>, "ref">> | undefined;
115
+ summary: keyof react.JSX.IntrinsicElements | react.FC<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>> | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">>;
116
+ table: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "ref">> | (({ className, ...props }: Omit<react.DetailedHTMLProps<react.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "ref">) => react_jsx_runtime.JSX.Element);
120
117
  template?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLTemplateElement>, HTMLTemplateElement>, "ref">> | undefined;
121
118
  tbody?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref">> | undefined;
122
119
  td: keyof react.JSX.IntrinsicElements | react.FC<react.DetailedHTMLProps<react.TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>> | react.FC<Omit<react.DetailedHTMLProps<react.TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, "ref">>;
@@ -181,6 +178,8 @@ declare const useMDXComponents: (components?: object) => {
181
178
  radialGradient?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.SVGProps<SVGRadialGradientElement>, "ref">> | undefined;
182
179
  rect?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.SVGProps<SVGRectElement>, "ref">> | undefined;
183
180
  stop?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.SVGProps<SVGStopElement>, "ref">> | undefined;
181
+ switch?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.SVGProps<SVGSwitchElement>, "ref">> | undefined;
182
+ text?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.SVGTextElementAttributes<SVGTextElement>, "ref">> | undefined;
184
183
  textPath?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.SVGProps<SVGTextPathElement>, "ref">> | undefined;
185
184
  tspan?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.SVGProps<SVGTSpanElement>, "ref">> | undefined;
186
185
  use?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.SVGProps<SVGUseElement>, "ref">> | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theguild/components",
3
- "version": "8.0.0-alpha-20241205153040-941f0e69f61349bf789b5e08d108ea2196a2436a",
3
+ "version": "8.0.0-alpha-20241205182626-0c530a9ef4b92616ceb02d93a30c7fb4f876114d",
4
4
  "repository": {
5
5
  "url": "https://github.com/the-guild-org/docs",
6
6
  "directory": "packages/components"
@@ -49,8 +49,8 @@
49
49
  "@radix-ui/react-navigation-menu": "^1.2.0",
50
50
  "clsx": "2.1.1",
51
51
  "fuzzy": "0.1.3",
52
- "nextra": "4.0.0-app-router.28",
53
- "nextra-theme-docs": "4.0.0-app-router.28",
52
+ "nextra": "4.0.0-app-router.34",
53
+ "nextra-theme-docs": "4.0.0-app-router.34",
54
54
  "react-paginate": "8.2.0",
55
55
  "react-player": "2.16.0",
56
56
  "semver": "^7.3.8",
package/style.css CHANGED
@@ -1,35 +1,38 @@
1
- @layer l-base, l-nextra, l-components;
1
+ @layer l-nextra;
2
2
 
3
- /*@import 'tailwindcss/base' layer(l-base);*/
4
- @import 'nextra-theme-docs/dist/style.css' layer(l-nextra);
5
- @import 'tailwindcss/components' layer(l-components);
3
+ /**
4
+ * We don't need Tailwind CSS preflight styles `@import 'tailwindcss/base'`
5
+ * because `style.css` from `nextra-theme-docs` already include them
6
+ **/
7
+ @import 'nextra-theme-docs/dist/style-prefixed.css' layer(l-nextra);
6
8
  @import 'tailwindcss/utilities';
9
+ @import 'tailwindcss/components';
7
10
 
8
11
  /* #region hamburger mobile menu */
9
12
 
10
- .light .nextra-sidebar-container input {
13
+ .light .nextra-mobile-nav input {
11
14
  color: rgb(0, 52, 44);
12
15
  background-color: rgb(248, 247, 246) !important;
13
16
  border: 1px solid rgb(241, 238, 228);
14
17
  }
15
18
 
16
- .light .nextra-sidebar-container input::placeholder {
19
+ .light .nextra-mobile-nav input::placeholder {
17
20
  color: rgba(36, 88, 80, 0.9) !important;
18
21
  }
19
22
 
20
- .light .nextra-sidebar-container .nextra-sidebar-footer:is(html[class] *) {
23
+ .light .nextra-mobile-nav .nextra-sidebar-footer:is(html[class] *) {
21
24
  border-color: #e5e7eb;
22
25
  }
23
26
 
24
- .light .nextra-sidebar-container kbd {
27
+ .light .nextra-mobile-nav kbd {
25
28
  @apply !border-gray-200 !bg-white;
26
29
  }
27
30
 
28
- .light .nextra-sidebar-container li > :is(a, button) {
31
+ .light .nextra-mobile-nav li > :is(a, button) {
29
32
  @apply text-gray-500 hover:bg-gray-100 hover:text-gray-900;
30
33
  }
31
34
 
32
- .light .nextra-sidebar-container ul::before {
35
+ .light .nextra-mobile-nav ul::before {
33
36
  @apply !bg-gray-200;
34
37
  }
35
38
 
@@ -57,7 +60,7 @@
57
60
 
58
61
  /* #endregion search results */
59
62
 
60
- @layer l-components {
63
+ @layer components {
61
64
  .hive-focus {
62
65
  &:focus {
63
66
  outline: none;
@@ -100,7 +103,7 @@
100
103
  }
101
104
 
102
105
  /* wrong with neue montreal */
103
- ._subpixel-antialiased {
106
+ .n\:subpixel-antialiased {
104
107
  -webkit-font-smoothing: unset;
105
108
  -moz-osx-font-smoothing: unset;
106
109
  }
@@ -1,5 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
-
3
- declare function ContactUs(): react_jsx_runtime.JSX.Element;
4
-
5
- export { ContactUs };
@@ -1,21 +0,0 @@
1
- "use client";
2
- import { jsx } from "react/jsx-runtime";
3
- function ContactUs() {
4
- return /* @__PURE__ */ jsx(
5
- "a",
6
- {
7
- className: "hive-focus -m-2 rounded p-2 font-medium hover:text-blue-700 hover:underline dark:hover:text-blue-100",
8
- href: "https://the-guild.dev/contact",
9
- onClick: (event) => {
10
- if (window.$crisp) {
11
- window.$crisp.push(["do", "chat:open"]);
12
- event.preventDefault();
13
- }
14
- },
15
- children: "Contact Us"
16
- }
17
- );
18
- }
19
- export {
20
- ContactUs
21
- };