@stainless-api/docs-ui 0.1.0-beta.84 → 0.1.0-beta.86
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/breadcrumbs-DC2_z7nh.d.ts +25 -0
- package/dist/chunk-pbuEa-1d.js +13 -0
- package/dist/component-generics-DYxBWv1v.js +42 -0
- package/dist/component-generics-q-ujwX4P.d.ts +30 -0
- package/dist/components/MaskedInput.d.ts +1 -1
- package/dist/components/MaskedInput.js +2 -4
- package/dist/components/breadcrumbs.d.ts +1 -24
- package/dist/components/breadcrumbs.js +2 -4
- package/dist/components/icons.js +4 -6
- package/dist/components/index.d.ts +10 -16
- package/dist/components/index.js +3 -5
- package/dist/components/method.d.ts +1 -58
- package/dist/components/method.js +12 -14
- package/dist/components/overview.d.ts +1 -38
- package/dist/components/overview.js +6 -5
- package/dist/components/primitives.d.ts +1 -106
- package/dist/components/primitives.js +5 -7
- package/dist/components/properties.d.ts +1 -53
- package/dist/components/properties.js +17 -19
- package/dist/components/sdk-sidebar.d.ts +1 -14
- package/dist/components/sdk-sidebar.js +2 -4
- package/dist/components/sdk.d.ts +1 -127
- package/dist/components/sdk.js +17 -22
- package/dist/components/snippets.d.ts +1 -70
- package/dist/components/snippets.js +16 -16
- package/dist/components/stl-sidebar.d.ts +1 -57
- package/dist/components/stl-sidebar.js +2 -4
- package/dist/contexts/component-generics.d.ts +1 -29
- package/dist/contexts/component-generics.js +2 -33
- package/dist/contexts/component-types.d.ts +3 -5
- package/dist/contexts/component.d.ts +4 -5
- package/dist/contexts/component.js +2 -5
- package/dist/contexts/docs.d.ts +1 -61
- package/dist/contexts/docs.js +1 -3
- package/dist/contexts/index.d.ts +6 -13
- package/dist/contexts/index.js +3 -6
- package/dist/contexts/markdown.d.ts +1 -21
- package/dist/contexts/markdown.js +5 -7
- package/dist/contexts/navigation.d.ts +1 -28
- package/dist/contexts/navigation.js +9 -12
- package/dist/contexts/use-components.d.ts +1 -2
- package/dist/contexts/use-components.js +2 -5
- package/dist/docs-DSjdvCh5.d.ts +62 -0
- package/dist/index-HcWFtzlc.d.ts +464 -0
- package/dist/index.d.ts +2 -4
- package/dist/index.js +2 -3
- package/dist/languages/cli.d.ts +2 -38
- package/dist/languages/cli.js +7 -9
- package/dist/languages/csharp.d.ts +2 -42
- package/dist/languages/csharp.js +5 -7
- package/dist/languages/go.d.ts +2 -40
- package/dist/languages/go.js +3 -5
- package/dist/languages/http.d.ts +2 -46
- package/dist/languages/http.js +7 -9
- package/dist/languages/index.d.ts +2 -51
- package/dist/languages/index.js +3 -5
- package/dist/languages/java.d.ts +2 -43
- package/dist/languages/java.js +3 -5
- package/dist/languages/php.d.ts +2 -40
- package/dist/languages/php.js +3 -5
- package/dist/languages/python.d.ts +2 -40
- package/dist/languages/python.js +4 -6
- package/dist/languages/ruby.d.ts +2 -40
- package/dist/languages/ruby.js +3 -5
- package/dist/languages/terraform.d.ts +2 -48
- package/dist/languages/terraform.js +25 -10
- package/dist/languages/typescript.d.ts +2 -40
- package/dist/languages/typescript.js +5 -7
- package/dist/markdown/index.d.ts +1 -1
- package/dist/markdown/index.js +10 -9
- package/dist/markdown/md.js +1 -3
- package/dist/markdown/printer.d.ts +2 -2
- package/dist/markdown/printer.js +3 -5
- package/dist/markdown/utils.d.ts +3 -3
- package/dist/markdown/utils.js +2 -4
- package/dist/markdown-ClGRntP5.d.ts +22 -0
- package/dist/method-CNRMOUfn.d.ts +59 -0
- package/dist/navigation-C9ckAfpV.d.ts +29 -0
- package/dist/overview-CDvh184n.d.ts +39 -0
- package/dist/primitives-DFE_4MvV.d.ts +107 -0
- package/dist/properties-CVwrzWVa.d.ts +54 -0
- package/dist/routing-yTSG7nWM.d.ts +61 -0
- package/dist/routing.d.ts +2 -61
- package/dist/routing.js +2 -4
- package/dist/sdk-BkW3MDco.d.ts +128 -0
- package/dist/sdk-sidebar-BpDlOMat.d.ts +15 -0
- package/dist/spec.d.ts +4 -4
- package/dist/spec.js +1 -3
- package/dist/stl-sidebar-CKrR5ZGs.d.ts +58 -0
- package/dist/style.js +1 -2
- package/dist/styles/main.css +320 -349
- package/dist/styles/primitives.css +133 -185
- package/dist/styles/resets.css +7 -14
- package/dist/styles/search.css +91 -96
- package/dist/styles/sidebar.css +44 -71
- package/dist/styles/variables.css +0 -5
- package/dist/styles.css +995 -1261
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +2 -4
- package/package.json +7 -6
- package/dist/chunk-BYypO7fO.js +0 -18
- package/dist/styles/main.js +0 -0
- package/dist/styles/primitives.js +0 -0
- package/dist/styles/resets.js +0 -0
- package/dist/styles/search.js +0 -0
- package/dist/styles/sidebar.js +0 -0
- package/dist/styles/variables.js +0 -0
- package/dist/styles.mjs +0 -1
- package/dist/use-strict-context-L0c8JKg4.js +0 -16
- /package/dist/{index-pvh-w1xa.d.ts → index-DFr9Mesr.d.ts} +0 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { v as Spec } from "./index-DFr9Mesr.js";
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/breadcrumbs.d.ts
|
|
5
|
+
type Breadcrumb = {
|
|
6
|
+
title: string;
|
|
7
|
+
href: string;
|
|
8
|
+
};
|
|
9
|
+
type BreadcrumbConfig = {
|
|
10
|
+
includeCurrentPage?: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare function generateApiBreadcrumbs(fullPath: string, spec: any, basePath: string): Breadcrumb[] | null;
|
|
13
|
+
declare function SDKBreadcrumbs({
|
|
14
|
+
spec,
|
|
15
|
+
currentPath,
|
|
16
|
+
basePath,
|
|
17
|
+
config
|
|
18
|
+
}: {
|
|
19
|
+
spec: Spec;
|
|
20
|
+
currentPath: string;
|
|
21
|
+
basePath?: string;
|
|
22
|
+
config?: BreadcrumbConfig | null;
|
|
23
|
+
}): react_jsx_runtime0.JSX.Element | null;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { generateApiBreadcrumbs as n, SDKBreadcrumbs as t };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __exportAll = (all, no_symbols) => {
|
|
4
|
+
let target = {};
|
|
5
|
+
for (var name in all) __defProp(target, name, {
|
|
6
|
+
get: all[name],
|
|
7
|
+
enumerable: true
|
|
8
|
+
});
|
|
9
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
10
|
+
return target;
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { __exportAll as t };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
//#region src/hooks/use-strict-context.tsx
|
|
4
|
+
function createStrictContext(displayName) {
|
|
5
|
+
const Context = React.createContext(null);
|
|
6
|
+
Context.displayName = displayName;
|
|
7
|
+
function useStrictContext() {
|
|
8
|
+
const context = React.use(Context);
|
|
9
|
+
if (context === null) throw new Error(`use${displayName} must be used within a ${displayName}Provider`);
|
|
10
|
+
return context;
|
|
11
|
+
}
|
|
12
|
+
return [Context.Provider, useStrictContext];
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/contexts/component-generics.tsx
|
|
16
|
+
const [Provider, useComponentContext] = createStrictContext("Component");
|
|
17
|
+
function useComponents() {
|
|
18
|
+
return useComponentContext().components;
|
|
19
|
+
}
|
|
20
|
+
function customizeComponents(defaults, overrides = {}) {
|
|
21
|
+
return {
|
|
22
|
+
components: {
|
|
23
|
+
...defaults.components,
|
|
24
|
+
...overrides.components ?? {}
|
|
25
|
+
},
|
|
26
|
+
language: Object.keys(defaults.language).reduce((acc, key) => {
|
|
27
|
+
acc[key] = {
|
|
28
|
+
...defaults.language[key],
|
|
29
|
+
...overrides.language?.[key] ?? {}
|
|
30
|
+
};
|
|
31
|
+
return acc;
|
|
32
|
+
}, {})
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
function ComponentProvider({ value, children }) {
|
|
36
|
+
return /* @__PURE__ */ jsx(Provider, {
|
|
37
|
+
value,
|
|
38
|
+
children
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
export { useComponents as i, customizeComponents as n, useComponentContext as r, ComponentProvider as t };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/contexts/component-generics.d.ts
|
|
5
|
+
type DeepPartialMap<L> = { [K in keyof L]?: Partial<L[K]> };
|
|
6
|
+
type ComponentsContextType<C, L> = {
|
|
7
|
+
components: C;
|
|
8
|
+
language: L;
|
|
9
|
+
};
|
|
10
|
+
declare const useComponentContext: () => ComponentsContextType<any, any>;
|
|
11
|
+
declare function useComponents<C = unknown>(): C;
|
|
12
|
+
declare function customizeComponents<C, L>(defaults: {
|
|
13
|
+
components: C;
|
|
14
|
+
language: L;
|
|
15
|
+
}, overrides?: {
|
|
16
|
+
components?: Partial<C>;
|
|
17
|
+
language?: DeepPartialMap<L>;
|
|
18
|
+
}): {
|
|
19
|
+
components: C;
|
|
20
|
+
language: L;
|
|
21
|
+
};
|
|
22
|
+
declare function ComponentProvider<C, L>({
|
|
23
|
+
value,
|
|
24
|
+
children
|
|
25
|
+
}: {
|
|
26
|
+
value: ComponentsContextType<C, L>;
|
|
27
|
+
children: React$1.ReactNode;
|
|
28
|
+
}): react_jsx_runtime0.JSX.Element;
|
|
29
|
+
//#endregion
|
|
30
|
+
export { useComponents as a, useComponentContext as i, ComponentsContextType as n, customizeComponents as r, ComponentProvider as t };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import style_default from "../style.js";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
|
|
5
4
|
//#region src/components/MaskedInput.tsx
|
|
6
5
|
const getMaskedParts = (text) => {
|
|
7
6
|
if (!text) return {
|
|
@@ -10,7 +9,7 @@ const getMaskedParts = (text) => {
|
|
|
10
9
|
};
|
|
11
10
|
const percentLength = Math.min(Math.floor(text.length * .3), 8);
|
|
12
11
|
const nonAlphaMatches = [...text.substring(0, percentLength).matchAll(/[^a-zA-Z0-9]/g)];
|
|
13
|
-
let prefixEnd
|
|
12
|
+
let prefixEnd;
|
|
14
13
|
if (nonAlphaMatches.length > 0) prefixEnd = nonAlphaMatches.at(-1).index + 1;
|
|
15
14
|
else prefixEnd = percentLength;
|
|
16
15
|
return {
|
|
@@ -71,6 +70,5 @@ const MaskedInput = function Input({ left, right, defaultValue, value, ref, ...p
|
|
|
71
70
|
]
|
|
72
71
|
});
|
|
73
72
|
};
|
|
74
|
-
|
|
75
73
|
//#endregion
|
|
76
|
-
export { MaskedInput };
|
|
74
|
+
export { MaskedInput };
|
|
@@ -1,25 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
-
|
|
4
|
-
//#region src/components/breadcrumbs.d.ts
|
|
5
|
-
type Breadcrumb = {
|
|
6
|
-
title: string;
|
|
7
|
-
href: string;
|
|
8
|
-
};
|
|
9
|
-
type BreadcrumbConfig = {
|
|
10
|
-
includeCurrentPage?: boolean;
|
|
11
|
-
};
|
|
12
|
-
declare function generateApiBreadcrumbs(fullPath: string, spec: any, basePath: string): Breadcrumb[] | null;
|
|
13
|
-
declare function SDKBreadcrumbs({
|
|
14
|
-
spec,
|
|
15
|
-
currentPath,
|
|
16
|
-
basePath,
|
|
17
|
-
config
|
|
18
|
-
}: {
|
|
19
|
-
spec: Spec;
|
|
20
|
-
currentPath: string;
|
|
21
|
-
basePath?: string;
|
|
22
|
-
config?: BreadcrumbConfig | null;
|
|
23
|
-
}): react_jsx_runtime0.JSX.Element | null;
|
|
24
|
-
//#endregion
|
|
1
|
+
import { n as generateApiBreadcrumbs, t as SDKBreadcrumbs } from "../breadcrumbs-DC2_z7nh.js";
|
|
25
2
|
export { SDKBreadcrumbs, generateApiBreadcrumbs };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import "../
|
|
1
|
+
import "../component-generics-DYxBWv1v.js";
|
|
2
2
|
import style_default from "../style.js";
|
|
3
3
|
import { Languages } from "../routing.js";
|
|
4
4
|
import { Join } from "./primitives.js";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { ChevronRight } from "lucide-react";
|
|
7
|
-
|
|
8
7
|
//#region src/components/breadcrumbs.tsx
|
|
9
8
|
function generateApiBreadcrumbs(fullPath, spec, basePath) {
|
|
10
9
|
const cleanBasePath = basePath.replace(/\/+$/, "");
|
|
@@ -59,6 +58,5 @@ function SDKBreadcrumbs({ spec, currentPath, basePath = "/api", config = { inclu
|
|
|
59
58
|
})
|
|
60
59
|
});
|
|
61
60
|
}
|
|
62
|
-
|
|
63
61
|
//#endregion
|
|
64
|
-
export { SDKBreadcrumbs, generateApiBreadcrumbs };
|
|
62
|
+
export { SDKBreadcrumbs, generateApiBreadcrumbs };
|
package/dist/components/icons.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
|
|
4
3
|
//#region src/components/icons.tsx
|
|
5
4
|
function CSharpIcon({ className }) {
|
|
6
5
|
const id = React$1.useId();
|
|
@@ -921,21 +920,20 @@ function PHPIcon({ className }) {
|
|
|
921
920
|
/* @__PURE__ */ jsx("stop", { stopColor: "#AEB2D5" }),
|
|
922
921
|
/* @__PURE__ */ jsx("stop", {
|
|
923
922
|
offset: ".3",
|
|
924
|
-
|
|
923
|
+
stopColor: "#AEB2D5"
|
|
925
924
|
}),
|
|
926
925
|
/* @__PURE__ */ jsx("stop", {
|
|
927
926
|
offset: ".75",
|
|
928
|
-
|
|
927
|
+
stopColor: "#484C89"
|
|
929
928
|
}),
|
|
930
929
|
/* @__PURE__ */ jsx("stop", {
|
|
931
930
|
offset: "1",
|
|
932
|
-
|
|
931
|
+
stopColor: "#484C89"
|
|
933
932
|
})
|
|
934
933
|
]
|
|
935
934
|
}) })
|
|
936
935
|
]
|
|
937
936
|
});
|
|
938
937
|
}
|
|
939
|
-
|
|
940
938
|
//#endregion
|
|
941
|
-
export { CLIIcon, CSharpIcon, CurlIcon, GoIcon, JavaIcon, KotlinIcon, PHPIcon, PowershellIcon, PythonIcon, RubyIcon, TerraformIcon, TypescriptIcon };
|
|
939
|
+
export { CLIIcon, CSharpIcon, CurlIcon, GoIcon, JavaIcon, KotlinIcon, PHPIcon, PowershellIcon, PythonIcon, RubyIcon, TerraformIcon, TypescriptIcon };
|
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
//#region src/components/index.d.ts
|
|
12
|
-
declare namespace index_d_exports {
|
|
13
|
-
export { Badge, DeclarationParentsContextType, Expander, Input, InputProps, Join, Link, ListView, ListViewProps, Markdown, Method, MethodDescription, MethodDescriptionProps, MethodHeader, MethodHeaderProps, MethodInfo, MethodInfoProps, MethodProps, MethodRoute, MethodRouteProps, MultiSnippets, MultiSnippetsProps, Property, PropertyDescription, PropertyDescriptionProps, PropertyModelContext, PropertyModelContextType, PropertyProps, PropertyTitle, PropertyTitleProps, PropertyToggle, PropertyToggleProps, ReferenceNestingContext, ReferenceNestingContextType, SDKBreadcrumbs, SDKChildren, SDKConstraints, SDKConstraintsProps, SDKDeclaration, SDKExample, SDKIcon, SDKLanguageBlock, SDKMethod, SDKMethodHeader, SDKMethodInfo, SDKMethodInfoContent, SDKMethodNotImplemented, SDKMethodProps, SDKMethodSummary, SDKMethodSummaryProps, SDKModel, SDKModelProps, SDKOverview, SDKOverviewProps, SDKReference, SDKRequestTitle, SDKRequestTitleProps, SDKResource, SDKResourceHeader, SDKResourceProps, SDKRoot, SDKRootProps, SDKSidebar, SDKSidebarProps, SDKSnippetLanguages, SDKSnippetLanguagesType, Snippet, SnippetButtons, SnippetCode, SnippetCodeProps, SnippetContainer, SnippetContainerProps, SnippetFooter, SnippetProps, SnippetRequestContainer, SnippetRequestContainerProps, SnippetResponse, StlSidebar, StlSidebarEntry, StlSidebarGroup, StlSidebarLink, StlSidebarProps, StlSidebarTarget, ToggleButton, ToggleButtonProps, Tooltip, TransformRequestSnippetFn, VirtualExpander, generateApiBreadcrumbs, useDeclarationParents, usePropertyModel, useReferenceNesting, useStreamingResponse };
|
|
14
|
-
}
|
|
15
|
-
//#endregion
|
|
16
|
-
export { Badge, DeclarationParentsContextType, Expander, Input, InputProps, Join, Link, ListView, ListViewProps, Markdown, Method, MethodDescription, MethodDescriptionProps, MethodHeader, MethodHeaderProps, MethodInfo, MethodInfoProps, MethodProps, MethodRoute, MethodRouteProps, MultiSnippets, MultiSnippetsProps, Property, PropertyDescription, PropertyDescriptionProps, PropertyModelContext, PropertyModelContextType, PropertyProps, PropertyTitle, PropertyTitleProps, PropertyToggle, PropertyToggleProps, ReferenceNestingContext, ReferenceNestingContextType, SDKBreadcrumbs, SDKChildren, SDKConstraints, SDKConstraintsProps, SDKDeclaration, SDKExample, SDKIcon, SDKLanguageBlock, SDKMethod, SDKMethodHeader, SDKMethodInfo, SDKMethodInfoContent, SDKMethodNotImplemented, SDKMethodProps, SDKMethodSummary, SDKMethodSummaryProps, SDKModel, SDKModelProps, SDKOverview, SDKOverviewProps, SDKReference, SDKRequestTitle, SDKRequestTitleProps, SDKResource, SDKResourceHeader, SDKResourceProps, SDKRoot, SDKRootProps, SDKSidebar, SDKSidebarProps, SDKSnippetLanguages, SDKSnippetLanguagesType, Snippet, SnippetButtons, SnippetCode, SnippetCodeProps, SnippetContainer, SnippetContainerProps, SnippetFooter, SnippetProps, SnippetRequestContainer, SnippetRequestContainerProps, SnippetResponse, StlSidebar, StlSidebarEntry, StlSidebarGroup, StlSidebarLink, StlSidebarProps, StlSidebarTarget, ToggleButton, ToggleButtonProps, Tooltip, TransformRequestSnippetFn, VirtualExpander, generateApiBreadcrumbs, index_d_exports as t, useDeclarationParents, usePropertyModel, useReferenceNesting, useStreamingResponse };
|
|
1
|
+
import { a as Join, c as ListViewProps, d as ToggleButtonProps, f as Tooltip, i as InputProps, l as Markdown, n as Expander, o as Link, p as VirtualExpander, r as Input, s as ListView, t as Badge, u as ToggleButton } from "../primitives-DFE_4MvV.js";
|
|
2
|
+
import { n as generateApiBreadcrumbs, t as SDKBreadcrumbs } from "../breadcrumbs-DC2_z7nh.js";
|
|
3
|
+
import { a as MethodHeaderProps, c as MethodProps, i as MethodHeader, l as MethodRoute, n as MethodDescription, o as MethodInfo, r as MethodDescriptionProps, s as MethodInfoProps, t as Method, u as MethodRouteProps } from "../method-CNRMOUfn.js";
|
|
4
|
+
import { a as PropertyTitle, c as PropertyToggleProps, i as PropertyProps, n as PropertyDescription, o as PropertyTitleProps, r as PropertyDescriptionProps, s as PropertyToggle, t as Property } from "../properties-CVwrzWVa.js";
|
|
5
|
+
import { A as useStreamingResponse, C as SDKRequestTitleProps, D as useDeclarationParents, E as TransformRequestSnippetFn, O as usePropertyModel, S as SDKRequestTitle, T as SDKSnippetLanguagesType, _ as SDKMethodNotImplemented, a as ReferenceNestingContextType, b as SDKModelProps, c as SDKConstraintsProps, d as SDKIcon, f as SDKLanguageBlock, g as SDKMethodInfoContent, h as SDKMethodInfo, i as ReferenceNestingContext, k as useReferenceNesting, l as SDKDeclaration, m as SDKMethodHeader, n as PropertyModelContext, o as SDKChildren, p as SDKMethod, r as PropertyModelContextType, s as SDKConstraints, t as DeclarationParentsContextType, u as SDKExample, v as SDKMethodProps, w as SDKSnippetLanguages, x as SDKReference, y as SDKModel } from "../sdk-BkW3MDco.js";
|
|
6
|
+
import { a as SnippetButtons, c as SnippetContainer, d as SnippetProps, f as SnippetRequestContainer, i as Snippet, l as SnippetContainerProps, m as SnippetResponse, n as MultiSnippets, o as SnippetCode, p as SnippetRequestContainerProps, r as MultiSnippetsProps, s as SnippetCodeProps, u as SnippetFooter } from "../index-HcWFtzlc.js";
|
|
7
|
+
import { a as SDKResource, c as SDKRoot, i as SDKOverviewProps, l as SDKRootProps, n as SDKMethodSummaryProps, o as SDKResourceHeader, r as SDKOverview, s as SDKResourceProps, t as SDKMethodSummary } from "../overview-CDvh184n.js";
|
|
8
|
+
import { n as SDKSidebarProps, t as SDKSidebar } from "../sdk-sidebar-BpDlOMat.js";
|
|
9
|
+
import { a as StlSidebarProps, i as StlSidebarLink, n as StlSidebarEntry, o as StlSidebarTarget, r as StlSidebarGroup, t as StlSidebar } from "../stl-sidebar-CKrR5ZGs.js";
|
|
10
|
+
export { Badge, DeclarationParentsContextType, Expander, Input, InputProps, Join, Link, ListView, ListViewProps, Markdown, Method, MethodDescription, MethodDescriptionProps, MethodHeader, MethodHeaderProps, MethodInfo, MethodInfoProps, MethodProps, MethodRoute, MethodRouteProps, MultiSnippets, MultiSnippetsProps, Property, PropertyDescription, PropertyDescriptionProps, PropertyModelContext, PropertyModelContextType, PropertyProps, PropertyTitle, PropertyTitleProps, PropertyToggle, PropertyToggleProps, ReferenceNestingContext, ReferenceNestingContextType, SDKBreadcrumbs, SDKChildren, SDKConstraints, SDKConstraintsProps, SDKDeclaration, SDKExample, SDKIcon, SDKLanguageBlock, SDKMethod, SDKMethodHeader, SDKMethodInfo, SDKMethodInfoContent, SDKMethodNotImplemented, SDKMethodProps, SDKMethodSummary, SDKMethodSummaryProps, SDKModel, SDKModelProps, SDKOverview, SDKOverviewProps, SDKReference, SDKRequestTitle, SDKRequestTitleProps, SDKResource, SDKResourceHeader, SDKResourceProps, SDKRoot, SDKRootProps, SDKSidebar, SDKSidebarProps, SDKSnippetLanguages, SDKSnippetLanguagesType, Snippet, SnippetButtons, SnippetCode, SnippetCodeProps, SnippetContainer, SnippetContainerProps, SnippetFooter, SnippetProps, SnippetRequestContainer, SnippetRequestContainerProps, SnippetResponse, StlSidebar, StlSidebarEntry, StlSidebarGroup, StlSidebarLink, StlSidebarProps, StlSidebarTarget, ToggleButton, ToggleButtonProps, Tooltip, TransformRequestSnippetFn, VirtualExpander, generateApiBreadcrumbs, useDeclarationParents, usePropertyModel, useReferenceNesting, useStreamingResponse };
|
package/dist/components/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as __exportAll } from "../chunk-
|
|
2
|
-
import "../
|
|
1
|
+
import { t as __exportAll } from "../chunk-pbuEa-1d.js";
|
|
2
|
+
import "../component-generics-DYxBWv1v.js";
|
|
3
3
|
import { Property, PropertyDescription, PropertyTitle, PropertyToggle } from "./properties.js";
|
|
4
4
|
import { Method, MethodDescription, MethodHeader, MethodInfo, MethodRoute } from "./method.js";
|
|
5
5
|
import { Badge, Expander, Input, Join, Link, ListView, Markdown, ToggleButton, Tooltip, VirtualExpander } from "./primitives.js";
|
|
@@ -9,7 +9,6 @@ import { SDKMethodSummary, SDKOverview, SDKResource, SDKResourceHeader, SDKRoot
|
|
|
9
9
|
import { SDKBreadcrumbs, generateApiBreadcrumbs } from "./breadcrumbs.js";
|
|
10
10
|
import { StlSidebar } from "./stl-sidebar.js";
|
|
11
11
|
import { SDKSidebar } from "./sdk-sidebar.js";
|
|
12
|
-
|
|
13
12
|
//#region src/components/index.ts
|
|
14
13
|
var components_exports = /* @__PURE__ */ __exportAll({
|
|
15
14
|
Badge: () => Badge,
|
|
@@ -70,6 +69,5 @@ var components_exports = /* @__PURE__ */ __exportAll({
|
|
|
70
69
|
useReferenceNesting: () => useReferenceNesting,
|
|
71
70
|
useStreamingResponse: () => useStreamingResponse
|
|
72
71
|
});
|
|
73
|
-
|
|
74
72
|
//#endregion
|
|
75
|
-
export { Badge, Expander, Input, Join, Link, ListView, Markdown, Method, MethodDescription, MethodHeader, MethodInfo, MethodRoute, MultiSnippets, Property, PropertyDescription, PropertyModelContext, PropertyTitle, PropertyToggle, ReferenceNestingContext, SDKBreadcrumbs, SDKChildren, SDKConstraints, SDKDeclaration, SDKExample, SDKIcon, SDKLanguageBlock, SDKMethod, SDKMethodHeader, SDKMethodInfo, SDKMethodInfoContent, SDKMethodNotImplemented, SDKMethodSummary, SDKModel, SDKOverview, SDKReference, SDKRequestTitle, SDKResource, SDKResourceHeader, SDKRoot, SDKSidebar, SDKSnippetLanguages, Snippet, SnippetButtons, SnippetCode, SnippetContainer, SnippetFooter, SnippetRequestContainer, SnippetResponse, StlSidebar, ToggleButton, Tooltip, VirtualExpander, generateApiBreadcrumbs, components_exports as t, useDeclarationParents, usePropertyModel, useReferenceNesting, useStreamingResponse };
|
|
73
|
+
export { Badge, Expander, Input, Join, Link, ListView, Markdown, Method, MethodDescription, MethodHeader, MethodInfo, MethodRoute, MultiSnippets, Property, PropertyDescription, PropertyModelContext, PropertyTitle, PropertyToggle, ReferenceNestingContext, SDKBreadcrumbs, SDKChildren, SDKConstraints, SDKDeclaration, SDKExample, SDKIcon, SDKLanguageBlock, SDKMethod, SDKMethodHeader, SDKMethodInfo, SDKMethodInfoContent, SDKMethodNotImplemented, SDKMethodSummary, SDKModel, SDKOverview, SDKReference, SDKRequestTitle, SDKResource, SDKResourceHeader, SDKRoot, SDKSidebar, SDKSnippetLanguages, Snippet, SnippetButtons, SnippetCode, SnippetContainer, SnippetFooter, SnippetRequestContainer, SnippetResponse, StlSidebar, ToggleButton, Tooltip, VirtualExpander, generateApiBreadcrumbs, components_exports as t, useDeclarationParents, usePropertyModel, useReferenceNesting, useStreamingResponse };
|
|
@@ -1,59 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ReactNode } from "react";
|
|
3
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
-
|
|
5
|
-
//#region src/components/method.d.ts
|
|
6
|
-
type MethodHeaderProps = {
|
|
7
|
-
title: ReactNode;
|
|
8
|
-
level?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5';
|
|
9
|
-
signature?: ReactNode;
|
|
10
|
-
badges?: ReactNode;
|
|
11
|
-
children?: ReactNode;
|
|
12
|
-
};
|
|
13
|
-
declare function MethodHeader({
|
|
14
|
-
title,
|
|
15
|
-
badges,
|
|
16
|
-
signature,
|
|
17
|
-
children,
|
|
18
|
-
level
|
|
19
|
-
}: MethodHeaderProps): react_jsx_runtime0.JSX.Element;
|
|
20
|
-
type MethodRouteProps = {
|
|
21
|
-
httpMethod?: string;
|
|
22
|
-
endpoint?: string | ReactNode;
|
|
23
|
-
iconOnly?: boolean;
|
|
24
|
-
};
|
|
25
|
-
declare function MethodRoute({
|
|
26
|
-
httpMethod,
|
|
27
|
-
endpoint,
|
|
28
|
-
iconOnly
|
|
29
|
-
}: MethodRouteProps): react_jsx_runtime0.JSX.Element;
|
|
30
|
-
type MethodDescriptionProps = {
|
|
31
|
-
description?: string;
|
|
32
|
-
};
|
|
33
|
-
declare function MethodDescription({
|
|
34
|
-
description
|
|
35
|
-
}: MethodDescriptionProps): react_jsx_runtime0.JSX.Element | undefined;
|
|
36
|
-
type MethodInfoProps = {
|
|
37
|
-
children?: ReactNode;
|
|
38
|
-
parameters?: ReactNode;
|
|
39
|
-
returns?: ReactNode;
|
|
40
|
-
};
|
|
41
|
-
declare function MethodInfo({
|
|
42
|
-
children,
|
|
43
|
-
parameters,
|
|
44
|
-
returns
|
|
45
|
-
}: MethodInfoProps): react_jsx_runtime0.JSX.Element;
|
|
46
|
-
type MethodProps = {
|
|
47
|
-
id?: string;
|
|
48
|
-
header?: ReactNode;
|
|
49
|
-
children?: ReactNode;
|
|
50
|
-
} & React$1.HTMLProps<HTMLDivElement>;
|
|
51
|
-
declare function Method({
|
|
52
|
-
id,
|
|
53
|
-
header,
|
|
54
|
-
children,
|
|
55
|
-
className,
|
|
56
|
-
...props
|
|
57
|
-
}: MethodProps): react_jsx_runtime0.JSX.Element;
|
|
58
|
-
//#endregion
|
|
1
|
+
import { a as MethodHeaderProps, c as MethodProps, i as MethodHeader, l as MethodRoute, n as MethodDescription, o as MethodInfo, r as MethodDescriptionProps, s as MethodInfoProps, t as Method, u as MethodRouteProps } from "../method-CNRMOUfn.js";
|
|
59
2
|
export { Method, MethodDescription, MethodDescriptionProps, MethodHeader, MethodHeaderProps, MethodInfo, MethodInfoProps, MethodProps, MethodRoute, MethodRouteProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../
|
|
1
|
+
import "../component-generics-DYxBWv1v.js";
|
|
2
2
|
import { useComponents } from "../contexts/use-components.js";
|
|
3
3
|
import style_default from "../style.js";
|
|
4
4
|
import { PropertyToggle } from "./properties.js";
|
|
@@ -7,7 +7,6 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
7
7
|
import clsx from "clsx";
|
|
8
8
|
import { Badge, getHttpMethod } from "@stainless-api/ui-primitives";
|
|
9
9
|
import { FunctionIcon } from "@stainless-api/ui-primitives/icons";
|
|
10
|
-
|
|
11
10
|
//#region src/components/method.tsx
|
|
12
11
|
function MethodHeader({ title, badges, signature, children, level }) {
|
|
13
12
|
const Heading = level ?? "h5";
|
|
@@ -18,10 +17,10 @@ function MethodHeader({ title, badges, signature, children, level }) {
|
|
|
18
17
|
className: style_default.MethodTitle,
|
|
19
18
|
children: title
|
|
20
19
|
}),
|
|
21
|
-
badges
|
|
20
|
+
badges ? /* @__PURE__ */ jsx("div", {
|
|
22
21
|
className: style_default.MethodBadges,
|
|
23
22
|
children: badges
|
|
24
|
-
}),
|
|
23
|
+
}) : null,
|
|
25
24
|
signature,
|
|
26
25
|
children
|
|
27
26
|
]
|
|
@@ -40,10 +39,10 @@ function MethodRoute({ httpMethod, endpoint, iconOnly }) {
|
|
|
40
39
|
icon: /* @__PURE__ */ jsx(FunctionIcon, {}),
|
|
41
40
|
intent: "info",
|
|
42
41
|
children: !iconOnly && "Function"
|
|
43
|
-
}), endpoint
|
|
42
|
+
}), endpoint ? /* @__PURE__ */ jsx("span", {
|
|
44
43
|
className: style_default.MethodRouteEndpoint,
|
|
45
44
|
children: endpoint
|
|
46
|
-
})]
|
|
45
|
+
}) : null]
|
|
47
46
|
});
|
|
48
47
|
}
|
|
49
48
|
function MethodDescription({ description }) {
|
|
@@ -57,26 +56,26 @@ function MethodInfo({ children, parameters, returns }) {
|
|
|
57
56
|
return /* @__PURE__ */ jsxs("div", {
|
|
58
57
|
className: style_default.MethodInfo,
|
|
59
58
|
children: [
|
|
60
|
-
children
|
|
59
|
+
children ? /* @__PURE__ */ jsx("div", {
|
|
61
60
|
className: style_default.MethodContent,
|
|
62
61
|
children
|
|
63
|
-
}),
|
|
64
|
-
parameters
|
|
62
|
+
}) : null,
|
|
63
|
+
parameters ? /* @__PURE__ */ jsxs("div", {
|
|
65
64
|
className: style_default.MethodInfoSection,
|
|
66
65
|
children: [/* @__PURE__ */ jsxs("h5", { children: ["Parameters", /* @__PURE__ */ jsx(PropertyToggle, { target: "parameters" })] }), /* @__PURE__ */ jsx("div", {
|
|
67
66
|
className: style_default.MethodParameters,
|
|
68
67
|
"data-stldocs-property-group": "parameters",
|
|
69
68
|
children: parameters
|
|
70
69
|
})]
|
|
71
|
-
}),
|
|
72
|
-
returns
|
|
70
|
+
}) : null,
|
|
71
|
+
returns ? /* @__PURE__ */ jsxs("div", {
|
|
73
72
|
className: style_default.MethodInfoSection,
|
|
74
73
|
children: [/* @__PURE__ */ jsxs("h5", { children: ["Returns", /* @__PURE__ */ jsx(PropertyToggle, { target: "returns" })] }), /* @__PURE__ */ jsx("div", {
|
|
75
74
|
className: style_default.MethodReturns,
|
|
76
75
|
"data-stldocs-property-group": "returns",
|
|
77
76
|
children: returns
|
|
78
77
|
})]
|
|
79
|
-
})
|
|
78
|
+
}) : null
|
|
80
79
|
]
|
|
81
80
|
});
|
|
82
81
|
}
|
|
@@ -92,6 +91,5 @@ function Method({ id, header, children, className, ...props }) {
|
|
|
92
91
|
})]
|
|
93
92
|
});
|
|
94
93
|
}
|
|
95
|
-
|
|
96
94
|
//#endregion
|
|
97
|
-
export { Method, MethodDescription, MethodHeader, MethodInfo, MethodRoute };
|
|
95
|
+
export { Method, MethodDescription, MethodHeader, MethodInfo, MethodRoute };
|
|
@@ -1,39 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
-
|
|
4
|
-
//#region src/components/overview.d.ts
|
|
5
|
-
type SDKResourceProps = {
|
|
6
|
-
resource: Resource;
|
|
7
|
-
parents?: Resource[];
|
|
8
|
-
};
|
|
9
|
-
declare function SDKResourceHeader({
|
|
10
|
-
resource,
|
|
11
|
-
parents
|
|
12
|
-
}: SDKResourceProps): react_jsx_runtime0.JSX.Element | null;
|
|
13
|
-
type SDKMethodSummaryProps = {
|
|
14
|
-
method: Method;
|
|
15
|
-
};
|
|
16
|
-
declare function SDKMethodSummary({
|
|
17
|
-
method
|
|
18
|
-
}: SDKMethodSummaryProps): react_jsx_runtime0.JSX.Element;
|
|
19
|
-
declare function SDKResource({
|
|
20
|
-
resource,
|
|
21
|
-
parents,
|
|
22
|
-
showModels
|
|
23
|
-
}: SDKResourceProps & {
|
|
24
|
-
showModels?: boolean;
|
|
25
|
-
}): react_jsx_runtime0.JSX.Element;
|
|
26
|
-
type SDKOverviewProps = {
|
|
27
|
-
resource: Resource;
|
|
28
|
-
};
|
|
29
|
-
declare function SDKOverview({
|
|
30
|
-
resource
|
|
31
|
-
}: SDKOverviewProps): react_jsx_runtime0.JSX.Element;
|
|
32
|
-
type SDKRootProps = {
|
|
33
|
-
stainlessPath: string;
|
|
34
|
-
};
|
|
35
|
-
declare function SDKRoot({
|
|
36
|
-
stainlessPath
|
|
37
|
-
}: SDKRootProps): react_jsx_runtime0.JSX.Element | null;
|
|
38
|
-
//#endregion
|
|
1
|
+
import { a as SDKResource, c as SDKRoot, i as SDKOverviewProps, l as SDKRootProps, n as SDKMethodSummaryProps, o as SDKResourceHeader, r as SDKOverview, s as SDKResourceProps, t as SDKMethodSummary } from "../overview-CDvh184n.js";
|
|
39
2
|
export { SDKMethodSummary, SDKMethodSummaryProps, SDKOverview, SDKOverviewProps, SDKResource, SDKResourceHeader, SDKResourceProps, SDKRoot, SDKRootProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useDeclaration, useLanguage, useSpec } from "../contexts/docs.js";
|
|
2
|
-
import "../
|
|
2
|
+
import "../component-generics-DYxBWv1v.js";
|
|
3
3
|
import { useLanguageComponents } from "../contexts/index.js";
|
|
4
4
|
import { useComponents } from "../contexts/use-components.js";
|
|
5
5
|
import style_default from "../style.js";
|
|
@@ -10,7 +10,6 @@ import { flatResources, getResourceFromSpec } from "../utils.js";
|
|
|
10
10
|
import * as React$1 from "react";
|
|
11
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
import { ChevronRight } from "lucide-react";
|
|
13
|
-
|
|
14
13
|
//#region src/components/overview.tsx
|
|
15
14
|
function SDKResourceHeader({ resource, parents }) {
|
|
16
15
|
const segments = parents?.map((parent, index) => /* @__PURE__ */ jsxs("span", {
|
|
@@ -64,6 +63,10 @@ function SDKResource({ resource, parents, showModels }) {
|
|
|
64
63
|
const spec = useSpec();
|
|
65
64
|
const methods = Object.values(resource.methods).filter((method) => spec?.decls?.[language]?.[method.stainlessPath]);
|
|
66
65
|
const models = Object.values(resource.models).filter((model) => spec?.decls?.[language]?.[`${model.stainlessPath} > (schema)`]);
|
|
66
|
+
if (Lang.Resource) return /* @__PURE__ */ jsx(Lang.Resource, {
|
|
67
|
+
resource,
|
|
68
|
+
parents
|
|
69
|
+
});
|
|
67
70
|
return /* @__PURE__ */ jsx("div", {
|
|
68
71
|
className: style_default.Resource,
|
|
69
72
|
"data-stl-resource-language": language,
|
|
@@ -74,7 +77,6 @@ function SDKResource({ resource, parents, showModels }) {
|
|
|
74
77
|
resource,
|
|
75
78
|
parents
|
|
76
79
|
}),
|
|
77
|
-
Lang.Resource && /* @__PURE__ */ jsx(Lang.Resource, { resource }),
|
|
78
80
|
methods.length > 0 && /* @__PURE__ */ jsx("div", {
|
|
79
81
|
className: style_default.ResourceContentGroup,
|
|
80
82
|
children: methods.map((method) => /* @__PURE__ */ jsx("div", {
|
|
@@ -134,6 +136,5 @@ function SDKRoot({ stainlessPath }) {
|
|
|
134
136
|
children: /* @__PURE__ */ jsx(Docs.SDKOverview, { resource })
|
|
135
137
|
});
|
|
136
138
|
}
|
|
137
|
-
|
|
138
139
|
//#endregion
|
|
139
|
-
export { SDKMethodSummary, SDKOverview, SDKResource, SDKResourceHeader, SDKRoot };
|
|
140
|
+
export { SDKMethodSummary, SDKOverview, SDKResource, SDKResourceHeader, SDKRoot };
|
|
@@ -1,107 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ReactNode } from "react";
|
|
3
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
-
|
|
5
|
-
//#region src/components/primitives.d.ts
|
|
6
|
-
type JoinProps = {
|
|
7
|
-
items: ReactNode[];
|
|
8
|
-
limit?: number;
|
|
9
|
-
children: ReactNode;
|
|
10
|
-
};
|
|
11
|
-
declare function Join({
|
|
12
|
-
items,
|
|
13
|
-
limit,
|
|
14
|
-
children
|
|
15
|
-
}: JoinProps): react_jsx_runtime0.JSX.Element[];
|
|
16
|
-
type ExpanderProps = {
|
|
17
|
-
id?: string;
|
|
18
|
-
open?: boolean;
|
|
19
|
-
summary: ReactNode;
|
|
20
|
-
virtual?: boolean;
|
|
21
|
-
muted?: boolean;
|
|
22
|
-
children?: ReactNode;
|
|
23
|
-
};
|
|
24
|
-
declare function Expander({
|
|
25
|
-
id,
|
|
26
|
-
open,
|
|
27
|
-
summary,
|
|
28
|
-
virtual,
|
|
29
|
-
muted,
|
|
30
|
-
children
|
|
31
|
-
}: ExpanderProps): react_jsx_runtime0.JSX.Element;
|
|
32
|
-
declare function VirtualExpander({
|
|
33
|
-
id,
|
|
34
|
-
open: isOpen,
|
|
35
|
-
muted,
|
|
36
|
-
summary,
|
|
37
|
-
children
|
|
38
|
-
}: Omit<ExpanderProps, 'virtual'>): react_jsx_runtime0.JSX.Element;
|
|
39
|
-
declare function Markdown({
|
|
40
|
-
content,
|
|
41
|
-
style: cssStyle
|
|
42
|
-
}: {
|
|
43
|
-
content: string;
|
|
44
|
-
style?: React.CSSProperties;
|
|
45
|
-
}): "" | react_jsx_runtime0.JSX.Element | undefined;
|
|
46
|
-
type BadgeProps = {
|
|
47
|
-
id: string;
|
|
48
|
-
children?: ReactNode;
|
|
49
|
-
};
|
|
50
|
-
declare function Badge({
|
|
51
|
-
id,
|
|
52
|
-
children
|
|
53
|
-
}: BadgeProps): react_jsx_runtime0.JSX.Element;
|
|
54
|
-
type TooltipProps = {
|
|
55
|
-
content: ReactNode;
|
|
56
|
-
children: ReactNode;
|
|
57
|
-
};
|
|
58
|
-
declare function Tooltip({
|
|
59
|
-
content,
|
|
60
|
-
children
|
|
61
|
-
}: TooltipProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react_jsx_runtime0.JSX.Element | null | undefined;
|
|
62
|
-
type LinkProps = {
|
|
63
|
-
stainlessPath?: string;
|
|
64
|
-
scroll?: boolean;
|
|
65
|
-
children?: ReactNode;
|
|
66
|
-
} & React.HTMLProps<HTMLAnchorElement>;
|
|
67
|
-
declare function Link({
|
|
68
|
-
stainlessPath,
|
|
69
|
-
scroll,
|
|
70
|
-
children,
|
|
71
|
-
...props
|
|
72
|
-
}: LinkProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react_jsx_runtime0.JSX.Element | null | undefined;
|
|
73
|
-
type InputProps = {
|
|
74
|
-
left?: ReactNode;
|
|
75
|
-
right?: ReactNode;
|
|
76
|
-
ref?: React.Ref<HTMLInputElement>;
|
|
77
|
-
} & React.InputHTMLAttributes<HTMLInputElement>;
|
|
78
|
-
declare function Input({
|
|
79
|
-
left,
|
|
80
|
-
right,
|
|
81
|
-
ref,
|
|
82
|
-
className,
|
|
83
|
-
...props
|
|
84
|
-
}: InputProps): react_jsx_runtime0.JSX.Element;
|
|
85
|
-
type ToggleButtonProps = {
|
|
86
|
-
children?: ReactNode;
|
|
87
|
-
selected?: boolean;
|
|
88
|
-
} & React.ComponentProps<'button'>;
|
|
89
|
-
declare function ToggleButton({
|
|
90
|
-
children,
|
|
91
|
-
selected,
|
|
92
|
-
ref,
|
|
93
|
-
...props
|
|
94
|
-
}: ToggleButtonProps): react_jsx_runtime0.JSX.Element;
|
|
95
|
-
type ListViewProps<TItem> = {
|
|
96
|
-
items: Array<TItem>;
|
|
97
|
-
itemDelegate: (item: TItem, selected: boolean) => React.ReactNode;
|
|
98
|
-
onSelectListItem?: (item: TItem) => void;
|
|
99
|
-
} & React.HTMLAttributes<HTMLDivElement>;
|
|
100
|
-
declare function ListView<TItem>({
|
|
101
|
-
items,
|
|
102
|
-
itemDelegate,
|
|
103
|
-
onSelectListItem,
|
|
104
|
-
...rest
|
|
105
|
-
}: ListViewProps<TItem>): react_jsx_runtime0.JSX.Element;
|
|
106
|
-
//#endregion
|
|
1
|
+
import { a as Join, c as ListViewProps, d as ToggleButtonProps, f as Tooltip, i as InputProps, l as Markdown, n as Expander, o as Link, p as VirtualExpander, r as Input, s as ListView, t as Badge, u as ToggleButton } from "../primitives-DFE_4MvV.js";
|
|
107
2
|
export { Badge, Expander, Input, InputProps, Join, Link, ListView, ListViewProps, Markdown, ToggleButton, ToggleButtonProps, Tooltip, VirtualExpander };
|