fumadocs-ui 16.19.0 → 16.19.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Tabs as Tabs$1, TabsContent as TabsContent$1, TabsList as TabsList$1, TabsTrigger as TabsTrigger$1 } from "./ui/tabs.js";
|
|
2
|
-
import * as React
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
import { ComponentProps, ReactNode } from "react";
|
|
4
4
|
export interface TabsProps extends Omit<ComponentProps<typeof Tabs$1>, 'value' | 'onValueChange'> {
|
|
5
5
|
/**
|
|
@@ -17,14 +17,14 @@ export interface TabsProps extends Omit<ComponentProps<typeof Tabs$1>, 'value' |
|
|
|
17
17
|
*/
|
|
18
18
|
label?: ReactNode;
|
|
19
19
|
}
|
|
20
|
-
export declare function TabsList(props: React
|
|
21
|
-
export declare function TabsTrigger(props: React
|
|
22
|
-
export declare function Tabs({ ref, className, items, label, defaultIndex, defaultValue, ...props }: TabsProps): React
|
|
20
|
+
export declare function TabsList(props: React.ComponentProps<typeof TabsList$1>): React.JSX.Element;
|
|
21
|
+
export declare function TabsTrigger(props: React.ComponentProps<typeof TabsTrigger$1>): React.JSX.Element;
|
|
22
|
+
export declare function Tabs({ ref, className, items, label, defaultIndex, defaultValue, ...props }: TabsProps): React.JSX.Element;
|
|
23
23
|
export interface TabProps extends Omit<ComponentProps<typeof TabsContent$1>, 'value'> {
|
|
24
24
|
/**
|
|
25
25
|
* Value of tab, detect from index if unspecified.
|
|
26
26
|
*/
|
|
27
27
|
value?: string;
|
|
28
28
|
}
|
|
29
|
-
export declare function Tab({ value, ...props }: TabProps): React
|
|
30
|
-
export declare function TabsContent({ value, className, ...props }: ComponentProps<typeof TabsContent$1>): React
|
|
29
|
+
export declare function Tab({ value, ...props }: TabProps): React.JSX.Element;
|
|
30
|
+
export declare function TabsContent({ value, className, ...props }: ComponentProps<typeof TabsContent$1>): React.JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as React
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import * as Primitive from "@radix-ui/react-collapsible";
|
|
3
|
-
export declare const Collapsible: React
|
|
4
|
-
export declare const CollapsibleTrigger: React
|
|
5
|
-
export declare function CollapsibleContent({ children, ...props }: React
|
|
3
|
+
export declare const Collapsible: React.ForwardRefExoticComponent<Primitive.CollapsibleProps & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export declare const CollapsibleTrigger: React.ForwardRefExoticComponent<Primitive.CollapsibleTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
export declare function CollapsibleContent({ children, ...props }: React.ComponentProps<typeof Primitive.CollapsibleContent>): React.JSX.Element;
|
|
6
6
|
export type CollapsibleProps = Primitive.CollapsibleProps;
|
|
7
7
|
export type CollapsibleContentProps = Primitive.CollapsibleContentProps;
|
|
8
8
|
export type CollapsibleTriggerProps = Primitive.CollapsibleTriggerProps;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as React
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import * as Primitive from "@radix-ui/react-navigation-menu";
|
|
3
3
|
export type NavigationMenuContentProps = Primitive.NavigationMenuContentProps;
|
|
4
4
|
export type NavigationMenuTriggerProps = Primitive.NavigationMenuTriggerProps;
|
|
5
|
-
export declare const NavigationMenu: React
|
|
6
|
-
export declare const NavigationMenuList: React
|
|
7
|
-
export declare function NavigationMenuItem({ className, children, ...props }: React
|
|
8
|
-
export declare function NavigationMenuTrigger({ className, children, ...props }: React
|
|
9
|
-
export declare function NavigationMenuContent({ className, ...props }: React
|
|
10
|
-
export declare const NavigationMenuLink: React
|
|
11
|
-
export declare function NavigationMenuViewport({ className, ref, ...props }: React
|
|
5
|
+
export declare const NavigationMenu: React.ForwardRefExoticComponent<Primitive.NavigationMenuProps & React.RefAttributes<HTMLElement>>;
|
|
6
|
+
export declare const NavigationMenuList: React.ForwardRefExoticComponent<Primitive.NavigationMenuListProps & React.RefAttributes<HTMLUListElement>>;
|
|
7
|
+
export declare function NavigationMenuItem({ className, children, ...props }: React.ComponentProps<typeof Primitive.NavigationMenuItem>): React.JSX.Element;
|
|
8
|
+
export declare function NavigationMenuTrigger({ className, children, ...props }: React.ComponentProps<typeof Primitive.Trigger>): React.JSX.Element;
|
|
9
|
+
export declare function NavigationMenuContent({ className, ...props }: React.ComponentProps<typeof Primitive.Content>): React.JSX.Element;
|
|
10
|
+
export declare const NavigationMenuLink: React.ForwardRefExoticComponent<Primitive.NavigationMenuLinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
11
|
+
export declare function NavigationMenuViewport({ className, ref, ...props }: React.ComponentProps<typeof Primitive.Viewport>): React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
3
|
-
export declare const Popover: React
|
|
4
|
-
export declare const PopoverTrigger: React
|
|
5
|
-
export declare function PopoverContent({ className, align, sideOffset, ...props }: React
|
|
6
|
-
export declare const PopoverClose: React
|
|
3
|
+
export declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
|
|
4
|
+
export declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
export declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): React.JSX.Element;
|
|
6
|
+
export declare const PopoverClose: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -13,7 +13,7 @@ const Context = createContext(null);
|
|
|
13
13
|
function TOCProvider(props) {
|
|
14
14
|
return /* @__PURE__ */ jsx(TOCProvider$1, { ...props });
|
|
15
15
|
}
|
|
16
|
-
function useContext
|
|
16
|
+
function useContext() {
|
|
17
17
|
return use(Context);
|
|
18
18
|
}
|
|
19
19
|
function TOC({ container, header, footer }) {
|
|
@@ -83,7 +83,7 @@ function TOC({ container, header, footer }) {
|
|
|
83
83
|
}
|
|
84
84
|
function TOCPanel({ className, style, ...props }) {
|
|
85
85
|
const items = useTOCItems();
|
|
86
|
-
const { open, inAnimation, setMobileOpen } = useContext
|
|
86
|
+
const { open, inAnimation, setMobileOpen } = useContext();
|
|
87
87
|
return /* @__PURE__ */ jsx("div", {
|
|
88
88
|
className: cn("grid grid-cols-1 transition-[grid-template-rows]", open ? "[--row:calc(6*var(--spacing))]" : "[--row:calc(3*var(--spacing))] xl:[@media(hover:none)]:[--row:calc(6*var(--spacing))]", (!open || inAnimation) && "pointer-events-none xl:[@media(hover:none)]:pointer-events-auto", className),
|
|
89
89
|
style: {
|
package/dist/mdx.js
CHANGED
|
@@ -4,11 +4,11 @@ import { Heading } from "./components/heading.js";
|
|
|
4
4
|
import { cn } from "./utils/cn.js";
|
|
5
5
|
import { CodeBlock, CodeBlockTab, CodeBlockTabs, CodeBlockTabsList, CodeBlockTabsTrigger, Pre } from "./components/codeblock.js";
|
|
6
6
|
import Link from "fumadocs-core/link";
|
|
7
|
-
import { Image } from "fumadocs-core/framework";
|
|
7
|
+
import { Image as Image$1 } from "fumadocs-core/framework";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
// src/mdx.tsx
|
|
10
|
-
function Image
|
|
11
|
-
return /* @__PURE__ */ jsx(Image, {
|
|
10
|
+
function Image(props) {
|
|
11
|
+
return /* @__PURE__ */ jsx(Image$1, {
|
|
12
12
|
sizes: "(max-width: 768px) 100vw, (max-width: 1200px) 70vw, 900px",
|
|
13
13
|
...props,
|
|
14
14
|
className: cn("rounded-lg", props.className)
|
|
@@ -33,7 +33,7 @@ const defaultMdxComponents = {
|
|
|
33
33
|
Card,
|
|
34
34
|
Cards,
|
|
35
35
|
a: Link,
|
|
36
|
-
img: Image
|
|
36
|
+
img: Image,
|
|
37
37
|
h1: (props) => /* @__PURE__ */ jsx(Heading, {
|
|
38
38
|
as: "h1",
|
|
39
39
|
...props
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-ui",
|
|
3
|
-
"version": "16.19.
|
|
3
|
+
"version": "16.19.2",
|
|
4
4
|
"description": "The Radix UI version of Fumadocs UI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Docs",
|
|
@@ -152,16 +152,16 @@
|
|
|
152
152
|
"@radix-ui/react-tabs": "^1.2.1",
|
|
153
153
|
"class-variance-authority": "^0.7.1",
|
|
154
154
|
"cn": "^0.5.2",
|
|
155
|
-
"lucide-react": "^1.
|
|
156
|
-
"motion": "^14.
|
|
155
|
+
"lucide-react": "^1.71.0",
|
|
156
|
+
"motion": "^14.12.0",
|
|
157
157
|
"next-themes": "^0.4.6",
|
|
158
158
|
"react-remove-scroll": "^2.7.2",
|
|
159
159
|
"scroll-into-view-if-needed": "^3.1.0",
|
|
160
160
|
"shiki": "^4.6.0"
|
|
161
161
|
},
|
|
162
162
|
"devDependencies": {
|
|
163
|
-
"@fumadocs/base-ui": "16.19.
|
|
164
|
-
"@fumadocs/cli": "1.9.
|
|
163
|
+
"@fumadocs/base-ui": "16.19.2",
|
|
164
|
+
"@fumadocs/cli": "1.9.2",
|
|
165
165
|
"@tailwindcss/cli": "^4.3.5",
|
|
166
166
|
"@tailwindcss/oxide": "^4.3.5",
|
|
167
167
|
"@tsdown/css": "^0.23.7",
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
"@types/react": "^19.3.0",
|
|
171
171
|
"@types/react-dom": "^19.3.0",
|
|
172
172
|
"fuma-cli": "^0.3.4",
|
|
173
|
-
"fumadocs-core": "16.19.
|
|
173
|
+
"fumadocs-core": "16.19.2",
|
|
174
174
|
"react-medium-image-zoom": "^5.4.9",
|
|
175
175
|
"tailwindcss": "^4.3.5",
|
|
176
176
|
"tsconfig": "0.0.0",
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
"peerDependencies": {
|
|
180
180
|
"@types/mdx": "*",
|
|
181
181
|
"@types/react": "*",
|
|
182
|
-
"fumadocs-core": "16.19.
|
|
182
|
+
"fumadocs-core": "16.19.2",
|
|
183
183
|
"next": "16.x.x",
|
|
184
184
|
"react": "^19.2.0",
|
|
185
185
|
"react-dom": "^19.2.0",
|