@farming-labs/theme 0.0.9-beta.1 → 0.0.9

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.
@@ -452,54 +452,58 @@ function createDocsLayout(config) {
452
452
  collapsible: sidebarProps.collapsible !== false,
453
453
  flat: !!sidebarFlat
454
454
  });
455
- return /* @__PURE__ */ jsxs(DocsLayout, {
456
- tree,
457
- nav: {
458
- title: navTitle,
459
- url: navUrl
460
- },
461
- themeSwitch,
462
- sidebar: finalSidebarProps,
463
- ...aiMode === "sidebar-icon" && aiEnabled ? { searchToggle: { components: { lg: /* @__PURE__ */ jsx(SidebarSearchWithAI, {}) } } } : {},
464
- children: [
465
- /* @__PURE__ */ jsx(ColorStyle, { colors }),
466
- /* @__PURE__ */ jsx(TypographyStyle, { typography }),
467
- /* @__PURE__ */ jsx(LayoutStyle, { layout: layoutDimensions }),
468
- forcedTheme && /* @__PURE__ */ jsx(ForcedThemeScript, { theme: forcedTheme }),
469
- !staticExport && /* @__PURE__ */ jsx(DocsCommandSearch, {}),
470
- aiEnabled && /* @__PURE__ */ jsx(DocsAIFeatures, {
471
- mode: aiMode,
472
- position: aiPosition,
473
- floatingStyle: aiFloatingStyle,
474
- triggerComponentHtml: aiTriggerComponentHtml,
475
- suggestedQuestions: aiSuggestedQuestions,
476
- aiLabel,
477
- loaderVariant: aiLoaderVariant,
478
- loadingComponentHtml: aiLoadingComponentHtml,
479
- models: aiModels,
480
- defaultModelId: aiDefaultModelId
481
- }),
482
- /* @__PURE__ */ jsx(DocsPageClient, {
483
- tocEnabled,
484
- tocStyle,
485
- breadcrumbEnabled,
486
- entry: config.entry,
487
- copyMarkdown: copyMarkdownEnabled,
488
- openDocs: openDocsEnabled,
489
- openDocsProviders,
490
- pageActionsPosition,
491
- pageActionsAlignment,
492
- githubUrl,
493
- githubBranch,
494
- githubDirectory,
495
- lastModifiedMap,
496
- lastUpdatedEnabled,
497
- lastUpdatedPosition,
498
- llmsTxtEnabled,
499
- descriptionMap,
500
- children
501
- })
502
- ]
455
+ return /* @__PURE__ */ jsx("div", {
456
+ id: "nd-docs-layout",
457
+ style: { display: "contents" },
458
+ children: /* @__PURE__ */ jsxs(DocsLayout, {
459
+ tree,
460
+ nav: {
461
+ title: navTitle,
462
+ url: navUrl
463
+ },
464
+ themeSwitch,
465
+ sidebar: finalSidebarProps,
466
+ ...aiMode === "sidebar-icon" && aiEnabled ? { searchToggle: { components: { lg: /* @__PURE__ */ jsx(SidebarSearchWithAI, {}) } } } : {},
467
+ children: [
468
+ /* @__PURE__ */ jsx(ColorStyle, { colors }),
469
+ /* @__PURE__ */ jsx(TypographyStyle, { typography }),
470
+ /* @__PURE__ */ jsx(LayoutStyle, { layout: layoutDimensions }),
471
+ forcedTheme && /* @__PURE__ */ jsx(ForcedThemeScript, { theme: forcedTheme }),
472
+ !staticExport && /* @__PURE__ */ jsx(DocsCommandSearch, {}),
473
+ aiEnabled && /* @__PURE__ */ jsx(DocsAIFeatures, {
474
+ mode: aiMode,
475
+ position: aiPosition,
476
+ floatingStyle: aiFloatingStyle,
477
+ triggerComponentHtml: aiTriggerComponentHtml,
478
+ suggestedQuestions: aiSuggestedQuestions,
479
+ aiLabel,
480
+ loaderVariant: aiLoaderVariant,
481
+ loadingComponentHtml: aiLoadingComponentHtml,
482
+ models: aiModels,
483
+ defaultModelId: aiDefaultModelId
484
+ }),
485
+ /* @__PURE__ */ jsx(DocsPageClient, {
486
+ tocEnabled,
487
+ tocStyle,
488
+ breadcrumbEnabled,
489
+ entry: config.entry,
490
+ copyMarkdown: copyMarkdownEnabled,
491
+ openDocs: openDocsEnabled,
492
+ openDocsProviders,
493
+ pageActionsPosition,
494
+ pageActionsAlignment,
495
+ githubUrl,
496
+ githubBranch,
497
+ githubDirectory,
498
+ lastModifiedMap,
499
+ lastUpdatedEnabled,
500
+ lastUpdatedPosition,
501
+ llmsTxtEnabled,
502
+ descriptionMap,
503
+ children
504
+ })
505
+ ]
506
+ })
503
507
  });
504
508
  };
505
509
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farming-labs/theme",
3
- "version": "0.0.9-beta.1",
3
+ "version": "0.0.9",
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.9-beta.1"
106
+ "@farming-labs/docs": "0.0.9"
107
107
  },
108
108
  "peerDependencies": {
109
109
  "@farming-labs/docs": ">=0.0.1",
package/styles/base.css CHANGED
@@ -290,7 +290,9 @@ figure.shiki:has(figcaption) figcaption {
290
290
  border-color 0.15s;
291
291
  user-select: none;
292
292
  }
293
-
293
+ .fd-ai-fm-msg-content .fd-ai-code-block pre {
294
+ padding:10px !important;
295
+ }
294
296
  .fd-page-action-btn:hover {
295
297
  color: var(--color-fd-accent-foreground);
296
298
  background: var(--color-fd-accent);
@@ -139,14 +139,19 @@ code:not(pre code) {
139
139
  * ═══════════════════════════════════════════════════════════════════ */
140
140
 
141
141
  /* ─── Wider content area on desktop ──────────────────────────────── */
142
- /* :root {
143
- --fd-layout-width: 1400px;
144
- } */
145
142
 
146
- /* ─── Docs grid: pin sidebar left, TOC right, content fills middle ── */
143
+ @media (min-width: 1024px) {
144
+ :root {
145
+ --fd-layout-width: 1400px;
146
+ }
147
+ }
148
+
149
+ /* ─── Docs grid: sidebar | content | TOC — with gap and constrained TOC ── */
147
150
  @media (min-width: 768px) {
148
- #nd-docs-layout {
149
- grid-template-columns: var(--fd-sidebar-col, 0px) 1fr min-content !important;
151
+ #nd-docs-layout,
152
+ [style*="fd-sidebar-col"] {
153
+ grid-template-columns: var(--fd-sidebar-col, 0px) minmax(0, 1fr) min(var(--fd-toc-width, 260px), 260px) !important;
154
+ gap: 24px !important;
150
155
  }
151
156
  }
152
157