fumadocs-ui 14.0.1 → 14.1.0

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.
@@ -80,7 +80,7 @@ var Sidebar = memo(
80
80
  blockScrollingWidth: 768,
81
81
  ...props.aside,
82
82
  className: twMerge(
83
- "fixed top-fd-layout-top z-30 bg-fd-card pt-2 text-sm md:sticky md:h-[var(--fd-sidebar-height)] md:flex-1 md:pt-4",
83
+ "fixed top-fd-layout-top z-30 bg-fd-card text-sm md:sticky md:h-[var(--fd-sidebar-height)] md:flex-1",
84
84
  "max-md:inset-x-0 max-md:bottom-0 max-md:bg-fd-background/80 max-md:text-[15px] max-md:backdrop-blur-lg max-md:data-[open=false]:invisible",
85
85
  props.aside?.className
86
86
  ),
@@ -88,7 +88,7 @@ var Sidebar = memo(
88
88
  ...props.aside?.style,
89
89
  "--fd-sidebar-height": "calc(100dvh - var(--fd-banner-height) - var(--fd-nav-height))"
90
90
  },
91
- children: /* @__PURE__ */ jsxs("div", { className: "flex size-full flex-col md:ms-auto md:w-[var(--fd-sidebar-width)] md:border-e", children: [
91
+ children: /* @__PURE__ */ jsxs("div", { className: "flex size-full flex-col pt-2 md:ms-auto md:w-[var(--fd-sidebar-width)] md:border-e md:pt-4", children: [
92
92
  props.banner,
93
93
  hasSearch ? /* @__PURE__ */ jsx(LargeSearchToggle, { className: "mx-4 rounded-lg max-md:hidden md:mx-3" }) : null,
94
94
  /* @__PURE__ */ jsx(ScrollArea, { className: "h-full", children: /* @__PURE__ */ jsxs(
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import { HTMLAttributes, ReactNode } from 'react';
3
3
 
4
- declare const Callout: react.ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "title" | "type" | "icon"> & {
4
+ declare const Callout: react.ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "title" | "icon" | "type"> & {
5
5
  title?: ReactNode;
6
6
  /**
7
7
  * @defaultValue info
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Sidebar
4
- } from "./chunk-BN7HGCQ4.js";
4
+ } from "./chunk-JUOW3DZK.js";
5
5
  import "./chunk-V6RONFCQ.js";
6
6
  import "./chunk-CDPVENXR.js";
7
7
  import "./chunk-TQJ6YPJ3.js";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  Sidebar,
4
4
  itemVariants
5
- } from "../chunk-BN7HGCQ4.js";
5
+ } from "../chunk-JUOW3DZK.js";
6
6
  import {
7
7
  BaseLinkItem,
8
8
  ButtonItem,
@@ -56,7 +56,7 @@ function getSidebarTabs(pageTree, { transform } = {}) {
56
56
  // src/layouts/docs.tsx
57
57
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
58
58
  var DynamicSidebar = dynamic(
59
- () => import("../dynamic-sidebar-QWGMOUMS.js")
59
+ () => import("../dynamic-sidebar-MEINO4E2.js")
60
60
  );
61
61
  function DocsLayout({
62
62
  nav: {
@@ -139,7 +139,7 @@ function SidebarHeader({
139
139
  links,
140
140
  ...props
141
141
  }) {
142
- if (!props.title || !props.children || links.length === 0) return null;
142
+ if (!props.title && !props.children && links.length === 0) return null;
143
143
  return /* @__PURE__ */ jsxs("div", { className: "flex flex-row items-center border-b pb-2 max-md:hidden", children: [
144
144
  props.title ? /* @__PURE__ */ jsx(
145
145
  Link,
package/dist/mdx.d.ts CHANGED
@@ -18,7 +18,7 @@ declare const defaultMdxComponents: {
18
18
  h5: (props: React.HTMLAttributes<HTMLHeadingElement>) => react_jsx_runtime.JSX.Element;
19
19
  h6: (props: React.HTMLAttributes<HTMLHeadingElement>) => react_jsx_runtime.JSX.Element;
20
20
  table: typeof Table;
21
- Callout: react.ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "title" | "type" | "icon"> & {
21
+ Callout: react.ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "title" | "icon" | "type"> & {
22
22
  title?: react.ReactNode;
23
23
  type?: "info" | "warn" | "error";
24
24
  icon?: react.ReactNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-ui",
3
- "version": "14.0.1",
3
+ "version": "14.1.0",
4
4
  "description": "The framework for building a documentation website in Next.js",
5
5
  "keywords": [
6
6
  "NextJs",
@@ -67,23 +67,23 @@
67
67
  "next-themes": "^0.3.0",
68
68
  "react-medium-image-zoom": "^5.2.10",
69
69
  "tailwind-merge": "^2.5.4",
70
- "fumadocs-core": "14.0.1"
70
+ "fumadocs-core": "14.1.0"
71
71
  },
72
72
  "devDependencies": {
73
73
  "@algolia/client-search": "4.24.0",
74
- "@next/eslint-plugin-next": "^15.0.0",
75
- "@types/react": "^18.3.11",
74
+ "@next/eslint-plugin-next": "^15.0.1",
75
+ "@types/react": "^18.3.12",
76
76
  "@types/react-dom": "^18.3.1",
77
77
  "algoliasearch": "4.24.0",
78
78
  "lucide-react": "^0.453.0",
79
- "next": "15.0.0",
79
+ "next": "15.0.1",
80
80
  "postcss": "^8.4.47",
81
81
  "postcss-cli": "^11.0.0",
82
82
  "postcss-lightningcss": "^1.0.1",
83
83
  "tailwindcss": "^3.4.13",
84
84
  "eslint-config-custom": "0.0.0",
85
- "fumadocs": "^0.0.0",
86
- "tsconfig": "0.0.0"
85
+ "tsconfig": "0.0.0",
86
+ "@fumadocs/cli": "0.0.3"
87
87
  },
88
88
  "peerDependencies": {
89
89
  "next": "14.x.x || 15.x.x",