fumadocs-ui 16.6.13 → 16.6.15
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/css/generated/shared.css +10 -0
- package/css/lib/base.css +0 -3
- package/css/preset.css +3 -0
- package/dist/components/image-zoom.js +1 -0
- package/dist/components/tabs.d.ts +3 -3
- package/dist/components/tabs.js +3 -3
- package/dist/components/ui/navigation-menu.d.ts +8 -8
- package/dist/components/ui/navigation-menu.js +5 -5
- package/dist/components/ui/popover.d.ts +5 -5
- package/dist/components/ui/popover.js +2 -2
- package/dist/components/ui/scroll-area.d.ts +4 -4
- package/dist/components/ui/scroll-area.js +4 -4
- package/dist/i18n.d.ts +8 -4
- package/dist/i18n.js +12 -9
- package/dist/layouts/home/client.d.ts +1 -1
- package/dist/layouts/shared/page-actions.js +2 -2
- package/dist/mdx.d.ts +12 -1
- package/dist/mdx.js +0 -1
- package/dist/style.css +15 -15
- package/package.json +14 -9
package/css/generated/shared.css
CHANGED
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
@source inline("@remarks");
|
|
55
55
|
@source inline("@returns");
|
|
56
56
|
@source inline("@ts-expect-error");
|
|
57
|
+
@source inline("@typescript-eslint/no-namespace");
|
|
57
58
|
@source inline("[&>figure:only-child]:-m-4");
|
|
58
59
|
@source inline("[&>figure:only-child]:border-none");
|
|
59
60
|
@source inline("[&_svg]:size-3.5");
|
|
@@ -262,6 +263,7 @@
|
|
|
262
263
|
@source inline("date");
|
|
263
264
|
@source inline("debounced");
|
|
264
265
|
@source inline("decimal");
|
|
266
|
+
@source inline("declare");
|
|
265
267
|
@source inline("default");
|
|
266
268
|
@source inline("defaultIndex");
|
|
267
269
|
@source inline("defaultItems");
|
|
@@ -396,9 +398,11 @@
|
|
|
396
398
|
@source inline("gap-4");
|
|
397
399
|
@source inline("gap-y-4");
|
|
398
400
|
@source inline("generated");
|
|
401
|
+
@source inline("get");
|
|
399
402
|
@source inline("ghost");
|
|
400
403
|
@source inline("githubUrl");
|
|
401
404
|
@source inline("given");
|
|
405
|
+
@source inline("global");
|
|
402
406
|
@source inline("globalKey");
|
|
403
407
|
@source inline("grid");
|
|
404
408
|
@source inline("grid-cols-2");
|
|
@@ -450,6 +454,7 @@
|
|
|
450
454
|
@source inline("human-readable");
|
|
451
455
|
@source inline("humanizedStars");
|
|
452
456
|
@source inline("i");
|
|
457
|
+
@source inline("i18n");
|
|
453
458
|
@source inline("icon");
|
|
454
459
|
@source inline("icon-sm");
|
|
455
460
|
@source inline("icon-xs");
|
|
@@ -576,6 +581,7 @@
|
|
|
576
581
|
@source inline("md:top-[calc(50%-250px)]");
|
|
577
582
|
@source inline("mdComponents");
|
|
578
583
|
@source inline("mdRenderer");
|
|
584
|
+
@source inline("mdx/types.js");
|
|
579
585
|
@source inline("me-1");
|
|
580
586
|
@source inline("me-2");
|
|
581
587
|
@source inline("me-auto");
|
|
@@ -590,6 +596,7 @@
|
|
|
590
596
|
@source inline("min-w-fit");
|
|
591
597
|
@source inline("min-w-full");
|
|
592
598
|
@source inline("mode");
|
|
599
|
+
@source inline("module");
|
|
593
600
|
@source inline("mounted");
|
|
594
601
|
@source inline("mouse");
|
|
595
602
|
@source inline("ms-2");
|
|
@@ -605,6 +612,7 @@
|
|
|
605
612
|
@source inline("my-6");
|
|
606
613
|
@source inline("my-auto");
|
|
607
614
|
@source inline("name");
|
|
615
|
+
@source inline("namespace");
|
|
608
616
|
@source inline("nav");
|
|
609
617
|
@source inline("navItems");
|
|
610
618
|
@source inline("navbar");
|
|
@@ -745,6 +753,7 @@
|
|
|
745
753
|
@source inline("prose");
|
|
746
754
|
@source inline("prose-no-margin");
|
|
747
755
|
@source inline("provide");
|
|
756
|
+
@source inline("provider");
|
|
748
757
|
@source inline("ps-1");
|
|
749
758
|
@source inline("ps-2");
|
|
750
759
|
@source inline("ps-3");
|
|
@@ -1016,6 +1025,7 @@
|
|
|
1016
1025
|
@source inline("under");
|
|
1017
1026
|
@source inline("underline");
|
|
1018
1027
|
@source inline("underlying");
|
|
1028
|
+
@source inline("understand");
|
|
1019
1029
|
@source inline("unified");
|
|
1020
1030
|
@source inline("unist-util-visit");
|
|
1021
1031
|
@source inline("unknown");
|
package/css/lib/base.css
CHANGED
package/css/preset.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Tabs as Tabs$1, TabsContent as TabsContent$1 } from "./ui/tabs.js";
|
|
2
|
-
import * as React from "react";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
3
|
import { ComponentProps, ReactNode } from "react";
|
|
4
4
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
5
|
import * as _radix_ui_react_tabs0 from "@radix-ui/react-tabs";
|
|
@@ -21,8 +21,8 @@ interface TabsProps extends Omit<ComponentProps<typeof Tabs$1>, 'value' | 'onVal
|
|
|
21
21
|
*/
|
|
22
22
|
label?: ReactNode;
|
|
23
23
|
}
|
|
24
|
-
declare const TabsList: React.ForwardRefExoticComponent<Omit<_radix_ui_react_tabs0.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
-
declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<_radix_ui_react_tabs0.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
24
|
+
declare const TabsList: React$1.ForwardRefExoticComponent<Omit<_radix_ui_react_tabs0.TabsListProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
25
|
+
declare const TabsTrigger: React$1.ForwardRefExoticComponent<Omit<_radix_ui_react_tabs0.TabsTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
26
26
|
declare function Tabs({
|
|
27
27
|
ref,
|
|
28
28
|
className,
|
package/dist/components/tabs.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn } from "../utils/cn.js";
|
|
3
3
|
import { Tabs as Tabs$1, TabsContent as TabsContent$1, TabsList as TabsList$1, TabsTrigger as TabsTrigger$1 } from "./ui/tabs.js";
|
|
4
|
-
import * as React from "react";
|
|
4
|
+
import * as React$1 from "react";
|
|
5
5
|
import { createContext, useContext, useEffect, useId, useMemo, useState } from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/tabs.tsx
|
|
@@ -11,13 +11,13 @@ function useTabContext() {
|
|
|
11
11
|
if (!ctx) throw new Error("You must wrap your component in <Tabs>");
|
|
12
12
|
return ctx;
|
|
13
13
|
}
|
|
14
|
-
const TabsList = React.forwardRef((props, ref) => /* @__PURE__ */ jsx(TabsList$1, {
|
|
14
|
+
const TabsList = React$1.forwardRef((props, ref) => /* @__PURE__ */ jsx(TabsList$1, {
|
|
15
15
|
ref,
|
|
16
16
|
...props,
|
|
17
17
|
className: cn("flex gap-3.5 text-fd-secondary-foreground overflow-x-auto px-4 not-prose", props.className)
|
|
18
18
|
}));
|
|
19
19
|
TabsList.displayName = "TabsList";
|
|
20
|
-
const TabsTrigger = React.forwardRef((props, ref) => /* @__PURE__ */ jsx(TabsTrigger$1, {
|
|
20
|
+
const TabsTrigger = React$1.forwardRef((props, ref) => /* @__PURE__ */ jsx(TabsTrigger$1, {
|
|
21
21
|
ref,
|
|
22
22
|
...props,
|
|
23
23
|
className: cn("inline-flex items-center gap-2 whitespace-nowrap text-fd-muted-foreground border-b border-transparent py-2 text-sm font-medium transition-colors [&_svg]:size-4 hover:text-fd-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-fd-primary data-[state=active]:text-fd-primary", props.className)
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
2
|
import * as Primitive from "@radix-ui/react-navigation-menu";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ui/navigation-menu.d.ts
|
|
5
5
|
type NavigationMenuContentProps = Primitive.NavigationMenuContentProps;
|
|
6
6
|
type NavigationMenuTriggerProps = Primitive.NavigationMenuTriggerProps;
|
|
7
|
-
declare const NavigationMenu: React.ForwardRefExoticComponent<Primitive.NavigationMenuProps & React.RefAttributes<HTMLElement>>;
|
|
8
|
-
declare const NavigationMenuList: React.ForwardRefExoticComponent<Primitive.NavigationMenuListProps & React.RefAttributes<HTMLUListElement>>;
|
|
9
|
-
declare const NavigationMenuItem: React.ForwardRefExoticComponent<Omit<Primitive.NavigationMenuItemProps & React.RefAttributes<HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
10
|
-
declare const NavigationMenuTrigger: React.ForwardRefExoticComponent<Omit<Primitive.NavigationMenuTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
11
|
-
declare const NavigationMenuContent: React.ForwardRefExoticComponent<Omit<Primitive.NavigationMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
-
declare const NavigationMenuLink: React.ForwardRefExoticComponent<Primitive.NavigationMenuLinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
13
|
-
declare const NavigationMenuViewport: React.ForwardRefExoticComponent<Omit<Primitive.NavigationMenuViewportProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
declare const NavigationMenu: React$1.ForwardRefExoticComponent<Primitive.NavigationMenuProps & React$1.RefAttributes<HTMLElement>>;
|
|
8
|
+
declare const NavigationMenuList: React$1.ForwardRefExoticComponent<Primitive.NavigationMenuListProps & React$1.RefAttributes<HTMLUListElement>>;
|
|
9
|
+
declare const NavigationMenuItem: React$1.ForwardRefExoticComponent<Omit<Primitive.NavigationMenuItemProps & React$1.RefAttributes<HTMLLIElement>, "ref"> & React$1.RefAttributes<HTMLLIElement>>;
|
|
10
|
+
declare const NavigationMenuTrigger: React$1.ForwardRefExoticComponent<Omit<Primitive.NavigationMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
declare const NavigationMenuContent: React$1.ForwardRefExoticComponent<Omit<Primitive.NavigationMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
declare const NavigationMenuLink: React$1.ForwardRefExoticComponent<Primitive.NavigationMenuLinkProps & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
13
|
+
declare const NavigationMenuViewport: React$1.ForwardRefExoticComponent<Omit<Primitive.NavigationMenuViewportProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { NavigationMenu, NavigationMenuContent, NavigationMenuContentProps, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuTriggerProps, NavigationMenuViewport };
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn } from "../../utils/cn.js";
|
|
3
|
-
import * as React from "react";
|
|
3
|
+
import * as React$1 from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import * as Primitive from "@radix-ui/react-navigation-menu";
|
|
6
6
|
//#region src/components/ui/navigation-menu.tsx
|
|
7
7
|
const NavigationMenu = Primitive.Root;
|
|
8
8
|
const NavigationMenuList = Primitive.List;
|
|
9
|
-
const NavigationMenuItem = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(Primitive.NavigationMenuItem, {
|
|
9
|
+
const NavigationMenuItem = React$1.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(Primitive.NavigationMenuItem, {
|
|
10
10
|
ref,
|
|
11
11
|
className: cn("list-none", className),
|
|
12
12
|
...props,
|
|
13
13
|
children
|
|
14
14
|
}));
|
|
15
15
|
NavigationMenuItem.displayName = Primitive.NavigationMenuItem.displayName;
|
|
16
|
-
const NavigationMenuTrigger = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(Primitive.Trigger, {
|
|
16
|
+
const NavigationMenuTrigger = React$1.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(Primitive.Trigger, {
|
|
17
17
|
ref,
|
|
18
18
|
className: cn("data-[state=open]:bg-fd-accent/50", className),
|
|
19
19
|
...props,
|
|
20
20
|
children
|
|
21
21
|
}));
|
|
22
22
|
NavigationMenuTrigger.displayName = Primitive.Trigger.displayName;
|
|
23
|
-
const NavigationMenuContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(Primitive.Content, {
|
|
23
|
+
const NavigationMenuContent = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(Primitive.Content, {
|
|
24
24
|
ref,
|
|
25
25
|
className: cn("absolute inset-x-0 top-0 overflow-auto fd-scroll-container max-h-[80svh] data-[motion=from-end]:animate-fd-enterFromRight data-[motion=from-start]:animate-fd-enterFromLeft data-[motion=to-end]:animate-fd-exitToRight data-[motion=to-start]:animate-fd-exitToLeft", className),
|
|
26
26
|
...props
|
|
27
27
|
}));
|
|
28
28
|
NavigationMenuContent.displayName = Primitive.Content.displayName;
|
|
29
29
|
const NavigationMenuLink = Primitive.Link;
|
|
30
|
-
const NavigationMenuViewport = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", {
|
|
30
|
+
const NavigationMenuViewport = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", {
|
|
31
31
|
ref,
|
|
32
32
|
className: "flex w-full justify-center",
|
|
33
33
|
children: /* @__PURE__ */ jsx(Primitive.Viewport, {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
2
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ui/popover.d.ts
|
|
5
|
-
declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
|
|
6
|
-
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
-
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
-
declare const PopoverClose: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
declare const Popover: React$1.FC<PopoverPrimitive.PopoverProps>;
|
|
6
|
+
declare const PopoverTrigger: React$1.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
declare const PopoverContent: React$1.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const PopoverClose: React$1.ForwardRefExoticComponent<PopoverPrimitive.PopoverCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Popover, PopoverClose, PopoverContent, PopoverTrigger };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn } from "../../utils/cn.js";
|
|
3
|
-
import * as React from "react";
|
|
3
|
+
import * as React$1 from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
6
6
|
//#region src/components/ui/popover.tsx
|
|
7
7
|
const Popover = PopoverPrimitive.Root;
|
|
8
8
|
const PopoverTrigger = PopoverPrimitive.Trigger;
|
|
9
|
-
const PopoverContent = React.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(PopoverPrimitive.Content, {
|
|
9
|
+
const PopoverContent = React$1.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(PopoverPrimitive.Content, {
|
|
10
10
|
ref,
|
|
11
11
|
align,
|
|
12
12
|
sideOffset,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
2
|
import * as Primitive from "@radix-ui/react-scroll-area";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ui/scroll-area.d.ts
|
|
5
|
-
declare const ScrollArea: React.ForwardRefExoticComponent<Omit<Primitive.ScrollAreaProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
-
declare const ScrollViewport: React.ForwardRefExoticComponent<Omit<Primitive.ScrollAreaViewportProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
-
declare const ScrollBar: React.ForwardRefExoticComponent<Omit<Primitive.ScrollAreaScrollbarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const ScrollArea: React$1.ForwardRefExoticComponent<Omit<Primitive.ScrollAreaProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const ScrollViewport: React$1.ForwardRefExoticComponent<Omit<Primitive.ScrollAreaViewportProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
declare const ScrollBar: React$1.ForwardRefExoticComponent<Omit<Primitive.ScrollAreaScrollbarProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
8
8
|
type ScrollAreaProps = Primitive.ScrollAreaProps;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { ScrollArea, ScrollAreaProps, ScrollBar, ScrollViewport };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { cn } from "../../utils/cn.js";
|
|
2
|
-
import * as React from "react";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import * as Primitive from "@radix-ui/react-scroll-area";
|
|
5
5
|
//#region src/components/ui/scroll-area.tsx
|
|
6
|
-
const ScrollArea = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(Primitive.Root, {
|
|
6
|
+
const ScrollArea = React$1.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(Primitive.Root, {
|
|
7
7
|
ref,
|
|
8
8
|
type: "scroll",
|
|
9
9
|
className: cn("overflow-hidden", className),
|
|
@@ -15,14 +15,14 @@ const ScrollArea = React.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
15
15
|
]
|
|
16
16
|
}));
|
|
17
17
|
ScrollArea.displayName = Primitive.Root.displayName;
|
|
18
|
-
const ScrollViewport = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(Primitive.Viewport, {
|
|
18
|
+
const ScrollViewport = React$1.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(Primitive.Viewport, {
|
|
19
19
|
ref,
|
|
20
20
|
className: cn("size-full rounded-[inherit]", className),
|
|
21
21
|
...props,
|
|
22
22
|
children
|
|
23
23
|
}));
|
|
24
24
|
ScrollViewport.displayName = Primitive.Viewport.displayName;
|
|
25
|
-
const ScrollBar = React.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(Primitive.Scrollbar, {
|
|
25
|
+
const ScrollBar = React$1.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(Primitive.Scrollbar, {
|
|
26
26
|
ref,
|
|
27
27
|
orientation,
|
|
28
28
|
className: cn("flex select-none data-[state=hidden]:animate-fd-fade-out", orientation === "vertical" && "h-full w-1.5", orientation === "horizontal" && "h-1.5 flex-col", className),
|
package/dist/i18n.d.ts
CHANGED
|
@@ -2,12 +2,16 @@ import { I18nProviderProps, Translations, defaultTranslations } from "./contexts
|
|
|
2
2
|
import { I18nConfig } from "fumadocs-core/i18n";
|
|
3
3
|
|
|
4
4
|
//#region src/i18n.d.ts
|
|
5
|
+
interface I18nUIConfig<Languages extends string> extends I18nConfig<Languages> {
|
|
6
|
+
/**
|
|
7
|
+
* get i18n config for Fumadocs UI `<RootProvider i18n={config} />`.
|
|
8
|
+
*/
|
|
9
|
+
provider: (locale?: string) => I18nProviderProps;
|
|
10
|
+
}
|
|
5
11
|
declare function defineI18nUI<Languages extends string>(config: I18nConfig<Languages>, options: {
|
|
6
12
|
translations: { [K in Languages]?: Partial<Translations> & {
|
|
7
13
|
displayName?: string;
|
|
8
14
|
} };
|
|
9
|
-
}):
|
|
10
|
-
provider(locale?: string): I18nProviderProps;
|
|
11
|
-
};
|
|
15
|
+
}): I18nUIConfig<Languages>;
|
|
12
16
|
//#endregion
|
|
13
|
-
export { type I18nProviderProps, type Translations, defaultTranslations, defineI18nUI };
|
|
17
|
+
export { type I18nProviderProps, I18nUIConfig, type Translations, defaultTranslations, defineI18nUI };
|
package/dist/i18n.js
CHANGED
|
@@ -2,16 +2,19 @@ import { defaultTranslations } from "./contexts/i18n.js";
|
|
|
2
2
|
//#region src/i18n.tsx
|
|
3
3
|
function defineI18nUI(config, options) {
|
|
4
4
|
const { translations } = options;
|
|
5
|
-
return {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
locales: config.languages.map((locale) => ({
|
|
5
|
+
return {
|
|
6
|
+
...config,
|
|
7
|
+
provider(locale = config.defaultLanguage) {
|
|
8
|
+
return {
|
|
10
9
|
locale,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
translations: translations[locale],
|
|
11
|
+
locales: config.languages.map((locale) => ({
|
|
12
|
+
locale,
|
|
13
|
+
name: translations[locale]?.displayName ?? locale
|
|
14
|
+
}))
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
};
|
|
15
18
|
}
|
|
16
19
|
//#endregion
|
|
17
20
|
export { defaultTranslations, defineI18nUI };
|
|
@@ -4,7 +4,7 @@ import * as class_variance_authority_types0 from "class-variance-authority/types
|
|
|
4
4
|
|
|
5
5
|
//#region src/layouts/home/client.d.ts
|
|
6
6
|
declare const navItemVariants: (props?: ({
|
|
7
|
-
variant?: "
|
|
7
|
+
variant?: "icon" | "main" | "button" | null | undefined;
|
|
8
8
|
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
9
9
|
declare function Header({
|
|
10
10
|
nav,
|
|
@@ -34,7 +34,7 @@ function MarkdownCopyButton({ markdownUrl, ...props }) {
|
|
|
34
34
|
size: "sm",
|
|
35
35
|
className: "gap-2 [&_svg]:size-3.5 [&_svg]:text-fd-muted-foreground"
|
|
36
36
|
}), props.className),
|
|
37
|
-
children: [checked ? /* @__PURE__ */ jsx(Check, {}) : /* @__PURE__ */ jsx(Copy, {}), "Copy Markdown"]
|
|
37
|
+
children: [checked ? /* @__PURE__ */ jsx(Check, {}) : /* @__PURE__ */ jsx(Copy, {}), props.children ?? "Copy Markdown"]
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
@@ -164,7 +164,7 @@ function ViewOptionsPopover({ markdownUrl, githubUrl, ...props }) {
|
|
|
164
164
|
color: "secondary",
|
|
165
165
|
size: "sm"
|
|
166
166
|
}), "gap-2 data-[state=open]:bg-fd-accent data-[state=open]:text-fd-accent-foreground", props.className),
|
|
167
|
-
children: ["Open", /* @__PURE__ */ jsx(ChevronDown, { className: "size-3.5 text-fd-muted-foreground" })]
|
|
167
|
+
children: [props.children ?? "Open", /* @__PURE__ */ jsx(ChevronDown, { className: "size-3.5 text-fd-muted-foreground" })]
|
|
168
168
|
}), /* @__PURE__ */ jsx(PopoverContent, {
|
|
169
169
|
className: "flex flex-col",
|
|
170
170
|
children: items.map((item) => /* @__PURE__ */ jsxs("a", {
|
package/dist/mdx.d.ts
CHANGED
|
@@ -2,10 +2,21 @@ import { Callout, CalloutContainer, CalloutDescription, CalloutTitle } from "./c
|
|
|
2
2
|
import { Card, Cards } from "./components/card.js";
|
|
3
3
|
import { CodeBlockTab, CodeBlockTabs, CodeBlockTabsList, CodeBlockTabsTrigger } from "./components/codeblock.js";
|
|
4
4
|
import { createRelativeLink as createRelativeLink$1 } from "./mdx.server.js";
|
|
5
|
-
import { AnchorHTMLAttributes, FC, HTMLAttributes, ImgHTMLAttributes, TableHTMLAttributes } from "react";
|
|
5
|
+
import React, { AnchorHTMLAttributes, FC, HTMLAttributes, ImgHTMLAttributes, TableHTMLAttributes } from "react";
|
|
6
6
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
7
7
|
|
|
8
8
|
//#region src/mdx.d.ts
|
|
9
|
+
/**
|
|
10
|
+
* global types for MDX.js
|
|
11
|
+
*/
|
|
12
|
+
declare module 'mdx/types.js' {
|
|
13
|
+
namespace JSX {
|
|
14
|
+
type Element = React.JSX.Element;
|
|
15
|
+
type ElementClass = React.JSX.ElementClass;
|
|
16
|
+
type ElementType = React.JSX.ElementType;
|
|
17
|
+
type IntrinsicElements = React.JSX.IntrinsicElements;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
9
20
|
declare function Image(props: ImgHTMLAttributes<HTMLImageElement> & {
|
|
10
21
|
sizes?: string;
|
|
11
22
|
}): react_jsx_runtime0.JSX.Element;
|
package/dist/mdx.js
CHANGED
package/dist/style.css
CHANGED
|
@@ -2911,6 +2911,21 @@
|
|
|
2911
2911
|
--color-fd-secondary: hsl(0, 0%, 18%);
|
|
2912
2912
|
--color-fd-muted-foreground: hsl(0, 0%, 72%);
|
|
2913
2913
|
}
|
|
2914
|
+
:root {
|
|
2915
|
+
--fd-sidebar-drawer-offset: 100%;
|
|
2916
|
+
}
|
|
2917
|
+
[dir='rtl'] {
|
|
2918
|
+
--fd-sidebar-drawer-offset: -100%;
|
|
2919
|
+
}
|
|
2920
|
+
@layer base {
|
|
2921
|
+
*, ::after, ::before, ::backdrop, ::file-selector-button {
|
|
2922
|
+
border-color: var(--color-fd-border, currentColor);
|
|
2923
|
+
}
|
|
2924
|
+
body {
|
|
2925
|
+
background-color: var(--color-fd-background);
|
|
2926
|
+
color: var(--color-fd-foreground);
|
|
2927
|
+
}
|
|
2928
|
+
}
|
|
2914
2929
|
.shiki:not(.not-fumadocs-codeblock *) {
|
|
2915
2930
|
--padding-left: calc(var(--spacing) * 4);
|
|
2916
2931
|
--padding-right: calc(var(--spacing) * 4);
|
|
@@ -3017,21 +3032,6 @@
|
|
|
3017
3032
|
font-style: var(--shiki-dark-font-style);
|
|
3018
3033
|
}
|
|
3019
3034
|
}
|
|
3020
|
-
:root {
|
|
3021
|
-
--fd-sidebar-drawer-offset: 100%;
|
|
3022
|
-
}
|
|
3023
|
-
[dir='rtl'] {
|
|
3024
|
-
--fd-sidebar-drawer-offset: -100%;
|
|
3025
|
-
}
|
|
3026
|
-
@layer base {
|
|
3027
|
-
*, ::after, ::before, ::backdrop, ::file-selector-button {
|
|
3028
|
-
border-color: var(--color-fd-border, currentColor);
|
|
3029
|
-
}
|
|
3030
|
-
body {
|
|
3031
|
-
background-color: var(--color-fd-background);
|
|
3032
|
-
color: var(--color-fd-foreground);
|
|
3033
|
-
}
|
|
3034
|
-
}
|
|
3035
3035
|
@property --radix-collapsible-content-height {
|
|
3036
3036
|
syntax: '<length>';
|
|
3037
3037
|
inherits: false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-ui",
|
|
3
|
-
"version": "16.6.
|
|
3
|
+
"version": "16.6.15",
|
|
4
4
|
"description": "The Radix UI version of Fumadocs UI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Docs",
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"@radix-ui/react-tabs": "^1.1.13",
|
|
123
123
|
"class-variance-authority": "^0.7.1",
|
|
124
124
|
"lucide-react": "^0.577.0",
|
|
125
|
-
"motion": "^12.35.
|
|
125
|
+
"motion": "^12.35.2",
|
|
126
126
|
"next-themes": "^0.4.6",
|
|
127
127
|
"react-medium-image-zoom": "^5.4.1",
|
|
128
128
|
"react-remove-scroll": "^2.7.2",
|
|
@@ -135,24 +135,26 @@
|
|
|
135
135
|
"devDependencies": {
|
|
136
136
|
"@tailwindcss/cli": "^4.2.1",
|
|
137
137
|
"@types/hast": "^3.0.4",
|
|
138
|
-
"@types/
|
|
138
|
+
"@types/mdx": "^2.0.13",
|
|
139
|
+
"@types/node": "^25.4.0",
|
|
139
140
|
"@types/react": "^19.2.14",
|
|
140
141
|
"@types/react-dom": "^19.2.3",
|
|
141
142
|
"tailwindcss": "^4.2.1",
|
|
142
|
-
"tsdown": "0.21.
|
|
143
|
+
"tsdown": "0.21.1",
|
|
143
144
|
"unified": "^11.0.5",
|
|
144
145
|
"@fumadocs/cli": "1.2.5",
|
|
145
146
|
"eslint-config-custom": "0.0.0",
|
|
146
|
-
"
|
|
147
|
-
"
|
|
147
|
+
"tsconfig": "0.0.0",
|
|
148
|
+
"fumadocs-core": "16.6.15"
|
|
148
149
|
},
|
|
149
150
|
"peerDependencies": {
|
|
150
151
|
"@takumi-rs/image-response": "*",
|
|
152
|
+
"@types/mdx": "*",
|
|
151
153
|
"@types/react": "*",
|
|
152
154
|
"next": "16.x.x",
|
|
153
155
|
"react": "^19.2.0",
|
|
154
156
|
"react-dom": "^19.2.0",
|
|
155
|
-
"fumadocs-core": "16.6.
|
|
157
|
+
"fumadocs-core": "16.6.15"
|
|
156
158
|
},
|
|
157
159
|
"peerDependenciesMeta": {
|
|
158
160
|
"next": {
|
|
@@ -163,14 +165,17 @@
|
|
|
163
165
|
},
|
|
164
166
|
"@types/react": {
|
|
165
167
|
"optional": true
|
|
168
|
+
},
|
|
169
|
+
"@types/mdx": {
|
|
170
|
+
"optional": true
|
|
166
171
|
}
|
|
167
172
|
},
|
|
168
173
|
"scripts": {
|
|
169
174
|
"build": "pnpm build:layout && pnpm build:tailwind",
|
|
170
175
|
"build:layout": "tsdown --config-loader unrun",
|
|
171
|
-
"build:tailwind": "tailwindcss -i css/style.css -o ./dist/style.css && tailwindcss -i src/components/image-zoom.css -o dist/components/image-zoom.css",
|
|
176
|
+
"build:tailwind": "tailwindcss -i css/style.css -o ./dist/style.css && tailwindcss -i src/components/image-zoom.css -o ./dist/components/image-zoom.css",
|
|
172
177
|
"clean": "rimraf dist",
|
|
173
|
-
"dev": "concurrently \"tsdown --watch --clean false\" \"tailwindcss -i css/style.css -o ./dist/style.css -w\" \"tailwindcss -i src/components/image-zoom.css -o dist/components/image-zoom.css -w\"",
|
|
178
|
+
"dev": "concurrently \"tsdown --watch --clean false\" \"tailwindcss -i css/style.css -o ./dist/style.css -w\" \"tailwindcss -i src/components/image-zoom.css -o ./dist/components/image-zoom.css -w\"",
|
|
174
179
|
"lint": "eslint .",
|
|
175
180
|
"types:check": "tsc --noEmit"
|
|
176
181
|
}
|