@theguild/components 7.2.0-alpha-20241101220642-0b6682d9cf4196529799e8ad0e38b83426590e93 → 8.0.0-alpha-20241103132221-f9d255adde945cffb98f9f7c914ac29896a15819

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.
Files changed (117) hide show
  1. package/dist/chunk-ME7V4BHY.js +10 -0
  2. package/dist/cn.d.mts +5 -0
  3. package/dist/cn.js +8 -0
  4. package/dist/components/anchor.d.mts +11 -0
  5. package/dist/components/anchor.js +30 -0
  6. package/dist/components/button.d.mts +13 -0
  7. package/dist/components/button.js +25 -0
  8. package/dist/components/call-to-action.d.mts +38 -0
  9. package/dist/components/call-to-action.js +42 -0
  10. package/dist/components/cards-colorful.d.mts +19 -0
  11. package/dist/components/cards-colorful.js +20 -0
  12. package/dist/components/cookies-consent.d.mts +7 -0
  13. package/dist/components/cookies-consent.js +48 -0
  14. package/dist/components/decorations/index.d.mts +11 -0
  15. package/dist/components/decorations/index.js +72 -0
  16. package/dist/components/feature-list.d.mts +9 -0
  17. package/dist/components/feature-list.js +41 -0
  18. package/dist/components/footer.d.mts +9 -0
  19. package/dist/components/footer.js +116 -0
  20. package/dist/components/get-your-api-game-right-section.d.mts +7 -0
  21. package/dist/components/get-your-api-game-right-section.js +122 -0
  22. package/dist/components/giscus.d.mts +6 -0
  23. package/dist/components/giscus.js +14 -0
  24. package/dist/components/guild-navbar-logo.d.mts +19 -0
  25. package/dist/components/guild-navbar-logo.js +62 -0
  26. package/dist/components/heading.d.mts +10 -0
  27. package/dist/components/heading.js +36 -0
  28. package/dist/components/hero-gradient.d.mts +9 -0
  29. package/dist/components/hero-gradient.js +82 -0
  30. package/dist/components/hero-illustration.d.mts +9 -0
  31. package/dist/components/hero-illustration.js +31 -0
  32. package/dist/components/hero-marketplace.d.mts +9 -0
  33. package/dist/components/hero-marketplace.js +78 -0
  34. package/dist/components/hero-video.d.mts +9 -0
  35. package/dist/components/hero-video.js +73 -0
  36. package/dist/components/hive-footer.d.mts +11 -0
  37. package/dist/components/hive-footer.js +252 -0
  38. package/dist/components/hive-navigation/graphql-conf-card.d.mts +9 -0
  39. package/dist/components/hive-navigation/graphql-conf-card.js +26 -0
  40. package/dist/components/hive-navigation/index.d.mts +55 -0
  41. package/dist/components/hive-navigation/index.js +392 -0
  42. package/dist/components/hive-navigation/navigation-menu.d.mts +23 -0
  43. package/dist/components/hive-navigation/navigation-menu.js +179 -0
  44. package/dist/components/icons/index.d.mts +6 -0
  45. package/dist/{chunk-XKCA3AB7.js → components/icons/index.js} +29 -266
  46. package/dist/components/image.d.mts +6 -0
  47. package/dist/components/image.js +8 -0
  48. package/dist/components/index.d.mts +44 -0
  49. package/dist/components/index.js +52 -0
  50. package/dist/components/info-card.d.mts +11 -0
  51. package/dist/components/info-card.js +20 -0
  52. package/dist/components/info-list.d.mts +9 -0
  53. package/dist/components/info-list.js +27 -0
  54. package/dist/components/legacy-package-cmd.d.mts +13 -0
  55. package/dist/components/legacy-package-cmd.js +54 -0
  56. package/dist/components/marketplace-list.d.mts +9 -0
  57. package/dist/components/marketplace-list.js +118 -0
  58. package/dist/components/marketplace-search.d.mts +9 -0
  59. package/dist/components/marketplace-search.js +111 -0
  60. package/dist/components/npm-badge.d.mts +7 -0
  61. package/dist/components/npm-badge.js +16 -0
  62. package/dist/components/schema-type.d.mts +9 -0
  63. package/dist/components/schema-type.js +80 -0
  64. package/dist/components/stud.d.mts +7 -0
  65. package/dist/components/stud.js +17 -0
  66. package/dist/components/tag.d.mts +13 -0
  67. package/dist/components/tag.js +26 -0
  68. package/dist/components/theme-switcher.d.mts +7 -0
  69. package/dist/components/theme-switcher.js +17 -0
  70. package/dist/components/tools-and-libraries-cards.d.mts +7 -0
  71. package/dist/components/tools-and-libraries-cards.js +442 -0
  72. package/dist/constants.d.mts +7 -0
  73. package/dist/constants.js +7 -0
  74. package/dist/helpers/render-slot.d.mts +3 -0
  75. package/dist/helpers/render-slot.js +21 -0
  76. package/dist/index.d.mts +64 -339
  77. package/dist/index.js +21 -3115
  78. package/dist/logos/index.d.mts +26 -0
  79. package/dist/{chunk-EWF5AT2G.js → logos/index.js} +68 -53
  80. package/dist/mdx-components.d.mts +5 -0
  81. package/dist/mdx-components.js +50 -0
  82. package/dist/products.d.mts +10 -5
  83. package/dist/products.js +230 -5
  84. package/dist/server/index.d.mts +5 -0
  85. package/dist/server/index.js +12 -0
  86. package/dist/server/next.config.d.mts +10 -0
  87. package/dist/server/next.config.js +107 -0
  88. package/dist/server/npm.d.mts +21 -0
  89. package/dist/server/npm.js +75 -0
  90. package/dist/server/package.json +1 -0
  91. package/dist/server/pages.d.mts +1 -0
  92. package/dist/server/pages.js +5 -0
  93. package/dist/server/underscore-redirects.d.mts +3 -0
  94. package/dist/server/underscore-redirects.js +40 -0
  95. package/dist/static/illustrations/marketplace-cube-bl.d.mts +2 -0
  96. package/dist/static/illustrations/marketplace-cube-br.d.mts +2 -0
  97. package/dist/static/illustrations/marketplace-cube-tl.d.mts +2 -0
  98. package/dist/static/illustrations/marketplace-cube-tr.d.mts +2 -0
  99. package/dist/static/illustrations/marketplace-desktop.d.mts +2 -0
  100. package/dist/static/illustrations/marketplace-mobile.d.mts +2 -0
  101. package/dist/theme-layout.d.mts +39 -0
  102. package/dist/theme-layout.js +144 -0
  103. package/dist/types/components.d.mts +121 -0
  104. package/dist/types/components.js +0 -0
  105. package/package.json +19 -36
  106. package/style.css +10 -8
  107. package/dist/compile.mjs +0 -11
  108. package/dist/index.css +0 -133
  109. package/dist/logos.d.mts +0 -32
  110. package/dist/logos.js +0 -54
  111. package/dist/next.config.mjs +0 -135
  112. /package/dist/{marketplace-cube-bl-42X7Y3KO.png → static/illustrations/marketplace-cube-bl.png} +0 -0
  113. /package/dist/{marketplace-cube-br-Y5MZRDIL.png → static/illustrations/marketplace-cube-br.png} +0 -0
  114. /package/dist/{marketplace-cube-tl-PEJKW6RX.png → static/illustrations/marketplace-cube-tl.png} +0 -0
  115. /package/dist/{marketplace-cube-tr-O5XQ6Q4N.png → static/illustrations/marketplace-cube-tr.png} +0 -0
  116. /package/dist/{marketplace-desktop-7XUR54PR.png → static/illustrations/marketplace-desktop.png} +0 -0
  117. /package/dist/{marketplace-mobile-DI462WKF.png → static/illustrations/marketplace-mobile.png} +0 -0
@@ -1,25 +1,3 @@
1
- import {
2
- EnvelopLettermark,
3
- GraphQLESlintLettermark,
4
- InspectorLettermark,
5
- ScalarsLettermark,
6
- SofaLettermark,
7
- SvgAngular,
8
- SvgConductor,
9
- SvgConfig,
10
- SvgFets,
11
- SvgHeltin,
12
- SvgKitql,
13
- SvgModules,
14
- SvgNextra,
15
- SvgSse,
16
- SvgStitching,
17
- SvgTools,
18
- SvgWhatsapp,
19
- SvgWs,
20
- cn
21
- } from "./chunk-EWF5AT2G.js";
22
-
23
1
  // src/components/icons/caret-slim.svg
24
2
  import { jsx } from "react/jsx-runtime";
25
3
  var SvgCaretSlim = (props) => /* @__PURE__ */ jsx("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", ...props, children: /* @__PURE__ */ jsx("path", { d: "M4 8L12 16L20 8", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }) });
@@ -174,250 +152,35 @@ var SvgApps = (props) => /* @__PURE__ */ jsx26("svg", { width: 24, height: 24, v
174
152
  // src/components/icons/check.svg
175
153
  import { jsx as jsx27 } from "react/jsx-runtime";
176
154
  var SvgCheck = (props) => /* @__PURE__ */ jsx27("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", ...props, children: /* @__PURE__ */ jsx27("path", { d: "M16.667 5 7.5 14.167 3.333 10", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "square", strokeLinejoin: "round" }) });
177
-
178
- // src/products.tsx
179
- import { Fragment, jsx as jsx28, jsxs as jsxs11 } from "react/jsx-runtime";
180
- var PRODUCTS = {
181
- HIVE: {
182
- name: "Hive",
183
- title: "Schema registry for your GraphQL workflows",
184
- href: "https://the-guild.dev/graphql/hive",
185
- logo: SvgHive,
186
- primaryColor: "#ffb21d"
187
- },
188
- MESH: {
189
- name: "Mesh",
190
- title: "A fully-featured GraphQL gateway framework",
191
- href: "https://the-guild.dev/graphql/mesh",
192
- logo: SvgMesh,
193
- primaryColor: "#1bcbe2"
194
- },
195
- YOGA: {
196
- name: "Yoga",
197
- title: "A fully-featured, simple to set up, performant and extendable server",
198
- href: "https://the-guild.dev/graphql/yoga-server",
199
- logo: SvgYoga,
200
- primaryColor: "#c026d3"
201
- },
202
- CONDUCTOR: {
203
- name: "Conductor",
204
- title: "All-in-one GraphQL Gateway",
205
- href: "https://the-guild.dev/graphql/gateway",
206
- logo: SvgConductor,
207
- primaryColor: "#0f766e"
208
- },
209
- ENVELOP: {
210
- name: "Envelop",
211
- title: "Develop and share plugins that are usable with any GraphQL server framework or schema",
212
- href: "https://the-guild.dev/graphql/envelop",
213
- logo: EnvelopLettermark,
214
- primaryColor: "#ff00e5"
215
- },
216
- STITCHING: {
217
- name: "Stitching",
218
- title: "Automatically stitch multiple schemas together into one larger API in a simple, fast and powerful way",
219
- href: "https://the-guild.dev/graphql/stitching",
220
- logo: SvgStitching,
221
- primaryColor: "#f95428"
222
- },
223
- INSPECTOR: {
224
- name: "Inspector",
225
- title: "Schema management tool",
226
- href: "https://the-guild.dev/graphql/inspector",
227
- logo: InspectorLettermark,
228
- primaryColor: "#59f79d"
229
- },
230
- CODEGEN: {
231
- name: "Code Generator",
232
- title: "Generation of typed queries, mutations, subscriptions and typed GraphQL resolvers",
233
- href: "https://the-guild.dev/graphql/codegen",
234
- logo: SvgCodegen,
235
- primaryColor: "#0284c7"
236
- },
237
- TOOLS: {
238
- name: "Tools",
239
- title: "A set of utilities for faster GraphQL development",
240
- href: "https://the-guild.dev/graphql/tools",
241
- logo: SvgTools,
242
- primaryColor: "#184ae8"
243
- },
244
- MODULES: {
245
- name: "Modules",
246
- title: "Enterprise grade tooling for your GraphQL server",
247
- href: "https://the-guild.dev/graphql/modules",
248
- logo: SvgModules,
249
- primaryColor: "#e535ab"
250
- },
251
- ESLINT: {
252
- name: "ESLint",
253
- title: "Customisable ESLint parser, plugin and set rules for GraphQL",
254
- href: "https://the-guild.dev/graphql/eslint",
255
- logo: GraphQLESlintLettermark,
256
- primaryColor: "#5639ca"
257
- },
258
- CONFIG: {
259
- name: "Config",
260
- title: "One configuration for all your GraphQL projects",
261
- href: "https://the-guild.dev/graphql/config",
262
- logo: SvgConfig,
263
- primaryColor: "#6d7a99"
264
- },
265
- FETS: {
266
- name: "feTS",
267
- title: "Build and consume REST APIs with the e2e type safety using TypeScript and OpenAPI",
268
- href: "https://the-guild.dev/fets",
269
- logo: SvgFets,
270
- primaryColor: "#3178c6"
271
- },
272
- SCALARS: {
273
- name: "Scalars",
274
- title: "Common custom GraphQL Scalars for precise type-safe GraphQL schemas",
275
- href: "https://the-guild.dev/graphql/scalars",
276
- logo: ScalarsLettermark,
277
- primaryColor: "#f38"
278
- },
279
- SOFA: {
280
- name: "SOFA",
281
- title: "Generate RESTful APIs from your GraphQL server",
282
- href: "https://the-guild.dev/graphql/sofa-api",
283
- logo: SofaLettermark,
284
- primaryColor: "#e873ff"
285
- },
286
- ANGULAR: {
287
- name: "Angular",
288
- title: "A fully-featured GraphQL client for Angular",
289
- href: "https://the-guild.dev/graphql/apollo-angular",
290
- logo: SvgAngular,
291
- primaryColor: "#ff1035"
292
- },
293
- WHATSAPP: {
294
- name: "WhatsApp",
295
- title: "Full stack, open source tutorial",
296
- href: "https://github.com/Urigo/WhatsApp-Clone-Tutorial",
297
- logo: SvgWhatsapp,
298
- primaryColor: "#31eb14"
299
- },
300
- KITQL: {
301
- name: "KitQL",
302
- title: "A set of tools, helping you building efficient apps in a fast way",
303
- href: "https://kitql.dev",
304
- logo: SvgKitql,
305
- primaryColor: "#ff3e00"
306
- },
307
- WS: {
308
- name: "WS",
309
- title: "Reference implementation of the GraphQL over WS spec",
310
- href: "https://the-guild.dev/graphql/ws",
311
- logo: SvgWs,
312
- primaryColor: "#0bf2e7"
313
- },
314
- SSE: {
315
- name: "SSE",
316
- title: "Reference implementation of the GraphQL over SSE spec",
317
- href: "https://the-guild.dev/graphql/sse",
318
- logo: SvgSse,
319
- primaryColor: "#08e045"
320
- },
321
- HELTIN: {
322
- name: "heltin",
323
- title: "Mental healthcare registry",
324
- href: "https://the-guild.dev/heltin",
325
- logo: SvgHeltin,
326
- primaryColor: "#1d90ff"
327
- },
328
- NEXTRA: {
329
- name: "Nextra",
330
- title: "Simple, powerful and flexible site generation framework with everything you love from Next.js",
331
- href: "https://nextra.site",
332
- logo: SvgNextra,
333
- primaryColor: "#000"
334
- }
335
- };
336
- var SIX_HIGHLIGHTED_PRODUCTS = [
337
- PRODUCTS.INSPECTOR,
338
- PRODUCTS.ENVELOP,
339
- PRODUCTS.SOFA,
340
- PRODUCTS.SCALARS,
341
- PRODUCTS.ESLINT,
342
- PRODUCTS.NEXTRA
343
- ];
344
- var PRODUCTS_MENU_LIST = Object.fromEntries(
345
- [
346
- "The GraphQL Stack",
347
- PRODUCTS.MESH,
348
- PRODUCTS.YOGA,
349
- PRODUCTS.CODEGEN,
350
- "Libraries",
351
- ...SIX_HIGHLIGHTED_PRODUCTS
352
- ].map((item, i) => {
353
- if (typeof item === "string") {
354
- return [
355
- i,
356
- {
357
- type: "separator",
358
- title: /* @__PURE__ */ jsxs11(Fragment, { children: [
359
- /* @__PURE__ */ jsx28("style", { className: "hive-label-separator", children: "li:has(>.hive-label-separator) { margin: 0.75rem 0 0.25rem 0; padding: 0 }" }),
360
- /* @__PURE__ */ jsx28("span", { className: "ml-2 font-medium text-gray-500 dark:text-neutral-400", children: item })
361
- ] })
362
- }
363
- ];
364
- }
365
- const Logo = item.logo;
366
- return [
367
- i,
368
- {
369
- type: "page",
370
- href: item.href,
371
- newWindow: true,
372
- title: /* @__PURE__ */ jsxs11("div", { className: "flex items-center gap-2", children: [
373
- /* @__PURE__ */ jsx28(
374
- Logo,
375
- {
376
- className: cn(
377
- "size-4 translate-y-[0.25px]",
378
- i > 3 && "rounded-sm bg-gray-500 text-[8px] text-white dark:bg-white/10"
379
- )
380
- }
381
- ),
382
- item.name
383
- ] })
384
- }
385
- ];
386
- })
387
- );
388
-
389
155
  export {
390
- SvgCaretSlim,
391
- SvgClose,
392
- SvgMoon,
393
- SvgMore,
394
- SvgSearch,
395
- SvgShare,
396
- SvgCsaStarLevelOne,
397
- SvgArrowIcon,
398
- SvgTwitter,
399
- SvgLinkedin,
400
- SvgYoutube,
401
- SvgCodegen,
402
- SvgMesh,
403
- SvgYoga,
404
- SvgHive,
405
- SvgList,
406
- SvgPaper,
407
- SvgTarget,
408
- SvgRightCorner,
409
- SvgPencil,
410
- SvgAccountBox,
411
- SvgBard,
412
- SvgHonour,
413
- SvgShieldFlash,
414
- SvgGroup,
415
- SvgApps,
416
- SvgCheck,
417
- InformationCircleIcon,
418
- GitHubIcon,
156
+ SvgAccountBox as AccountBox,
157
+ SvgApps as AppsIcon,
158
+ SvgArrowIcon as ArrowIcon,
159
+ SvgBard as BardIcon,
160
+ SvgCsaStarLevelOne as CSAStarLevelOneIcon,
161
+ SvgCaretSlim as CaretSlimIcon,
162
+ SvgCheck as CheckIcon,
163
+ SvgClose as CloseIcon,
164
+ SvgCodegen as CodegenIcon,
419
165
  DiscordIcon,
420
- PRODUCTS,
421
- SIX_HIGHLIGHTED_PRODUCTS,
422
- PRODUCTS_MENU_LIST
166
+ GitHubIcon,
167
+ SvgGroup as GroupIcon,
168
+ SvgHive as HiveIcon,
169
+ SvgHonour as HonourIcon,
170
+ InformationCircleIcon,
171
+ SvgLinkedin as LinkedInIcon,
172
+ SvgList as ListIcon,
173
+ SvgMesh as MeshIcon,
174
+ SvgMoon as MoonIcon,
175
+ SvgMore as MoreIcon,
176
+ SvgPaper as PaperIcon,
177
+ SvgPencil as PencilIcon,
178
+ SvgRightCorner as RightCornerIcon,
179
+ SvgSearch as SearchIcon,
180
+ SvgShare as ShareIcon,
181
+ SvgShieldFlash as ShieldFlashIcon,
182
+ SvgTarget as TargetIcon,
183
+ SvgTwitter as TwitterIcon,
184
+ SvgYoga as YogaIcon,
185
+ SvgYoutube as YouTubeIcon
423
186
  };
@@ -0,0 +1,6 @@
1
+ import { ReactElement } from 'react';
2
+ import { ImageProps } from 'next/image';
3
+
4
+ declare function Image(props: ImageProps): ReactElement;
5
+
6
+ export { Image };
@@ -0,0 +1,8 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import NextImage from "next/image";
3
+ function Image(props) {
4
+ return /* @__PURE__ */ jsx(NextImage, { placeholder: "blur", ...props });
5
+ }
6
+ export {
7
+ Image
8
+ };
@@ -0,0 +1,44 @@
1
+ export { Anchor } from './anchor.mjs';
2
+ export { Button } from './button.mjs';
3
+ export { CardsColorful } from './cards-colorful.mjs';
4
+ export { FeatureList } from './feature-list.mjs';
5
+ export { Footer } from './footer.mjs';
6
+ export { HeroGradient } from './hero-gradient.mjs';
7
+ export { HeroIllustration } from './hero-illustration.mjs';
8
+ export { HeroMarketplace } from './hero-marketplace.mjs';
9
+ export { HeroVideo } from './hero-video.mjs';
10
+ import { FC, SVGProps } from 'react';
11
+ export { DiscordIcon, GitHubIcon, InformationCircleIcon } from 'nextra/icons';
12
+ export { Image } from './image.mjs';
13
+ export { InfoList } from './info-list.mjs';
14
+ export { LegacyPackageCmd } from './legacy-package-cmd.mjs';
15
+ export { MarketplaceList } from './marketplace-list.mjs';
16
+ export { MarketplaceSearch } from './marketplace-search.mjs';
17
+ export { NPMBadge } from './npm-badge.mjs';
18
+ export { getNavbarLogo } from './guild-navbar-logo.mjs';
19
+ export { GetYourAPIGameRightSection } from './get-your-api-game-right-section.mjs';
20
+ export { HiveNavigation, HiveNavigationProps } from './hive-navigation/index.mjs';
21
+ export { HiveFooter } from './hive-footer.mjs';
22
+ export { ToolsAndLibrariesCards } from './tools-and-libraries-cards.mjs';
23
+ import * as react_jsx_runtime from 'react/jsx-runtime';
24
+ export { CallToAction, CallToActionProps } from './call-to-action.mjs';
25
+ export { CookiesConsent, CookiesConsentProps } from './cookies-consent.mjs';
26
+ export { Heading, HeadingProps } from './heading.mjs';
27
+ export { InfoCard, InfoCardProps } from './info-card.mjs';
28
+ export { Stud, StudProps } from './stud.mjs';
29
+ export { Giscus } from './giscus.mjs';
30
+ export { GraphQLConfCard, GraphQLConfCardProps } from './hive-navigation/graphql-conf-card.mjs';
31
+ import '../types/components.mjs';
32
+ import 'next/image';
33
+ import 'next/link';
34
+ import 'react-player';
35
+ import '@giscus/react';
36
+
37
+ declare const ReactComponent: FC<SVGProps<SVGElement>>;
38
+
39
+ /**
40
+ * Decorations must be isolated, as clicking id links scrolls the container with overflow: hidden.
41
+ */
42
+ declare function DecorationIsolation(props: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
43
+
44
+ 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, DecorationIsolation, ReactComponent as GroupIcon, ReactComponent as HighlightDecoration, ReactComponent as HiveIcon, ReactComponent as HonourIcon, ReactComponent as LargeHiveIconDecoration, 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 };
@@ -0,0 +1,52 @@
1
+ import { Anchor } from "./anchor";
2
+ import { Button } from "./button";
3
+ import { CardsColorful } from "./cards-colorful";
4
+ import { FeatureList } from "./feature-list";
5
+ import { Footer } from "./footer";
6
+ import { HeroGradient } from "./hero-gradient";
7
+ import { HeroIllustration } from "./hero-illustration";
8
+ import { HeroMarketplace } from "./hero-marketplace";
9
+ import { HeroVideo } from "./hero-video";
10
+ export * from "./icons";
11
+ import { Image } from "./image";
12
+ import { InfoList } from "./info-list";
13
+ import { LegacyPackageCmd } from "./legacy-package-cmd";
14
+ import { MarketplaceList } from "./marketplace-list";
15
+ import { MarketplaceSearch } from "./marketplace-search";
16
+ import { NPMBadge } from "./npm-badge";
17
+ import { getNavbarLogo } from "./guild-navbar-logo";
18
+ import { GetYourAPIGameRightSection } from "./get-your-api-game-right-section";
19
+ import { HiveNavigation, GraphQLConfCard } from "./hive-navigation";
20
+ import { HiveFooter } from "./hive-footer";
21
+ import { ToolsAndLibrariesCards } from "./tools-and-libraries-cards";
22
+ export * from "./decorations";
23
+ export * from "./call-to-action";
24
+ export * from "./cookies-consent";
25
+ export * from "./heading";
26
+ export * from "./info-card";
27
+ export * from "./stud";
28
+ import { Giscus } from "./giscus";
29
+ export {
30
+ Anchor,
31
+ Button,
32
+ CardsColorful,
33
+ FeatureList,
34
+ Footer,
35
+ GetYourAPIGameRightSection,
36
+ Giscus,
37
+ GraphQLConfCard,
38
+ HeroGradient,
39
+ HeroIllustration,
40
+ HeroMarketplace,
41
+ HeroVideo,
42
+ HiveFooter,
43
+ HiveNavigation,
44
+ Image,
45
+ InfoList,
46
+ LegacyPackageCmd,
47
+ MarketplaceList,
48
+ MarketplaceSearch,
49
+ NPMBadge,
50
+ ToolsAndLibrariesCards,
51
+ getNavbarLogo
52
+ };
@@ -0,0 +1,11 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ReactNode } from 'react';
3
+
4
+ interface InfoCardProps extends React.HTMLAttributes<HTMLElement> {
5
+ icon: ReactNode;
6
+ heading: ReactNode;
7
+ as?: 'div' | 'li';
8
+ }
9
+ declare function InfoCard({ as: Root, icon, heading, className, children, ...rest }: InfoCardProps): react_jsx_runtime.JSX.Element;
10
+
11
+ export { InfoCard, type InfoCardProps };
@@ -0,0 +1,20 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { cn } from "../cn";
3
+ import { Stud } from "./stud";
4
+ function InfoCard({
5
+ as: Root = "div",
6
+ icon,
7
+ heading,
8
+ className,
9
+ children,
10
+ ...rest
11
+ }) {
12
+ return /* @__PURE__ */ jsxs(Root, { className: cn("bg-beige-100 p-6 md:p-12", className), ...rest, children: [
13
+ /* @__PURE__ */ jsx(Stud, { children: icon }),
14
+ /* @__PURE__ */ jsx("h3", { className: "mt-4 text-xl font-medium leading-[1.4] text-green-1000 md:mt-6", children: heading }),
15
+ /* @__PURE__ */ jsx("p", { className: "mt-2 text-green-800 md:mt-4", children })
16
+ ] });
17
+ }
18
+ export {
19
+ InfoCard
20
+ };
@@ -0,0 +1,9 @@
1
+ import { ReactElement } from 'react';
2
+ import { IInfoListProps } from '../types/components.mjs';
3
+ import 'next/image';
4
+ import 'next/link';
5
+ import 'react-player';
6
+
7
+ declare const InfoList: ({ title, items, className }: IInfoListProps) => ReactElement;
8
+
9
+ export { InfoList };
@@ -0,0 +1,27 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import clsx from "clsx";
3
+ import { Anchor } from "./anchor";
4
+ const InfoList = ({ title, items, className }) => /* @__PURE__ */ jsx("section", { className: clsx("bg-white dark:bg-dark", className), children: /* @__PURE__ */ jsxs("div", { className: "container max-w-[90rem] py-12", children: [
5
+ title && /* @__PURE__ */ jsx("h2", { className: "mb-4 mt-0 text-2xl font-bold text-black md:text-3xl dark:text-gray-50", children: title }),
6
+ /* @__PURE__ */ jsx("div", { className: "flex flex-wrap", children: items.map((item, index) => /* @__PURE__ */ jsxs(
7
+ "section",
8
+ {
9
+ className: "mb-9 box-border flex w-full max-w-lg flex-col pr-10 last:mb-0 md:w-1/2 lg:mb-0 lg:w-1/3",
10
+ children: [
11
+ /* @__PURE__ */ jsx("h3", { className: "m-0 text-base font-semibold text-black dark:text-gray-50", children: item.title }),
12
+ /* @__PURE__ */ jsx("p", { className: "mb-4 mt-2 grow text-sm text-gray-500 dark:text-gray-400", children: item.description }),
13
+ item.link && /* @__PURE__ */ jsx(
14
+ Anchor,
15
+ {
16
+ className: "mt-auto w-max text-sm text-cyan-400 hover:text-cyan-300",
17
+ ...item.link
18
+ }
19
+ )
20
+ ]
21
+ },
22
+ `info-${index}`
23
+ )) })
24
+ ] }) });
25
+ export {
26
+ InfoList
27
+ };
@@ -0,0 +1,13 @@
1
+ import { ReactElement } from 'react';
2
+
3
+ type Command = {
4
+ name: string;
5
+ cmd: 'add' | 'run' | 'install' | 'init';
6
+ isNpx?: boolean;
7
+ isGlobal?: boolean;
8
+ };
9
+ declare const LegacyPackageCmd: ({ packages, }: {
10
+ packages: (string | Command)[];
11
+ }) => ReactElement;
12
+
13
+ export { LegacyPackageCmd };
@@ -0,0 +1,54 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { useMemo } from "react";
3
+ import { Pre, Tabs } from "nextra/components";
4
+ const PACKAGE_MANAGERS = ["yarn", "npm", "pnpm"];
5
+ const Add = {
6
+ yarn: "yarn add",
7
+ npm: "npm install",
8
+ pnpm: "pnpm add"
9
+ };
10
+ const Run = {
11
+ yarn: "yarn",
12
+ npm: "npm run",
13
+ pnpm: "pnpm"
14
+ };
15
+ const Install = {
16
+ yarn: "yarn",
17
+ npm: "npm install",
18
+ pnpm: "pnpm install"
19
+ };
20
+ const Init = {
21
+ yarn: "yarn init --yes",
22
+ npm: "npm init --yes",
23
+ pnpm: "pnpm init"
24
+ };
25
+ const Global = {
26
+ yarn: "yarn global add",
27
+ npm: "npm install --global",
28
+ pnpm: "pnpm add --global"
29
+ };
30
+ const LegacyPackageCmd = ({
31
+ packages
32
+ }) => {
33
+ const commands = useMemo(
34
+ () => PACKAGE_MANAGERS.map(
35
+ (pkgManager) => packages.map((pkg) => typeof pkg === "string" ? { name: pkg, cmd: "add" } : pkg).map((pkg) => {
36
+ switch (pkg.cmd) {
37
+ case "run":
38
+ return `${pkgManager === "npm" && pkg.isNpx ? "npx" : Run[pkgManager]} ${pkg.name}`;
39
+ case "install":
40
+ return `${Install[pkgManager]}${pkg.name ? ` ${pkg.name}` : ""}`;
41
+ case "init":
42
+ return Init[pkgManager];
43
+ default:
44
+ return `${pkg.isGlobal ? Global[pkgManager] : Add[pkgManager]} ${pkg.name}`;
45
+ }
46
+ }).join("\n")
47
+ ),
48
+ [packages]
49
+ );
50
+ return /* @__PURE__ */ jsx(Tabs, { items: PACKAGE_MANAGERS, children: PACKAGE_MANAGERS.map((pkgManager, index) => /* @__PURE__ */ jsx(Tabs.Tab, { children: /* @__PURE__ */ jsx(Pre, { "data-filename": "Terminal", "data-copy": "", "data-language": "sh", "data-theme": "default", children: /* @__PURE__ */ jsx("code", { children: /* @__PURE__ */ jsx("span", { className: "line", children: commands[index] }) }) }) }, pkgManager)) });
51
+ };
52
+ export {
53
+ LegacyPackageCmd
54
+ };
@@ -0,0 +1,9 @@
1
+ import { ReactElement } from 'react';
2
+ import { IMarketplaceListProps } from '../types/components.mjs';
3
+ import 'next/image';
4
+ import 'next/link';
5
+ import 'react-player';
6
+
7
+ declare const MarketplaceList: ({ title, placeholder, items, pagination, className, }: IMarketplaceListProps) => ReactElement;
8
+
9
+ export { MarketplaceList };