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

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