@fumadocs/base-ui 16.17.9 → 16.17.10

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/lib/base.css CHANGED
@@ -164,14 +164,15 @@
164
164
 
165
165
  @variant dark (&:where(.dark, .dark *));
166
166
 
167
- /* define/override layout variables */
167
+ /* define/override layout variables, from a direct child of the layout: a descendant `:has()` re-checks the whole layout on DOM changes */
168
168
  @variant layout {
169
- #nd-docs-layout:has(&),
170
- #nd-notebook-layout:has(&),
171
- #nd-home-layout:has(&),
172
- #nd-flux-layout:has(&),
173
- #fd-glass-layout:has(&),
174
- #fd-spacious-layout:has(&) {
169
+ #nd-docs-layout:has(> &),
170
+ #nd-notebook-layout:has(> &),
171
+ #nd-home-layout:has(> &),
172
+ #nd-flux-layout:has(> &),
173
+ #fd-glass-layout:has(> &),
174
+ /* the spacious page nests its TOC and page in the page panel */
175
+ #fd-spacious-layout:has(> &, > * > &, > * > * > &) {
175
176
  @slot;
176
177
  }
177
178
  }
@@ -152,7 +152,10 @@ function SidebarViewport({ className, ...props }) {
152
152
  children: [
153
153
  /* @__PURE__ */ jsx(ScrollArea.Viewport, {
154
154
  className: "size-full rounded-[inherit] p-4 overscroll-contain mask-[linear-gradient(to_bottom,transparent,white_12px,white_calc(100%-12px),transparent)]",
155
- children: props.children
155
+ children: /* @__PURE__ */ jsx(ScrollArea.Content, {
156
+ className: "flex flex-col gap-0.5",
157
+ children: props.children
158
+ })
156
159
  }),
157
160
  /* @__PURE__ */ jsx(ScrollArea.Corner, {}),
158
161
  /* @__PURE__ */ jsx(ScrollArea.Scrollbar, {
@@ -28,13 +28,10 @@ function SidebarProvider(props) {
28
28
  function Sidebar({ footer, banner, collapsible = true, components, ...rest }) {
29
29
  const { menuItems, slots, props: { tabs, nav, tabMode } } = useDocsLayout();
30
30
  const iconLinks = menuItems.filter((item) => item.type === "icon");
31
- const viewport = /* @__PURE__ */ jsx(SidebarViewport, { children: /* @__PURE__ */ jsxs("div", {
32
- className: "flex flex-col gap-0.5",
33
- children: [menuItems.filter((v) => v.type !== "icon").map((item, i, list) => /* @__PURE__ */ jsx(SidebarLinkItem, {
34
- item,
35
- className: cn(i === list.length - 1 && "mb-4")
36
- }, i)), /* @__PURE__ */ jsx(SidebarPageTree, { ...components })]
37
- }) });
31
+ const viewport = /* @__PURE__ */ jsxs(SidebarViewport, { children: [menuItems.filter((v) => v.type !== "icon").map((item, i, list) => /* @__PURE__ */ jsx(SidebarLinkItem, {
32
+ item,
33
+ className: cn(i === list.length - 1 && "mb-4")
34
+ }, i)), /* @__PURE__ */ jsx(SidebarPageTree, { ...components })] });
38
35
  return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs(SidebarContent, {
39
36
  ...rest,
40
37
  children: [
@@ -149,9 +149,12 @@ function Sidebar({ className, children, ...props }) {
149
149
  /* @__PURE__ */ jsxs(ScrollArea.Root, {
150
150
  className: "min-h-0 flex-1",
151
151
  children: [
152
- /* @__PURE__ */ jsxs(ScrollArea.Viewport, {
153
- className: "size-full rounded-[inherit] flex flex-col p-2 [mask-image:linear-gradient(to_bottom,transparent,white_16px,white_calc(100%-16px),transparent))]",
154
- children: [menuItems.map((item, i) => item.type !== "icon" && /* @__PURE__ */ jsx(SidebarLinkItem, { item }, i)), root.children.map((item, i) => cloneElement(renderNode(item), { key: i }))]
152
+ /* @__PURE__ */ jsx(ScrollArea.Viewport, {
153
+ className: "size-full rounded-[inherit] p-2 [mask-image:linear-gradient(to_bottom,transparent,white_16px,white_calc(100%-16px),transparent))]",
154
+ children: /* @__PURE__ */ jsxs(ScrollArea.Content, {
155
+ className: "flex flex-col",
156
+ children: [menuItems.map((item, i) => item.type !== "icon" && /* @__PURE__ */ jsx(SidebarLinkItem, { item }, i)), root.children.map((item, i) => cloneElement(renderNode(item), { key: i }))]
157
+ })
155
158
  }),
156
159
  /* @__PURE__ */ jsx(ScrollArea.Corner, {}),
157
160
  /* @__PURE__ */ jsx(ScrollArea.Scrollbar, {
@@ -161,13 +161,10 @@ function Sidebar({ banner, footer, components, collapsible = true, ...rest }) {
161
161
  children: [props.children, footer]
162
162
  });
163
163
  }
164
- const viewport = /* @__PURE__ */ jsx(SidebarViewport, { children: /* @__PURE__ */ jsxs("div", {
165
- className: "flex flex-col gap-0.5",
166
- children: [menuItems.filter((item) => item.type !== "icon").map((item, i, arr) => /* @__PURE__ */ jsx(SidebarLinkItem, {
167
- item,
168
- className: cn("lg:hidden", i === arr.length - 1 && "mb-4")
169
- }, i)), /* @__PURE__ */ jsx(SidebarPageTree, { ...components })]
170
- }) });
164
+ const viewport = /* @__PURE__ */ jsxs(SidebarViewport, { children: [menuItems.filter((item) => item.type !== "icon").map((item, i, arr) => /* @__PURE__ */ jsx(SidebarLinkItem, {
165
+ item,
166
+ className: cn("lg:hidden", i === arr.length - 1 && "mb-4")
167
+ }, i)), /* @__PURE__ */ jsx(SidebarPageTree, { ...components })] });
171
168
  return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs(SidebarContent, {
172
169
  ...rest,
173
170
  children: [
@@ -179,39 +179,36 @@ function TabIcon({ tab, className }) {
179
179
  });
180
180
  }
181
181
  function SidebarViewport() {
182
+ const { menuItems } = useSpaciousLayout();
183
+ const links = menuItems.filter((item) => item.type !== "icon");
182
184
  return /* @__PURE__ */ jsxs(ScrollArea.Root, {
183
185
  className: "min-h-0 flex-1 mt-2",
184
186
  children: [/* @__PURE__ */ jsx(ScrollArea.Viewport, {
185
187
  className: "size-full overscroll-contain px-3 pt-4 pb-8 mask-t-from-[calc(100%-16px)] mask-b-from-[calc(100%-32px)]",
186
- children: /* @__PURE__ */ jsx(SidebarItems, {})
188
+ children: /* @__PURE__ */ jsxs(ScrollArea.Content, {
189
+ ref: follow,
190
+ className: "relative flex flex-col",
191
+ children: [
192
+ /* @__PURE__ */ jsx("div", {
193
+ "aria-hidden": true,
194
+ className: "absolute top-0 left-0 py-0.5 rounded-lg bg-fd-accent/60 bg-clip-content opacity-0 pointer-events-none transition-opacity duration-200 ease-[cubic-bezier(0.22,1,0.36,1)] motion-safe:transition-[translate,width,height,opacity]"
195
+ }),
196
+ links.map((item, i) => /* @__PURE__ */ jsx(SidebarLinkItem, {
197
+ item,
198
+ className: cn(i === links.length - 1 && "mb-6")
199
+ }, i)),
200
+ /* @__PURE__ */ jsx("div", {
201
+ className: "flex flex-col",
202
+ children: /* @__PURE__ */ jsx(SidebarPageTree, {})
203
+ })
204
+ ]
205
+ })
187
206
  }), /* @__PURE__ */ jsx(ScrollArea.Scrollbar, {
188
207
  className: (s) => cn("flex w-1.5 py-2 select-none transition-opacity", !s.hovering && "opacity-0"),
189
208
  children: /* @__PURE__ */ jsx(ScrollArea.Thumb, { className: "flex-1 rounded-full bg-fd-border" })
190
209
  })]
191
210
  });
192
211
  }
193
- function SidebarItems() {
194
- const { menuItems } = useSpaciousLayout();
195
- const links = menuItems.filter((item) => item.type !== "icon");
196
- return /* @__PURE__ */ jsxs("div", {
197
- ref: follow,
198
- className: "relative flex flex-col",
199
- children: [
200
- /* @__PURE__ */ jsx("div", {
201
- "aria-hidden": true,
202
- className: "absolute top-0 left-0 py-0.5 rounded-lg bg-fd-accent/60 bg-clip-content opacity-0 pointer-events-none transition-opacity duration-200 ease-[cubic-bezier(0.22,1,0.36,1)] motion-safe:transition-[translate,width,height,opacity]"
203
- }),
204
- links.map((item, i) => /* @__PURE__ */ jsx(SidebarLinkItem, {
205
- item,
206
- className: cn(i === links.length - 1 && "mb-6")
207
- }, i)),
208
- /* @__PURE__ */ jsx("div", {
209
- className: "flex flex-col",
210
- children: /* @__PURE__ */ jsx(SidebarPageTree, {})
211
- })
212
- ]
213
- });
214
- }
215
212
  /** a soft block glides to the item under the mouse or keyboard focus */
216
213
  function follow(area) {
217
214
  const block = area?.firstElementChild;
package/dist/style.css CHANGED
@@ -901,7 +901,7 @@
901
901
  :where(th:first-child):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
902
902
  border-inline-start: none;
903
903
  }
904
- :where(th:not(tr:last-child *), td:not(tr:last-child *)):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
904
+ :where(th:not(tr:last-child > th), td:not(tr:last-child > td)):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
905
905
  border-bottom: 1px solid var(--color-fd-border);
906
906
  }
907
907
  :where(td):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
@@ -3725,64 +3725,64 @@
3725
3725
  overflow: visible;
3726
3726
  }
3727
3727
  }
3728
- #nd-docs-layout:has(.layout\:\[--fd-ai-chat-width\:min\(--spacing\(100\)\,100vw---spacing\(4\)\)\]), #nd-notebook-layout:has(.layout\:\[--fd-ai-chat-width\:min\(--spacing\(100\)\,100vw---spacing\(4\)\)\]), #nd-home-layout:has(.layout\:\[--fd-ai-chat-width\:min\(--spacing\(100\)\,100vw---spacing\(4\)\)\]), #nd-flux-layout:has(.layout\:\[--fd-ai-chat-width\:min\(--spacing\(100\)\,100vw---spacing\(4\)\)\]), #fd-glass-layout:has(.layout\:\[--fd-ai-chat-width\:min\(--spacing\(100\)\,100vw---spacing\(4\)\)\]), #fd-spacious-layout:has(.layout\:\[--fd-ai-chat-width\:min\(--spacing\(100\)\,100vw---spacing\(4\)\)\]) {
3728
+ #nd-docs-layout:has( > .layout\:\[--fd-ai-chat-width\:min\(--spacing\(100\)\,100vw---spacing\(4\)\)\]), #nd-notebook-layout:has( > .layout\:\[--fd-ai-chat-width\:min\(--spacing\(100\)\,100vw---spacing\(4\)\)\]), #nd-home-layout:has( > .layout\:\[--fd-ai-chat-width\:min\(--spacing\(100\)\,100vw---spacing\(4\)\)\]), #nd-flux-layout:has( > .layout\:\[--fd-ai-chat-width\:min\(--spacing\(100\)\,100vw---spacing\(4\)\)\]), #fd-glass-layout:has( > .layout\:\[--fd-ai-chat-width\:min\(--spacing\(100\)\,100vw---spacing\(4\)\)\]), #fd-spacious-layout:has( > .layout\:\[--fd-ai-chat-width\:min\(--spacing\(100\)\,100vw---spacing\(4\)\)\], > * > .layout\:\[--fd-ai-chat-width\:min\(--spacing\(100\)\,100vw---spacing\(4\)\)\], > * > * > .layout\:\[--fd-ai-chat-width\:min\(--spacing\(100\)\,100vw---spacing\(4\)\)\]) {
3729
3729
  --fd-ai-chat-width: min(calc(var(--spacing) * 100), 100vw - calc(var(--spacing) * 4));
3730
3730
  }
3731
- #nd-docs-layout:has(.layout\:\[--fd-header-height\:--spacing\(14\)\]), #nd-notebook-layout:has(.layout\:\[--fd-header-height\:--spacing\(14\)\]), #nd-home-layout:has(.layout\:\[--fd-header-height\:--spacing\(14\)\]), #nd-flux-layout:has(.layout\:\[--fd-header-height\:--spacing\(14\)\]), #fd-glass-layout:has(.layout\:\[--fd-header-height\:--spacing\(14\)\]), #fd-spacious-layout:has(.layout\:\[--fd-header-height\:--spacing\(14\)\]) {
3731
+ #nd-docs-layout:has( > .layout\:\[--fd-header-height\:--spacing\(14\)\]), #nd-notebook-layout:has( > .layout\:\[--fd-header-height\:--spacing\(14\)\]), #nd-home-layout:has( > .layout\:\[--fd-header-height\:--spacing\(14\)\]), #nd-flux-layout:has( > .layout\:\[--fd-header-height\:--spacing\(14\)\]), #fd-glass-layout:has( > .layout\:\[--fd-header-height\:--spacing\(14\)\]), #fd-spacious-layout:has( > .layout\:\[--fd-header-height\:--spacing\(14\)\], > * > .layout\:\[--fd-header-height\:--spacing\(14\)\], > * > * > .layout\:\[--fd-header-height\:--spacing\(14\)\]) {
3732
3732
  --fd-header-height: calc(var(--spacing) * 14);
3733
3733
  }
3734
- #nd-docs-layout:has(.layout\:\[--fd-main-width\:1200px\]), #nd-notebook-layout:has(.layout\:\[--fd-main-width\:1200px\]), #nd-home-layout:has(.layout\:\[--fd-main-width\:1200px\]), #nd-flux-layout:has(.layout\:\[--fd-main-width\:1200px\]), #fd-glass-layout:has(.layout\:\[--fd-main-width\:1200px\]), #fd-spacious-layout:has(.layout\:\[--fd-main-width\:1200px\]) {
3734
+ #nd-docs-layout:has( > .layout\:\[--fd-main-width\:1200px\]), #nd-notebook-layout:has( > .layout\:\[--fd-main-width\:1200px\]), #nd-home-layout:has( > .layout\:\[--fd-main-width\:1200px\]), #nd-flux-layout:has( > .layout\:\[--fd-main-width\:1200px\]), #fd-glass-layout:has( > .layout\:\[--fd-main-width\:1200px\]), #fd-spacious-layout:has( > .layout\:\[--fd-main-width\:1200px\], > * > .layout\:\[--fd-main-width\:1200px\], > * > * > .layout\:\[--fd-main-width\:1200px\]) {
3735
3735
  --fd-main-width: 1200px;
3736
3736
  }
3737
- #nd-docs-layout:has(.layout\:\[--fd-page-width\:1200px\]), #nd-notebook-layout:has(.layout\:\[--fd-page-width\:1200px\]), #nd-home-layout:has(.layout\:\[--fd-page-width\:1200px\]), #nd-flux-layout:has(.layout\:\[--fd-page-width\:1200px\]), #fd-glass-layout:has(.layout\:\[--fd-page-width\:1200px\]), #fd-spacious-layout:has(.layout\:\[--fd-page-width\:1200px\]) {
3737
+ #nd-docs-layout:has( > .layout\:\[--fd-page-width\:1200px\]), #nd-notebook-layout:has( > .layout\:\[--fd-page-width\:1200px\]), #nd-home-layout:has( > .layout\:\[--fd-page-width\:1200px\]), #nd-flux-layout:has( > .layout\:\[--fd-page-width\:1200px\]), #fd-glass-layout:has( > .layout\:\[--fd-page-width\:1200px\]), #fd-spacious-layout:has( > .layout\:\[--fd-page-width\:1200px\], > * > .layout\:\[--fd-page-width\:1200px\], > * > * > .layout\:\[--fd-page-width\:1200px\]) {
3738
3738
  --fd-page-width: 1200px;
3739
3739
  }
3740
- #nd-docs-layout:has(.layout\:\[--fd-toc-width\:--spacing\(76\)\]), #nd-notebook-layout:has(.layout\:\[--fd-toc-width\:--spacing\(76\)\]), #nd-home-layout:has(.layout\:\[--fd-toc-width\:--spacing\(76\)\]), #nd-flux-layout:has(.layout\:\[--fd-toc-width\:--spacing\(76\)\]), #fd-glass-layout:has(.layout\:\[--fd-toc-width\:--spacing\(76\)\]), #fd-spacious-layout:has(.layout\:\[--fd-toc-width\:--spacing\(76\)\]) {
3740
+ #nd-docs-layout:has( > .layout\:\[--fd-toc-width\:--spacing\(76\)\]), #nd-notebook-layout:has( > .layout\:\[--fd-toc-width\:--spacing\(76\)\]), #nd-home-layout:has( > .layout\:\[--fd-toc-width\:--spacing\(76\)\]), #nd-flux-layout:has( > .layout\:\[--fd-toc-width\:--spacing\(76\)\]), #fd-glass-layout:has( > .layout\:\[--fd-toc-width\:--spacing\(76\)\]), #fd-spacious-layout:has( > .layout\:\[--fd-toc-width\:--spacing\(76\)\], > * > .layout\:\[--fd-toc-width\:--spacing\(76\)\], > * > * > .layout\:\[--fd-toc-width\:--spacing\(76\)\]) {
3741
3741
  --fd-toc-width: calc(var(--spacing) * 76);
3742
3742
  }
3743
3743
  @media (width < 80rem) {
3744
- #nd-docs-layout:has(.max-xl\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]), #nd-notebook-layout:has(.max-xl\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]), #nd-home-layout:has(.max-xl\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]), #nd-flux-layout:has(.max-xl\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]), #fd-glass-layout:has(.max-xl\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]), #fd-spacious-layout:has(.max-xl\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]) {
3744
+ #nd-docs-layout:has( > .max-xl\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]), #nd-notebook-layout:has( > .max-xl\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]), #nd-home-layout:has( > .max-xl\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]), #nd-flux-layout:has( > .max-xl\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]), #fd-glass-layout:has( > .max-xl\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]), #fd-spacious-layout:has( > .max-xl\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\], > * > .max-xl\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\], > * > * > .max-xl\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]) {
3745
3745
  --fd-toc-popover-height: calc(var(--spacing) * 10);
3746
3746
  }
3747
3747
  }
3748
3748
  @media (width < 48rem) {
3749
- #nd-docs-layout:has(.max-md\:layout\:\[--fd-header-height\:--spacing\(14\)\]), #nd-notebook-layout:has(.max-md\:layout\:\[--fd-header-height\:--spacing\(14\)\]), #nd-home-layout:has(.max-md\:layout\:\[--fd-header-height\:--spacing\(14\)\]), #nd-flux-layout:has(.max-md\:layout\:\[--fd-header-height\:--spacing\(14\)\]), #fd-glass-layout:has(.max-md\:layout\:\[--fd-header-height\:--spacing\(14\)\]), #fd-spacious-layout:has(.max-md\:layout\:\[--fd-header-height\:--spacing\(14\)\]) {
3749
+ #nd-docs-layout:has( > .max-md\:layout\:\[--fd-header-height\:--spacing\(14\)\]), #nd-notebook-layout:has( > .max-md\:layout\:\[--fd-header-height\:--spacing\(14\)\]), #nd-home-layout:has( > .max-md\:layout\:\[--fd-header-height\:--spacing\(14\)\]), #nd-flux-layout:has( > .max-md\:layout\:\[--fd-header-height\:--spacing\(14\)\]), #fd-glass-layout:has( > .max-md\:layout\:\[--fd-header-height\:--spacing\(14\)\]), #fd-spacious-layout:has( > .max-md\:layout\:\[--fd-header-height\:--spacing\(14\)\], > * > .max-md\:layout\:\[--fd-header-height\:--spacing\(14\)\], > * > * > .max-md\:layout\:\[--fd-header-height\:--spacing\(14\)\]) {
3750
3750
  --fd-header-height: calc(var(--spacing) * 14);
3751
3751
  }
3752
- #nd-docs-layout:has(.max-md\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]), #nd-notebook-layout:has(.max-md\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]), #nd-home-layout:has(.max-md\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]), #nd-flux-layout:has(.max-md\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]), #fd-glass-layout:has(.max-md\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]), #fd-spacious-layout:has(.max-md\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]) {
3752
+ #nd-docs-layout:has( > .max-md\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]), #nd-notebook-layout:has( > .max-md\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]), #nd-home-layout:has( > .max-md\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]), #nd-flux-layout:has( > .max-md\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]), #fd-glass-layout:has( > .max-md\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]), #fd-spacious-layout:has( > .max-md\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\], > * > .max-md\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\], > * > * > .max-md\:layout\:\[--fd-toc-popover-height\:--spacing\(10\)\]) {
3753
3753
  --fd-toc-popover-height: calc(var(--spacing) * 10);
3754
3754
  }
3755
3755
  }
3756
3756
  @media (width >= 48rem) {
3757
- #nd-docs-layout:has(.md\:layout\:\[--fd-header-height\:--spacing\(12\)\]), #nd-notebook-layout:has(.md\:layout\:\[--fd-header-height\:--spacing\(12\)\]), #nd-home-layout:has(.md\:layout\:\[--fd-header-height\:--spacing\(12\)\]), #nd-flux-layout:has(.md\:layout\:\[--fd-header-height\:--spacing\(12\)\]), #fd-glass-layout:has(.md\:layout\:\[--fd-header-height\:--spacing\(12\)\]), #fd-spacious-layout:has(.md\:layout\:\[--fd-header-height\:--spacing\(12\)\]) {
3757
+ #nd-docs-layout:has( > .md\:layout\:\[--fd-header-height\:--spacing\(12\)\]), #nd-notebook-layout:has( > .md\:layout\:\[--fd-header-height\:--spacing\(12\)\]), #nd-home-layout:has( > .md\:layout\:\[--fd-header-height\:--spacing\(12\)\]), #nd-flux-layout:has( > .md\:layout\:\[--fd-header-height\:--spacing\(12\)\]), #fd-glass-layout:has( > .md\:layout\:\[--fd-header-height\:--spacing\(12\)\]), #fd-spacious-layout:has( > .md\:layout\:\[--fd-header-height\:--spacing\(12\)\], > * > .md\:layout\:\[--fd-header-height\:--spacing\(12\)\], > * > * > .md\:layout\:\[--fd-header-height\:--spacing\(12\)\]) {
3758
3758
  --fd-header-height: calc(var(--spacing) * 12);
3759
3759
  }
3760
- #nd-docs-layout:has(.md\:layout\:\[--fd-left-width\:0px\]), #nd-notebook-layout:has(.md\:layout\:\[--fd-left-width\:0px\]), #nd-home-layout:has(.md\:layout\:\[--fd-left-width\:0px\]), #nd-flux-layout:has(.md\:layout\:\[--fd-left-width\:0px\]), #fd-glass-layout:has(.md\:layout\:\[--fd-left-width\:0px\]), #fd-spacious-layout:has(.md\:layout\:\[--fd-left-width\:0px\]) {
3760
+ #nd-docs-layout:has( > .md\:layout\:\[--fd-left-width\:0px\]), #nd-notebook-layout:has( > .md\:layout\:\[--fd-left-width\:0px\]), #nd-home-layout:has( > .md\:layout\:\[--fd-left-width\:0px\]), #nd-flux-layout:has( > .md\:layout\:\[--fd-left-width\:0px\]), #fd-glass-layout:has( > .md\:layout\:\[--fd-left-width\:0px\]), #fd-spacious-layout:has( > .md\:layout\:\[--fd-left-width\:0px\], > * > .md\:layout\:\[--fd-left-width\:0px\], > * > * > .md\:layout\:\[--fd-left-width\:0px\]) {
3761
3761
  --fd-left-width: 0px;
3762
3762
  }
3763
- #nd-docs-layout:has(.md\:layout\:\[--fd-left-width\:280px\]), #nd-notebook-layout:has(.md\:layout\:\[--fd-left-width\:280px\]), #nd-home-layout:has(.md\:layout\:\[--fd-left-width\:280px\]), #nd-flux-layout:has(.md\:layout\:\[--fd-left-width\:280px\]), #fd-glass-layout:has(.md\:layout\:\[--fd-left-width\:280px\]), #fd-spacious-layout:has(.md\:layout\:\[--fd-left-width\:280px\]) {
3763
+ #nd-docs-layout:has( > .md\:layout\:\[--fd-left-width\:280px\]), #nd-notebook-layout:has( > .md\:layout\:\[--fd-left-width\:280px\]), #nd-home-layout:has( > .md\:layout\:\[--fd-left-width\:280px\]), #nd-flux-layout:has( > .md\:layout\:\[--fd-left-width\:280px\]), #fd-glass-layout:has( > .md\:layout\:\[--fd-left-width\:280px\]), #fd-spacious-layout:has( > .md\:layout\:\[--fd-left-width\:280px\], > * > .md\:layout\:\[--fd-left-width\:280px\], > * > * > .md\:layout\:\[--fd-left-width\:280px\]) {
3764
3764
  --fd-left-width: 280px;
3765
3765
  }
3766
- #nd-docs-layout:has(.md\:layout\:\[--fd-right-width\:12px\]), #nd-notebook-layout:has(.md\:layout\:\[--fd-right-width\:12px\]), #nd-home-layout:has(.md\:layout\:\[--fd-right-width\:12px\]), #nd-flux-layout:has(.md\:layout\:\[--fd-right-width\:12px\]), #fd-glass-layout:has(.md\:layout\:\[--fd-right-width\:12px\]), #fd-spacious-layout:has(.md\:layout\:\[--fd-right-width\:12px\]) {
3766
+ #nd-docs-layout:has( > .md\:layout\:\[--fd-right-width\:12px\]), #nd-notebook-layout:has( > .md\:layout\:\[--fd-right-width\:12px\]), #nd-home-layout:has( > .md\:layout\:\[--fd-right-width\:12px\]), #nd-flux-layout:has( > .md\:layout\:\[--fd-right-width\:12px\]), #fd-glass-layout:has( > .md\:layout\:\[--fd-right-width\:12px\]), #fd-spacious-layout:has( > .md\:layout\:\[--fd-right-width\:12px\], > * > .md\:layout\:\[--fd-right-width\:12px\], > * > * > .md\:layout\:\[--fd-right-width\:12px\]) {
3767
3767
  --fd-right-width: 12px;
3768
3768
  }
3769
- #nd-docs-layout:has(.md\:layout\:\[--fd-sidebar-col\:--spacing\(2\)\]), #nd-notebook-layout:has(.md\:layout\:\[--fd-sidebar-col\:--spacing\(2\)\]), #nd-home-layout:has(.md\:layout\:\[--fd-sidebar-col\:--spacing\(2\)\]), #nd-flux-layout:has(.md\:layout\:\[--fd-sidebar-col\:--spacing\(2\)\]), #fd-glass-layout:has(.md\:layout\:\[--fd-sidebar-col\:--spacing\(2\)\]), #fd-spacious-layout:has(.md\:layout\:\[--fd-sidebar-col\:--spacing\(2\)\]) {
3769
+ #nd-docs-layout:has( > .md\:layout\:\[--fd-sidebar-col\:--spacing\(2\)\]), #nd-notebook-layout:has( > .md\:layout\:\[--fd-sidebar-col\:--spacing\(2\)\]), #nd-home-layout:has( > .md\:layout\:\[--fd-sidebar-col\:--spacing\(2\)\]), #nd-flux-layout:has( > .md\:layout\:\[--fd-sidebar-col\:--spacing\(2\)\]), #fd-glass-layout:has( > .md\:layout\:\[--fd-sidebar-col\:--spacing\(2\)\]), #fd-spacious-layout:has( > .md\:layout\:\[--fd-sidebar-col\:--spacing\(2\)\], > * > .md\:layout\:\[--fd-sidebar-col\:--spacing\(2\)\], > * > * > .md\:layout\:\[--fd-sidebar-col\:--spacing\(2\)\]) {
3770
3770
  --fd-sidebar-col: calc(var(--spacing) * 2);
3771
3771
  }
3772
- #nd-docs-layout:has(.md\:layout\:\[--fd-sidebar-width\:268px\]), #nd-notebook-layout:has(.md\:layout\:\[--fd-sidebar-width\:268px\]), #nd-home-layout:has(.md\:layout\:\[--fd-sidebar-width\:268px\]), #nd-flux-layout:has(.md\:layout\:\[--fd-sidebar-width\:268px\]), #fd-glass-layout:has(.md\:layout\:\[--fd-sidebar-width\:268px\]), #fd-spacious-layout:has(.md\:layout\:\[--fd-sidebar-width\:268px\]) {
3772
+ #nd-docs-layout:has( > .md\:layout\:\[--fd-sidebar-width\:268px\]), #nd-notebook-layout:has( > .md\:layout\:\[--fd-sidebar-width\:268px\]), #nd-home-layout:has( > .md\:layout\:\[--fd-sidebar-width\:268px\]), #nd-flux-layout:has( > .md\:layout\:\[--fd-sidebar-width\:268px\]), #fd-glass-layout:has( > .md\:layout\:\[--fd-sidebar-width\:268px\]), #fd-spacious-layout:has( > .md\:layout\:\[--fd-sidebar-width\:268px\], > * > .md\:layout\:\[--fd-sidebar-width\:268px\], > * > * > .md\:layout\:\[--fd-sidebar-width\:268px\]) {
3773
3773
  --fd-sidebar-width: 268px;
3774
3774
  }
3775
3775
  }
3776
3776
  @media (width >= 64rem) {
3777
- #nd-docs-layout:has(.lg\:layout\:\[--fd-header-height\:--spacing\(24\)\]), #nd-notebook-layout:has(.lg\:layout\:\[--fd-header-height\:--spacing\(24\)\]), #nd-home-layout:has(.lg\:layout\:\[--fd-header-height\:--spacing\(24\)\]), #nd-flux-layout:has(.lg\:layout\:\[--fd-header-height\:--spacing\(24\)\]), #fd-glass-layout:has(.lg\:layout\:\[--fd-header-height\:--spacing\(24\)\]), #fd-spacious-layout:has(.lg\:layout\:\[--fd-header-height\:--spacing\(24\)\]) {
3777
+ #nd-docs-layout:has( > .lg\:layout\:\[--fd-header-height\:--spacing\(24\)\]), #nd-notebook-layout:has( > .lg\:layout\:\[--fd-header-height\:--spacing\(24\)\]), #nd-home-layout:has( > .lg\:layout\:\[--fd-header-height\:--spacing\(24\)\]), #nd-flux-layout:has( > .lg\:layout\:\[--fd-header-height\:--spacing\(24\)\]), #fd-glass-layout:has( > .lg\:layout\:\[--fd-header-height\:--spacing\(24\)\]), #fd-spacious-layout:has( > .lg\:layout\:\[--fd-header-height\:--spacing\(24\)\], > * > .lg\:layout\:\[--fd-header-height\:--spacing\(24\)\], > * > * > .lg\:layout\:\[--fd-header-height\:--spacing\(24\)\]) {
3778
3778
  --fd-header-height: calc(var(--spacing) * 24);
3779
3779
  }
3780
3780
  }
3781
3781
  @media (width >= 80rem) {
3782
- #nd-docs-layout:has(.xl\:layout\:\[--fd-right-width\:240px\]), #nd-notebook-layout:has(.xl\:layout\:\[--fd-right-width\:240px\]), #nd-home-layout:has(.xl\:layout\:\[--fd-right-width\:240px\]), #nd-flux-layout:has(.xl\:layout\:\[--fd-right-width\:240px\]), #fd-glass-layout:has(.xl\:layout\:\[--fd-right-width\:240px\]), #fd-spacious-layout:has(.xl\:layout\:\[--fd-right-width\:240px\]) {
3782
+ #nd-docs-layout:has( > .xl\:layout\:\[--fd-right-width\:240px\]), #nd-notebook-layout:has( > .xl\:layout\:\[--fd-right-width\:240px\]), #nd-home-layout:has( > .xl\:layout\:\[--fd-right-width\:240px\]), #nd-flux-layout:has( > .xl\:layout\:\[--fd-right-width\:240px\]), #fd-glass-layout:has( > .xl\:layout\:\[--fd-right-width\:240px\]), #fd-spacious-layout:has( > .xl\:layout\:\[--fd-right-width\:240px\], > * > .xl\:layout\:\[--fd-right-width\:240px\], > * > * > .xl\:layout\:\[--fd-right-width\:240px\]) {
3783
3783
  --fd-right-width: 240px;
3784
3784
  }
3785
- #nd-docs-layout:has(.xl\:layout\:\[--fd-toc-width\:268px\]), #nd-notebook-layout:has(.xl\:layout\:\[--fd-toc-width\:268px\]), #nd-home-layout:has(.xl\:layout\:\[--fd-toc-width\:268px\]), #nd-flux-layout:has(.xl\:layout\:\[--fd-toc-width\:268px\]), #fd-glass-layout:has(.xl\:layout\:\[--fd-toc-width\:268px\]), #fd-spacious-layout:has(.xl\:layout\:\[--fd-toc-width\:268px\]) {
3785
+ #nd-docs-layout:has( > .xl\:layout\:\[--fd-toc-width\:268px\]), #nd-notebook-layout:has( > .xl\:layout\:\[--fd-toc-width\:268px\]), #nd-home-layout:has( > .xl\:layout\:\[--fd-toc-width\:268px\]), #nd-flux-layout:has( > .xl\:layout\:\[--fd-toc-width\:268px\]), #fd-glass-layout:has( > .xl\:layout\:\[--fd-toc-width\:268px\]), #fd-spacious-layout:has( > .xl\:layout\:\[--fd-toc-width\:268px\], > * > .xl\:layout\:\[--fd-toc-width\:268px\], > * > * > .xl\:layout\:\[--fd-toc-width\:268px\]) {
3786
3786
  --fd-toc-width: 268px;
3787
3787
  }
3788
3788
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fumadocs/base-ui",
3
- "version": "16.17.9",
3
+ "version": "16.17.10",
4
4
  "description": "The Base UI version of Fumadocs UI",
5
5
  "keywords": [
6
6
  "Docs",
@@ -140,7 +140,7 @@
140
140
  "dependencies": {
141
141
  "@base-ui/react": "^1.9.0",
142
142
  "@fuma-translate/react": "^1.0.2",
143
- "@fumadocs/tailwind": "0.1.4",
143
+ "@fumadocs/tailwind": "0.1.5",
144
144
  "class-variance-authority": "^0.7.1",
145
145
  "cn": "^0.5.0",
146
146
  "lucide-react": "^1.61.0",
@@ -151,7 +151,7 @@
151
151
  "shiki": "^4.5.0"
152
152
  },
153
153
  "devDependencies": {
154
- "@fumadocs/cli": "1.7.6",
154
+ "@fumadocs/cli": "1.7.7",
155
155
  "@tailwindcss/cli": "^4.3.3",
156
156
  "@tailwindcss/oxide": "^4.3.3",
157
157
  "@tsdown/css": "^0.23.1",
@@ -160,7 +160,7 @@
160
160
  "@types/react": "^19.3.0",
161
161
  "@types/react-dom": "^19.3.0",
162
162
  "fuma-cli": "^0.3.1",
163
- "fumadocs-core": "16.17.9",
163
+ "fumadocs-core": "16.17.10",
164
164
  "react-medium-image-zoom": "^5.4.9",
165
165
  "tailwindcss": "^4.3.3",
166
166
  "tsconfig": "0.0.0",
@@ -169,7 +169,7 @@
169
169
  "peerDependencies": {
170
170
  "@types/mdx": "*",
171
171
  "@types/react": "*",
172
- "fumadocs-core": "16.17.9",
172
+ "fumadocs-core": "16.17.10",
173
173
  "next": "16.x.x",
174
174
  "react": "^19.2.0",
175
175
  "react-dom": "^19.2.0",