@stainless-api/docs-ui 0.1.0-beta.9 → 0.1.0-beta.90

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.
Files changed (162) hide show
  1. package/dist/breadcrumbs-DC2_z7nh.d.ts +25 -0
  2. package/dist/chunk-pbuEa-1d.js +13 -0
  3. package/dist/component-generics-DYxBWv1v.js +42 -0
  4. package/dist/component-generics-q-ujwX4P.d.ts +30 -0
  5. package/dist/components/MaskedInput.d.ts +14 -0
  6. package/dist/components/MaskedInput.js +74 -0
  7. package/dist/components/breadcrumbs.d.ts +2 -0
  8. package/dist/components/breadcrumbs.js +62 -0
  9. package/dist/components/icons.d.ts +72 -0
  10. package/dist/components/icons.js +953 -0
  11. package/dist/components/index.d.ts +10 -0
  12. package/dist/components/index.js +73 -0
  13. package/dist/components/method.d.ts +2 -0
  14. package/dist/components/method.js +95 -0
  15. package/dist/components/overview.d.ts +2 -0
  16. package/dist/components/overview.js +140 -0
  17. package/dist/components/primitives.d.ts +2 -0
  18. package/dist/components/primitives.js +251 -0
  19. package/dist/components/properties.d.ts +2 -0
  20. package/dist/components/properties.js +144 -0
  21. package/dist/components/sdk-sidebar.d.ts +2 -0
  22. package/dist/components/sdk-sidebar.js +50 -0
  23. package/dist/components/sdk.d.ts +2 -0
  24. package/dist/components/sdk.js +488 -0
  25. package/dist/components/snippets.d.ts +2 -0
  26. package/dist/components/snippets.js +184 -0
  27. package/dist/components/stl-sidebar.d.ts +2 -0
  28. package/dist/components/stl-sidebar.js +112 -0
  29. package/dist/contexts/component-generics.d.ts +2 -0
  30. package/dist/contexts/component-generics.js +2 -0
  31. package/dist/contexts/component-types.d.ts +6 -0
  32. package/dist/contexts/component-types.js +0 -0
  33. package/dist/contexts/component.d.ts +20 -0
  34. package/dist/contexts/component.js +21 -0
  35. package/dist/contexts/docs.d.ts +2 -0
  36. package/dist/contexts/docs.js +89 -0
  37. package/dist/contexts/index.d.ts +6 -0
  38. package/dist/contexts/index.js +43 -0
  39. package/dist/contexts/markdown.d.ts +2 -0
  40. package/dist/contexts/markdown.js +62 -0
  41. package/dist/contexts/navigation.d.ts +2 -0
  42. package/dist/contexts/navigation.js +21 -0
  43. package/dist/contexts/use-components.d.ts +5 -0
  44. package/dist/contexts/use-components.js +5 -0
  45. package/dist/docs-DSjdvCh5.d.ts +62 -0
  46. package/dist/index-DFr9Mesr.d.ts +1776 -0
  47. package/dist/index-gGDaf6FK.d.ts +464 -0
  48. package/dist/index.d.ts +5 -0
  49. package/dist/index.js +8 -7542
  50. package/dist/languages/cli.d.ts +2 -0
  51. package/dist/languages/cli.js +165 -0
  52. package/dist/languages/csharp.d.ts +2 -0
  53. package/dist/languages/csharp.js +282 -0
  54. package/dist/languages/go.d.ts +2 -0
  55. package/dist/languages/go.js +302 -0
  56. package/dist/languages/http.d.ts +2 -0
  57. package/dist/languages/http.js +385 -0
  58. package/dist/languages/index.d.ts +2 -0
  59. package/dist/languages/index.js +31 -0
  60. package/dist/languages/java.d.ts +2 -0
  61. package/dist/languages/java.js +402 -0
  62. package/dist/languages/php.d.ts +2 -0
  63. package/dist/languages/php.js +311 -0
  64. package/dist/languages/python.d.ts +2 -0
  65. package/dist/languages/python.js +268 -0
  66. package/dist/languages/ruby.d.ts +2 -0
  67. package/dist/languages/ruby.js +386 -0
  68. package/dist/languages/terraform.d.ts +2 -0
  69. package/dist/languages/terraform.js +259 -0
  70. package/dist/languages/typescript.d.ts +2 -0
  71. package/dist/languages/typescript.js +448 -0
  72. package/dist/markdown/index.d.ts +11 -0
  73. package/dist/markdown/index.js +87 -0
  74. package/dist/markdown/md.d.ts +15 -0
  75. package/dist/markdown/md.js +39 -0
  76. package/dist/markdown/printer.d.ts +13 -0
  77. package/dist/markdown/printer.js +74 -0
  78. package/dist/markdown/utils.d.ts +28 -0
  79. package/dist/markdown/utils.js +31 -0
  80. package/dist/markdown-Cwdboi_V.d.ts +33 -0
  81. package/dist/method-CNRMOUfn.d.ts +59 -0
  82. package/dist/navigation-C9ckAfpV.d.ts +29 -0
  83. package/dist/overview-CDvh184n.d.ts +39 -0
  84. package/dist/primitives-DFE_4MvV.d.ts +107 -0
  85. package/dist/properties-CVwrzWVa.d.ts +54 -0
  86. package/dist/routing-yTSG7nWM.d.ts +61 -0
  87. package/dist/routing.d.ts +2 -0
  88. package/dist/routing.js +174 -150
  89. package/dist/sdk-BkW3MDco.d.ts +128 -0
  90. package/dist/sdk-sidebar-BpDlOMat.d.ts +15 -0
  91. package/dist/spec.d.ts +65 -0
  92. package/dist/spec.js +165 -0
  93. package/dist/stl-sidebar-CKrR5ZGs.d.ts +58 -0
  94. package/dist/style.d.ts +178 -0
  95. package/dist/style.js +178 -0
  96. package/dist/styles/main.css +765 -755
  97. package/dist/styles/primitives.css +359 -442
  98. package/dist/styles/resets.css +25 -41
  99. package/dist/styles/search.css +187 -270
  100. package/dist/styles/sidebar.css +155 -69
  101. package/dist/styles/variables.css +23 -89
  102. package/dist/styles.css +3171 -0
  103. package/dist/utils.d.ts +20 -0
  104. package/dist/utils.js +52 -0
  105. package/package.json +75 -22
  106. package/dist/mcp.js +0 -16003
  107. package/dist/styles/snippets.css +0 -132
  108. package/src/components/breadcrumbs.tsx +0 -94
  109. package/src/components/chat.tsx +0 -154
  110. package/src/components/dropdown.tsx +0 -91
  111. package/src/components/icons.tsx +0 -584
  112. package/src/components/index.ts +0 -9
  113. package/src/components/method.tsx +0 -146
  114. package/src/components/overview.tsx +0 -160
  115. package/src/components/primitives.tsx +0 -284
  116. package/src/components/properties.tsx +0 -130
  117. package/src/components/scripts/dropdown.ts +0 -78
  118. package/src/components/sdk.tsx +0 -403
  119. package/src/components/sidebar.tsx +0 -99
  120. package/src/components/snippets.tsx +0 -180
  121. package/src/contexts/component-generics.tsx +0 -48
  122. package/src/contexts/component-types.tsx +0 -5
  123. package/src/contexts/component.tsx +0 -32
  124. package/src/contexts/docs.tsx +0 -75
  125. package/src/contexts/index.tsx +0 -17
  126. package/src/contexts/markdown.tsx +0 -43
  127. package/src/contexts/navigation.tsx +0 -44
  128. package/src/contexts/search.tsx +0 -28
  129. package/src/contexts/use-components.tsx +0 -4
  130. package/src/index.ts +0 -6
  131. package/src/languages/go.tsx +0 -281
  132. package/src/languages/http.tsx +0 -321
  133. package/src/languages/index.ts +0 -26
  134. package/src/languages/java.tsx +0 -358
  135. package/src/languages/python.tsx +0 -255
  136. package/src/languages/ruby.tsx +0 -320
  137. package/src/languages/typescript.tsx +0 -393
  138. package/src/markdown/index.ts +0 -107
  139. package/src/markdown/md.ts +0 -45
  140. package/src/markdown/utils.ts +0 -49
  141. package/src/routing.ts +0 -238
  142. package/src/search/form.tsx +0 -127
  143. package/src/search/index.tsx +0 -1
  144. package/src/search/indexer.ts +0 -246
  145. package/src/search/mcp.ts +0 -61
  146. package/src/search/printer.tsx +0 -86
  147. package/src/search/providers/algolia.ts +0 -88
  148. package/src/search/providers/fuse.ts +0 -19
  149. package/src/search/providers/pagefind.ts +0 -17
  150. package/src/search/providers/walker.ts +0 -30
  151. package/src/search/results.tsx +0 -182
  152. package/src/search/state.ts +0 -64
  153. package/src/search/types.ts +0 -116
  154. package/src/style.ts +0 -196
  155. package/src/styles/main.css +0 -986
  156. package/src/styles/primitives.css +0 -580
  157. package/src/styles/resets.css +0 -39
  158. package/src/styles/search.css +0 -341
  159. package/src/styles/sidebar.css +0 -85
  160. package/src/styles/snippets.css +0 -130
  161. package/src/styles/variables.css +0 -86
  162. package/src/utils.ts +0 -41
@@ -0,0 +1,31 @@
1
+ import { t as __exportAll } from "../chunk-pbuEa-1d.js";
2
+ import "../component-generics-DYxBWv1v.js";
3
+ import { t as typescript_exports } from "./typescript.js";
4
+ import { t as java_exports } from "./java.js";
5
+ import { t as go_exports } from "./go.js";
6
+ import { t as python_exports } from "./python.js";
7
+ import { t as ruby_exports } from "./ruby.js";
8
+ import { t as http_exports } from "./http.js";
9
+ import { t as csharp_exports } from "./csharp.js";
10
+ import { t as php_exports } from "./php.js";
11
+ import { t as cli_exports } from "./cli.js";
12
+ import { t as terraform_exports } from "./terraform.js";
13
+ //#region src/languages/index.ts
14
+ var languages_exports = /* @__PURE__ */ __exportAll({
15
+ cli: () => cli_exports,
16
+ csharp: () => csharp_exports,
17
+ go: () => go_exports,
18
+ http: () => http_exports,
19
+ java: () => java_exports,
20
+ kotlin: () => kotlin,
21
+ node: () => node,
22
+ php: () => php_exports,
23
+ python: () => python_exports,
24
+ ruby: () => ruby_exports,
25
+ terraform: () => terraform_exports,
26
+ typescript: () => typescript_exports
27
+ });
28
+ const node = typescript_exports;
29
+ const kotlin = java_exports;
30
+ //#endregion
31
+ export { cli_exports as cli, csharp_exports as csharp, go_exports as go, http_exports as http, java_exports as java, kotlin, node, php_exports as php, python_exports as python, ruby_exports as ruby, languages_exports as t, terraform_exports as terraform, typescript_exports as typescript };
@@ -0,0 +1,2 @@
1
+ import { $t as TypeName, Jt as MethodSignature, Kt as Declaration, Qt as Type, Xt as Property, Yt as MethodSignatureProps, Zt as PropertyProps, qt as DeclarationProps } from "../index-gGDaf6FK.js";
2
+ export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
@@ -0,0 +1,402 @@
1
+ import { t as __exportAll } from "../chunk-pbuEa-1d.js";
2
+ import { useLanguage } from "../contexts/docs.js";
3
+ import "../component-generics-DYxBWv1v.js";
4
+ import { useLanguageComponents } from "../contexts/index.js";
5
+ import { useComponents } from "../contexts/use-components.js";
6
+ import style_default from "../style.js";
7
+ import * as React$1 from "react";
8
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
9
+ //#region src/languages/java.tsx
10
+ var java_exports = /* @__PURE__ */ __exportAll({
11
+ Declaration: () => Declaration,
12
+ MethodSignature: () => MethodSignature,
13
+ Property: () => Property,
14
+ Type: () => Type,
15
+ TypeName: () => TypeName
16
+ });
17
+ function showFullType(type) {
18
+ return type.kind === "JavaTypeReference" && (type.typeName === "List" || type.typeParameters && type.typeParameters.length > 0);
19
+ }
20
+ const constStyle = {
21
+ string: style_default.LiteralString,
22
+ number: style_default.LiteralNumeric,
23
+ boolean: style_default.LiteralBoolean
24
+ };
25
+ function TypeName({ type, optional }) {
26
+ const Lang = useLanguageComponents();
27
+ if (type.kind === "JavaTypeReference" && type.typeName === "List") return "List";
28
+ return /* @__PURE__ */ jsx(Lang.Type, {
29
+ type,
30
+ optional
31
+ });
32
+ }
33
+ function Type({ type, optional }) {
34
+ const language = useLanguage();
35
+ const Lang = useLanguageComponents();
36
+ const { Join, SDKReference } = useComponents();
37
+ switch (type.kind) {
38
+ case "JavaTypeReference": {
39
+ const name = type.typeName.split(".").at(-1);
40
+ const params = type.typeParameters?.map((param, key) => /* @__PURE__ */ jsx(Lang.Type, {
41
+ type: param,
42
+ optional
43
+ }, key));
44
+ return /* @__PURE__ */ jsxs("span", {
45
+ className: style_default.Type,
46
+ children: [/* @__PURE__ */ jsx(SDKReference, {
47
+ stainlessPath: type.$ref,
48
+ children: name
49
+ }), params && params.length > 0 ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
50
+ /* @__PURE__ */ jsx("span", {
51
+ className: style_default.TypeBracket,
52
+ children: "<"
53
+ }),
54
+ /* @__PURE__ */ jsx(Join, {
55
+ items: params,
56
+ limit: 3,
57
+ children: /* @__PURE__ */ jsx("span", {
58
+ className: style_default.TextOperator,
59
+ children: ", "
60
+ })
61
+ }),
62
+ /* @__PURE__ */ jsx("span", {
63
+ className: style_default.TypeBracket,
64
+ children: ">"
65
+ })
66
+ ] }) : null]
67
+ });
68
+ }
69
+ case "JavaTypeClass":
70
+ case "JavaTypeUnion": return /* @__PURE__ */ jsx("span", {
71
+ className: style_default.Type,
72
+ children: /* @__PURE__ */ jsx("span", {
73
+ className: style_default.TypeKeyword,
74
+ children: "class"
75
+ })
76
+ });
77
+ case "JavaTypeEnum": return /* @__PURE__ */ jsx("span", {
78
+ className: style_default.Type,
79
+ children: /* @__PURE__ */ jsx("span", {
80
+ className: style_default.TypeKeyword,
81
+ children: language === "kotlin" ? "enum class" : "enum"
82
+ })
83
+ });
84
+ case "JavaTypeVoid": return /* @__PURE__ */ jsx("span", {
85
+ className: style_default.Type,
86
+ children: /* @__PURE__ */ jsx("span", {
87
+ className: style_default.TypeKeyword,
88
+ children: language === "kotlin" ? "Nothing?" : "Void"
89
+ })
90
+ });
91
+ case "JavaTypeBoolean": return /* @__PURE__ */ jsx("span", {
92
+ className: style_default.Type,
93
+ children: /* @__PURE__ */ jsx("span", {
94
+ className: style_default.TypeKeyword,
95
+ children: language === "kotlin" || optional ? "Boolean" : "boolean"
96
+ })
97
+ });
98
+ case "JavaTypeDouble": return /* @__PURE__ */ jsx("span", {
99
+ className: style_default.Type,
100
+ children: /* @__PURE__ */ jsx("span", {
101
+ className: style_default.TypeKeyword,
102
+ children: language === "kotlin" || optional ? "Double" : "double"
103
+ })
104
+ });
105
+ case "JavaTypeLong": return /* @__PURE__ */ jsx("span", {
106
+ className: style_default.Type,
107
+ children: /* @__PURE__ */ jsx("span", {
108
+ className: style_default.TypeKeyword,
109
+ children: language === "kotlin" || optional ? "Long" : "long"
110
+ })
111
+ });
112
+ case "JavaTypeString": return /* @__PURE__ */ jsx("span", {
113
+ className: style_default.Type,
114
+ children: /* @__PURE__ */ jsx("span", {
115
+ className: style_default.TypeString,
116
+ children: "String"
117
+ })
118
+ });
119
+ case "JavaTypeConstant": return /* @__PURE__ */ jsxs("span", {
120
+ className: style_default.Type,
121
+ children: [/* @__PURE__ */ jsx("span", {
122
+ className: style_default.TypeKeyword,
123
+ children: "JsonValue"
124
+ }), ";"]
125
+ });
126
+ }
127
+ }
128
+ function MethodSignature({ decl }) {
129
+ const Lang = useLanguageComponents();
130
+ const language = useLanguage();
131
+ const { Join, Tooltip } = useComponents();
132
+ const params = decl.parameters.map((param, i) => /* @__PURE__ */ jsx(React$1.Fragment, { children: /* @__PURE__ */ jsxs(Tooltip, {
133
+ content: /* @__PURE__ */ jsx(Lang.Type, { type: param.typeAnnotation }),
134
+ children: [/* @__PURE__ */ jsx("span", {
135
+ className: style_default.TextIdentifier,
136
+ children: param.ident
137
+ }), param.hasDefault && /* @__PURE__ */ jsxs(Fragment$1, { children: [
138
+ " ",
139
+ /* @__PURE__ */ jsx("span", {
140
+ className: style_default.TextOperator,
141
+ children: "="
142
+ }),
143
+ " ",
144
+ /* @__PURE__ */ jsx(Lang.Type, { type: param.typeAnnotation }),
145
+ /* @__PURE__ */ jsx("span", {
146
+ className: style_default.TextOperator,
147
+ children: "."
148
+ }),
149
+ /* @__PURE__ */ jsx("span", {
150
+ className: style_default.TextIdentifier,
151
+ children: "none"
152
+ }),
153
+ /* @__PURE__ */ jsx("span", {
154
+ className: style_default.TextOperator,
155
+ children: "()"
156
+ })
157
+ ] })]
158
+ }) }, i));
159
+ return /* @__PURE__ */ jsx("div", {
160
+ className: style_default.MethodSignature,
161
+ children: /* @__PURE__ */ jsxs("span", {
162
+ className: style_default.SignatureTitle,
163
+ children: [
164
+ decl.returnType && language !== "kotlin" && /* @__PURE__ */ jsxs("span", {
165
+ className: style_default.SignatureReturns,
166
+ children: [/* @__PURE__ */ jsx(Lang.Type, { type: decl.returnType }), " "]
167
+ }),
168
+ decl.qualified && /* @__PURE__ */ jsx("span", {
169
+ className: style_default.SignatureQualified,
170
+ children: /* @__PURE__ */ jsx("span", {
171
+ className: style_default.TextIdentifier,
172
+ children: decl.qualified?.slice(0, -decl.ident.length)
173
+ })
174
+ }),
175
+ /* @__PURE__ */ jsx("span", {
176
+ className: style_default.SignatureName,
177
+ children: /* @__PURE__ */ jsx("span", {
178
+ className: style_default.TextIdentifier,
179
+ children: decl.ident
180
+ })
181
+ }),
182
+ /* @__PURE__ */ jsxs("span", {
183
+ className: style_default.MethodSignature,
184
+ children: [
185
+ /* @__PURE__ */ jsx("span", {
186
+ className: style_default.SignatureParen,
187
+ children: "("
188
+ }),
189
+ /* @__PURE__ */ jsx("span", {
190
+ className: style_default.SignatureParams,
191
+ children: /* @__PURE__ */ jsx(Join, {
192
+ items: params,
193
+ children: /* @__PURE__ */ jsx("span", {
194
+ className: style_default.TextOperator,
195
+ children: ", "
196
+ })
197
+ })
198
+ }),
199
+ /* @__PURE__ */ jsxs("span", {
200
+ className: style_default.SignatureParen,
201
+ children: [")", " "]
202
+ }),
203
+ decl.returnType && language === "kotlin" && /* @__PURE__ */ jsxs(Fragment$1, { children: [
204
+ /* @__PURE__ */ jsx("span", {
205
+ className: style_default.TextOperator,
206
+ children: ":"
207
+ }),
208
+ " ",
209
+ /* @__PURE__ */ jsx(Lang.Type, { type: decl.returnType })
210
+ ] })
211
+ ]
212
+ })
213
+ ]
214
+ })
215
+ });
216
+ }
217
+ function Property({ decl, children }) {
218
+ const Docs = useComponents();
219
+ const Lang = useLanguageComponents();
220
+ const language = useLanguage();
221
+ if (!decl) return null;
222
+ switch (decl.kind) {
223
+ case "JavaDeclProperty": {
224
+ const typeRaw = /* @__PURE__ */ jsx(Lang.Type, {
225
+ type: decl.type,
226
+ optional: decl.optional
227
+ });
228
+ const typeWrapped = decl.optional ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
229
+ /* @__PURE__ */ jsx("span", {
230
+ className: style_default.TypeKeyword,
231
+ children: "Optional"
232
+ }),
233
+ /* @__PURE__ */ jsx("span", {
234
+ className: style_default.TypeBracket,
235
+ children: "<"
236
+ }),
237
+ typeRaw,
238
+ /* @__PURE__ */ jsx("span", {
239
+ className: style_default.TypeBracket,
240
+ children: ">"
241
+ })
242
+ ] }) : typeRaw;
243
+ const badges = /* @__PURE__ */ jsx(Fragment$1, { children: decl.type.kind === "JavaTypeConstant" && /* @__PURE__ */ jsx(Docs.Tooltip, {
244
+ content: /* @__PURE__ */ jsx("span", {
245
+ className: style_default.TextIdentifier,
246
+ children: decl.type.value
247
+ }),
248
+ children: /* @__PURE__ */ jsx("span", {
249
+ className: style_default.TextIdentifier,
250
+ children: "constant"
251
+ })
252
+ }) });
253
+ return children({
254
+ name: decl.ident,
255
+ typeName: /* @__PURE__ */ jsx(Lang.TypeName, {
256
+ type: decl.type,
257
+ optional: decl.optional
258
+ }),
259
+ type: showFullType(decl.type) && typeWrapped,
260
+ badges
261
+ });
262
+ }
263
+ case "JavaDeclConst": return children({
264
+ name: decl.ident,
265
+ typeName: "const",
266
+ type: /* @__PURE__ */ jsx("span", {
267
+ className: constStyle[typeof decl.value],
268
+ children: JSON.stringify(decl.value)
269
+ })
270
+ });
271
+ case "JavaDeclType": {
272
+ const typeName = decl.type.kind === "JavaTypeUnion" ? "union" : decl.type.kind === "JavaTypeEnum" ? language === "kotlin" ? "enum class" : "enum" : "class";
273
+ return children({
274
+ name: decl.ident,
275
+ typeName
276
+ });
277
+ }
278
+ case "JavaDeclReference": return children({ type: /* @__PURE__ */ jsx(Lang.Type, { type: decl.type }) });
279
+ }
280
+ }
281
+ function Declaration({ decl }) {
282
+ const Docs = useComponents();
283
+ const Lang = useLanguageComponents();
284
+ const language = useLanguage();
285
+ if (!decl) return null;
286
+ switch (decl.kind) {
287
+ case "JavaDeclConst": return /* @__PURE__ */ jsxs(Fragment$1, { children: [
288
+ /* @__PURE__ */ jsx("span", {
289
+ className: style_default.TextIdentifier,
290
+ children: decl.ident
291
+ }),
292
+ /* @__PURE__ */ jsx("span", {
293
+ className: style_default.TextPunctuation,
294
+ children: "("
295
+ }),
296
+ JSON.stringify(decl.value),
297
+ /* @__PURE__ */ jsx("span", {
298
+ className: style_default.TextPunctuation,
299
+ children: ")"
300
+ })
301
+ ] });
302
+ case "JavaDeclType": {
303
+ const keyword = decl.type.kind === "JavaTypeEnum" ? language === "kotlin" ? "enum class" : "enum" : "class";
304
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
305
+ /* @__PURE__ */ jsx("span", {
306
+ className: style_default.TextKeyword,
307
+ children: keyword
308
+ }),
309
+ " ",
310
+ /* @__PURE__ */ jsx("span", {
311
+ className: style_default.TextIdentifier,
312
+ children: decl.ident
313
+ }),
314
+ /* @__PURE__ */ jsx("span", {
315
+ className: style_default.TextPunctuation,
316
+ children: ":"
317
+ }),
318
+ decl.type.kind === "JavaTypeUnion" && /* @__PURE__ */ jsxs(Fragment$1, { children: [
319
+ " ",
320
+ /* @__PURE__ */ jsx(Docs.Tooltip, {
321
+ content: "A class that can be one of several variants.",
322
+ children: /* @__PURE__ */ jsx(Docs.Badge, {
323
+ id: "java-union",
324
+ children: "union"
325
+ })
326
+ }),
327
+ " "
328
+ ] })
329
+ ] });
330
+ }
331
+ case "JavaDeclProperty": {
332
+ const inlineType = /* @__PURE__ */ jsx(Lang.Type, {
333
+ type: decl.type,
334
+ optional: decl.optional
335
+ });
336
+ const ident = /* @__PURE__ */ jsx("span", {
337
+ className: style_default.TypePropertyName,
338
+ children: /* @__PURE__ */ jsx("span", {
339
+ className: style_default.TextIdentifier,
340
+ children: decl.ident
341
+ })
342
+ });
343
+ const suffix = decl.type.kind === "JavaTypeConstant" ? /* @__PURE__ */ jsxs(Fragment$1, { children: [" ", /* @__PURE__ */ jsx(Docs.Tooltip, {
344
+ content: /* @__PURE__ */ jsx("span", {
345
+ className: style_default.TextIdentifier,
346
+ children: decl.type.value
347
+ }),
348
+ children: /* @__PURE__ */ jsx(Docs.Badge, {
349
+ id: "java-constant",
350
+ children: "constant"
351
+ })
352
+ })] }) : null;
353
+ if (language === "kotlin") return /* @__PURE__ */ jsxs(Fragment$1, { children: [
354
+ ident,
355
+ /* @__PURE__ */ jsx("span", {
356
+ className: style_default.TextPunctuation,
357
+ children: ":"
358
+ }),
359
+ " ",
360
+ decl.optional ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
361
+ /* @__PURE__ */ jsx("span", {
362
+ className: style_default.TypeReference,
363
+ children: "Optional"
364
+ }),
365
+ /* @__PURE__ */ jsx("span", {
366
+ className: style_default.TypeBracket,
367
+ children: "<"
368
+ }),
369
+ inlineType,
370
+ /* @__PURE__ */ jsx("span", {
371
+ className: style_default.TypeBracket,
372
+ children: ">"
373
+ })
374
+ ] }) : inlineType,
375
+ suffix
376
+ ] });
377
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
378
+ decl.optional ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
379
+ /* @__PURE__ */ jsx("span", {
380
+ className: style_default.TypeReference,
381
+ children: "Optional"
382
+ }),
383
+ /* @__PURE__ */ jsx("span", {
384
+ className: style_default.TypeBracket,
385
+ children: "<"
386
+ }),
387
+ inlineType,
388
+ /* @__PURE__ */ jsx("span", {
389
+ className: style_default.TypeBracket,
390
+ children: ">"
391
+ })
392
+ ] }) : inlineType,
393
+ " ",
394
+ ident,
395
+ suffix
396
+ ] });
397
+ }
398
+ case "JavaDeclReference": return /* @__PURE__ */ jsx(Lang.Type, { type: decl.type });
399
+ }
400
+ }
401
+ //#endregion
402
+ export { Declaration, MethodSignature, Property, Type, TypeName, java_exports as t };
@@ -0,0 +1,2 @@
1
+ import { G as DeclarationProps, J as Property, K as MethodSignature, W as Declaration, X as Type, Y as PropertyProps, Z as TypeName, q as MethodSignatureProps } from "../index-gGDaf6FK.js";
2
+ export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };