@theguild/components 9.7.1 → 9.8.0-alpha-20250709145129-07dac296a1234e48cb183e6ee2f250fbb77bf699
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.
|
@@ -11,8 +11,12 @@ type HiveFooterProps = {
|
|
|
11
11
|
href?: string;
|
|
12
12
|
description?: string;
|
|
13
13
|
items?: HiveFooterItems;
|
|
14
|
+
/**
|
|
15
|
+
* In case this component is used outside of Hive Platform in a design-consistent but less related context,
|
|
16
|
+
*/
|
|
17
|
+
hideSecurityBadges?: boolean;
|
|
14
18
|
};
|
|
15
|
-
declare function HiveFooter({ className, logo, href, description, items, }: HiveFooterProps): react_jsx_runtime.JSX.Element;
|
|
19
|
+
declare function HiveFooter({ className, logo, href, description, items, hideSecurityBadges, }: HiveFooterProps): react_jsx_runtime.JSX.Element;
|
|
16
20
|
declare namespace HiveFooter {
|
|
17
21
|
var DEFAULT_ITEMS: HiveFooterItems;
|
|
18
22
|
}
|
|
@@ -6,14 +6,8 @@ import { FOUR_MAIN_PRODUCTS, SIX_HIGHLIGHTED_PRODUCTS } from "../../products";
|
|
|
6
6
|
import { Anchor } from "../anchor";
|
|
7
7
|
import { ContactTextLink } from "../contact-us";
|
|
8
8
|
import { __LANDING_WIDTHS_ID } from "../hive-layout-config";
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
DiscordIcon,
|
|
12
|
-
GitHubIcon,
|
|
13
|
-
LinkedInIcon,
|
|
14
|
-
TwitterIcon,
|
|
15
|
-
YouTubeIcon
|
|
16
|
-
} from "../icons/index";
|
|
9
|
+
import { DiscordIcon, GitHubIcon, LinkedInIcon, TwitterIcon, YouTubeIcon } from "../icons/index";
|
|
10
|
+
import { SecurityBadges } from "./security-badges";
|
|
17
11
|
const INNER_BOX_WIDTH_STYLE = "max-w-[90rem] [body:has(#hive-l-widths)_&]:max-w-[75rem] [body:has(#hive-l-widths)_&]:mx-4";
|
|
18
12
|
if (process.env.NODE_ENV === "development") {
|
|
19
13
|
console.assert(
|
|
@@ -26,7 +20,8 @@ function HiveFooter({
|
|
|
26
20
|
logo = /* @__PURE__ */ jsx(HiveCombinationMark, { className: "h-8 w-auto" }),
|
|
27
21
|
href = `${siteOrigin}/`,
|
|
28
22
|
description = "Open-source GraphQL management platform",
|
|
29
|
-
items
|
|
23
|
+
items,
|
|
24
|
+
hideSecurityBadges
|
|
30
25
|
}) {
|
|
31
26
|
items = { ...HiveFooter.DEFAULT_ITEMS, ...items };
|
|
32
27
|
return /* @__PURE__ */ jsxs(
|
|
@@ -71,7 +66,7 @@ function HiveFooter({
|
|
|
71
66
|
)),
|
|
72
67
|
/* @__PURE__ */ jsx(ContactTextLink, {})
|
|
73
68
|
] }),
|
|
74
|
-
/* @__PURE__ */ jsx(
|
|
69
|
+
/* @__PURE__ */ jsx("div", { className: "sm:col-start-[-1] lg:col-start-[-2]", children: !hideSecurityBadges && /* @__PURE__ */ jsx(SecurityBadges, {}) })
|
|
75
70
|
] }),
|
|
76
71
|
/* @__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: [
|
|
77
72
|
/* @__PURE__ */ jsx("div", { className: "flex gap-6 lg:order-1", children: SOCIAL_ICONS.map(({ icon: Icon, ...iconProps }) => /* @__PURE__ */ jsx(
|
|
@@ -238,21 +233,6 @@ function DecorationArch(props) {
|
|
|
238
233
|
}
|
|
239
234
|
);
|
|
240
235
|
}
|
|
241
|
-
function CSAStarLink({ className }) {
|
|
242
|
-
return /* @__PURE__ */ jsx(
|
|
243
|
-
"a",
|
|
244
|
-
{
|
|
245
|
-
href: "https://cloudsecurityalliance.org/star/registry/software-products-guild-ltd-the-guild/services/graphql-hive",
|
|
246
|
-
target: "_blank",
|
|
247
|
-
rel: "noreferrer noopener",
|
|
248
|
-
className: cn(
|
|
249
|
-
"hive-focus w-fit rounded-full focus-visible:outline-none focus-visible:ring-offset-2 focus-visible:ring-offset-[rgb(var(--nextra-bg))]",
|
|
250
|
-
className
|
|
251
|
-
),
|
|
252
|
-
children: /* @__PURE__ */ jsx(CSAStarLevelOneIcon, { className: "size-20 lg:size-[120px] dark:opacity-95" })
|
|
253
|
-
}
|
|
254
|
-
);
|
|
255
|
-
}
|
|
256
236
|
export {
|
|
257
237
|
HiveFooter
|
|
258
238
|
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "../../cn";
|
|
3
|
+
import { ReactComponent as CSAStarLevelOneIcon } from "../icons/csa-star-level-one";
|
|
4
|
+
function SecurityBadge({
|
|
5
|
+
href,
|
|
6
|
+
children,
|
|
7
|
+
className
|
|
8
|
+
}) {
|
|
9
|
+
return /* @__PURE__ */ jsx(
|
|
10
|
+
"a",
|
|
11
|
+
{
|
|
12
|
+
href,
|
|
13
|
+
target: "_blank",
|
|
14
|
+
rel: "noreferrer noopener",
|
|
15
|
+
className: cn(
|
|
16
|
+
"hive-focus h-fit w-fit rounded-full p-1 hover:bg-blue-200 focus-visible:outline-none focus-visible:ring-offset-2 focus-visible:ring-offset-[rgb(var(--nextra-bg))] dark:hover:bg-white/20 dark:hover:*:opacity-100",
|
|
17
|
+
className
|
|
18
|
+
),
|
|
19
|
+
children
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
function SecurityBadges() {
|
|
24
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-4 max-lg:flex-col", children: [
|
|
25
|
+
/* @__PURE__ */ jsx(SecurityBadge, { href: "https://cloudsecurityalliance.org/star/registry/software-products-guild-ltd-the-guild/services/graphql-hive", children: /* @__PURE__ */ jsx(CSAStarLevelOneIcon, { className: "size-[88px] dark:opacity-95" }) }),
|
|
26
|
+
/* @__PURE__ */ jsx(SecurityBadge, { href: "https://security.graphql-hive.com/", children: /* @__PURE__ */ jsx(
|
|
27
|
+
"img",
|
|
28
|
+
{
|
|
29
|
+
src: "https://static.vanta.com/static/soc2_badge.ac7ad1ad.webp",
|
|
30
|
+
className: "size-[88px] dark:opacity-95"
|
|
31
|
+
}
|
|
32
|
+
) })
|
|
33
|
+
] });
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
SecurityBadges
|
|
37
|
+
};
|
package/package.json
CHANGED