@theguild/components 8.0.0-alpha-20241106004011-68dbddfd654c75f5fc0e923db93b8dcba822ea7a → 8.0.0-alpha-20241106010719-0484ee1102603927e37d92640ca206aabe78198e

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,27 @@
1
1
  import * as react from 'react';
2
+ import * as url from 'url';
2
3
  import { ILink } from '../types/components.mjs';
3
4
  import 'next/image';
4
5
  import 'next/link';
5
6
  import 'react-player';
6
7
 
7
- interface AnchorProps extends ILink {
8
- }
9
- declare const Anchor: react.ForwardRefExoticComponent<AnchorProps & react.RefAttributes<HTMLAnchorElement>>;
8
+ type AnchorProps = ILink;
9
+ declare const Anchor: react.ForwardRefExoticComponent<{
10
+ href: string | url.UrlObject;
11
+ as?: string | url.UrlObject;
12
+ replace?: boolean;
13
+ scroll?: boolean;
14
+ shallow?: boolean;
15
+ passHref?: boolean;
16
+ prefetch?: boolean | null;
17
+ locale?: string | false;
18
+ legacyBehavior?: boolean;
19
+ onMouseEnter?: React.MouseEventHandler<HTMLAnchorElement>;
20
+ onTouchStart?: React.TouchEventHandler<HTMLAnchorElement>;
21
+ onClick?: React.MouseEventHandler<HTMLAnchorElement>;
22
+ } & Pick<react.DetailedHTMLProps<react.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "style" | "title" | "target" | "rel" | "className"> & {
23
+ children: react.ReactNode;
24
+ newWindow?: boolean;
25
+ } & react.RefAttributes<HTMLAnchorElement>>;
10
26
 
11
27
  export { Anchor, type AnchorProps };
@@ -1,5 +1,6 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { AnchorProps } from './anchor.mjs';
3
+ import 'url';
3
4
  import '../types/components.mjs';
4
5
  import 'next/image';
5
6
  import 'next/link';
@@ -1,6 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { Anchor } from './anchor.mjs';
3
3
  import 'react';
4
+ import 'url';
4
5
  import '../types/components.mjs';
5
6
  import 'next/image';
6
7
  import 'next/link';
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ComponentProps } from 'react';
2
3
 
3
- interface CookiesConsentProps extends React.HTMLAttributes<HTMLElement> {
4
- }
4
+ type CookiesConsentProps = ComponentProps<'div'>;
5
5
  declare function CookiesConsent(props: CookiesConsentProps): react_jsx_runtime.JSX.Element | null;
6
6
 
7
7
  export { CookiesConsent, type CookiesConsentProps };
@@ -4,8 +4,7 @@ import 'next/image';
4
4
  import 'next/link';
5
5
  import 'react-player';
6
6
 
7
- interface HiveFooterProps extends IFooterExtendedProps {
8
- }
7
+ type HiveFooterProps = IFooterExtendedProps;
9
8
  declare const HiveFooter: FC<HiveFooterProps>;
10
9
 
11
10
  export { HiveFooter, type HiveFooterProps };
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import react__default, { ReactNode } from 'react';
2
+ import react__default, { ReactNode, ComponentProps } from 'react';
3
3
  export { GraphQLConfCard, GraphQLConfCardProps } from './graphql-conf-card.mjs';
4
4
  import 'next/image';
5
5
 
@@ -31,9 +31,8 @@ interface ProductsMenuProps extends MenuContentColumnsProps {
31
31
  /**
32
32
  * @internal
33
33
  */
34
- declare const ProductsMenu: react__default.ForwardRefExoticComponent<ProductsMenuProps & react__default.RefAttributes<HTMLDivElement>>;
35
- interface MenuContentColumnsProps extends react__default.HTMLAttributes<HTMLDivElement> {
36
- }
34
+ declare const ProductsMenu: react__default.ForwardRefExoticComponent<Omit<ProductsMenuProps, "ref"> & react__default.RefAttributes<HTMLDivElement>>;
35
+ type MenuContentColumnsProps = ComponentProps<'div'>;
37
36
  interface DeveloperMenuProps extends react__default.HTMLAttributes<HTMLDivElement> {
38
37
  isHive: boolean;
39
38
  }
@@ -1,6 +1,11 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
- import React, { forwardRef, Fragment, useEffect, useRef } from "react";
3
+ import React, {
4
+ forwardRef,
5
+ Fragment,
6
+ useEffect,
7
+ useRef
8
+ } from "react";
4
9
  import { createPortal } from "react-dom";
5
10
  import { usePathname } from "next/navigation";
6
11
  import { setMenu, useMenu, useThemeConfig } from "nextra-theme-docs";
@@ -29,6 +29,7 @@ export { Stud, StudProps } from './stud.mjs';
29
29
  export { Giscus } from './giscus.mjs';
30
30
  export { GraphQLConfCard, GraphQLConfCardProps } from './hive-navigation/graphql-conf-card.mjs';
31
31
  import 'react';
32
+ import 'url';
32
33
  import '../types/components.mjs';
33
34
  import 'next/image';
34
35
  import 'next/link';
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ComponentProps } from 'react';
2
3
 
3
- interface StudProps extends React.HTMLAttributes<HTMLElement> {
4
- }
4
+ type StudProps = ComponentProps<'div'>;
5
5
  declare function Stud(props: StudProps): react_jsx_runtime.JSX.Element;
6
6
 
7
7
  export { Stud, type StudProps };
package/dist/index.d.mts CHANGED
@@ -32,10 +32,11 @@ export { Stud, StudProps } from './components/stud.mjs';
32
32
  export { Giscus } from './components/giscus.mjs';
33
33
  export { PRODUCTS } from './products.mjs';
34
34
  export { IEditorProps, IFeatureListProps, IFooterExtendedProps, IHeroGradientProps, IHeroIllustrationProps, IHeroMarketplaceProps, IHeroVideoProps, IInfoListProps, ILink, IMarketplaceItemProps, IMarketplaceItemsProps, IMarketplaceListProps, IMarketplaceSearchProps, ISchemaPageProps } from './types/components.mjs';
35
- export { AngularLettermark, ConductorLettermark, ConfigLettermark, EnvelopLettermark, FetsLettermark, GraphQLESlintLettermark, HeltinLettermark, InspectorLettermark, KitQLLettermark, LettermarkLogoProps, ModulesLettermark, SSELettermark, ScalarsLettermark, SofaLettermark, StitchingLettermark, ToolsLettermark, WSLettermark, WhatsAppLettermark } from './logos/index.mjs';
35
+ export { AngularLettermark, ConductorLettermark, ConfigLettermark, EnvelopLettermark, FetsLettermark, GraphQLESlintLettermark, HeltinLettermark, InspectorLettermark, KitQLLettermark, ModulesLettermark, SSELettermark, ScalarsLettermark, SofaLettermark, StitchingLettermark, ToolsLettermark, WSLettermark, WhatsAppLettermark } from './logos/index.mjs';
36
36
  export { cn } from './cn.mjs';
37
37
  export { GraphQLConfCard, GraphQLConfCardProps } from './components/hive-navigation/graphql-conf-card.mjs';
38
38
  import 'react';
39
+ import 'url';
39
40
  import 'next/image';
40
41
  import 'react/jsx-runtime';
41
42
  import '@giscus/react';
@@ -1,26 +1,24 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { HTMLAttributes } from 'react';
1
+ import * as react from 'react';
2
+ import { FC } from 'react';
3
3
  export { ReactComponent as AngularLogo, ReactComponent as CodeGeneratorLogo, ReactComponent as ConductorLogo, ReactComponent as ConfigLogo, ReactComponent as FetsLogo, ReactComponent as GraphQLFoundationLogo, ReactComponent as GuildLogo, ReactComponent as HeltinLogo, ReactComponent as HiveCombinationMark, ReactComponent as KitQLLogo, ReactComponent as MeshLogo, ReactComponent as ModulesLogo, ReactComponent as NextraLogo, ReactComponent as SSELogo, ReactComponent as StitchingLogo, ReactComponent as TheGuild, ReactComponent as ToolsLogo, ReactComponent as WSLogo, ReactComponent as WhatsAppLogo, ReactComponent as YogaLogo } from './angular.mjs';
4
4
  import 'nextra/icons';
5
5
 
6
- interface LettermarkLogoProps extends HTMLAttributes<HTMLElement> {
7
- }
8
- declare const InspectorLettermark: (props: LettermarkLogoProps) => react_jsx_runtime.JSX.Element;
9
- declare const SofaLettermark: (props: LettermarkLogoProps) => react_jsx_runtime.JSX.Element;
10
- declare const GraphQLESlintLettermark: (props: LettermarkLogoProps) => react_jsx_runtime.JSX.Element;
11
- declare const EnvelopLettermark: (props: LettermarkLogoProps) => react_jsx_runtime.JSX.Element;
12
- declare const ScalarsLettermark: (props: LettermarkLogoProps) => react_jsx_runtime.JSX.Element;
13
- declare const ConductorLettermark: (props: LettermarkLogoProps) => react_jsx_runtime.JSX.Element;
14
- declare const StitchingLettermark: (props: LettermarkLogoProps) => react_jsx_runtime.JSX.Element;
15
- declare const ToolsLettermark: (props: LettermarkLogoProps) => react_jsx_runtime.JSX.Element;
16
- declare const ModulesLettermark: (props: LettermarkLogoProps) => react_jsx_runtime.JSX.Element;
17
- declare const ConfigLettermark: (props: LettermarkLogoProps) => react_jsx_runtime.JSX.Element;
18
- declare const FetsLettermark: (props: LettermarkLogoProps) => react_jsx_runtime.JSX.Element;
19
- declare const AngularLettermark: (props: LettermarkLogoProps) => react_jsx_runtime.JSX.Element;
20
- declare const KitQLLettermark: (props: LettermarkLogoProps) => react_jsx_runtime.JSX.Element;
21
- declare const WSLettermark: (props: LettermarkLogoProps) => react_jsx_runtime.JSX.Element;
22
- declare const SSELettermark: (props: LettermarkLogoProps) => react_jsx_runtime.JSX.Element;
23
- declare const HeltinLettermark: (props: LettermarkLogoProps) => react_jsx_runtime.JSX.Element;
24
- declare const WhatsAppLettermark: (props: LettermarkLogoProps) => react_jsx_runtime.JSX.Element;
6
+ declare const InspectorLettermark: FC<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
7
+ declare const SofaLettermark: FC<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
8
+ declare const GraphQLESlintLettermark: FC<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
9
+ declare const EnvelopLettermark: FC<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
10
+ declare const ScalarsLettermark: FC<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
11
+ declare const ConductorLettermark: FC<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
12
+ declare const StitchingLettermark: FC<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
13
+ declare const ToolsLettermark: FC<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
14
+ declare const ModulesLettermark: FC<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
15
+ declare const ConfigLettermark: FC<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
16
+ declare const FetsLettermark: FC<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
17
+ declare const AngularLettermark: FC<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
18
+ declare const KitQLLettermark: FC<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
19
+ declare const WSLettermark: FC<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
20
+ declare const SSELettermark: FC<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
21
+ declare const HeltinLettermark: FC<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
22
+ declare const WhatsAppLettermark: FC<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
25
23
 
26
- export { AngularLettermark, ConductorLettermark, ConfigLettermark, EnvelopLettermark, FetsLettermark, GraphQLESlintLettermark, HeltinLettermark, InspectorLettermark, KitQLLettermark, type LettermarkLogoProps, ModulesLettermark, SSELettermark, ScalarsLettermark, SofaLettermark, StitchingLettermark, ToolsLettermark, WSLettermark, WhatsAppLettermark };
24
+ export { AngularLettermark, ConductorLettermark, ConfigLettermark, EnvelopLettermark, FetsLettermark, GraphQLESlintLettermark, HeltinLettermark, InspectorLettermark, KitQLLettermark, ModulesLettermark, SSELettermark, ScalarsLettermark, SofaLettermark, StitchingLettermark, ToolsLettermark, WSLettermark, WhatsAppLettermark };
@@ -20,19 +20,22 @@ import { ReactComponent as ReactComponent17 } from "./ws";
20
20
  import { ReactComponent as ReactComponent18 } from "./yoga";
21
21
  import { ReactComponent as ReactComponent19 } from "./hive-combination-mark";
22
22
  import { ReactComponent as ReactComponent20 } from "./graphql-foundation";
23
- const createLettermarkLogo = (text) => function LettermarkLogo(props) {
24
- return /* @__PURE__ */ jsx(
25
- "span",
26
- {
27
- role: "img",
28
- ...props,
29
- className: cn(
30
- "inline-flex items-center justify-center text-sm font-medium leading-5",
31
- props.className
32
- ),
33
- children: text
34
- }
35
- );
23
+ const createLettermarkLogo = (text) => {
24
+ const LettermarkLogo = (props) => {
25
+ return /* @__PURE__ */ jsx(
26
+ "span",
27
+ {
28
+ role: "img",
29
+ ...props,
30
+ className: cn(
31
+ "inline-flex items-center justify-center text-sm font-medium leading-5",
32
+ props.className
33
+ ),
34
+ children: text
35
+ }
36
+ );
37
+ };
38
+ return LettermarkLogo;
36
39
  };
37
40
  const InspectorLettermark = createLettermarkLogo("INS");
38
41
  const SofaLettermark = createLettermarkLogo("SOF");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theguild/components",
3
- "version": "8.0.0-alpha-20241106004011-68dbddfd654c75f5fc0e923db93b8dcba822ea7a",
3
+ "version": "8.0.0-alpha-20241106010719-0484ee1102603927e37d92640ca206aabe78198e",
4
4
  "repository": {
5
5
  "url": "https://github.com/the-guild-org/docs",
6
6
  "directory": "packages/components"