@stainless-api/docs-ui 0.1.0-beta.72 → 0.1.0-beta.74

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