@farming-labs/theme 0.2.139-beta.0 → 0.2.139-beta.1
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/dist/layout-chrome.mjs +7 -2
- package/dist/top-header.mjs +1 -1
- package/package.json +3 -3
package/dist/layout-chrome.mjs
CHANGED
|
@@ -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
|
-
|
|
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
|
-
})
|
|
57
|
+
});
|
|
53
58
|
}
|
|
54
59
|
/** Chrome rendered before the docs layout, so it comes first in focus order. */
|
|
55
60
|
function renderLayoutChrome(config, options) {
|
package/dist/top-header.mjs
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "0.2.139-beta.1",
|
|
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.
|
|
165
|
+
"@farming-labs/docs": "0.2.139-beta.1"
|
|
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.
|
|
171
|
+
"@farming-labs/docs": "^0.2.139-beta.1"
|
|
172
172
|
},
|
|
173
173
|
"peerDependenciesMeta": {
|
|
174
174
|
"next": {
|