@stainless-api/docs-ui 0.1.0-beta.78 → 0.1.0-beta.79

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.
@@ -1,4 +1,4 @@
1
- import { v as Spec } from "../index-Cl6Gny0o.js";
1
+ import { v as Spec } from "../index-BQHpxMul.js";
2
2
  import * as react_jsx_runtime0 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/breadcrumbs.d.ts
@@ -1,4 +1,4 @@
1
- import { d as Method, h as Resource } from "../index-Cl6Gny0o.js";
1
+ import { d as Method, h as Resource } from "../index-BQHpxMul.js";
2
2
  import * as react_jsx_runtime0 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/overview.d.ts
@@ -1,4 +1,4 @@
1
- import { h as Resource } from "../index-Cl6Gny0o.js";
1
+ import { h as Resource } from "../index-BQHpxMul.js";
2
2
  import * as react_jsx_runtime0 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/sdk-sidebar.d.ts
@@ -1,4 +1,4 @@
1
- import { _ as SnippetLanguage, c as ID, d as Method, f as Model, o as HasStainlessPath, t as BaseDeclaration } from "../index-Cl6Gny0o.js";
1
+ import { _ as SnippetLanguage, c as ID, d as Method, f as Model, o as HasStainlessPath, t as BaseDeclaration } from "../index-BQHpxMul.js";
2
2
  import { DocsLanguage } from "../routing.js";
3
3
  import * as React$1 from "react";
4
4
  import * as react_jsx_runtime0 from "react/jsx-runtime";
@@ -181,7 +181,7 @@ function SDKDeclaration({ path, expand, depth = 0 }) {
181
181
  ...props,
182
182
  children: hasChildren && /* @__PURE__ */ jsxs(Fragment$1, { children: [isUnion && /* @__PURE__ */ jsx("div", {
183
183
  className: style_default.PropertyAnnotation,
184
- children: "Accepts one of the following:"
184
+ children: "One of the following:"
185
185
  }), /* @__PURE__ */ jsx(Docs.SDKChildren, {
186
186
  paths: decl.children ?? [],
187
187
  depth: depth + 1
@@ -1,4 +1,4 @@
1
- import { d as Method, o as HasStainlessPath } from "../index-Cl6Gny0o.js";
1
+ import { d as Method, o as HasStainlessPath } from "../index-BQHpxMul.js";
2
2
  import { TransformRequestSnippetFn } from "./sdk.js";
3
3
  import { useSnippet } from "../contexts/docs.js";
4
4
  import "../contexts/index.js";
@@ -1,4 +1,4 @@
1
- import { h as Resource, u as LanguageDeclNodes, v as Spec, y as SpecLanguage } from "../index-Cl6Gny0o.js";
1
+ import { h as Resource, u as LanguageDeclNodes, v as Spec, y as SpecLanguage } from "../index-BQHpxMul.js";
2
2
  import * as React$1 from "react";
3
3
  import * as react_jsx_runtime0 from "react/jsx-runtime";
4
4
 
@@ -47,7 +47,7 @@ declare function useDeclaration<Required extends boolean>(stainlessPath: string,
47
47
  declare function useAvailableLanguages(stainlessPath: string): SpecLanguage[];
48
48
  declare function useIgnoredResources(): string[];
49
49
  declare function useResource(name: string): Resource | undefined;
50
- declare function useLanguage(): "cli" | "csharp" | "go" | "http" | "java" | "kotlin" | "node" | "php" | "python" | "ruby" | "terraform" | "typescript";
50
+ declare function useLanguage(): "http" | "node" | "python" | "go" | "typescript" | "terraform" | "ruby" | "java" | "kotlin" | "csharp" | "php" | "cli";
51
51
  declare function useContentPanelLayout(): ContentPanelLayout;
52
52
  type DocsProviderProps = DocsContextType & {
53
53
  children: React$1.ReactNode;
@@ -167,13 +167,14 @@ interface Config {
167
167
  }[] | undefined;
168
168
  } | undefined;
169
169
  }
170
- type DiagnosticLevel = 'fatal' | 'error' | 'warning' | 'note';
170
+ type InternalDiagnosticLevel = 'fatal' | 'internal_error' | 'error' | 'warning' | 'note';
171
+ type DiagnosticLevel = Exclude<InternalDiagnosticLevel, 'internal_error'>;
171
172
  type AutoFixOp = SimplifyDeep<{
172
173
  file: 'config';
173
174
  } & Operation>;
174
- type DiagnosticExport = {
175
+ type DiagnosticInfo = {
175
176
  code: string;
176
- level: DiagnosticLevel;
177
+ level: InternalDiagnosticLevel;
177
178
  ignored: boolean;
178
179
  message: string;
179
180
  messageHtml: string;
@@ -191,6 +192,12 @@ type DiagnosticExport = {
191
192
  autoFixPlan: AutoFixOp[] | null;
192
193
  trace?: string;
193
194
  };
195
+ type DiagnosticExport = DiagnosticInfo & {
196
+ level: DiagnosticLevel;
197
+ };
198
+ type SDKSchemaReference = never;
199
+ type SDKSchemaType = string;
200
+ type SDKPropertySchemaReference<T = never> = never;
194
201
  type HttpDeclaration = HttpDeclFunction | HttpDeclProperty | HttpDeclTypeAlias | HttpDeclReference | ErrorDecl;
195
202
  type HttpDeclFunction = BaseDeclaration & {
196
203
  kind: 'HttpDeclFunction';
@@ -467,9 +474,6 @@ type RubyAST_RubyTypeUnknown = RubyTypeUnknown;
467
474
  declare namespace RubyAST {
468
475
  export type { RubyAST_RubyDeclClass as RubyDeclClass, RubyAST_RubyDeclFunction as RubyDeclFunction, RubyAST_RubyDeclProperty as RubyDeclProperty, RubyAST_RubyDeclReference as RubyDeclReference, RubyAST_RubyDeclTypeAlias as RubyDeclTypeAlias, RubyAST_RubyDeclaration as RubyDeclaration, RubyAST_RubyFunctionArgument as RubyFunctionArgument, RubyAST_RubyIdentifier as RubyIdentifier, RubyAST_RubyType as RubyType, RubyAST_RubyTypeArray as RubyTypeArray, RubyAST_RubyTypeBinary as RubyTypeBinary, RubyAST_RubyTypeBoolean as RubyTypeBoolean, RubyAST_RubyTypeBuiltinClass as RubyTypeBuiltinClass, RubyAST_RubyTypeFloat as RubyTypeFloat, RubyAST_RubyTypeInteger as RubyTypeInteger, RubyAST_RubyTypeIntersection as RubyTypeIntersection, RubyAST_RubyTypeLiteral as RubyTypeLiteral, RubyAST_RubyTypeMap as RubyTypeMap, RubyAST_RubyTypeNull as RubyTypeNull, RubyAST_RubyTypeObject as RubyTypeObject, RubyAST_RubyTypeParameter as RubyTypeParameter, RubyAST_RubyTypeReference as RubyTypeReference, RubyAST_RubyTypeString as RubyTypeString, RubyAST_RubyTypeUnion as RubyTypeUnion, RubyAST_RubyTypeUnknown as RubyTypeUnknown };
469
476
  }
470
- type SDKSchemaReference = never;
471
- type SDKSchemaType = string;
472
- type SDKPropertySchemaReference<T = never> = never;
473
477
  /**
474
478
  * Base declaration types for CLI command AST
475
479
  */
@@ -1,4 +1,4 @@
1
- import { n as CLIAST, s as HttpAST } from "../index-Cl6Gny0o.js";
1
+ import { n as CLIAST, s as HttpAST } from "../index-BQHpxMul.js";
2
2
  import { PropertyFn } from "./index.js";
3
3
  import React from "react";
4
4
  import * as react_jsx_runtime0 from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { r as CSharpAST } from "../index-Cl6Gny0o.js";
1
+ import { r as CSharpAST } from "../index-BQHpxMul.js";
2
2
  import { PropertyFn } from "./index.js";
3
3
  import * as React$1 from "react";
4
4
  import * as react_jsx_runtime0 from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { a as GoAST } from "../index-Cl6Gny0o.js";
1
+ import { a as GoAST } from "../index-BQHpxMul.js";
2
2
  import { PropertyFn } from "./index.js";
3
3
  import * as React$1 from "react";
4
4
  import * as react_jsx_runtime0 from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { s as HttpAST } from "../index-Cl6Gny0o.js";
1
+ import { s as HttpAST } from "../index-BQHpxMul.js";
2
2
  import { PropertyFn } from "./index.js";
3
3
  import React from "react";
4
4
  import * as react_jsx_runtime0 from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { S as Type, h as Resource, i as DeclarationNode } from "../index-Cl6Gny0o.js";
1
+ import { S as Type, h as Resource, i as DeclarationNode } from "../index-BQHpxMul.js";
2
2
  import { PropertyProps } from "../components/properties.js";
3
3
  import { t as typescript_d_exports } from "./typescript.js";
4
4
  import { t as java_d_exports } from "./java.js";
@@ -1,4 +1,4 @@
1
- import { l as JavaAST } from "../index-Cl6Gny0o.js";
1
+ import { l as JavaAST } from "../index-BQHpxMul.js";
2
2
  import { PropertyFn } from "./index.js";
3
3
  import * as React$1 from "react";
4
4
  import * as react_jsx_runtime0 from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { p as PhpAST } from "../index-Cl6Gny0o.js";
1
+ import { p as PhpAST } from "../index-BQHpxMul.js";
2
2
  import { PropertyFn } from "./index.js";
3
3
  import * as React$1 from "react";
4
4
  import * as react_jsx_runtime0 from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { m as PythonAST } from "../index-Cl6Gny0o.js";
1
+ import { m as PythonAST } from "../index-BQHpxMul.js";
2
2
  import { PropertyFn } from "./index.js";
3
3
  import * as React$1 from "react";
4
4
  import * as react_jsx_runtime0 from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { g as RubyAST } from "../index-Cl6Gny0o.js";
1
+ import { g as RubyAST } from "../index-BQHpxMul.js";
2
2
  import { PropertyFn } from "./index.js";
3
3
  import * as React$1 from "react";
4
4
  import * as react_jsx_runtime0 from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { h as Resource$1, x as TerraformAST } from "../index-Cl6Gny0o.js";
1
+ import { h as Resource$1, x as TerraformAST } from "../index-BQHpxMul.js";
2
2
  import { PropertyFn } from "./index.js";
3
3
  import * as React$1 from "react";
4
4
  import * as react_jsx_runtime0 from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { b as TSAST } from "../index-Cl6Gny0o.js";
1
+ import { b as TSAST } from "../index-BQHpxMul.js";
2
2
  import { PropertyFn } from "./index.js";
3
3
  import * as React$1 from "react";
4
4
  import * as react_jsx_runtime0 from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { d as Method, f as Model, h as Resource, i as DeclarationNode } from "../index-Cl6Gny0o.js";
1
+ import { d as Method, f as Model, h as Resource, i as DeclarationNode } from "../index-BQHpxMul.js";
2
2
  import { EnvironmentType } from "./utils.js";
3
3
  import { t as printer_d_exports } from "./printer.js";
4
4
  import { Node } from "@markdoc/markdoc";
@@ -1,4 +1,4 @@
1
- import { S as Type, i as DeclarationNode } from "../index-Cl6Gny0o.js";
1
+ import { S as Type, i as DeclarationNode } from "../index-BQHpxMul.js";
2
2
  import { DocsLanguage } from "../routing.js";
3
3
 
4
4
  //#region src/markdown/printer.d.ts
@@ -1,4 +1,4 @@
1
- import { u as LanguageDeclNodes, v as Spec, y as SpecLanguage } from "../index-Cl6Gny0o.js";
1
+ import { u as LanguageDeclNodes, v as Spec, y as SpecLanguage } from "../index-BQHpxMul.js";
2
2
  import { DocsLanguage } from "../routing.js";
3
3
  import { TransformRequestSnippetFn } from "../components/sdk.js";
4
4
 
package/dist/routing.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { d as Method, f as Model, h as Resource, v as Spec } from "./index-Cl6Gny0o.js";
1
+ import { d as Method, f as Model, h as Resource, v as Spec } from "./index-BQHpxMul.js";
2
2
 
3
3
  //#region src/routing.d.ts
4
4
  declare namespace routing_d_exports {
@@ -8,7 +8,7 @@ declare const Languages: readonly ["http", "node", "python", "go", "typescript",
8
8
  declare const SupportedLanguageSyntaxes: string[];
9
9
  type DocsLanguage = (typeof Languages)[number];
10
10
  declare const LanguageNames: Record<DocsLanguage, string>;
11
- declare function getLanguageSnippet(language: DocsLanguage): "http.curl" | "cli.default" | "csharp.default" | "go.default" | "java.default" | "kotlin.default" | "node.default" | "php.default" | "python.default" | "ruby.default" | "terraform.default" | "typescript.default";
11
+ declare function getLanguageSnippet(language: DocsLanguage): "http.curl" | "node.default" | "python.default" | "go.default" | "typescript.default" | "terraform.default" | "ruby.default" | "java.default" | "kotlin.default" | "csharp.default" | "php.default" | "cli.default";
12
12
  declare function isSupportedLanguage(language: string): language is DocsLanguage;
13
13
  type ParsedStainlessPath = ReturnType<typeof parseStainlessPath>;
14
14
  declare function parseStainlessPath(stainlessPath: string): {
package/dist/spec.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { d as Method, f as Model, h as Resource, i as DeclarationNode, v as Spec, y as SpecLanguage } from "./index-Cl6Gny0o.js";
1
+ import { d as Method, f as Model, h as Resource, i as DeclarationNode, v as Spec, y as SpecLanguage } from "./index-BQHpxMul.js";
2
2
  import { DocsLanguage } from "./routing.js";
3
3
 
4
4
  //#region src/spec.d.ts
@@ -36,13 +36,13 @@ declare function generateNavigation(resource: Partial<Resource>): {
36
36
  declare function generateSpecForResource(spec: Spec, name: string, lang: DocsLanguage, transforms: SpecTransforms): Partial<Spec>;
37
37
  declare function transform(spec: Spec, transforms: SpecTransforms): {
38
38
  name: string;
39
- lang: "cli" | "csharp" | "go" | "http" | "java" | "kotlin" | "node" | "php" | "python" | "ruby" | "terraform" | "typescript";
39
+ lang: "http" | "node" | "python" | "go" | "typescript" | "terraform" | "ruby" | "java" | "kotlin" | "csharp" | "php" | "cli";
40
40
  spec: Partial<Spec>;
41
41
  }[];
42
42
  declare function split(spec: Spec, transforms?: SpecTransforms): {
43
43
  resources: ReturnType<typeof transform>;
44
44
  navigation: {
45
- languages: ("cli" | "csharp" | "go" | "http" | "java" | "kotlin" | "node" | "php" | "python" | "ruby" | "terraform" | "typescript" | "sql" | "openapi")[] | undefined;
45
+ languages: ("http" | "node" | "python" | "go" | "typescript" | "terraform" | "ruby" | "java" | "kotlin" | "csharp" | "php" | "cli" | "sql" | "openapi")[] | undefined;
46
46
  resources: {
47
47
  [k: string]: {
48
48
  title: string | undefined;
@@ -74,7 +74,7 @@
74
74
  flex-direction: column;
75
75
 
76
76
  .stldocs-resource-content-group-model-title {
77
- padding-top: var(--stldocs-content-padding);
77
+ padding-top: var(--stldocs-content-padding-block);
78
78
  color: var(--stl-color-foreground-muted);
79
79
  font-weight: normal;
80
80
  font-size: 1rem;
@@ -101,7 +101,7 @@
101
101
  /* Overview page method summary */
102
102
  .stldocs-root .stldocs-overview .stldocs-method-summary,
103
103
  .stldocs-root .stldocs-overview .stldocs-method {
104
- padding: var(--stldocs-content-padding) 0;
104
+ padding: var(--stldocs-content-padding-block) 0;
105
105
 
106
106
  .stldocs-method-header {
107
107
  display: flex;
@@ -132,7 +132,7 @@
132
132
  height: 1.7rem;
133
133
  overflow-y: hidden;
134
134
  line-height: 1.7rem;
135
- padding-bottom: var(--stldocs-content-padding);
135
+ padding-bottom: var(--stldocs-content-padding-block);
136
136
 
137
137
  .stldocs-content > * {
138
138
  white-space: nowrap;
@@ -422,7 +422,8 @@
422
422
  }
423
423
 
424
424
  .stldocs-method-header {
425
- padding: var(--stldocs-title-padding-y) var(--stldocs-content-padding) var(--stldocs-content-padding);
425
+ padding: var(--stldocs-title-padding-y) var(--stldocs-content-padding-inline)
426
+ var(--stldocs-content-padding-block);
426
427
 
427
428
  .stldocs-method-title {
428
429
  font-size: var(--stl-typography-text-h1);
@@ -440,7 +441,7 @@
440
441
 
441
442
  .stldocs-method-description {
442
443
  grid-area: 1 / 1 / 2 / 2;
443
- padding-bottom: var(--stldocs-content-padding);
444
+ padding-bottom: var(--stldocs-content-padding-block);
444
445
 
445
446
  code {
446
447
  line-height: 150%;
@@ -471,7 +472,7 @@
471
472
  }
472
473
 
473
474
  .stldocs-method-info {
474
- padding: var(--stldocs-content-padding) 0;
475
+ padding: var(--stldocs-content-padding-block) 0;
475
476
  grid-area: 3 / 1 / 4 / 2;
476
477
  display: flex;
477
478
  gap: 2rem;
@@ -513,7 +514,7 @@
513
514
  gap: 2rem;
514
515
  grid-template-columns: minmax(0, 1fr);
515
516
  grid-template-rows: repeat(4, auto);
516
- padding: var(--stldocs-content-padding) 0;
517
+ padding: var(--stldocs-content-padding-block) 0;
517
518
 
518
519
  .stldocs-method-description p {
519
520
  color: var(--stl-color-foreground-reduced);
@@ -930,11 +931,11 @@
930
931
  /* Don't put expanders in the margin on mobile */
931
932
  @media (max-width: 50rem) {
932
933
  .stldocs-root .stldocs-method-body {
933
- padding: 1rem var(--stldocs-content-padding) !important;
934
+ padding: 1rem var(--stldocs-content-padding-inline) !important;
934
935
  }
935
936
 
936
937
  .stldocs-root .stldocs-resource .stldocs-resource-content {
937
- padding: 0 var(--stldocs-content-padding) !important;
938
+ padding: 0 var(--stldocs-content-padding-inline) !important;
938
939
 
939
940
  .stldocs-resource-content-properties {
940
941
  margin-left: 0 !important;
@@ -1,7 +1,6 @@
1
1
  /* Design System Defaults */
2
2
  .stldocs-root {
3
3
  font-family: var(--stl-typography-font);
4
- background-color: var(--stl-color-background);
5
4
  color: var(--stl-color-foreground);
6
5
  letter-spacing: -0.01em;
7
6
 
@@ -1,11 +1,14 @@
1
+ :root {
2
+ --stldocs-sidebar-item-padding-inline: 0.75rem;
3
+ --stldocs-sidebar-item-padding-block: 0.375rem;
4
+ --stldocs-sidebar-indent: 0.75rem;
5
+ }
6
+
1
7
  .stldocs-sidebar {
2
8
  font-family: var(--stl-typography-font);
3
9
  font-size: var(--stl-typography-scale-sm);
4
10
  /* Remove background color from stldocs-root reset. */
5
11
  background-color: transparent;
6
- --stldocs-sidebar-item-padding-inline: 12px;
7
- --stldocs-sidebar-item-padding-block: 6px;
8
- --stldocs-sidebar-indent: 12px;
9
12
 
10
13
  ul,
11
14
  summary {
@@ -4,6 +4,8 @@
4
4
 
5
5
  --stldocs-content-width: 720px;
6
6
  --stldocs-content-padding: 16px;
7
+ --stldocs-content-padding-inline: var(--stldocs-content-padding);
8
+ --stldocs-content-padding-block: var(--stldocs-content-padding);
7
9
 
8
10
  --stldocs-color-http-get-bg: var(--stl-color-green-muted-background);
9
11
  --stldocs-color-http-get: var(--stl-color-green-foreground);
package/dist/styles.css CHANGED
@@ -185,6 +185,7 @@ body {
185
185
  font-size: var(--stl-typography-text-code);
186
186
  font-weight: inherit;
187
187
  letter-spacing: normal;
188
+ white-space: pre;
188
189
 
189
190
  /* inline code */
190
191
  &:where(:not(pre > code)) {
@@ -625,8 +626,8 @@ a.stl-ui-button {
625
626
  --stl-ui-dropdown-button-border-radius: var(--stl-ui-layout-border-radius-sml);
626
627
  --stl-ui-dropdown-button-font-size: var(--stl-typography-scale-sm);
627
628
 
628
- --stl-ui-dropdown-button-height: 32px;
629
- --stl-ui-dropdown-button-padding: 0 10px;
629
+ --stl-ui-dropdown-button-height: 2rem;
630
+ --stl-ui-dropdown-button-padding-inline: calc(0.75rem - 1px);
630
631
  --stl-ui-dropdown-button-line-height: 100%;
631
632
  --stl-ui-dropdown-button-font-weight: 500;
632
633
 
@@ -657,7 +658,7 @@ a.stl-ui-button {
657
658
  border: 1px solid var(--stl-ui-dropdown-button-border-color);
658
659
  border-radius: var(--stl-ui-dropdown-button-border-radius);
659
660
  height: var(--stl-ui-dropdown-button-height);
660
- padding: var(--stl-ui-dropdown-button-padding);
661
+ padding-inline: var(--stl-ui-dropdown-button-padding-inline);
661
662
  line-height: var(--stl-ui-dropdown-button-line-height);
662
663
  font-weight: var(--stl-ui-dropdown-button-font-weight);
663
664
  cursor: pointer;
@@ -1366,6 +1367,8 @@ a.stl-ui-button {
1366
1367
 
1367
1368
  --stldocs-content-width: 720px;
1368
1369
  --stldocs-content-padding: 16px;
1370
+ --stldocs-content-padding-inline: var(--stldocs-content-padding);
1371
+ --stldocs-content-padding-block: var(--stldocs-content-padding);
1369
1372
 
1370
1373
  --stldocs-color-http-get-bg: var(--stl-color-green-muted-background);
1371
1374
  --stldocs-color-http-get: var(--stl-color-green-foreground);
@@ -1390,7 +1393,6 @@ a.stl-ui-button {
1390
1393
  /* Design System Defaults */
1391
1394
  .stldocs-root {
1392
1395
  font-family: var(--stl-typography-font);
1393
- background-color: var(--stl-color-background);
1394
1396
  color: var(--stl-color-foreground);
1395
1397
  letter-spacing: -0.01em;
1396
1398
 
@@ -1904,7 +1906,7 @@ a.stl-ui-button {
1904
1906
  flex-direction: column;
1905
1907
 
1906
1908
  .stldocs-resource-content-group-model-title {
1907
- padding-top: var(--stldocs-content-padding);
1909
+ padding-top: var(--stldocs-content-padding-block);
1908
1910
  color: var(--stl-color-foreground-muted);
1909
1911
  font-weight: normal;
1910
1912
  font-size: 1rem;
@@ -1931,7 +1933,7 @@ a.stl-ui-button {
1931
1933
  /* Overview page method summary */
1932
1934
  .stldocs-root .stldocs-overview .stldocs-method-summary,
1933
1935
  .stldocs-root .stldocs-overview .stldocs-method {
1934
- padding: var(--stldocs-content-padding) 0;
1936
+ padding: var(--stldocs-content-padding-block) 0;
1935
1937
 
1936
1938
  .stldocs-method-header {
1937
1939
  display: flex;
@@ -1962,7 +1964,7 @@ a.stl-ui-button {
1962
1964
  height: 1.7rem;
1963
1965
  overflow-y: hidden;
1964
1966
  line-height: 1.7rem;
1965
- padding-bottom: var(--stldocs-content-padding);
1967
+ padding-bottom: var(--stldocs-content-padding-block);
1966
1968
 
1967
1969
  .stldocs-content > * {
1968
1970
  white-space: nowrap;
@@ -2252,7 +2254,8 @@ a.stl-ui-button {
2252
2254
  }
2253
2255
 
2254
2256
  .stldocs-method-header {
2255
- padding: var(--stldocs-title-padding-y) var(--stldocs-content-padding) var(--stldocs-content-padding);
2257
+ padding: var(--stldocs-title-padding-y) var(--stldocs-content-padding-inline)
2258
+ var(--stldocs-content-padding-block);
2256
2259
 
2257
2260
  .stldocs-method-title {
2258
2261
  font-size: var(--stl-typography-text-h1);
@@ -2270,7 +2273,7 @@ a.stl-ui-button {
2270
2273
 
2271
2274
  .stldocs-method-description {
2272
2275
  grid-area: 1 / 1 / 2 / 2;
2273
- padding-bottom: var(--stldocs-content-padding);
2276
+ padding-bottom: var(--stldocs-content-padding-block);
2274
2277
 
2275
2278
  code {
2276
2279
  line-height: 150%;
@@ -2301,7 +2304,7 @@ a.stl-ui-button {
2301
2304
  }
2302
2305
 
2303
2306
  .stldocs-method-info {
2304
- padding: var(--stldocs-content-padding) 0;
2307
+ padding: var(--stldocs-content-padding-block) 0;
2305
2308
  grid-area: 3 / 1 / 4 / 2;
2306
2309
  display: flex;
2307
2310
  gap: 2rem;
@@ -2343,7 +2346,7 @@ a.stl-ui-button {
2343
2346
  gap: 2rem;
2344
2347
  grid-template-columns: minmax(0, 1fr);
2345
2348
  grid-template-rows: repeat(4, auto);
2346
- padding: var(--stldocs-content-padding) 0;
2349
+ padding: var(--stldocs-content-padding-block) 0;
2347
2350
 
2348
2351
  .stldocs-method-description p {
2349
2352
  color: var(--stl-color-foreground-reduced);
@@ -2760,11 +2763,11 @@ a.stl-ui-button {
2760
2763
  /* Don't put expanders in the margin on mobile */
2761
2764
  @media (max-width: 50rem) {
2762
2765
  .stldocs-root .stldocs-method-body {
2763
- padding: 1rem var(--stldocs-content-padding) !important;
2766
+ padding: 1rem var(--stldocs-content-padding-inline) !important;
2764
2767
  }
2765
2768
 
2766
2769
  .stldocs-root .stldocs-resource .stldocs-resource-content {
2767
- padding: 0 var(--stldocs-content-padding) !important;
2770
+ padding: 0 var(--stldocs-content-padding-inline) !important;
2768
2771
 
2769
2772
  .stldocs-resource-content-properties {
2770
2773
  margin-left: 0 !important;
@@ -2856,14 +2859,17 @@ a.stl-ui-button {
2856
2859
  }
2857
2860
  }
2858
2861
 
2862
+ :root {
2863
+ --stldocs-sidebar-item-padding-inline: 0.75rem;
2864
+ --stldocs-sidebar-item-padding-block: 0.375rem;
2865
+ --stldocs-sidebar-indent: 0.75rem;
2866
+ }
2867
+
2859
2868
  .stldocs-sidebar {
2860
2869
  font-family: var(--stl-typography-font);
2861
2870
  font-size: var(--stl-typography-scale-sm);
2862
2871
  /* Remove background color from stldocs-root reset. */
2863
2872
  background-color: transparent;
2864
- --stldocs-sidebar-item-padding-inline: 12px;
2865
- --stldocs-sidebar-item-padding-block: 6px;
2866
- --stldocs-sidebar-indent: 12px;
2867
2873
 
2868
2874
  ul,
2869
2875
  summary {
package/dist/utils.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { c as ID, h as Resource, s as HttpAST, v as Spec } from "./index-Cl6Gny0o.js";
1
+ import { c as ID, h as Resource, s as HttpAST, v as Spec } from "./index-BQHpxMul.js";
2
2
 
3
3
  //#region src/utils.d.ts
4
4
  declare namespace utils_d_exports {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stainless-api/docs-ui",
3
3
  "private": false,
4
- "version": "0.1.0-beta.78",
4
+ "version": "0.1.0-beta.79",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -18,7 +18,7 @@
18
18
  "clsx": "^2.1.1",
19
19
  "htmlparser2": "^10.1.0",
20
20
  "lucide-react": "^0.574.0",
21
- "@stainless-api/ui-primitives": "0.1.0-beta.48"
21
+ "@stainless-api/ui-primitives": "0.1.0-beta.49"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/node": "24.10.13",
@@ -30,7 +30,7 @@
30
30
  "tsdown": "^0.20.3",
31
31
  "typescript": "5.9.3",
32
32
  "@stainless/eslint-config": "0.1.0-beta.1",
33
- "@stainless/sdk-json": "^0.1.0-beta.7"
33
+ "@stainless/sdk-json": "^0.1.0-beta.8"
34
34
  },
35
35
  "exports": {
36
36
  ".": {