@farming-labs/theme 0.0.12 → 0.0.15
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/ai-search-dialog.mjs +1 -1
- package/dist/docs-ai-features.mjs +1 -1
- package/dist/docs-command-search.mjs +1 -1
- package/dist/provider.mjs +1 -1
- package/package.json +2 -2
- package/styles/ai.css +8 -0
- package/styles/omni.css +6 -2
|
@@ -1116,7 +1116,7 @@ function FullModalAIChat({ api, isOpen, setIsOpen, messages, setMessages, aiInpu
|
|
|
1116
1116
|
className: "fd-ai-fm-suggestions-label",
|
|
1117
1117
|
children: "Try asking:"
|
|
1118
1118
|
}), /* @__PURE__ */ jsx("div", {
|
|
1119
|
-
className: "fd-ai-fm-suggestions",
|
|
1119
|
+
className: suggestedQuestions.length >= 4 ? "fd-ai-fm-suggestions fd-ai-fm-suggestions-two-rows" : "fd-ai-fm-suggestions",
|
|
1120
1120
|
children: suggestedQuestions.map((q, i) => /* @__PURE__ */ jsx("button", {
|
|
1121
1121
|
onClick: () => submitQuestion(q),
|
|
1122
1122
|
className: "fd-ai-fm-suggestion",
|
|
@@ -17,7 +17,7 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
17
17
|
* in the sidebar header area (Mintlify-style).
|
|
18
18
|
*
|
|
19
19
|
* This component is rendered inside the docs layout so the user's root layout
|
|
20
|
-
* never needs to be modified — AI features work purely from `docs.config.
|
|
20
|
+
* never needs to be modified — AI features work purely from `docs.config.ts`.
|
|
21
21
|
*/
|
|
22
22
|
function DocsAIFeatures({ mode, position = "bottom-right", floatingStyle = "panel", triggerComponentHtml, suggestedQuestions, aiLabel, loaderVariant, loadingComponentHtml, models, defaultModelId }) {
|
|
23
23
|
if (mode === "search") return /* @__PURE__ */ jsx(SearchModeAI, {
|
package/dist/provider.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { RootProvider as RootProvider$1 } from "fumadocs-ui/provider/next";
|
|
|
9
9
|
*
|
|
10
10
|
* Defaults the search API to `/api/docs` (unified handler).
|
|
11
11
|
* AI features are handled automatically by `createDocsLayout`
|
|
12
|
-
* based on the `ai` config in `docs.config.
|
|
12
|
+
* based on the `ai` config in `docs.config.ts` — no props needed here.
|
|
13
13
|
*/
|
|
14
14
|
function RootProvider({ children, search, ...props }) {
|
|
15
15
|
return /* @__PURE__ */ jsx(RootProvider$1, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@farming-labs/theme",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.15",
|
|
4
4
|
"description": "Theme package for @farming-labs/docs — layout, provider, MDX components, and styles",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"docs",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"next": ">=14.0.0",
|
|
104
104
|
"tsdown": "^0.20.3",
|
|
105
105
|
"typescript": "^5.9.3",
|
|
106
|
-
"@farming-labs/docs": "0.0.
|
|
106
|
+
"@farming-labs/docs": "0.0.15"
|
|
107
107
|
},
|
|
108
108
|
"peerDependencies": {
|
|
109
109
|
"@farming-labs/docs": ">=0.0.1",
|
package/styles/ai.css
CHANGED
|
@@ -1345,6 +1345,14 @@
|
|
|
1345
1345
|
);
|
|
1346
1346
|
}
|
|
1347
1347
|
|
|
1348
|
+
/* 4+ suggestions: wrap into two rows instead of single scrollable row */
|
|
1349
|
+
.fd-ai-fm-suggestions-two-rows {
|
|
1350
|
+
flex-wrap: wrap;
|
|
1351
|
+
overflow-x: visible;
|
|
1352
|
+
mask-image: none;
|
|
1353
|
+
-webkit-mask-image: none;
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1348
1356
|
.fd-ai-fm-suggestion {
|
|
1349
1357
|
flex-shrink: 0;
|
|
1350
1358
|
white-space: nowrap;
|
package/styles/omni.css
CHANGED
|
@@ -73,6 +73,8 @@
|
|
|
73
73
|
border: 1px solid var(--color-fd-border, #262626);
|
|
74
74
|
background: var(--color-fd-popover, #0c0c0c);
|
|
75
75
|
color: var(--color-fd-foreground, #fafafa);
|
|
76
|
+
font-family: var(--font-sans, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
|
|
77
|
+
ui-sans-serif, sans-serif);
|
|
76
78
|
box-shadow:
|
|
77
79
|
0 24px 60px -12px rgba(0, 0, 0, 0.5),
|
|
78
80
|
0 0 0 1px rgba(255, 255, 255, 0.04);
|
|
@@ -124,7 +126,8 @@
|
|
|
124
126
|
padding: 0.125rem 0.375rem;
|
|
125
127
|
font-size: 10px;
|
|
126
128
|
color: var(--color-fd-muted-foreground, #a3a3a3);
|
|
127
|
-
font-family:
|
|
129
|
+
font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
|
130
|
+
"Liberation Mono", "Courier New", monospace);
|
|
128
131
|
line-height: 1.4;
|
|
129
132
|
}
|
|
130
133
|
.omni-close-btn {
|
|
@@ -281,7 +284,8 @@
|
|
|
281
284
|
border-radius: 0.25rem;
|
|
282
285
|
background: var(--color-fd-muted, #262626);
|
|
283
286
|
padding: 0.125rem 0.25rem;
|
|
284
|
-
font-family:
|
|
287
|
+
font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
|
288
|
+
"Liberation Mono", "Courier New", monospace);
|
|
285
289
|
}
|
|
286
290
|
.omni-item-chevron {
|
|
287
291
|
width: 0.875rem;
|