@farming-labs/theme 0.2.139-beta.0 → 0.2.139

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.
@@ -46,10 +46,15 @@ function resolveSidebarNavLinks(config) {
46
46
  }
47
47
  /** The nav title, marked so the top header can hide its sidebar copy on desktop. */
48
48
  function resolveSidebarNavTitle(config, title) {
49
- return isTopHeader(config) ? /* @__PURE__ */ jsx("span", {
49
+ if (!isTopHeader(config)) return title;
50
+ if (typeof title === "function") return (props) => /* @__PURE__ */ jsx("span", {
51
+ className: "fd-nav-title",
52
+ children: title(props)
53
+ });
54
+ return /* @__PURE__ */ jsx("span", {
50
55
  className: "fd-nav-title",
51
56
  children: title
52
- }) : title;
57
+ });
53
58
  }
54
59
  /** Chrome rendered before the docs layout, so it comes first in focus order. */
55
60
  function renderLayoutChrome(config, options) {
@@ -21,7 +21,7 @@ function DocsTopHeader({ title, titleUrl, links, search, askAI, themeToggle, the
21
21
  className: "fd-top-header",
22
22
  "data-fd-theme": themeName,
23
23
  style,
24
- children: [/* @__PURE__ */ jsx(Link, {
24
+ children: [typeof title === "function" ? title({ className: "fd-top-header-title" }) : /* @__PURE__ */ jsx(Link, {
25
25
  href: titleUrl,
26
26
  className: "fd-top-header-title",
27
27
  children: title
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farming-labs/theme",
3
- "version": "0.2.139-beta.0",
3
+ "version": "0.2.139",
4
4
  "description": "Theme package for @farming-labs/docs — layout, provider, MDX components, and styles",
5
5
  "keywords": [
6
6
  "docs",
@@ -162,13 +162,13 @@
162
162
  "tsdown": "^0.20.3",
163
163
  "typescript": "^5.9.3",
164
164
  "vitest": "^4.1.8",
165
- "@farming-labs/docs": "0.2.139-beta.0"
165
+ "@farming-labs/docs": "0.2.139"
166
166
  },
167
167
  "peerDependencies": {
168
168
  "next": ">=16.0.0",
169
169
  "react": ">=19.2.0",
170
170
  "react-dom": ">=19.2.0",
171
- "@farming-labs/docs": "^0.2.139-beta.0"
171
+ "@farming-labs/docs": "^0.2.139"
172
172
  },
173
173
  "peerDependenciesMeta": {
174
174
  "next": {
package/styles/base.css CHANGED
@@ -1759,6 +1759,7 @@ figure.shiki:hover > div:first-child button {
1759
1759
  .fd-sidebar-search-ai-row,
1760
1760
  [data-theme-toggle],
1761
1761
  a:has(> .fd-nav-title),
1762
+ .fd-nav-title,
1762
1763
  a:has(.fd-nav-link)
1763
1764
  ),
1764
1765
  #nd-docs-layout[data-fd-header="top"] #nd-sidebar div:has(> [data-theme-toggle]:only-child) {
@@ -7595,6 +7595,7 @@ figure.shiki:hover > div:first-child button {
7595
7595
  .fd-sidebar-search-ai-row,
7596
7596
  [data-theme-toggle],
7597
7597
  a:has(> .fd-nav-title),
7598
+ .fd-nav-title,
7598
7599
  a:has(.fd-nav-link)
7599
7600
  ),
7600
7601
  #nd-docs-layout[data-fd-header="top"] #nd-sidebar div:has(> [data-theme-toggle]:only-child) {
@@ -7609,6 +7609,7 @@ figure.shiki:hover > div:first-child button {
7609
7609
  .fd-sidebar-search-ai-row,
7610
7610
  [data-theme-toggle],
7611
7611
  a:has(> .fd-nav-title),
7612
+ .fd-nav-title,
7612
7613
  a:has(.fd-nav-link)
7613
7614
  ),
7614
7615
  #nd-docs-layout[data-fd-header="top"] #nd-sidebar div:has(> [data-theme-toggle]:only-child) {