fumadocs-ui 11.0.4 → 11.0.5
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.
|
@@ -11,6 +11,7 @@ interface NavProps {
|
|
|
11
11
|
url?: string;
|
|
12
12
|
items: LinkItem[];
|
|
13
13
|
enableSidebar: boolean;
|
|
14
|
+
enableSearch?: boolean;
|
|
14
15
|
/**
|
|
15
16
|
* When to use transparent navbar
|
|
16
17
|
* @defaultValue none
|
|
@@ -18,7 +19,7 @@ interface NavProps {
|
|
|
18
19
|
transparentMode?: 'always' | 'top' | 'none';
|
|
19
20
|
children?: ReactNode;
|
|
20
21
|
}
|
|
21
|
-
declare function Nav({ title, url, items, transparentMode, enableSidebar, children, }: NavProps): React.ReactElement;
|
|
22
|
+
declare function Nav({ title, url, items, transparentMode, enableSidebar, enableSearch, children, }: NavProps): React.ReactElement;
|
|
22
23
|
|
|
23
24
|
interface SidebarProps {
|
|
24
25
|
items: LinkItem[];
|
package/dist/layout.client.d.ts
CHANGED
package/dist/layout.client.js
CHANGED
|
@@ -98,6 +98,7 @@ function Nav({
|
|
|
98
98
|
items,
|
|
99
99
|
transparentMode = "none",
|
|
100
100
|
enableSidebar,
|
|
101
|
+
enableSearch = true,
|
|
101
102
|
children
|
|
102
103
|
}) {
|
|
103
104
|
const [transparent, setTransparent] = useState(transparentMode !== "none");
|
|
@@ -132,7 +133,7 @@ function Nav({
|
|
|
132
133
|
children,
|
|
133
134
|
items.filter((item) => item.type === "main" || !item.type).map((item) => /* @__PURE__ */ jsx2(NavItem, { item, className: "max-lg:hidden" }, item.url)),
|
|
134
135
|
/* @__PURE__ */ jsxs2("div", { className: "flex flex-1 flex-row items-center justify-end md:gap-2", children: [
|
|
135
|
-
/* @__PURE__ */ jsx2(SearchToggle, {}),
|
|
136
|
+
enableSearch ? /* @__PURE__ */ jsx2(SearchToggle, {}) : null,
|
|
136
137
|
enableSidebar ? /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
137
138
|
/* @__PURE__ */ jsx2(ThemeToggle, { className: "max-md:hidden" }),
|
|
138
139
|
/* @__PURE__ */ jsx2(
|
package/dist/layout.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import 'fumadocs-core/server';
|
|
2
2
|
import 'react';
|
|
3
|
-
export { B as BaseLayoutProps, b as DocsLayout, D as DocsLayoutProps, a as Layout, L as LinkItem } from './layout-
|
|
3
|
+
export { B as BaseLayoutProps, b as DocsLayout, D as DocsLayoutProps, a as Layout, L as LinkItem } from './layout-2oBm-QYW.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-ui",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.5",
|
|
4
4
|
"description": "The framework for building a documentation website in Next.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NextJs",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"next-themes": "^0.3.0",
|
|
97
97
|
"react-medium-image-zoom": "^5.1.11",
|
|
98
98
|
"tailwind-merge": "^2.3.0",
|
|
99
|
-
"fumadocs-core": "11.0.
|
|
99
|
+
"fumadocs-core": "11.0.5"
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
|
102
102
|
"@algolia/client-search": "^4.23.3",
|