fumadocs-ui 15.2.9 → 15.2.11
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/components/accordion.d.ts +2 -1
- package/dist/components/accordion.d.ts.map +1 -1
- package/dist/components/accordion.js +2 -2
- package/dist/components/banner.js +1 -1
- package/dist/components/callout.d.ts +1 -1
- package/dist/components/callout.js +4 -4
- package/dist/components/codeblock.js +1 -1
- package/dist/components/dialog/search.d.ts +1 -1
- package/dist/components/dialog/search.d.ts.map +1 -1
- package/dist/components/dialog/search.js +3 -3
- package/dist/components/files.d.ts.map +1 -1
- package/dist/components/files.js +1 -1
- package/dist/components/github-info.js +1 -1
- package/dist/components/heading.js +1 -1
- package/dist/components/inline-toc.js +1 -1
- package/dist/components/layout/root-toggle.js +1 -1
- package/dist/components/layout/search-toggle.js +3 -3
- package/dist/components/layout/sidebar.js +3 -3
- package/dist/components/layout/theme-toggle.js +1 -1
- package/dist/components/type-table.d.ts +1 -0
- package/dist/components/type-table.d.ts.map +1 -1
- package/dist/components/type-table.js +10 -3
- package/dist/icons.d.ts +48 -0
- package/dist/icons.d.ts.map +1 -0
- package/dist/icons.js +261 -0
- package/dist/layouts/docs-client.js +2 -2
- package/dist/layouts/docs.js +1 -1
- package/dist/layouts/home/navbar.d.ts +1 -1
- package/dist/layouts/home.js +1 -1
- package/dist/layouts/notebook-client.js +1 -1
- package/dist/layouts/notebook.js +1 -1
- package/dist/mdx.d.ts +1 -1
- package/dist/page-client.js +1 -1
- package/dist/page.js +1 -1
- package/dist/style.css +17 -6
- package/package.json +14 -11
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { AccordionMultipleProps, AccordionSingleProps } from '@radix-ui/react-accordion';
|
|
1
2
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
2
|
-
export declare const Accordions: import("react").ForwardRefExoticComponent<(Omit<
|
|
3
|
+
export declare const Accordions: import("react").ForwardRefExoticComponent<(Omit<AccordionSingleProps, "value" | "onValueChange"> | Omit<AccordionMultipleProps, "value" | "onValueChange">) & import("react").RefAttributes<HTMLDivElement>>;
|
|
3
4
|
export declare const Accordion: import("react").ForwardRefExoticComponent<Omit<Omit<AccordionPrimitive.AccordionItemProps & import("react").RefAttributes<HTMLDivElement>, "ref">, "value"> & {
|
|
4
5
|
title: string;
|
|
5
6
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../src/components/accordion.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../src/components/accordion.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,sBAAsB,EACtB,oBAAoB,EACrB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAYhE,eAAO,MAAM,UAAU,8MA+BrB,CAAC;AAIH,eAAO,MAAM,SAAS;WAGX,MAAM;kDA0Bf,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
4
|
-
import { Check, ChevronRight, LinkIcon } from '
|
|
5
|
-
import { forwardRef,
|
|
4
|
+
import { Check, ChevronRight, Link as LinkIcon } from '../icons.js';
|
|
5
|
+
import { forwardRef, useEffect, useState, } from 'react';
|
|
6
6
|
import { cn } from '../utils/cn.js';
|
|
7
7
|
import { useCopyButton } from '../utils/use-copy-button.js';
|
|
8
8
|
import { buttonVariants } from '../components/ui/button.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
3
|
import { useEffect, useState } from 'react';
|
|
4
|
-
import { X } from '
|
|
4
|
+
import { X } from '../icons.js';
|
|
5
5
|
import { cn } from '../utils/cn.js';
|
|
6
6
|
import { buttonVariants } from '../components/ui/button.js';
|
|
7
7
|
export function Banner({ id, variant = 'normal', changeLayout = true, height = '3rem', ...props }) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
|
-
export declare const Callout: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "
|
|
2
|
+
export declare const Callout: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "title" | "type" | "icon"> & {
|
|
3
3
|
title?: ReactNode;
|
|
4
4
|
/**
|
|
5
5
|
* @defaultValue info
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { CircleX, Info, TriangleAlert } from '../icons.js';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import { cn } from '../utils/cn.js';
|
|
5
5
|
import { cva } from 'class-variance-authority';
|
|
6
|
-
const calloutVariants = cva('my-
|
|
6
|
+
const calloutVariants = cva('my-4 flex flex-row gap-2 rounded-lg border border-s-2 bg-fd-card p-3 text-sm text-fd-card-foreground shadow-md', {
|
|
7
7
|
variants: {
|
|
8
8
|
type: {
|
|
9
9
|
info: 'border-s-blue-500/50',
|
|
@@ -18,8 +18,8 @@ export const Callout = forwardRef(({ className, children, title, type = 'info',
|
|
|
18
18
|
}), className), ...props, children: [icon ??
|
|
19
19
|
{
|
|
20
20
|
info: _jsx(Info, { className: "size-5 fill-blue-500 text-fd-card" }),
|
|
21
|
-
warn: (_jsx(
|
|
21
|
+
warn: (_jsx(TriangleAlert, { className: "size-5 fill-orange-500 text-fd-card" })),
|
|
22
22
|
error: _jsx(CircleX, { className: "size-5 fill-red-500 text-fd-card" }),
|
|
23
|
-
}[type], _jsxs("div", { className: "min-w-0 flex-1", children: [title ? _jsx("p", { className: "font-medium !my-0", children: title }) : null, _jsx("div", { className: "text-fd-muted-foreground prose-no-margin
|
|
23
|
+
}[type], _jsxs("div", { className: "min-w-0 flex flex-col gap-2 flex-1", children: [title ? _jsx("p", { className: "font-medium !my-0", children: title }) : null, _jsx("div", { className: "text-fd-muted-foreground prose-no-margin empty:hidden", children: children })] })] }));
|
|
24
24
|
});
|
|
25
25
|
Callout.displayName = 'Callout';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { Check, Copy } from '
|
|
3
|
+
import { Check, Copy } from '../icons.js';
|
|
4
4
|
import { forwardRef, useCallback, useRef, } from 'react';
|
|
5
5
|
import { cn } from '../utils/cn.js';
|
|
6
6
|
import { ScrollArea, ScrollBar, ScrollViewport, } from '../components/ui/scroll-area.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
2
|
import type { SortedResult } from 'fumadocs-core/server';
|
|
3
3
|
export type SearchLink = [name: string, href: string];
|
|
4
4
|
type ReactSortedResult = Omit<SortedResult, 'content'> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/search.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/search.tsx"],"names":[],"mappings":"AASA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,SAAS,EAKf,MAAM,OAAO,CAAC;AAWf,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAKzD,MAAM,MAAM,UAAU,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;AAEtD,KAAK,iBAAiB,GAAG,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,GAAG;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,SAAS,CAAC;CACpB,CAAC;AAEF,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAEtC;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,EAAE,CAAC;CACtB;AAED,UAAU,iBAAkB,SAAQ,WAAW;IAC7C,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,EAAE,iBAAiB,EAAE,GAAG,OAAO,CAAC;IAEvC,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB;AAED,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EACJ,YAAY,EACZ,MAAM,EACN,KAAU,EACV,MAAM,EACN,cAAc,EACd,SAAS,EACT,GAAG,KAAK,EACT,EAAE,iBAAiB,2CAyDnB;AA4JD,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAE1B,KAAK,CAAC,EAAE,cAAc,CAAC,iBAAiB,CAAC,CAAC;CAC3C;AAED,MAAM,WAAW,aAAc,SAAQ,cAAc,CAAC,cAAc,CAAC;IACnE,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;IAC/C,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,KAAK,EAAE,OAAO,EAAE,CAAC;CAClB;AAaD,wBAAgB,QAAQ,CAAC,EACvB,GAAG,EACH,WAAW,EACX,KAAK,EACL,UAAU,EACV,GAAG,KAAK,EACT,EAAE,aAAa,2CAkCf"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { FileText, Hash,
|
|
4
|
-
import {
|
|
3
|
+
import { FileText, Hash, LoaderCircle, Search as SearchIcon, Text, } from '../../icons.js';
|
|
4
|
+
import { useCallback, useEffect, useMemo, useState, } from 'react';
|
|
5
5
|
import { useI18n } from '../../contexts/i18n.js';
|
|
6
6
|
import { cn } from '../../utils/cn.js';
|
|
7
7
|
import { useSidebar } from '../../contexts/sidebar.js';
|
|
@@ -75,7 +75,7 @@ function SearchResults({ items, onSelect, ...props }) {
|
|
|
75
75
|
}, children: [item.type !== 'page' ? (_jsx("div", { role: "none", className: "ms-2 h-full min-h-10 w-px bg-fd-border" })) : null, icons[item.type], _jsx("p", { className: "w-0 flex-1 truncate", children: item.content })] }, item.id)))] }));
|
|
76
76
|
}
|
|
77
77
|
function LoadingIndicator({ isLoading }) {
|
|
78
|
-
return (_jsxs("div", { className: "relative size-4", children: [_jsx(
|
|
78
|
+
return (_jsxs("div", { className: "relative size-4", children: [_jsx(LoaderCircle, { className: cn('absolute size-full animate-spin text-fd-primary transition-opacity', !isLoading && 'opacity-0') }), _jsx(SearchIcon, { className: cn('absolute size-full text-fd-muted-foreground transition-opacity', isLoading && 'opacity-0') })] }));
|
|
79
79
|
}
|
|
80
80
|
function CommandItem({ active, onActiveChange, value, ...props }) {
|
|
81
81
|
return (_jsx("button", { ref: useCallback((element) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/components/files.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/components/files.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAYtE,wBAAgB,KAAK,CAAC,EACpB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,YAAY,CASrD;AAED,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC/D,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED,MAAM,WAAW,WAAY,SAAQ,cAAc,CAAC,cAAc,CAAC;IACjE,IAAI,EAAE,MAAM,CAAC;IAEb,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,wBAAgB,IAAI,CAAC,EACnB,IAAI,EACJ,IAAmB,EACnB,SAAS,EACT,GAAG,IAAI,EACR,EAAE,SAAS,GAAG,KAAK,CAAC,YAAY,CAOhC;AAED,wBAAgB,MAAM,CAAC,EACrB,IAAI,EACJ,WAAmB,EACnB,GAAG,KAAK,EACT,EAAE,WAAW,GAAG,KAAK,CAAC,YAAY,CAclC"}
|
package/dist/components/files.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { cva } from 'class-variance-authority';
|
|
4
|
-
import { FileIcon, FolderIcon, FolderOpen } from '
|
|
4
|
+
import { File as FileIcon, Folder as FolderIcon, FolderOpen, } from '../icons.js';
|
|
5
5
|
import { useState } from 'react';
|
|
6
6
|
import { cn } from '../utils/cn.js';
|
|
7
7
|
import { Collapsible, CollapsibleContent, CollapsibleTrigger, } from './ui/collapsible.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { cn } from '../utils/cn.js';
|
|
3
|
-
import { Star } from '
|
|
3
|
+
import { Star } from '../icons.js';
|
|
4
4
|
async function getRepoStarsAndForks(owner, repo, token) {
|
|
5
5
|
const endpoint = `https://api.github.com/repos/${owner}/${repo}`;
|
|
6
6
|
const headers = new Headers({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { ChevronDown } from '
|
|
3
|
+
import { ChevronDown } from '../icons.js';
|
|
4
4
|
import { Collapsible, CollapsibleContent, CollapsibleTrigger, } from './ui/collapsible.js';
|
|
5
5
|
import { cn } from '../utils/cn.js';
|
|
6
6
|
export function InlineTOC({ items, ...props }) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
-
import { ChevronsUpDown } from '
|
|
3
|
+
import { ChevronsUpDown } from '../../icons.js';
|
|
4
4
|
import { useMemo, useState } from 'react';
|
|
5
5
|
import Link from 'fumadocs-core/link';
|
|
6
6
|
import { usePathname } from 'fumadocs-core/framework';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
3
|
+
import { Search } from '../../icons.js';
|
|
4
4
|
import { useSearchContext } from '../../contexts/search.js';
|
|
5
5
|
import { useI18n } from '../../contexts/i18n.js';
|
|
6
6
|
import { cn } from '../../utils/cn.js';
|
|
@@ -14,7 +14,7 @@ export function SearchToggle({ hideIfDisabled, size = 'icon', color = 'ghost', .
|
|
|
14
14
|
color,
|
|
15
15
|
}), props.className), "data-search": "", "aria-label": "Open Search", onClick: () => {
|
|
16
16
|
setOpenSearch(true);
|
|
17
|
-
}, children: _jsx(
|
|
17
|
+
}, children: _jsx(Search, { className: "p-px" }) }));
|
|
18
18
|
}
|
|
19
19
|
export function LargeSearchToggle({ hideIfDisabled, ...props }) {
|
|
20
20
|
const { enabled, hotKey, setOpenSearch } = useSearchContext();
|
|
@@ -23,5 +23,5 @@ export function LargeSearchToggle({ hideIfDisabled, ...props }) {
|
|
|
23
23
|
return null;
|
|
24
24
|
return (_jsxs("button", { type: "button", "data-search-full": "", ...props, className: cn('inline-flex items-center gap-2 rounded-full border bg-fd-secondary/50 p-1.5 text-sm text-fd-muted-foreground transition-colors hover:bg-fd-accent hover:text-fd-accent-foreground', props.className), onClick: () => {
|
|
25
25
|
setOpenSearch(true);
|
|
26
|
-
}, children: [_jsx(
|
|
26
|
+
}, children: [_jsx(Search, { className: "ms-1 size-4" }), text.search, _jsx("div", { className: "ms-auto inline-flex gap-0.5", children: hotKey.map((k, i) => (_jsx("kbd", { className: "rounded-md border bg-fd-background px-1.5", children: k.display }, i))) })] }));
|
|
27
27
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { ChevronDown, ExternalLink } from '
|
|
3
|
+
import { ChevronDown, ExternalLink } from '../../icons.js';
|
|
4
4
|
import * as Base from 'fumadocs-core/sidebar';
|
|
5
5
|
import { usePathname } from 'fumadocs-core/framework';
|
|
6
6
|
import { createContext, Fragment, useContext, useMemo, useRef, useState, } from 'react';
|
|
@@ -82,7 +82,7 @@ export function SidebarViewport(props) {
|
|
|
82
82
|
}
|
|
83
83
|
export function SidebarSeparator(props) {
|
|
84
84
|
const { level } = useInternalContext();
|
|
85
|
-
return (_jsx("p", { ...props, className: cn('inline-flex items-center gap-2 mb-2 px-2 text-sm font-medium [&_svg]:size-4 [&_svg]:shrink-0', props.className), style: {
|
|
85
|
+
return (_jsx("p", { ...props, className: cn('inline-flex items-center gap-2 mb-2 px-2 text-sm font-medium empty:mb-0 [&_svg]:size-4 [&_svg]:shrink-0', props.className), style: {
|
|
86
86
|
paddingInlineStart: getOffset(level),
|
|
87
87
|
...props.style,
|
|
88
88
|
}, children: props.children }));
|
|
@@ -167,7 +167,7 @@ export function SidebarPageTree(props) {
|
|
|
167
167
|
if (item.type === 'separator') {
|
|
168
168
|
if (Separator)
|
|
169
169
|
return _jsx(Separator, { item: item }, i);
|
|
170
|
-
return (_jsxs(SidebarSeparator, { className: cn(i !== 0 && 'mt-
|
|
170
|
+
return (_jsxs(SidebarSeparator, { className: cn(i !== 0 && 'mt-6'), children: [item.icon, item.name] }, i));
|
|
171
171
|
}
|
|
172
172
|
if (item.type === 'folder') {
|
|
173
173
|
const children = renderSidebarList(item.children, level + 1);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { cva } from 'class-variance-authority';
|
|
4
|
-
import { Moon, Sun, Airplay } from '
|
|
4
|
+
import { Moon, Sun, Airplay } from '../../icons.js';
|
|
5
5
|
import { useTheme } from 'next-themes';
|
|
6
6
|
import { useLayoutEffect, useState } from 'react';
|
|
7
7
|
import { cn } from '../../utils/cn.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type-table.d.ts","sourceRoot":"","sources":["../../src/components/type-table.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,wBAAgB,IAAI,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,GAAG,SAAS,CAWrE;AAED,UAAU,UAAU;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,CAAC,EAAE,SAAS,CAAC;IAC5B;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,QAAQ,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"type-table.d.ts","sourceRoot":"","sources":["../../src/components/type-table.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,wBAAgB,IAAI,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,GAAG,SAAS,CAWrE;AAED,UAAU,UAAU;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,CAAC,EAAE,SAAS,CAAC;IAC5B;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAeD,wBAAgB,SAAS,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;CAAE,2CA2DvE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { InfoIcon } from '
|
|
3
|
+
import { Info as InfoIcon } from '../icons.js';
|
|
4
4
|
import Link from 'fumadocs-core/link';
|
|
5
5
|
import { cva } from 'class-variance-authority';
|
|
6
6
|
import { cn } from '../utils/cn.js';
|
|
@@ -11,9 +11,16 @@ export function Info({ children }) {
|
|
|
11
11
|
const field = cva('inline-flex flex-row items-center gap-1');
|
|
12
12
|
const code = cva('rounded-md bg-fd-secondary p-1 text-fd-secondary-foreground', {
|
|
13
13
|
variants: {
|
|
14
|
-
color: {
|
|
14
|
+
color: {
|
|
15
|
+
primary: 'bg-fd-primary/10 text-fd-primary',
|
|
16
|
+
deprecated: 'line-through text-fd-primary/50',
|
|
17
|
+
},
|
|
15
18
|
},
|
|
16
19
|
});
|
|
17
20
|
export function TypeTable({ type }) {
|
|
18
|
-
return (_jsx("div", { className: "prose my-6 overflow-auto prose-no-margin", children: _jsxs("table", { className: "whitespace-nowrap text-sm text-fd-muted-foreground", children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { className: "w-[45%]", children: "Prop" }), _jsx("th", { className: "w-[30%]", children: "Type" }), _jsx("th", { className: "w-1/4", children: "Default" })] }) }), _jsx("tbody", { children: Object.entries(type)
|
|
21
|
+
return (_jsx("div", { className: "prose my-6 overflow-auto prose-no-margin", children: _jsxs("table", { className: "whitespace-nowrap text-sm text-fd-muted-foreground", children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { className: "w-[45%]", children: "Prop" }), _jsx("th", { className: "w-[30%]", children: "Type" }), _jsx("th", { className: "w-1/4", children: "Default" })] }) }), _jsx("tbody", { children: Object.entries(type)
|
|
22
|
+
.sort((a) => (a[1].deprecated ? 1 : -1))
|
|
23
|
+
.map(([key, value]) => (_jsxs("tr", { children: [_jsx("td", { children: _jsxs("div", { className: field(), children: [_jsxs("code", { className: cn(code({
|
|
24
|
+
color: value.deprecated ? 'deprecated' : 'primary',
|
|
25
|
+
})), children: [key, !value.required && '?'] }), value.description ? (_jsx(Info, { children: value.description })) : null] }) }), _jsx("td", { children: _jsxs("div", { className: field(), children: [_jsx("code", { className: code(), children: value.type }), value.typeDescription ? (_jsx(Info, { children: value.typeDescription })) : null, value.typeDescriptionLink ? (_jsx(Link, { href: value.typeDescriptionLink, children: _jsx(InfoIcon, { className: "size-4" }) })) : null] }) }), _jsx("td", { children: value.default ? (_jsx("code", { className: code(), children: value.default })) : ('-') })] }, key))) })] }) }));
|
|
19
26
|
}
|
package/dist/icons.d.ts
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license lucide-react - ISC
|
|
3
|
+
*
|
|
4
|
+
* All copyright belongs to https://github.com/lucide-icons/lucide, we bundle it as part of library to avoid upstream issues.
|
|
5
|
+
*/
|
|
6
|
+
import { type ComponentProps } from 'react';
|
|
7
|
+
type SVGElementType = 'circle' | 'ellipse' | 'g' | 'line' | 'path' | 'polygon' | 'polyline' | 'rect';
|
|
8
|
+
export interface LucideProps extends ComponentProps<'svg'> {
|
|
9
|
+
size?: string | number;
|
|
10
|
+
}
|
|
11
|
+
export type IconNode = [
|
|
12
|
+
elementName: SVGElementType,
|
|
13
|
+
attrs: Record<string, string>
|
|
14
|
+
][];
|
|
15
|
+
export declare const ChevronDown: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
16
|
+
export declare const Languages: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
17
|
+
export declare const Sidebar: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
18
|
+
export declare const ChevronsUpDown: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
19
|
+
export declare const Search: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
20
|
+
export declare const ExternalLink: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
21
|
+
export declare const Moon: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
22
|
+
export declare const Sun: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
23
|
+
export declare const Airplay: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
24
|
+
export declare const Menu: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
25
|
+
export declare const X: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
26
|
+
export declare const LoaderCircle: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
27
|
+
export declare const CircleCheck: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
28
|
+
export declare const CircleX: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
29
|
+
export declare const Check: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
30
|
+
export declare const TriangleAlert: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
31
|
+
export declare const Info: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
32
|
+
export declare const Copy: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
33
|
+
export declare const FileText: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
34
|
+
export declare const Hash: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
35
|
+
export declare const Text: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
36
|
+
export declare const File: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
37
|
+
export declare const Folder: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
38
|
+
export declare const FolderOpen: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
39
|
+
export declare const Star: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
40
|
+
export declare const Link: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
41
|
+
export declare const Edit: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
42
|
+
export declare const ChevronRight: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
43
|
+
export declare const ChevronLeft: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
44
|
+
export declare const Plus: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
45
|
+
export declare const Trash2: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
46
|
+
export declare const ChevronUp: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
47
|
+
export {};
|
|
48
|
+
//# sourceMappingURL=icons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../src/icons.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,KAAK,cAAc,EAA6B,MAAM,OAAO,CAAC;AAevE,KAAK,cAAc,GACf,QAAQ,GACR,SAAS,GACT,GAAG,GACH,MAAM,GACN,MAAM,GACN,SAAS,GACT,UAAU,GACV,MAAM,CAAC;AAEX,MAAM,WAAW,WAAY,SAAQ,cAAc,CAAC,KAAK,CAAC;IACxD,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,WAAW,EAAE,cAAc;IAC3B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAC9B,EAAE,CAAC;AA6BJ,eAAO,MAAM,WAAW,oHAEtB,CAAC;AAEH,eAAO,MAAM,SAAS,oHAOpB,CAAC;AAEH,eAAO,MAAM,OAAO,oHAMlB,CAAC;AAEH,eAAO,MAAM,cAAc,oHAGzB,CAAC;AAEH,eAAO,MAAM,MAAM,oHAGjB,CAAC;AAEH,eAAO,MAAM,YAAY,oHAUvB,CAAC;AAEH,eAAO,MAAM,IAAI,oHAEf,CAAC;AAEH,eAAO,MAAM,GAAG,oHAUd,CAAC;AAEH,eAAO,MAAM,OAAO,oHASlB,CAAC;AAEH,eAAO,MAAM,IAAI,oHAIf,CAAC;AAEH,eAAO,MAAM,CAAC,oHAGZ,CAAC;AAEH,eAAO,MAAM,YAAY,oHAEvB,CAAC;AAEH,eAAO,MAAM,WAAW,oHAGtB,CAAC;AAEH,eAAO,MAAM,OAAO,oHAIlB,CAAC;AAEH,eAAO,MAAM,KAAK,oHAEhB,CAAC;AAEH,eAAO,MAAM,aAAa,oHAUxB,CAAC;AAEH,eAAO,MAAM,IAAI,oHAIf,CAAC;AAEH,eAAO,MAAM,IAAI,oHAoBf,CAAC;AAEH,eAAO,MAAM,QAAQ,oHAYnB,CAAC;AAEH,eAAO,MAAM,IAAI,oHAKf,CAAC;AAEH,eAAO,MAAM,IAAI,oHAIf,CAAC;AAEH,eAAO,MAAM,IAAI,oHASf,CAAC;AAEH,eAAO,MAAM,MAAM,oHAQjB,CAAC;AAEH,eAAO,MAAM,UAAU,oHAQrB,CAAC;AAEH,eAAO,MAAM,IAAI,oHAQf,CAAC;AAEH,eAAO,MAAM,IAAI,oHAef,CAAC;AAEH,eAAO,MAAM,IAAI,oHAef,CAAC;AAEH,eAAO,MAAM,YAAY,oHAEvB,CAAC;AAEH,eAAO,MAAM,WAAW,oHAEtB,CAAC;AAEH,eAAO,MAAM,IAAI,oHAGf,CAAC;AAEH,eAAO,MAAM,MAAM,oHAMjB,CAAC;AAEH,eAAO,MAAM,SAAS,oHAEpB,CAAC"}
|
package/dist/icons.js
ADDED
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react - ISC
|
|
4
|
+
*
|
|
5
|
+
* All copyright belongs to https://github.com/lucide-icons/lucide, we bundle it as part of library to avoid upstream issues.
|
|
6
|
+
*/
|
|
7
|
+
import { createElement, forwardRef } from 'react';
|
|
8
|
+
import { cn } from './utils/cn.js';
|
|
9
|
+
const defaultAttributes = {
|
|
10
|
+
xmlns: 'http://www.w3.org/2000/svg',
|
|
11
|
+
width: 24,
|
|
12
|
+
height: 24,
|
|
13
|
+
viewBox: '0 0 24 24',
|
|
14
|
+
fill: 'none',
|
|
15
|
+
stroke: 'currentColor',
|
|
16
|
+
strokeWidth: 2,
|
|
17
|
+
strokeLinecap: 'round',
|
|
18
|
+
strokeLinejoin: 'round',
|
|
19
|
+
};
|
|
20
|
+
const createLucideIcon = (iconName, iconNode) => {
|
|
21
|
+
const Component = forwardRef(({ className, size = 24, color = 'currentColor', children, ...props }, ref) => {
|
|
22
|
+
return (_jsxs("svg", { ref: ref, ...defaultAttributes, width: size, height: size, stroke: color, className: cn('lucide', className), ...props, children: [iconNode.map(([tag, attr]) => createElement(tag, attr)), children] }));
|
|
23
|
+
});
|
|
24
|
+
Component.displayName = iconName;
|
|
25
|
+
return Component;
|
|
26
|
+
};
|
|
27
|
+
export const ChevronDown = createLucideIcon('chevron-down', [
|
|
28
|
+
['path', { d: 'm6 9 6 6 6-6', key: 'qrunsl' }],
|
|
29
|
+
]);
|
|
30
|
+
export const Languages = createLucideIcon('languages', [
|
|
31
|
+
['path', { d: 'm5 8 6 6', key: '1wu5hv' }],
|
|
32
|
+
['path', { d: 'm4 14 6-6 2-3', key: '1k1g8d' }],
|
|
33
|
+
['path', { d: 'M2 5h12', key: 'or177f' }],
|
|
34
|
+
['path', { d: 'M7 2h1', key: '1t2jsx' }],
|
|
35
|
+
['path', { d: 'm22 22-5-10-5 10', key: 'don7ne' }],
|
|
36
|
+
['path', { d: 'M14 18h6', key: '1m8k6r' }],
|
|
37
|
+
]);
|
|
38
|
+
export const Sidebar = createLucideIcon('panel-left', [
|
|
39
|
+
[
|
|
40
|
+
'rect',
|
|
41
|
+
{ width: '18', height: '18', x: '3', y: '3', rx: '2', key: 'afitv7' },
|
|
42
|
+
],
|
|
43
|
+
['path', { d: 'M9 3v18', key: 'fh3hqa' }],
|
|
44
|
+
]);
|
|
45
|
+
export const ChevronsUpDown = createLucideIcon('chevrons-up-down', [
|
|
46
|
+
['path', { d: 'm7 15 5 5 5-5', key: '1hf1tw' }],
|
|
47
|
+
['path', { d: 'm7 9 5-5 5 5', key: 'sgt6xg' }],
|
|
48
|
+
]);
|
|
49
|
+
export const Search = createLucideIcon('search', [
|
|
50
|
+
['circle', { cx: '11', cy: '11', r: '8', key: '4ej97u' }],
|
|
51
|
+
['path', { d: 'm21 21-4.3-4.3', key: '1qie3q' }],
|
|
52
|
+
]);
|
|
53
|
+
export const ExternalLink = createLucideIcon('external-link', [
|
|
54
|
+
['path', { d: 'M15 3h6v6', key: '1q9fwt' }],
|
|
55
|
+
['path', { d: 'M10 14 21 3', key: 'gplh6r' }],
|
|
56
|
+
[
|
|
57
|
+
'path',
|
|
58
|
+
{
|
|
59
|
+
d: 'M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6',
|
|
60
|
+
key: 'a6xqqp',
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
]);
|
|
64
|
+
export const Moon = createLucideIcon('moon', [
|
|
65
|
+
['path', { d: 'M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z', key: 'a7tn18' }],
|
|
66
|
+
]);
|
|
67
|
+
export const Sun = createLucideIcon('sun', [
|
|
68
|
+
['circle', { cx: '12', cy: '12', r: '4', key: '4exip2' }],
|
|
69
|
+
['path', { d: 'M12 2v2', key: 'tus03m' }],
|
|
70
|
+
['path', { d: 'M12 20v2', key: '1lh1kg' }],
|
|
71
|
+
['path', { d: 'm4.93 4.93 1.41 1.41', key: '149t6j' }],
|
|
72
|
+
['path', { d: 'm17.66 17.66 1.41 1.41', key: 'ptbguv' }],
|
|
73
|
+
['path', { d: 'M2 12h2', key: '1t8f8n' }],
|
|
74
|
+
['path', { d: 'M20 12h2', key: '1q8mjw' }],
|
|
75
|
+
['path', { d: 'm6.34 17.66-1.41 1.41', key: '1m8zz5' }],
|
|
76
|
+
['path', { d: 'm19.07 4.93-1.41 1.41', key: '1shlcs' }],
|
|
77
|
+
]);
|
|
78
|
+
export const Airplay = createLucideIcon('airplay', [
|
|
79
|
+
[
|
|
80
|
+
'path',
|
|
81
|
+
{
|
|
82
|
+
d: 'M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1',
|
|
83
|
+
key: 'ns4c3b',
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
['path', { d: 'm12 15 5 6H7Z', key: '14qnn2' }],
|
|
87
|
+
]);
|
|
88
|
+
export const Menu = createLucideIcon('menu', [
|
|
89
|
+
['line', { x1: '4', x2: '20', y1: '12', y2: '12', key: '1e0a9i' }],
|
|
90
|
+
['line', { x1: '4', x2: '20', y1: '6', y2: '6', key: '1owob3' }],
|
|
91
|
+
['line', { x1: '4', x2: '20', y1: '18', y2: '18', key: 'yk5zj1' }],
|
|
92
|
+
]);
|
|
93
|
+
export const X = createLucideIcon('x', [
|
|
94
|
+
['path', { d: 'M18 6 6 18', key: '1bl5f8' }],
|
|
95
|
+
['path', { d: 'm6 6 12 12', key: 'd8bk6v' }],
|
|
96
|
+
]);
|
|
97
|
+
export const LoaderCircle = createLucideIcon('loader-circle', [
|
|
98
|
+
['path', { d: 'M21 12a9 9 0 1 1-6.219-8.56', key: '13zald' }],
|
|
99
|
+
]);
|
|
100
|
+
export const CircleCheck = createLucideIcon('circle-check', [
|
|
101
|
+
['circle', { cx: '12', cy: '12', r: '10', key: '1mglay' }],
|
|
102
|
+
['path', { d: 'm9 12 2 2 4-4', key: 'dzmm74' }],
|
|
103
|
+
]);
|
|
104
|
+
export const CircleX = createLucideIcon('circle-x', [
|
|
105
|
+
['circle', { cx: '12', cy: '12', r: '10', key: '1mglay' }],
|
|
106
|
+
['path', { d: 'm15 9-6 6', key: '1uzhvr' }],
|
|
107
|
+
['path', { d: 'm9 9 6 6', key: 'z0biqf' }],
|
|
108
|
+
]);
|
|
109
|
+
export const Check = createLucideIcon('check', [
|
|
110
|
+
['path', { d: 'M20 6 9 17l-5-5', key: '1gmf2c' }],
|
|
111
|
+
]);
|
|
112
|
+
export const TriangleAlert = createLucideIcon('triangle-alert', [
|
|
113
|
+
[
|
|
114
|
+
'path',
|
|
115
|
+
{
|
|
116
|
+
d: 'm21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3',
|
|
117
|
+
key: 'wmoenq',
|
|
118
|
+
},
|
|
119
|
+
],
|
|
120
|
+
['path', { d: 'M12 9v4', key: 'juzpu7' }],
|
|
121
|
+
['path', { d: 'M12 17h.01', key: 'p32p05' }],
|
|
122
|
+
]);
|
|
123
|
+
export const Info = createLucideIcon('info', [
|
|
124
|
+
['circle', { cx: '12', cy: '12', r: '10', key: '1mglay' }],
|
|
125
|
+
['path', { d: 'M12 16v-4', key: '1dtifu' }],
|
|
126
|
+
['path', { d: 'M12 8h.01', key: 'e9boi3' }],
|
|
127
|
+
]);
|
|
128
|
+
export const Copy = createLucideIcon('copy', [
|
|
129
|
+
[
|
|
130
|
+
'rect',
|
|
131
|
+
{
|
|
132
|
+
width: '14',
|
|
133
|
+
height: '14',
|
|
134
|
+
x: '8',
|
|
135
|
+
y: '8',
|
|
136
|
+
rx: '2',
|
|
137
|
+
ry: '2',
|
|
138
|
+
key: '17jyea',
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
|
+
[
|
|
142
|
+
'path',
|
|
143
|
+
{
|
|
144
|
+
d: 'M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2',
|
|
145
|
+
key: 'zix9uf',
|
|
146
|
+
},
|
|
147
|
+
],
|
|
148
|
+
]);
|
|
149
|
+
export const FileText = createLucideIcon('file-text', [
|
|
150
|
+
[
|
|
151
|
+
'path',
|
|
152
|
+
{
|
|
153
|
+
d: 'M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z',
|
|
154
|
+
key: '1rqfz7',
|
|
155
|
+
},
|
|
156
|
+
],
|
|
157
|
+
['path', { d: 'M14 2v4a2 2 0 0 0 2 2h4', key: 'tnqrlb' }],
|
|
158
|
+
['path', { d: 'M10 9H8', key: 'b1mrlr' }],
|
|
159
|
+
['path', { d: 'M16 13H8', key: 't4e002' }],
|
|
160
|
+
['path', { d: 'M16 17H8', key: 'z1uh3a' }],
|
|
161
|
+
]);
|
|
162
|
+
export const Hash = createLucideIcon('hash', [
|
|
163
|
+
['line', { x1: '4', x2: '20', y1: '9', y2: '9', key: '4lhtct' }],
|
|
164
|
+
['line', { x1: '4', x2: '20', y1: '15', y2: '15', key: 'vyu0kd' }],
|
|
165
|
+
['line', { x1: '10', x2: '8', y1: '3', y2: '21', key: '1ggp8o' }],
|
|
166
|
+
['line', { x1: '16', x2: '14', y1: '3', y2: '21', key: 'weycgp' }],
|
|
167
|
+
]);
|
|
168
|
+
export const Text = createLucideIcon('text', [
|
|
169
|
+
['path', { d: 'M15 18H3', key: 'olowqp' }],
|
|
170
|
+
['path', { d: 'M17 6H3', key: '16j9eg' }],
|
|
171
|
+
['path', { d: 'M21 12H3', key: '2avoz0' }],
|
|
172
|
+
]);
|
|
173
|
+
export const File = createLucideIcon('file', [
|
|
174
|
+
[
|
|
175
|
+
'path',
|
|
176
|
+
{
|
|
177
|
+
d: 'M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z',
|
|
178
|
+
key: '1rqfz7',
|
|
179
|
+
},
|
|
180
|
+
],
|
|
181
|
+
['path', { d: 'M14 2v4a2 2 0 0 0 2 2h4', key: 'tnqrlb' }],
|
|
182
|
+
]);
|
|
183
|
+
export const Folder = createLucideIcon('folder', [
|
|
184
|
+
[
|
|
185
|
+
'path',
|
|
186
|
+
{
|
|
187
|
+
d: 'M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z',
|
|
188
|
+
key: '1kt360',
|
|
189
|
+
},
|
|
190
|
+
],
|
|
191
|
+
]);
|
|
192
|
+
export const FolderOpen = createLucideIcon('folder-open', [
|
|
193
|
+
[
|
|
194
|
+
'path',
|
|
195
|
+
{
|
|
196
|
+
d: 'm6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2',
|
|
197
|
+
key: 'usdka0',
|
|
198
|
+
},
|
|
199
|
+
],
|
|
200
|
+
]);
|
|
201
|
+
export const Star = createLucideIcon('star', [
|
|
202
|
+
[
|
|
203
|
+
'path',
|
|
204
|
+
{
|
|
205
|
+
d: 'M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z',
|
|
206
|
+
key: 'r04s7s',
|
|
207
|
+
},
|
|
208
|
+
],
|
|
209
|
+
]);
|
|
210
|
+
export const Link = createLucideIcon('link', [
|
|
211
|
+
[
|
|
212
|
+
'path',
|
|
213
|
+
{
|
|
214
|
+
d: 'M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71',
|
|
215
|
+
key: '1cjeqo',
|
|
216
|
+
},
|
|
217
|
+
],
|
|
218
|
+
[
|
|
219
|
+
'path',
|
|
220
|
+
{
|
|
221
|
+
d: 'M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71',
|
|
222
|
+
key: '19qd67',
|
|
223
|
+
},
|
|
224
|
+
],
|
|
225
|
+
]);
|
|
226
|
+
export const Edit = createLucideIcon('square-pen', [
|
|
227
|
+
[
|
|
228
|
+
'path',
|
|
229
|
+
{
|
|
230
|
+
d: 'M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7',
|
|
231
|
+
key: '1m0v6g',
|
|
232
|
+
},
|
|
233
|
+
],
|
|
234
|
+
[
|
|
235
|
+
'path',
|
|
236
|
+
{
|
|
237
|
+
d: 'M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z',
|
|
238
|
+
key: 'ohrbg2',
|
|
239
|
+
},
|
|
240
|
+
],
|
|
241
|
+
]);
|
|
242
|
+
export const ChevronRight = createLucideIcon('chevron-right', [
|
|
243
|
+
['path', { d: 'm9 18 6-6-6-6', key: 'mthhwq' }],
|
|
244
|
+
]);
|
|
245
|
+
export const ChevronLeft = createLucideIcon('chevron-left', [
|
|
246
|
+
['path', { d: 'm15 18-6-6 6-6', key: '1wnfg3' }],
|
|
247
|
+
]);
|
|
248
|
+
export const Plus = createLucideIcon('plus', [
|
|
249
|
+
['path', { d: 'M5 12h14', key: '1ays0h' }],
|
|
250
|
+
['path', { d: 'M12 5v14', key: 's699le' }],
|
|
251
|
+
]);
|
|
252
|
+
export const Trash2 = createLucideIcon('trash-2', [
|
|
253
|
+
['path', { d: 'M3 6h18', key: 'd0wm0j' }],
|
|
254
|
+
['path', { d: 'M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6', key: '4alrt4' }],
|
|
255
|
+
['path', { d: 'M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2', key: 'v07s0e' }],
|
|
256
|
+
['line', { x1: '10', x2: '10', y1: '11', y2: '17', key: '1uufr5' }],
|
|
257
|
+
['line', { x1: '14', x2: '14', y1: '11', y2: '17', key: 'xtxkd' }],
|
|
258
|
+
]);
|
|
259
|
+
export const ChevronUp = createLucideIcon('chevron-up', [
|
|
260
|
+
['path', { d: 'm18 15-6-6-6 6', key: '153udz' }],
|
|
261
|
+
]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { Menu, SidebarIcon, X } from '
|
|
3
|
+
import { Menu, Sidebar as SidebarIcon, X } from '../icons.js';
|
|
4
4
|
import { cn } from '../utils/cn.js';
|
|
5
5
|
import { buttonVariants } from '../components/ui/button.js';
|
|
6
6
|
import { useSidebar } from '../contexts/sidebar.js';
|
|
@@ -29,5 +29,5 @@ export function CollapsibleControl() {
|
|
|
29
29
|
}, children: [_jsx(SidebarCollapseTrigger, { className: cn(buttonVariants({
|
|
30
30
|
color: 'ghost',
|
|
31
31
|
size: 'icon-sm',
|
|
32
|
-
}), 'rounded-lg'), children: _jsx(SidebarIcon, {}) }), _jsx(SearchToggle, { size: "icon-sm", className: "rounded-lg" })] }));
|
|
32
|
+
}), 'rounded-lg'), children: _jsx(SidebarIcon, {}) }), _jsx(SearchToggle, { size: "icon-sm", className: "rounded-lg", hideIfDisabled: true })] }));
|
|
33
33
|
}
|
package/dist/layouts/docs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
|
-
import { Languages, SidebarIcon } from '
|
|
3
|
+
import { Languages, Sidebar as SidebarIcon } from '../icons.js';
|
|
4
4
|
import { cn } from '../utils/cn.js';
|
|
5
5
|
import { buttonVariants } from '../components/ui/button.js';
|
|
6
6
|
import { CollapsibleSidebar, Sidebar, SidebarCollapseTrigger, SidebarFooter, SidebarHeader, SidebarPageTree, SidebarViewport, } from '../components/layout/sidebar.js';
|
|
@@ -9,7 +9,7 @@ export declare function NavbarMenuContent(props: NavigationMenuContentProps): im
|
|
|
9
9
|
export declare function NavbarMenuTrigger(props: NavigationMenuTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export declare function NavbarMenuLink(props: LinkProps): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
declare const linkVariants: (props?: ({
|
|
12
|
-
variant?: "
|
|
12
|
+
variant?: "button" | "main" | "icon" | null | undefined;
|
|
13
13
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
14
14
|
export declare function NavbarLink({ item, variant, ...props }: ComponentProps<typeof BaseLinkItem> & VariantProps<typeof linkVariants>): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export {};
|
package/dist/layouts/home.js
CHANGED
|
@@ -8,7 +8,7 @@ import { Navbar, NavbarLink, NavbarMenu, NavbarMenuContent, NavbarMenuLink, Navb
|
|
|
8
8
|
import { LargeSearchToggle, SearchToggle, } from '../components/layout/search-toggle.js';
|
|
9
9
|
import { ThemeToggle } from '../components/layout/theme-toggle.js';
|
|
10
10
|
import { LanguageToggle, LanguageToggleText, } from '../components/layout/language-toggle.js';
|
|
11
|
-
import { ChevronDown, Languages } from '
|
|
11
|
+
import { ChevronDown, Languages } from '../icons.js';
|
|
12
12
|
import Link from 'fumadocs-core/link';
|
|
13
13
|
import { Menu, MenuContent, MenuLinkItem, MenuTrigger, } from '../layouts/home/menu.js';
|
|
14
14
|
export function HomeLayout(props) {
|
|
@@ -5,7 +5,7 @@ import { useSidebar } from '../contexts/sidebar.js';
|
|
|
5
5
|
import { useNav } from '../contexts/layout.js';
|
|
6
6
|
import { SidebarTrigger } from 'fumadocs-core/sidebar';
|
|
7
7
|
import { buttonVariants } from '../components/ui/button.js';
|
|
8
|
-
import { Menu, X } from '
|
|
8
|
+
import { Menu, X } from '../icons.js';
|
|
9
9
|
import Link from 'fumadocs-core/link';
|
|
10
10
|
import { usePathname } from 'fumadocs-core/framework';
|
|
11
11
|
import { isActive } from '../utils/is-active.js';
|
package/dist/layouts/notebook.js
CHANGED
|
@@ -5,7 +5,7 @@ import { CollapsibleSidebar, Sidebar, SidebarCollapseTrigger, SidebarFooter, Sid
|
|
|
5
5
|
import { TreeContextProvider } from '../contexts/tree.js';
|
|
6
6
|
import { cn } from '../utils/cn.js';
|
|
7
7
|
import { buttonVariants } from '../components/ui/button.js';
|
|
8
|
-
import { ChevronDown, Languages, SidebarIcon } from '
|
|
8
|
+
import { ChevronDown, Languages, Sidebar as SidebarIcon } from '../icons.js';
|
|
9
9
|
import { BaseLinkItem } from '../layouts/links.js';
|
|
10
10
|
import { LanguageToggle } from '../components/layout/language-toggle.js';
|
|
11
11
|
import { ThemeToggle } from '../components/layout/theme-toggle.js';
|
package/dist/mdx.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ declare const defaultMdxComponents: {
|
|
|
17
17
|
h5: (props: HTMLAttributes<HTMLHeadingElement>) => import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
h6: (props: HTMLAttributes<HTMLHeadingElement>) => import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
table: typeof Table;
|
|
20
|
-
Callout: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "
|
|
20
|
+
Callout: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "title" | "type" | "icon"> & {
|
|
21
21
|
title?: import("react").ReactNode;
|
|
22
22
|
type?: "info" | "warn" | "error";
|
|
23
23
|
icon?: import("react").ReactNode;
|
package/dist/page-client.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Fragment, useEffect, useMemo, useRef, useState, } from 'react';
|
|
4
|
-
import { ChevronDown, ChevronLeft, ChevronRight } from '
|
|
4
|
+
import { ChevronDown, ChevronLeft, ChevronRight } from './icons.js';
|
|
5
5
|
import Link from 'fumadocs-core/link';
|
|
6
6
|
import { cn } from './utils/cn.js';
|
|
7
7
|
import { useI18n } from './contexts/i18n.js';
|
package/dist/page.js
CHANGED
|
@@ -6,7 +6,7 @@ import { cn } from './utils/cn.js';
|
|
|
6
6
|
import { Footer, LastUpdate, TocPopover, Breadcrumb, PageBody, PageArticle, TocPopoverTrigger, TocPopoverContent, } from './page-client.js';
|
|
7
7
|
import { Toc, TOCItems, TOCScrollArea, } from './components/layout/toc.js';
|
|
8
8
|
import { buttonVariants } from './components/ui/button.js';
|
|
9
|
-
import { Edit, Text } from '
|
|
9
|
+
import { Edit, Text } from './icons.js';
|
|
10
10
|
import { I18nLabel } from './contexts/i18n.js';
|
|
11
11
|
import ClerkTOCItems from './components/layout/toc-clerk.js';
|
|
12
12
|
export function DocsPage({ toc = [], full = false, tableOfContentPopover: { enabled: tocPopoverEnabled, component: tocPopoverReplace, ...tocPopoverOptions } = {}, tableOfContent: { enabled: tocEnabled, component: tocReplace, ...tocOptions } = {}, ...props }) {
|
package/dist/style.css
CHANGED
|
@@ -238,6 +238,9 @@
|
|
|
238
238
|
.collapse {
|
|
239
239
|
visibility: collapse;
|
|
240
240
|
}
|
|
241
|
+
.visible {
|
|
242
|
+
visibility: visible;
|
|
243
|
+
}
|
|
241
244
|
.fd-step {
|
|
242
245
|
&:before {
|
|
243
246
|
background-color: var(--color-fd-secondary);
|
|
@@ -826,15 +829,9 @@
|
|
|
826
829
|
.mt-\(--fd-top\) {
|
|
827
830
|
margin-top: var(--fd-top);
|
|
828
831
|
}
|
|
829
|
-
.mt-2 {
|
|
830
|
-
margin-top: calc(var(--spacing) * 2);
|
|
831
|
-
}
|
|
832
832
|
.mt-6 {
|
|
833
833
|
margin-top: calc(var(--spacing) * 6);
|
|
834
834
|
}
|
|
835
|
-
.mt-8 {
|
|
836
|
-
margin-top: calc(var(--spacing) * 8);
|
|
837
|
-
}
|
|
838
835
|
.mt-auto {
|
|
839
836
|
margin-top: auto;
|
|
840
837
|
}
|
|
@@ -1532,12 +1529,21 @@
|
|
|
1532
1529
|
.text-fd-primary-foreground {
|
|
1533
1530
|
color: var(--color-fd-primary-foreground);
|
|
1534
1531
|
}
|
|
1532
|
+
.text-fd-primary\/50 {
|
|
1533
|
+
color: color-mix(in srgb, hsl(0, 0%, 9%) 50%, transparent);
|
|
1534
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
1535
|
+
color: color-mix(in oklab, var(--color-fd-primary) 50%, transparent);
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1535
1538
|
.text-fd-secondary-foreground {
|
|
1536
1539
|
color: var(--color-fd-secondary-foreground);
|
|
1537
1540
|
}
|
|
1538
1541
|
.italic {
|
|
1539
1542
|
font-style: italic;
|
|
1540
1543
|
}
|
|
1544
|
+
.line-through {
|
|
1545
|
+
text-decoration-line: line-through;
|
|
1546
|
+
}
|
|
1541
1547
|
.underline {
|
|
1542
1548
|
text-decoration-line: underline;
|
|
1543
1549
|
}
|
|
@@ -1687,6 +1693,11 @@
|
|
|
1687
1693
|
padding-bottom: calc(var(--spacing) * 0);
|
|
1688
1694
|
}
|
|
1689
1695
|
}
|
|
1696
|
+
.empty\:mb-0 {
|
|
1697
|
+
&:empty {
|
|
1698
|
+
margin-bottom: calc(var(--spacing) * 0);
|
|
1699
|
+
}
|
|
1700
|
+
}
|
|
1690
1701
|
.empty\:hidden {
|
|
1691
1702
|
&:empty {
|
|
1692
1703
|
display: none;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-ui",
|
|
3
|
-
"version": "15.2.
|
|
3
|
+
"version": "15.2.11",
|
|
4
4
|
"description": "The framework for building a documentation website in Next.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NextJs",
|
|
@@ -61,6 +61,10 @@
|
|
|
61
61
|
"./utils/*": {
|
|
62
62
|
"import": "./dist/utils/*.js",
|
|
63
63
|
"types": "./dist/utils/*.d.ts"
|
|
64
|
+
},
|
|
65
|
+
"./internal/icons": {
|
|
66
|
+
"import": "./dist/icons.js",
|
|
67
|
+
"types": "./dist/icons.d.ts"
|
|
64
68
|
}
|
|
65
69
|
},
|
|
66
70
|
"files": [
|
|
@@ -68,23 +72,22 @@
|
|
|
68
72
|
"css/*"
|
|
69
73
|
],
|
|
70
74
|
"dependencies": {
|
|
71
|
-
"@radix-ui/react-accordion": "^1.2.
|
|
72
|
-
"@radix-ui/react-collapsible": "^1.1.
|
|
73
|
-
"@radix-ui/react-dialog": "^1.1.
|
|
75
|
+
"@radix-ui/react-accordion": "^1.2.8",
|
|
76
|
+
"@radix-ui/react-collapsible": "^1.1.8",
|
|
77
|
+
"@radix-ui/react-dialog": "^1.1.11",
|
|
74
78
|
"@radix-ui/react-direction": "^1.1.1",
|
|
75
|
-
"@radix-ui/react-navigation-menu": "^1.2.
|
|
76
|
-
"@radix-ui/react-popover": "^1.1.
|
|
77
|
-
"@radix-ui/react-scroll-area": "^1.2.
|
|
79
|
+
"@radix-ui/react-navigation-menu": "^1.2.10",
|
|
80
|
+
"@radix-ui/react-popover": "^1.1.11",
|
|
81
|
+
"@radix-ui/react-scroll-area": "^1.2.6",
|
|
78
82
|
"@radix-ui/react-slot": "^1.2.0",
|
|
79
|
-
"@radix-ui/react-tabs": "^1.1.
|
|
83
|
+
"@radix-ui/react-tabs": "^1.1.9",
|
|
80
84
|
"class-variance-authority": "^0.7.1",
|
|
81
85
|
"lodash.merge": "^4.6.2",
|
|
82
|
-
"lucide-react": "^0.488.0",
|
|
83
86
|
"next-themes": "^0.4.6",
|
|
84
87
|
"postcss-selector-parser": "^7.1.0",
|
|
85
88
|
"react-medium-image-zoom": "^5.2.14",
|
|
86
89
|
"tailwind-merge": "^3.2.0",
|
|
87
|
-
"fumadocs-core": "15.2.
|
|
90
|
+
"fumadocs-core": "15.2.11"
|
|
88
91
|
},
|
|
89
92
|
"devDependencies": {
|
|
90
93
|
"@next/eslint-plugin-next": "^15.3.1",
|
|
@@ -97,7 +100,7 @@
|
|
|
97
100
|
"tsc-alias": "^1.8.15",
|
|
98
101
|
"@fumadocs/cli": "0.1.1",
|
|
99
102
|
"eslint-config-custom": "0.0.0",
|
|
100
|
-
"fumadocs-core": "15.2.
|
|
103
|
+
"fumadocs-core": "15.2.11",
|
|
101
104
|
"tsconfig": "0.0.0"
|
|
102
105
|
},
|
|
103
106
|
"peerDependencies": {
|