@fumadocs/base-ui 16.15.8 → 16.15.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.translations/index.d.ts +2 -3
- package/dist/components/accordion.d.ts +3 -4
- package/dist/components/banner.d.ts +2 -3
- package/dist/components/callout.d.ts +7 -8
- package/dist/components/card.d.ts +4 -5
- package/dist/components/codeblock.d.ts +8 -9
- package/dist/components/codeblock.rsc.d.ts +3 -4
- package/dist/components/dialog/search-algolia.d.ts +3 -4
- package/dist/components/dialog/search-default.d.ts +3 -4
- package/dist/components/dialog/search-orama.d.ts +3 -4
- package/dist/components/dialog/search.d.ts +19 -19
- package/dist/components/dynamic-codeblock.core.d.ts +6 -4
- package/dist/components/dynamic-codeblock.d.ts +4 -5
- package/dist/components/files.d.ts +6 -7
- package/dist/components/github-info.d.ts +6 -7
- package/dist/components/heading.d.ts +2 -3
- package/dist/components/image-zoom.d.ts +3 -4
- package/dist/components/inline-toc.d.ts +3 -4
- package/dist/components/sidebar/base.d.ts +19 -19
- package/dist/components/sidebar/link-item.d.ts +2 -3
- package/dist/components/sidebar/page-tree.d.ts +3 -4
- package/dist/components/sidebar/tabs/dropdown.d.ts +3 -4
- package/dist/components/sidebar/tabs/index.d.ts +4 -5
- package/dist/components/steps.d.ts +3 -4
- package/dist/components/tabs.d.ts +9 -10
- package/dist/components/toc/clerk.d.ts +8 -6
- package/dist/components/toc/default.d.ts +8 -6
- package/dist/components/toc/index.d.ts +9 -7
- package/dist/components/type-table.d.ts +4 -5
- package/dist/components/ui/accordion.d.ts +6 -7
- package/dist/components/ui/button.d.ts +3 -4
- package/dist/components/ui/collapsible.d.ts +7 -8
- package/dist/components/ui/popover.d.ts +5 -6
- package/dist/components/ui/scroll-area.d.ts +5 -6
- package/dist/components/ui/tabs.d.ts +9 -7
- package/dist/contexts/i18n.d.ts +4 -5
- package/dist/contexts/search.d.ts +8 -9
- package/dist/contexts/tree.d.ts +6 -7
- package/dist/i18n.d.ts +6 -6
- package/dist/layouts/docs/client.d.ts +3 -4
- package/dist/layouts/docs/index.d.ts +3 -3
- package/dist/layouts/docs/page/index.d.ts +9 -9
- package/dist/layouts/docs/page/slots/breadcrumb.d.ts +3 -4
- package/dist/layouts/docs/page/slots/container.d.ts +2 -3
- package/dist/layouts/docs/page/slots/footer.d.ts +3 -4
- package/dist/layouts/docs/page/slots/toc.d.ts +10 -11
- package/dist/layouts/docs/slots/container.d.ts +2 -3
- package/dist/layouts/docs/slots/header.d.ts +2 -3
- package/dist/layouts/docs/slots/sidebar.d.ts +8 -9
- package/dist/layouts/flux/index.d.ts +8 -9
- package/dist/layouts/flux/page/index.d.ts +9 -9
- package/dist/layouts/flux/page/slots/breadcrumb.d.ts +3 -4
- package/dist/layouts/flux/page/slots/container.d.ts +2 -3
- package/dist/layouts/flux/page/slots/footer.d.ts +3 -4
- package/dist/layouts/flux/page/slots/toc.d.ts +8 -9
- package/dist/layouts/flux/slots/container.d.ts +2 -3
- package/dist/layouts/flux/slots/sidebar.d.ts +8 -9
- package/dist/layouts/flux/slots/tab-dropdown.d.ts +3 -4
- package/dist/layouts/glass/index.d.ts +5 -6
- package/dist/layouts/glass/page/index.d.ts +9 -9
- package/dist/layouts/glass/page/slots/breadcrumb.d.ts +3 -4
- package/dist/layouts/glass/page/slots/footer.d.ts +3 -4
- package/dist/layouts/glass/page/slots/toc.d.ts +6 -7
- package/dist/layouts/glass/slots/header.d.ts +3 -4
- package/dist/layouts/glass/slots/sidebar.d.ts +9 -10
- package/dist/layouts/home/index.d.ts +5 -6
- package/dist/layouts/home/navbar.d.ts +5 -6
- package/dist/layouts/home/not-found.d.ts +2 -3
- package/dist/layouts/home/slots/container.d.ts +2 -3
- package/dist/layouts/home/slots/header.d.ts +3 -4
- package/dist/layouts/notebook/client.d.ts +3 -4
- package/dist/layouts/notebook/index.d.ts +3 -3
- package/dist/layouts/notebook/page/index.d.ts +9 -9
- package/dist/layouts/notebook/page/slots/breadcrumb.d.ts +3 -4
- package/dist/layouts/notebook/page/slots/container.d.ts +2 -3
- package/dist/layouts/notebook/page/slots/footer.d.ts +3 -4
- package/dist/layouts/notebook/page/slots/toc.d.ts +10 -11
- package/dist/layouts/notebook/slots/container.d.ts +2 -3
- package/dist/layouts/notebook/slots/header.d.ts +2 -3
- package/dist/layouts/notebook/slots/sidebar.d.ts +9 -9
- package/dist/layouts/shared/client.d.ts +5 -6
- package/dist/layouts/shared/index.d.ts +17 -17
- package/dist/layouts/shared/page-actions.d.ts +3 -4
- package/dist/layouts/shared/slots/language-select.d.ts +5 -6
- package/dist/layouts/shared/slots/search-trigger.d.ts +5 -6
- package/dist/layouts/shared/slots/theme-switch.d.ts +3 -4
- package/dist/mdx.d.ts +2 -2
- package/dist/mdx.server.d.ts +2 -2
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/controlled.d.ts +2 -3
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/uncontrolled.d.ts +2 -3
- package/dist/og/takumi.d.ts +4 -5
- package/dist/og.d.ts +4 -5
- package/dist/og.js +1 -1
- package/dist/page.d.ts +4 -4
- package/dist/provider/astro.d.ts +3 -4
- package/dist/provider/base.d.ts +3 -3
- package/dist/provider/next.d.ts +3 -4
- package/dist/provider/react-router.d.ts +3 -4
- package/dist/provider/tanstack.d.ts +3 -4
- package/dist/provider/waku.d.ts +3 -4
- package/dist/utils/use-copy-button.d.ts +2 -3
- package/dist/utils/use-footer-items.d.ts +2 -3
- package/dist/utils/use-is-scroll-top.d.ts +2 -3
- package/package.json +12 -12
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/.translations/index.d.ts
|
|
2
|
-
type Translations = {
|
|
2
|
+
export type Translations = {
|
|
3
3
|
"Ask AI(AI chat button)": string;
|
|
4
4
|
"Back to Home(404 not found page)": string;
|
|
5
5
|
"Choose a language(language switcher)": string;
|
|
@@ -52,5 +52,4 @@ type Translations = {
|
|
|
52
52
|
"View as Markdown(page actions)": string;
|
|
53
53
|
"displayName": string;
|
|
54
54
|
};
|
|
55
|
-
//#endregion
|
|
56
|
-
export { Translations };
|
|
55
|
+
//#endregion
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { Accordion as Accordion$1, AccordionItem } from "./ui/accordion.js";
|
|
2
2
|
import { ComponentProps, ReactNode } from "react";
|
|
3
3
|
//#region src/components/accordion.d.ts
|
|
4
|
-
declare function Accordions({ ref, className, defaultValue, ...props }: ComponentProps<typeof Accordion$1>): import("react").JSX.Element;
|
|
5
|
-
declare function Accordion({ title, id, value, children, ...props }: Omit<ComponentProps<typeof AccordionItem>, 'value' | 'title'> & {
|
|
4
|
+
export declare function Accordions({ ref, className, defaultValue, ...props }: ComponentProps<typeof Accordion$1>): import("react").JSX.Element;
|
|
5
|
+
export declare function Accordion({ title, id, value, children, ...props }: Omit<ComponentProps<typeof AccordionItem>, 'value' | 'title'> & {
|
|
6
6
|
title: string | ReactNode;
|
|
7
7
|
value?: string;
|
|
8
8
|
}): import("react").JSX.Element;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { Accordion, Accordions };
|
|
9
|
+
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
2
|
//#region src/components/banner.d.ts
|
|
3
3
|
type BannerVariant = 'rainbow' | 'normal';
|
|
4
|
-
declare function Banner({ id, variant, changeLayout, height, rainbowColors, ...props }: HTMLAttributes<HTMLDivElement> & {
|
|
4
|
+
export declare function Banner({ id, variant, changeLayout, height, rainbowColors, ...props }: HTMLAttributes<HTMLDivElement> & {
|
|
5
5
|
/**
|
|
6
6
|
* @defaultValue 3rem
|
|
7
7
|
*/
|
|
@@ -21,5 +21,4 @@ declare function Banner({ id, variant, changeLayout, height, rainbowColors, ...p
|
|
|
21
21
|
*/
|
|
22
22
|
changeLayout?: boolean;
|
|
23
23
|
}): import("react").JSX.Element | null;
|
|
24
|
-
//#endregion
|
|
25
|
-
export { Banner };
|
|
24
|
+
//#endregion
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ComponentProps, ReactNode } from "react";
|
|
2
2
|
//#region src/components/callout.d.ts
|
|
3
|
-
type CalloutType = 'info' | 'warn' | 'error' | 'success' | 'warning' | 'idea';
|
|
4
|
-
declare function Callout({ children, title, ...props }: {
|
|
3
|
+
export type CalloutType = 'info' | 'warn' | 'error' | 'success' | 'warning' | 'idea';
|
|
4
|
+
export declare function Callout({ children, title, ...props }: {
|
|
5
5
|
title?: ReactNode;
|
|
6
6
|
} & Omit<CalloutContainerProps, 'title'>): import("react").JSX.Element;
|
|
7
|
-
interface CalloutContainerProps extends ComponentProps<'div'> {
|
|
7
|
+
export interface CalloutContainerProps extends ComponentProps<'div'> {
|
|
8
8
|
/**
|
|
9
9
|
* @defaultValue info
|
|
10
10
|
*/
|
|
@@ -14,8 +14,7 @@ interface CalloutContainerProps extends ComponentProps<'div'> {
|
|
|
14
14
|
*/
|
|
15
15
|
icon?: ReactNode;
|
|
16
16
|
}
|
|
17
|
-
declare function CalloutContainer({ type: inputType, icon, children, className, style, ...props }: CalloutContainerProps): import("react").JSX.Element;
|
|
18
|
-
declare function CalloutTitle({ children, className, ...props }: ComponentProps<'p'>): import("react").JSX.Element;
|
|
19
|
-
declare function CalloutDescription({ children, className, ...props }: ComponentProps<'p'>): import("react").JSX.Element;
|
|
20
|
-
//#endregion
|
|
21
|
-
export { Callout, CalloutContainer, CalloutContainerProps, CalloutDescription, CalloutTitle, CalloutType };
|
|
17
|
+
export declare function CalloutContainer({ type: inputType, icon, children, className, style, ...props }: CalloutContainerProps): import("react").JSX.Element;
|
|
18
|
+
export declare function CalloutTitle({ children, className, ...props }: ComponentProps<'p'>): import("react").JSX.Element;
|
|
19
|
+
export declare function CalloutDescription({ children, className, ...props }: ComponentProps<'p'>): import("react").JSX.Element;
|
|
20
|
+
//#endregion
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from "react";
|
|
2
2
|
//#region src/components/card.d.ts
|
|
3
|
-
declare function Cards(props: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
4
|
-
type CardProps = Omit<HTMLAttributes<HTMLElement>, 'title'> & {
|
|
3
|
+
export declare function Cards(props: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
4
|
+
export type CardProps = Omit<HTMLAttributes<HTMLElement>, 'title'> & {
|
|
5
5
|
icon?: ReactNode;
|
|
6
6
|
title: ReactNode;
|
|
7
7
|
description?: ReactNode;
|
|
8
8
|
href?: string;
|
|
9
9
|
external?: boolean;
|
|
10
10
|
};
|
|
11
|
-
declare function Card({ icon, title, description, ...props }: CardProps): import("react").JSX.Element;
|
|
12
|
-
//#endregion
|
|
13
|
-
export { Card, CardProps, Cards };
|
|
11
|
+
export declare function Card({ icon, title, description, ...props }: CardProps): import("react").JSX.Element;
|
|
12
|
+
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Tabs, TabsContent, TabsList, TabsTrigger } from "./ui/tabs.js";
|
|
2
2
|
import { ComponentProps, HTMLAttributes, ReactNode } from "react";
|
|
3
3
|
//#region src/components/codeblock.d.ts
|
|
4
|
-
interface CodeBlockProps extends Omit<ComponentProps<'figure'>, 'title'> {
|
|
4
|
+
export interface CodeBlockProps extends Omit<ComponentProps<'figure'>, 'title'> {
|
|
5
5
|
title?: ReactNode;
|
|
6
6
|
/**
|
|
7
7
|
* Icon of code block
|
|
@@ -35,11 +35,10 @@ interface CodeBlockProps extends Omit<ComponentProps<'figure'>, 'title'> {
|
|
|
35
35
|
children?: ReactNode;
|
|
36
36
|
}) => ReactNode;
|
|
37
37
|
}
|
|
38
|
-
declare function Pre(props: ComponentProps<'pre'>): import("react").JSX.Element;
|
|
39
|
-
declare function CodeBlock({ ref, title, allowCopy, keepBackground, icon, viewportProps, children, Actions, ...props }: CodeBlockProps): import("react").JSX.Element;
|
|
40
|
-
declare function CodeBlockTabs({ ref, className, ...props }: ComponentProps<typeof Tabs>): import("react").JSX.Element;
|
|
41
|
-
declare function CodeBlockTabsList({ className, ...props }: ComponentProps<typeof TabsList>): import("react").JSX.Element;
|
|
42
|
-
declare function CodeBlockTabsTrigger({ children, className, ...props }: ComponentProps<typeof TabsTrigger>): import("react").JSX.Element;
|
|
43
|
-
declare function CodeBlockTab(props: ComponentProps<typeof TabsContent>): import("react").JSX.Element;
|
|
44
|
-
//#endregion
|
|
45
|
-
export { CodeBlock, CodeBlockProps, CodeBlockTab, CodeBlockTabs, CodeBlockTabsList, CodeBlockTabsTrigger, Pre };
|
|
38
|
+
export declare function Pre(props: ComponentProps<'pre'>): import("react").JSX.Element;
|
|
39
|
+
export declare function CodeBlock({ ref, title, allowCopy, keepBackground, icon, viewportProps, children, Actions, ...props }: CodeBlockProps): import("react").JSX.Element;
|
|
40
|
+
export declare function CodeBlockTabs({ ref, className, ...props }: ComponentProps<typeof Tabs>): import("react").JSX.Element;
|
|
41
|
+
export declare function CodeBlockTabsList({ className, ...props }: ComponentProps<typeof TabsList>): import("react").JSX.Element;
|
|
42
|
+
export declare function CodeBlockTabsTrigger({ children, className, ...props }: ComponentProps<typeof TabsTrigger>): import("react").JSX.Element;
|
|
43
|
+
export declare function CodeBlockTab(props: ComponentProps<typeof TabsContent>): import("react").JSX.Element;
|
|
44
|
+
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CodeBlockProps } from "./codeblock.js";
|
|
2
2
|
import { HighlightOptions } from "fumadocs-core/highlight";
|
|
3
3
|
//#region src/components/codeblock.rsc.d.ts
|
|
4
|
-
type ServerCodeBlockProps = HighlightOptions & {
|
|
4
|
+
export type ServerCodeBlockProps = HighlightOptions & {
|
|
5
5
|
code: string;
|
|
6
6
|
/**
|
|
7
7
|
* Extra props for the underlying `<CodeBlock />` component.
|
|
@@ -10,6 +10,5 @@ type ServerCodeBlockProps = HighlightOptions & {
|
|
|
10
10
|
*/
|
|
11
11
|
codeblock?: CodeBlockProps;
|
|
12
12
|
};
|
|
13
|
-
declare function ServerCodeBlock({ code, codeblock, ...options }: ServerCodeBlockProps): Promise<Iterable<import("react").ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | (string | number | bigint | boolean | Iterable<import("react").ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined)>;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { ServerCodeBlock, ServerCodeBlockProps };
|
|
13
|
+
export declare function ServerCodeBlock({ code, codeblock, ...options }: ServerCodeBlockProps): Promise<Iterable<import("react").ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | (string | number | bigint | boolean | Iterable<import("react").ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined)>;
|
|
14
|
+
//#endregion
|
|
@@ -3,7 +3,7 @@ import "./search.js";
|
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
import { AlgoliaOptions } from "fumadocs-core/search/client";
|
|
5
5
|
//#region src/components/dialog/search-algolia.d.ts
|
|
6
|
-
interface AlgoliaSearchDialogProps extends SharedProps {
|
|
6
|
+
export interface AlgoliaSearchDialogProps extends SharedProps {
|
|
7
7
|
searchOptions: AlgoliaOptions;
|
|
8
8
|
links?: SearchLink[];
|
|
9
9
|
footer?: ReactNode;
|
|
@@ -22,6 +22,5 @@ interface AlgoliaSearchDialogProps extends SharedProps {
|
|
|
22
22
|
*/
|
|
23
23
|
allowClear?: boolean;
|
|
24
24
|
}
|
|
25
|
-
|
|
26
|
-
//#endregion
|
|
27
|
-
export { AlgoliaSearchDialogProps, AlgoliaSearchDialog as default };
|
|
25
|
+
export default function AlgoliaSearchDialog({ searchOptions, tags, defaultTag, showAlgolia, allowClear, links, footer, ...props }: AlgoliaSearchDialogProps): import("react").JSX.Element;
|
|
26
|
+
//#endregion
|
|
@@ -2,7 +2,7 @@ import { SearchLink, SharedProps, TagItem } from "../../contexts/search.js";
|
|
|
2
2
|
import "./search.js";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
//#region src/components/dialog/search-default.d.ts
|
|
5
|
-
interface DefaultSearchDialogProps extends SharedProps {
|
|
5
|
+
export interface DefaultSearchDialogProps extends SharedProps {
|
|
6
6
|
/** @deprecated re-create the dialog instead for other clients, see https://fumadocs.dev/docs/search/orama */
|
|
7
7
|
type?: 'static';
|
|
8
8
|
links?: SearchLink[];
|
|
@@ -24,6 +24,5 @@ interface DefaultSearchDialogProps extends SharedProps {
|
|
|
24
24
|
*/
|
|
25
25
|
allowClear?: boolean;
|
|
26
26
|
}
|
|
27
|
-
|
|
28
|
-
//#endregion
|
|
29
|
-
export { DefaultSearchDialogProps, DefaultSearchDialog as default };
|
|
27
|
+
export default function DefaultSearchDialog({ type, defaultTag, tags, api, delayMs, allowClear, links, footer, ...props }: DefaultSearchDialogProps): import("react").JSX.Element;
|
|
28
|
+
//#endregion
|
|
@@ -3,7 +3,7 @@ import "./search.js";
|
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
import { OramaCloudOptions } from "fumadocs-core/search/client";
|
|
5
5
|
//#region src/components/dialog/search-orama.d.ts
|
|
6
|
-
interface OramaSearchDialogProps extends SharedProps {
|
|
6
|
+
export interface OramaSearchDialogProps extends SharedProps {
|
|
7
7
|
links?: SearchLink[];
|
|
8
8
|
client: OramaCloudOptions['client'];
|
|
9
9
|
searchOptions?: OramaCloudOptions['params'];
|
|
@@ -27,6 +27,5 @@ interface OramaSearchDialogProps extends SharedProps {
|
|
|
27
27
|
/**
|
|
28
28
|
* Orama Cloud integration
|
|
29
29
|
*/
|
|
30
|
-
|
|
31
|
-
//#endregion
|
|
32
|
-
export { OramaSearchDialogProps, OramaSearchDialog as default };
|
|
30
|
+
export default function OramaSearchDialog({ client, searchOptions, tags, defaultTag, showOrama, allowClear, index, footer, links, ...props }: OramaSearchDialogProps): import("react").JSX.Element;
|
|
31
|
+
//#endregion
|
|
@@ -3,7 +3,7 @@ import { ComponentProps, ReactNode } from "react";
|
|
|
3
3
|
import { Dialog } from "@base-ui/react/dialog";
|
|
4
4
|
import { HighlightedText, ReactSortedResult } from "fumadocs-core/search";
|
|
5
5
|
//#region src/components/dialog/search.d.ts
|
|
6
|
-
type SearchItemType = (ReactSortedResult & {
|
|
6
|
+
export type SearchItemType = (ReactSortedResult & {
|
|
7
7
|
external?: boolean;
|
|
8
8
|
}) | {
|
|
9
9
|
id: string;
|
|
@@ -11,21 +11,21 @@ type SearchItemType = (ReactSortedResult & {
|
|
|
11
11
|
node: ReactNode;
|
|
12
12
|
onSelect: () => void;
|
|
13
13
|
};
|
|
14
|
-
interface SearchDialogProps extends SharedProps {
|
|
14
|
+
export interface SearchDialogProps extends SharedProps {
|
|
15
15
|
search: string;
|
|
16
16
|
onSearchChange: (v: string) => void;
|
|
17
17
|
onSelect?: (item: SearchItemType) => void;
|
|
18
18
|
isLoading?: boolean;
|
|
19
19
|
children: ReactNode;
|
|
20
20
|
}
|
|
21
|
-
declare function SearchDialog({ open, onOpenChange, search, onSearchChange, isLoading, onSelect: onSelectProp, children, dialogHandle }: SearchDialogProps): import("react").JSX.Element;
|
|
22
|
-
declare function SearchDialogHeader(props: ComponentProps<'div'>): import("react").JSX.Element;
|
|
23
|
-
declare function SearchDialogInput(props: ComponentProps<'input'>): import("react").JSX.Element;
|
|
24
|
-
declare function SearchDialogClose({ children, className, ...props }: ComponentProps<'button'>): import("react").JSX.Element;
|
|
25
|
-
declare function SearchDialogFooter(props: ComponentProps<'div'>): import("react").JSX.Element;
|
|
26
|
-
declare function SearchDialogOverlay({ className, ...props }: ComponentProps<typeof Dialog.Backdrop>): import("react").JSX.Element;
|
|
27
|
-
declare function SearchDialogContent({ ref, children, className, ...props }: ComponentProps<typeof Dialog.Popup>): import("react").JSX.Element;
|
|
28
|
-
declare function SearchDialogList({ items, Empty, Item, ...props }: Omit<ComponentProps<'div'>, 'children'> & {
|
|
21
|
+
export declare function SearchDialog({ open, onOpenChange, search, onSearchChange, isLoading, onSelect: onSelectProp, children, dialogHandle }: SearchDialogProps): import("react").JSX.Element;
|
|
22
|
+
export declare function SearchDialogHeader(props: ComponentProps<'div'>): import("react").JSX.Element;
|
|
23
|
+
export declare function SearchDialogInput(props: ComponentProps<'input'>): import("react").JSX.Element;
|
|
24
|
+
export declare function SearchDialogClose({ children, className, ...props }: ComponentProps<'button'>): import("react").JSX.Element;
|
|
25
|
+
export declare function SearchDialogFooter(props: ComponentProps<'div'>): import("react").JSX.Element;
|
|
26
|
+
export declare function SearchDialogOverlay({ className, ...props }: ComponentProps<typeof Dialog.Backdrop>): import("react").JSX.Element;
|
|
27
|
+
export declare function SearchDialogContent({ ref, children, className, ...props }: ComponentProps<typeof Dialog.Popup>): import("react").JSX.Element;
|
|
28
|
+
export declare function SearchDialogList({ items, Empty, Item, ...props }: Omit<ComponentProps<'div'>, 'children'> & {
|
|
29
29
|
items: SearchItemType[] | null | undefined;
|
|
30
30
|
/**
|
|
31
31
|
* Renderer for empty list UI
|
|
@@ -39,23 +39,23 @@ declare function SearchDialogList({ items, Empty, Item, ...props }: Omit<Compone
|
|
|
39
39
|
onClick: () => void;
|
|
40
40
|
}) => ReactNode;
|
|
41
41
|
}): import("react").JSX.Element;
|
|
42
|
-
declare function SearchDialogListItem({ item, className, children, renderMarkdown, renderHighlights: _, ...props }: ComponentProps<'button'> & {
|
|
42
|
+
export declare function SearchDialogListItem({ item, className, children, renderMarkdown, renderHighlights: _, ...props }: ComponentProps<'button'> & {
|
|
43
43
|
renderMarkdown?: (v: string) => ReactNode;
|
|
44
44
|
/** @deprecated highlight blocks is now wrapped in `<mark />`, use `renderMarkdown` to handle instead. */
|
|
45
45
|
renderHighlights?: (blocks: HighlightedText<ReactNode>[]) => ReactNode;
|
|
46
46
|
item: SearchItemType;
|
|
47
47
|
}): import("react").JSX.Element;
|
|
48
|
-
declare function SearchDialogIcon(props: ComponentProps<'svg'>): import("react").JSX.Element;
|
|
49
|
-
interface TagsListProps extends ComponentProps<'div'> {
|
|
48
|
+
export declare function SearchDialogIcon(props: ComponentProps<'svg'>): import("react").JSX.Element;
|
|
49
|
+
export interface TagsListProps extends ComponentProps<'div'> {
|
|
50
50
|
tag?: string;
|
|
51
51
|
onTagChange: (tag: string | undefined) => void;
|
|
52
52
|
allowClear?: boolean;
|
|
53
53
|
}
|
|
54
|
-
declare function TagsList({ tag, onTagChange, allowClear, ...props }: TagsListProps): import("react").JSX.Element;
|
|
55
|
-
declare function TagsListItem({ value, className, ...props }: ComponentProps<'button'> & {
|
|
54
|
+
export declare function TagsList({ tag, onTagChange, allowClear, ...props }: TagsListProps): import("react").JSX.Element;
|
|
55
|
+
export declare function TagsListItem({ value, className, ...props }: ComponentProps<'button'> & {
|
|
56
56
|
value: string;
|
|
57
57
|
}): import("react").JSX.Element;
|
|
58
|
-
declare function useSearch(): {
|
|
58
|
+
export declare function useSearch(): {
|
|
59
59
|
open: boolean;
|
|
60
60
|
onOpenChange: (open: boolean) => void;
|
|
61
61
|
search: string;
|
|
@@ -63,14 +63,14 @@ declare function useSearch(): {
|
|
|
63
63
|
onSelect: (item: SearchItemType) => void;
|
|
64
64
|
isLoading: boolean;
|
|
65
65
|
};
|
|
66
|
-
declare function useTagsList(): {
|
|
66
|
+
export declare function useTagsList(): {
|
|
67
67
|
value?: string;
|
|
68
68
|
onValueChange: (value: string | undefined) => void;
|
|
69
69
|
allowClear: boolean;
|
|
70
70
|
};
|
|
71
|
-
declare function useSearchList(): {
|
|
71
|
+
export declare function useSearchList(): {
|
|
72
72
|
active: string | null;
|
|
73
73
|
setActive: (v: string | null) => void;
|
|
74
74
|
};
|
|
75
75
|
//#endregion
|
|
76
|
-
export {
|
|
76
|
+
export type { SharedProps };
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { CodeBlockProps } from "./codeblock.js";
|
|
2
2
|
import { UseShikiOptions } from "fumadocs-core/highlight/shiki/react";
|
|
3
3
|
import { HighlighterCore } from "shiki";
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
declare namespace dynamic_codeblock_core_d_exports {
|
|
5
|
+
export { DynamicCodeBlock, DynamicCodeblockProps };
|
|
6
|
+
}
|
|
7
|
+
export interface DynamicCodeblockProps {
|
|
6
8
|
highlighter: HighlighterCore | (() => HighlighterCore | PromiseLike<HighlighterCore>);
|
|
7
9
|
lang: string;
|
|
8
10
|
code: string;
|
|
@@ -21,6 +23,6 @@ interface DynamicCodeblockProps {
|
|
|
21
23
|
options: DistributiveOmit<UseShikiOptions, 'lang'>;
|
|
22
24
|
}
|
|
23
25
|
type DistributiveOmit<T, K extends PropertyKey> = T extends unknown ? Omit<T, K> : never;
|
|
24
|
-
declare function DynamicCodeBlock({ lang, code, codeblock, options, wrapInSuspense, highlighter }: DynamicCodeblockProps): import("react").JSX.Element;
|
|
26
|
+
export declare function DynamicCodeBlock({ lang, code, codeblock, options, wrapInSuspense, highlighter }: DynamicCodeblockProps): import("react").JSX.Element;
|
|
25
27
|
//#endregion
|
|
26
|
-
export {
|
|
28
|
+
export { dynamic_codeblock_core_d_exports };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { DynamicCodeblockProps as DynamicCodeblockProps$1 } from "./dynamic-codeblock.core.js";
|
|
1
|
+
import { DynamicCodeblockProps as DynamicCodeblockProps$1, dynamic_codeblock_core_d_exports } from "./dynamic-codeblock.core.js";
|
|
2
2
|
//#region src/components/dynamic-codeblock.d.ts
|
|
3
|
-
type DynamicCodeblockProps = Omit<DynamicCodeblockProps$1, 'highlighter' | 'options'> & {
|
|
3
|
+
export type DynamicCodeblockProps = Omit<DynamicCodeblockProps$1, 'highlighter' | 'options'> & {
|
|
4
4
|
options?: DynamicCodeblockProps$1['options'];
|
|
5
5
|
};
|
|
6
|
-
declare function DynamicCodeBlock(props: DynamicCodeblockProps): import("react").JSX.Element;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { DynamicCodeBlock, DynamicCodeblockProps };
|
|
6
|
+
export declare function DynamicCodeBlock(props: DynamicCodeblockProps): import("react").JSX.Element;
|
|
7
|
+
//#endregion
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from "react";
|
|
2
2
|
//#region src/components/files.d.ts
|
|
3
|
-
declare function Files({ className, ...props }: HTMLAttributes<HTMLDivElement>): React.ReactElement;
|
|
4
|
-
interface FileProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
export declare function Files({ className, ...props }: HTMLAttributes<HTMLDivElement>): React.ReactElement;
|
|
4
|
+
export interface FileProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
5
|
name: string;
|
|
6
6
|
icon?: ReactNode;
|
|
7
7
|
}
|
|
8
|
-
interface FolderProps extends HTMLAttributes<HTMLDivElement> {
|
|
8
|
+
export interface FolderProps extends HTMLAttributes<HTMLDivElement> {
|
|
9
9
|
name: string;
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
/**
|
|
@@ -15,7 +15,6 @@ interface FolderProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
15
15
|
*/
|
|
16
16
|
defaultOpen?: boolean;
|
|
17
17
|
}
|
|
18
|
-
declare function File({ name, icon, className, ...rest }: FileProps): React.ReactElement;
|
|
19
|
-
declare function Folder({ name, defaultOpen, ...props }: FolderProps): React.ReactElement;
|
|
20
|
-
//#endregion
|
|
21
|
-
export { File, FileProps, Files, Folder, FolderProps };
|
|
18
|
+
export declare function File({ name, icon, className, ...rest }: FileProps): React.ReactElement;
|
|
19
|
+
export declare function Folder({ name, defaultOpen, ...props }: FolderProps): React.ReactElement;
|
|
20
|
+
//#endregion
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
2
|
//#region src/components/github-info.d.ts
|
|
3
|
-
interface FetchRepositoryInfoOptions {
|
|
3
|
+
export interface FetchRepositoryInfoOptions {
|
|
4
4
|
owner: string;
|
|
5
5
|
repo: string;
|
|
6
6
|
baseUrl?: string;
|
|
7
7
|
token?: string;
|
|
8
8
|
fetchOptions?: RequestInit;
|
|
9
9
|
}
|
|
10
|
-
interface RepositoryInfo {
|
|
10
|
+
export interface RepositoryInfo {
|
|
11
11
|
stars: number;
|
|
12
12
|
forks: number;
|
|
13
13
|
}
|
|
14
|
-
interface GithubInfoProps extends ComponentProps<'a'>, FetchRepositoryInfoOptions {
|
|
14
|
+
export interface GithubInfoProps extends ComponentProps<'a'>, FetchRepositoryInfoOptions {
|
|
15
15
|
locale?: Intl.LocalesArgument;
|
|
16
16
|
}
|
|
17
|
-
declare function fetchRepositoryInfo({ owner, repo, token, baseUrl, fetchOptions }: FetchRepositoryInfoOptions): Promise<RepositoryInfo>;
|
|
18
|
-
declare function GithubInfo({ repo, owner, token, baseUrl, fetchOptions, locale, ...props }: GithubInfoProps): import("react").JSX.Element;
|
|
19
|
-
//#endregion
|
|
20
|
-
export { FetchRepositoryInfoOptions, GithubInfo, GithubInfoProps, RepositoryInfo, fetchRepositoryInfo };
|
|
17
|
+
export declare function fetchRepositoryInfo({ owner, repo, token, baseUrl, fetchOptions }: FetchRepositoryInfoOptions): Promise<RepositoryInfo>;
|
|
18
|
+
export declare function GithubInfo({ repo, owner, token, baseUrl, fetchOptions, locale, ...props }: GithubInfoProps): import("react").JSX.Element;
|
|
19
|
+
//#endregion
|
|
@@ -4,6 +4,5 @@ type Types = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
|
4
4
|
type HeadingProps<T extends Types> = Omit<ComponentPropsWithoutRef<T>, 'as'> & {
|
|
5
5
|
as?: T;
|
|
6
6
|
};
|
|
7
|
-
declare function Heading<T extends Types = 'h1'>({ as, ...props }: HeadingProps<T>): import("react").JSX.Element;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { Heading };
|
|
7
|
+
export declare function Heading<T extends Types = 'h1'>({ as, ...props }: HeadingProps<T>): import("react").JSX.Element;
|
|
8
|
+
//#endregion
|
|
@@ -3,7 +3,7 @@ import "../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_rea
|
|
|
3
3
|
import { ImageProps } from "fumadocs-core/framework";
|
|
4
4
|
import { ComponentProps } from "react";
|
|
5
5
|
//#region src/components/image-zoom.d.ts
|
|
6
|
-
type ImageZoomProps = ImageProps & {
|
|
6
|
+
export type ImageZoomProps = ImageProps & {
|
|
7
7
|
/**
|
|
8
8
|
* Image props when zoom in
|
|
9
9
|
*/
|
|
@@ -13,6 +13,5 @@ type ImageZoomProps = ImageProps & {
|
|
|
13
13
|
*/
|
|
14
14
|
rmiz?: UncontrolledProps;
|
|
15
15
|
};
|
|
16
|
-
declare function ImageZoom({ zoomInProps, children, rmiz, ...props }: ImageZoomProps): import("react").JSX.Element;
|
|
17
|
-
//#endregion
|
|
18
|
-
export { ImageZoom, ImageZoomProps };
|
|
16
|
+
export declare function ImageZoom({ zoomInProps, children, rmiz, ...props }: ImageZoomProps): import("react").JSX.Element;
|
|
17
|
+
//#endregion
|
|
@@ -2,9 +2,8 @@ import { Collapsible } from "./ui/collapsible.js";
|
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
3
|
import { TOCItemType } from "fumadocs-core/toc";
|
|
4
4
|
//#region src/components/inline-toc.d.ts
|
|
5
|
-
interface InlineTocProps extends ComponentProps<typeof Collapsible> {
|
|
5
|
+
export interface InlineTocProps extends ComponentProps<typeof Collapsible> {
|
|
6
6
|
items: TOCItemType[];
|
|
7
7
|
}
|
|
8
|
-
declare function InlineTOC({ items, className, ...props }: InlineTocProps): import("react").JSX.Element;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { InlineTOC, InlineTocProps };
|
|
8
|
+
export declare function InlineTOC({ items, className, ...props }: InlineTocProps): import("react").JSX.Element;
|
|
9
|
+
//#endregion
|
|
@@ -18,7 +18,7 @@ interface SidebarContext {
|
|
|
18
18
|
prefetch?: boolean;
|
|
19
19
|
mode: Mode;
|
|
20
20
|
}
|
|
21
|
-
interface SidebarProviderProps {
|
|
21
|
+
export interface SidebarProviderProps {
|
|
22
22
|
/**
|
|
23
23
|
* Open folders by default if their level is lower or equal to a specific level
|
|
24
24
|
* (Starting from 1)
|
|
@@ -34,16 +34,16 @@ interface SidebarProviderProps {
|
|
|
34
34
|
}
|
|
35
35
|
type Mode = 'drawer' | 'full';
|
|
36
36
|
declare const SidebarContext: import("react").Context<SidebarContext | null>;
|
|
37
|
-
declare function SidebarProvider({ defaultOpenLevel, prefetch, children }: SidebarProviderProps): import("react").JSX.Element;
|
|
38
|
-
declare function useSidebar(): SidebarContext;
|
|
39
|
-
declare function useFolder(): {
|
|
37
|
+
export declare function SidebarProvider({ defaultOpenLevel, prefetch, children }: SidebarProviderProps): import("react").JSX.Element;
|
|
38
|
+
export declare function useSidebar(): SidebarContext;
|
|
39
|
+
export declare function useFolder(): {
|
|
40
40
|
open: boolean;
|
|
41
41
|
setOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
42
42
|
depth: number;
|
|
43
43
|
collapsible: boolean;
|
|
44
44
|
} | null;
|
|
45
|
-
declare function useFolderDepth(): number;
|
|
46
|
-
declare function SidebarContent({ children }: {
|
|
45
|
+
export declare function useFolderDepth(): number;
|
|
46
|
+
export declare function SidebarContent({ children }: {
|
|
47
47
|
children: (state: {
|
|
48
48
|
ref: RefObject<HTMLElement | null>;
|
|
49
49
|
collapsed: boolean;
|
|
@@ -52,29 +52,29 @@ declare function SidebarContent({ children }: {
|
|
|
52
52
|
onPointerLeave: (event: PointerEvent) => void;
|
|
53
53
|
}) => ReactNode;
|
|
54
54
|
}): ReactNode;
|
|
55
|
-
declare function SidebarDrawerOverlay(props: ComponentProps<'div'>): import("react").JSX.Element | undefined;
|
|
56
|
-
declare function SidebarDrawerContent({ className, children, ...props }: ComponentProps<'aside'>): import("react").JSX.Element | undefined;
|
|
57
|
-
declare function SidebarViewport({ className, ...props }: ScrollAreaProps): import("react").JSX.Element;
|
|
58
|
-
declare function SidebarSeparator(props: ComponentProps<'p'>): import("react").JSX.Element;
|
|
59
|
-
declare function SidebarItem({ icon, active, children, ...props }: LinkProps & {
|
|
55
|
+
export declare function SidebarDrawerOverlay(props: ComponentProps<'div'>): import("react").JSX.Element | undefined;
|
|
56
|
+
export declare function SidebarDrawerContent({ className, children, ...props }: ComponentProps<'aside'>): import("react").JSX.Element | undefined;
|
|
57
|
+
export declare function SidebarViewport({ className, ...props }: ScrollAreaProps): import("react").JSX.Element;
|
|
58
|
+
export declare function SidebarSeparator(props: ComponentProps<'p'>): import("react").JSX.Element;
|
|
59
|
+
export declare function SidebarItem({ icon, active, children, ...props }: LinkProps & {
|
|
60
60
|
active?: boolean;
|
|
61
61
|
icon?: ReactNode;
|
|
62
62
|
}): import("react").JSX.Element;
|
|
63
|
-
declare function SidebarFolder({ defaultOpen: defaultOpenProp, collapsible, active, children, ...props }: ComponentProps<'div'> & {
|
|
63
|
+
export declare function SidebarFolder({ defaultOpen: defaultOpenProp, collapsible, active, children, ...props }: ComponentProps<'div'> & {
|
|
64
64
|
active?: boolean;
|
|
65
65
|
defaultOpen?: boolean;
|
|
66
66
|
collapsible?: boolean;
|
|
67
67
|
}): import("react").JSX.Element;
|
|
68
|
-
declare function SidebarFolderTrigger({ children, ...props }: CollapsibleTriggerProps): import("react").JSX.Element;
|
|
69
|
-
declare function SidebarFolderLink({ children, active, ...props }: LinkProps & {
|
|
68
|
+
export declare function SidebarFolderTrigger({ children, ...props }: CollapsibleTriggerProps): import("react").JSX.Element;
|
|
69
|
+
export declare function SidebarFolderLink({ children, active, ...props }: LinkProps & {
|
|
70
70
|
active?: boolean;
|
|
71
71
|
}): import("react").JSX.Element;
|
|
72
|
-
declare function SidebarFolderContent(props: CollapsibleContentProps): import("react").JSX.Element;
|
|
73
|
-
declare function SidebarTrigger({ children, ...props }: ComponentProps<'button'>): import("react").JSX.Element;
|
|
74
|
-
declare function SidebarCollapseTrigger(props: ComponentProps<'button'>): import("react").JSX.Element;
|
|
72
|
+
export declare function SidebarFolderContent(props: CollapsibleContentProps): import("react").JSX.Element;
|
|
73
|
+
export declare function SidebarTrigger({ children, ...props }: ComponentProps<'button'>): import("react").JSX.Element;
|
|
74
|
+
export declare function SidebarCollapseTrigger(props: ComponentProps<'button'>): import("react").JSX.Element;
|
|
75
75
|
/**
|
|
76
76
|
* scroll to the element if `active` is true
|
|
77
77
|
*/
|
|
78
|
-
declare function useAutoScroll(active: boolean, ref: RefObject<HTMLElement | null>): void;
|
|
78
|
+
export declare function useAutoScroll(active: boolean, ref: RefObject<HTMLElement | null>): void;
|
|
79
79
|
//#endregion
|
|
80
|
-
export {
|
|
80
|
+
export { base_d_exports };
|
|
@@ -3,10 +3,9 @@ import { LinkItemType } from "../../layouts/shared/index.js";
|
|
|
3
3
|
import { HTMLAttributes } from "react";
|
|
4
4
|
//#region src/components/sidebar/link-item.d.ts
|
|
5
5
|
type InternalComponents = Pick<typeof base_d_exports, 'SidebarFolder' | 'SidebarFolderLink' | 'SidebarFolderContent' | 'SidebarFolderTrigger' | 'SidebarItem'>;
|
|
6
|
-
declare function createLinkItemRenderer({ SidebarFolder, SidebarFolderContent, SidebarFolderLink, SidebarFolderTrigger, SidebarItem }: InternalComponents): ({ item, ...props }: HTMLAttributes<HTMLElement> & {
|
|
6
|
+
export declare function createLinkItemRenderer({ SidebarFolder, SidebarFolderContent, SidebarFolderLink, SidebarFolderTrigger, SidebarItem }: InternalComponents): ({ item, ...props }: HTMLAttributes<HTMLElement> & {
|
|
7
7
|
item: Exclude<LinkItemType, {
|
|
8
8
|
type: 'icon';
|
|
9
9
|
}>;
|
|
10
10
|
}) => import("react").JSX.Element;
|
|
11
|
-
//#endregion
|
|
12
|
-
export { createLinkItemRenderer };
|
|
11
|
+
//#endregion
|
|
@@ -2,7 +2,7 @@ import { base_d_exports } from "./base.js";
|
|
|
2
2
|
import { FC, ReactNode } from "react";
|
|
3
3
|
import * as PageTree from "fumadocs-core/page-tree";
|
|
4
4
|
//#region src/components/sidebar/page-tree.d.ts
|
|
5
|
-
interface SidebarPageTreeComponents {
|
|
5
|
+
export interface SidebarPageTreeComponents {
|
|
6
6
|
Item: FC<{
|
|
7
7
|
item: PageTree.Item;
|
|
8
8
|
}>;
|
|
@@ -15,6 +15,5 @@ interface SidebarPageTreeComponents {
|
|
|
15
15
|
}>;
|
|
16
16
|
}
|
|
17
17
|
type InternalComponents = Pick<typeof base_d_exports, 'SidebarSeparator' | 'SidebarFolder' | 'SidebarFolderLink' | 'SidebarFolderContent' | 'SidebarFolderTrigger' | 'SidebarItem'>;
|
|
18
|
-
declare function createPageTreeRenderer({ SidebarFolder, SidebarFolderContent, SidebarFolderLink, SidebarFolderTrigger, SidebarSeparator, SidebarItem }: InternalComponents): (components: Partial<SidebarPageTreeComponents>) => import("react").JSX.Element;
|
|
19
|
-
//#endregion
|
|
20
|
-
export { SidebarPageTreeComponents, createPageTreeRenderer };
|
|
18
|
+
export declare function createPageTreeRenderer({ SidebarFolder, SidebarFolderContent, SidebarFolderLink, SidebarFolderTrigger, SidebarSeparator, SidebarItem }: InternalComponents): (components: Partial<SidebarPageTreeComponents>) => import("react").JSX.Element;
|
|
19
|
+
//#endregion
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { LayoutTab } from "../../../layouts/shared/index.js";
|
|
2
2
|
import { ComponentProps, ReactNode } from "react";
|
|
3
3
|
//#region src/components/sidebar/tabs/dropdown.d.ts
|
|
4
|
-
type SidebarTabWithProps = LayoutTab;
|
|
4
|
+
export type SidebarTabWithProps = LayoutTab;
|
|
5
5
|
/**
|
|
6
6
|
* Renders the given tabs as a dropdown per tabs group, one for each root folder on the
|
|
7
7
|
* current page's path, letting users switch between root folders of the same type.
|
|
8
8
|
*/
|
|
9
|
-
declare function SidebarTabsDropdown({ options, placeholder, ...props }: {
|
|
9
|
+
export declare function SidebarTabsDropdown({ options, placeholder, ...props }: {
|
|
10
10
|
placeholder?: ReactNode;
|
|
11
11
|
options: LayoutTab[];
|
|
12
12
|
} & ComponentProps<'button'>): import("react").JSX.Element[];
|
|
13
|
-
//#endregion
|
|
14
|
-
export { SidebarTabWithProps, SidebarTabsDropdown };
|
|
13
|
+
//#endregion
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { LayoutTab } from "../../../layouts/shared/index.js";
|
|
2
2
|
import * as PageTree from "fumadocs-core/page-tree";
|
|
3
3
|
//#region src/components/sidebar/tabs/index.d.ts
|
|
4
|
-
type SidebarTab = LayoutTab;
|
|
5
|
-
interface GetSidebarTabsOptions {
|
|
4
|
+
export type SidebarTab = LayoutTab;
|
|
5
|
+
export interface GetSidebarTabsOptions {
|
|
6
6
|
transform?: (option: SidebarTab, node: PageTree.Folder) => SidebarTab | null;
|
|
7
7
|
}
|
|
8
|
-
declare function getSidebarTabs(tree: PageTree.Root, { transform }?: GetSidebarTabsOptions): SidebarTab[];
|
|
9
|
-
//#endregion
|
|
10
|
-
export { GetSidebarTabsOptions, SidebarTab, getSidebarTabs };
|
|
8
|
+
export declare function getSidebarTabs(tree: PageTree.Root, { transform }?: GetSidebarTabsOptions): SidebarTab[];
|
|
9
|
+
//#endregion
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
//#region src/components/steps.d.ts
|
|
3
|
-
declare function Steps({ children }: {
|
|
3
|
+
export declare function Steps({ children }: {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
}): import("react").JSX.Element;
|
|
6
|
-
declare function Step({ children }: {
|
|
6
|
+
export declare function Step({ children }: {
|
|
7
7
|
children: ReactNode;
|
|
8
8
|
}): import("react").JSX.Element;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { Step, Steps };
|
|
9
|
+
//#endregion
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Tabs as Tabs$1, TabsContent as TabsContent$1, TabsList as TabsList$1, TabsTrigger as TabsTrigger$1 } from "./ui/tabs.js";
|
|
1
|
+
import { Tabs as Tabs$1, TabsContent as TabsContent$1, TabsList as TabsList$1, TabsTrigger as TabsTrigger$1, tabs_d_exports } from "./ui/tabs.js";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
3
|
import { ComponentProps, ReactNode } from "react";
|
|
4
4
|
//#region src/components/tabs.d.ts
|
|
5
|
-
interface TabsProps extends Omit<ComponentProps<typeof Tabs$1>, 'value' | 'onValueChange'> {
|
|
5
|
+
export interface TabsProps extends Omit<ComponentProps<typeof Tabs$1>, 'value' | 'onValueChange'> {
|
|
6
6
|
/**
|
|
7
7
|
* Use simple mode instead of advanced usage as documented in https://radix-ui.com/primitives/docs/components/tabs.
|
|
8
8
|
*/
|
|
@@ -18,16 +18,15 @@ interface TabsProps extends Omit<ComponentProps<typeof Tabs$1>, 'value' | 'onVal
|
|
|
18
18
|
*/
|
|
19
19
|
label?: ReactNode;
|
|
20
20
|
}
|
|
21
|
-
declare function TabsList({ className, ...props }: React$1.ComponentProps<typeof TabsList$1>): React$1.JSX.Element;
|
|
22
|
-
declare function TabsTrigger({ className, ...props }: React$1.ComponentProps<typeof TabsTrigger$1>): React$1.JSX.Element;
|
|
23
|
-
declare function Tabs({ ref, className, items, label, defaultIndex, defaultValue, ...props }: TabsProps): React$1.JSX.Element;
|
|
24
|
-
interface TabProps extends Omit<ComponentProps<typeof TabsContent$1>, 'value'> {
|
|
21
|
+
export declare function TabsList({ className, ...props }: React$1.ComponentProps<typeof TabsList$1>): React$1.JSX.Element;
|
|
22
|
+
export declare function TabsTrigger({ className, ...props }: React$1.ComponentProps<typeof TabsTrigger$1>): React$1.JSX.Element;
|
|
23
|
+
export declare function Tabs({ ref, className, items, label, defaultIndex, defaultValue, ...props }: TabsProps): React$1.JSX.Element;
|
|
24
|
+
export interface TabProps extends Omit<ComponentProps<typeof TabsContent$1>, 'value'> {
|
|
25
25
|
/**
|
|
26
26
|
* Value of tab, detect from index if unspecified.
|
|
27
27
|
*/
|
|
28
28
|
value?: string;
|
|
29
29
|
}
|
|
30
|
-
declare function Tab({ value, ...props }: TabProps): React$1.JSX.Element;
|
|
31
|
-
declare function TabsContent({ value, className, ...props }: ComponentProps<typeof TabsContent$1>): React$1.JSX.Element;
|
|
32
|
-
//#endregion
|
|
33
|
-
export { Tab, TabProps, Tabs, TabsContent, TabsList, TabsProps, TabsTrigger };
|
|
30
|
+
export declare function Tab({ value, ...props }: TabProps): React$1.JSX.Element;
|
|
31
|
+
export declare function TabsContent({ value, className, ...props }: ComponentProps<typeof TabsContent$1>): React$1.JSX.Element;
|
|
32
|
+
//#endregion
|