@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,388 @@
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 "../ruby-BBc8HdIt.js";
1
+ import { t as __exportAll } from "../chunk-BYypO7fO.js";
2
+ import { useDeclaration, useLanguage, useSpec } 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/ruby.tsx
11
+ var ruby_exports = /* @__PURE__ */ __exportAll({
12
+ Declaration: () => Declaration,
13
+ MethodSignature: () => MethodSignature,
14
+ Property: () => Property,
15
+ Type: () => Type,
16
+ TypeName: () => TypeName
17
+ });
18
+ const ComplexTypes = {
19
+ RubyTypeObject: "object",
20
+ RubyTypeUnion: "union",
21
+ RubyTypeIntersection: "intersection",
22
+ RubyTypeArray: "array",
23
+ RubyTypeMap: "hash"
24
+ };
25
+ const Keywords = {
26
+ RubyTypeBinary: "FileInput",
27
+ RubyTypeUnknown: "untyped",
28
+ RubyTypeNull: "nil",
29
+ RubyTypeInteger: "Integer",
30
+ RubyTypeFloat: "Float",
31
+ RubyTypeBoolean: "bool"
32
+ };
33
+ function TypeName({ type }) {
34
+ const Lang = useLanguageComponents();
35
+ return ComplexTypes[type.kind] ?? /* @__PURE__ */ jsx(Lang.Type, { type });
36
+ }
37
+ const VALID_IDENTIFIER = /^[_A-Za-z][_A-Za-z0-9]*$/;
38
+ function TypePreview({ path }) {
39
+ const spec = useSpec();
40
+ const language = useLanguage();
41
+ const decl = useDeclaration(path, false);
42
+ const { Join } = useComponents();
43
+ if (!(decl && "children" in decl && decl.children && decl.children.length > 0) || "type" in decl && decl["type"] && "kind" in decl["type"] && decl["type"]?.["kind"] === "RubyTypeUnion") return;
44
+ const items = decl.children.map((prop, key) => {
45
+ const p = spec?.decls?.[language]?.[prop];
46
+ return /* @__PURE__ */ jsx("span", {
47
+ className: style_default.TypePropertyName,
48
+ children: /* @__PURE__ */ jsx("span", {
49
+ className: style_default.TextIdentifier,
50
+ children: p && "ident" in p ? p["ident"] : null
51
+ })
52
+ }, key);
53
+ });
54
+ return /* @__PURE__ */ jsxs("span", {
55
+ className: style_default.TypePreview,
56
+ "data-stldocs-type-preview": "properties",
57
+ children: [
58
+ /* @__PURE__ */ jsx("span", {
59
+ className: style_default.TypeBrace,
60
+ children: " {"
61
+ }),
62
+ /* @__PURE__ */ jsxs("span", {
63
+ className: style_default.TypePreviewContent,
64
+ children: [
65
+ " ",
66
+ /* @__PURE__ */ jsx(Join, {
67
+ items,
68
+ limit: 3,
69
+ children: /* @__PURE__ */ jsx("span", {
70
+ className: style_default.TextOperator,
71
+ children: ", "
72
+ })
73
+ }),
74
+ " "
75
+ ]
76
+ }),
77
+ /* @__PURE__ */ jsx("span", {
78
+ className: style_default.TypeBrace,
79
+ children: "} "
80
+ })
81
+ ]
82
+ });
83
+ }
84
+ function Type({ type }) {
85
+ const Lang = useLanguageComponents();
86
+ const { SDKReference, Join } = useComponents();
87
+ switch (type.kind) {
88
+ case "RubyTypeBinary":
89
+ case "RubyTypeUnknown":
90
+ case "RubyTypeNull":
91
+ case "RubyTypeInteger":
92
+ case "RubyTypeFloat":
93
+ case "RubyTypeBoolean": return /* @__PURE__ */ jsx("span", {
94
+ className: style_default.Type,
95
+ children: /* @__PURE__ */ jsx("span", {
96
+ className: style_default.TypeKeyword,
97
+ children: Keywords[type.kind]
98
+ })
99
+ });
100
+ case "RubyTypeString": return /* @__PURE__ */ jsx("span", {
101
+ className: style_default.Type,
102
+ children: /* @__PURE__ */ jsx("span", {
103
+ className: style_default.TypeString,
104
+ children: "String"
105
+ })
106
+ });
107
+ case "RubyTypeLiteral":
108
+ switch (typeof type.literal) {
109
+ case "string": return /* @__PURE__ */ jsx("span", {
110
+ className: style_default.Type,
111
+ children: /* @__PURE__ */ jsxs("span", {
112
+ className: style_default.LiteralString,
113
+ children: [":", type.literal.match(VALID_IDENTIFIER) ? type.literal : JSON.stringify(type.literal)]
114
+ })
115
+ });
116
+ case "number": return /* @__PURE__ */ jsx("span", {
117
+ className: style_default.Type,
118
+ children: /* @__PURE__ */ jsx("span", {
119
+ className: style_default.LiteralNumeric,
120
+ children: JSON.stringify(type.literal)
121
+ })
122
+ });
123
+ case "boolean": return /* @__PURE__ */ jsx("span", {
124
+ className: style_default.Type,
125
+ children: /* @__PURE__ */ jsx("span", {
126
+ className: style_default.LiteralBoolean,
127
+ children: JSON.stringify(type.literal)
128
+ })
129
+ });
130
+ }
131
+ break;
132
+ case "RubyTypeArray": return /* @__PURE__ */ jsxs("span", {
133
+ className: style_default.Type,
134
+ children: [
135
+ /* @__PURE__ */ jsx("span", {
136
+ className: style_default.TypeArray,
137
+ children: "Array["
138
+ }),
139
+ /* @__PURE__ */ jsx(Lang.Type, { type: type.elementType }),
140
+ /* @__PURE__ */ jsx("span", {
141
+ className: style_default.TypeArray,
142
+ children: "]"
143
+ })
144
+ ]
145
+ });
146
+ case "RubyTypeMap": return /* @__PURE__ */ jsxs("span", {
147
+ className: style_default.Type,
148
+ children: [
149
+ /* @__PURE__ */ jsx("span", {
150
+ className: style_default.TypeArray,
151
+ children: "Hash["
152
+ }),
153
+ type.indexType.kind === "RubyTypeString" ? /* @__PURE__ */ jsx("span", {
154
+ className: style_default.TypeString,
155
+ children: "Symbol"
156
+ }) : /* @__PURE__ */ jsx(Lang.Type, { type: type.indexType }),
157
+ ", ",
158
+ /* @__PURE__ */ jsx(Lang.Type, { type: type.itemType }),
159
+ /* @__PURE__ */ jsx("span", {
160
+ className: style_default.TypeArray,
161
+ children: "]"
162
+ })
163
+ ]
164
+ });
165
+ case "RubyTypeReference": {
166
+ const name = type.ident.split(".").at(-1);
167
+ if (!type.typeParameters || type.typeParameters.length === 0) return /* @__PURE__ */ jsxs("span", {
168
+ className: style_default.Type,
169
+ children: [/* @__PURE__ */ jsx(SDKReference, {
170
+ stainlessPath: type.$ref,
171
+ children: name
172
+ }), /* @__PURE__ */ jsx(TypePreview, { path: type.$ref })]
173
+ });
174
+ const typeParameters = type.typeParameters.map((t, i) => /* @__PURE__ */ jsx(Lang.Type, { type: t }, i));
175
+ return /* @__PURE__ */ jsxs("span", {
176
+ className: style_default.Type,
177
+ children: [
178
+ /* @__PURE__ */ jsx(SDKReference, {
179
+ stainlessPath: type.$ref,
180
+ children: name
181
+ }),
182
+ /* @__PURE__ */ jsx("span", {
183
+ className: style_default.TypeBracket,
184
+ children: "<"
185
+ }),
186
+ /* @__PURE__ */ jsx(Join, {
187
+ items: typeParameters,
188
+ children: /* @__PURE__ */ jsx("span", {
189
+ className: style_default.TextOperator,
190
+ children: ", "
191
+ })
192
+ }),
193
+ /* @__PURE__ */ jsx("span", {
194
+ className: style_default.TypeBracket,
195
+ children: ">"
196
+ }),
197
+ /* @__PURE__ */ jsx(TypePreview, { path: type.$ref })
198
+ ]
199
+ });
200
+ }
201
+ case "RubyTypeIntersection":
202
+ case "RubyTypeUnion": {
203
+ const items = type.types.map((t, key) => /* @__PURE__ */ jsx(Lang.Type, { type: t }, key));
204
+ const delimiter = type.kind === "RubyTypeUnion" ? "|" : "&";
205
+ return /* @__PURE__ */ jsx("span", {
206
+ className: style_default.Type,
207
+ children: /* @__PURE__ */ jsx("span", {
208
+ className: style_default.TypePreview,
209
+ "data-stldocs-type-preview": "union",
210
+ children: /* @__PURE__ */ jsx("span", {
211
+ className: style_default.TypePreviewContent,
212
+ children: /* @__PURE__ */ jsx(Join, {
213
+ items,
214
+ limit: 3,
215
+ children: /* @__PURE__ */ jsxs("span", {
216
+ className: style_default.TextOperator,
217
+ children: [
218
+ " ",
219
+ delimiter,
220
+ " "
221
+ ]
222
+ })
223
+ })
224
+ })
225
+ })
226
+ });
227
+ }
228
+ case "RubyTypeBuiltinClass": return /* @__PURE__ */ jsx("span", {
229
+ className: style_default.TypeReference,
230
+ children: type.className
231
+ });
232
+ case "RubyTypeObject": {
233
+ const items = type.members.map((prop, key) => /* @__PURE__ */ jsx("span", {
234
+ className: style_default.TextIdentifier,
235
+ children: prop.ident
236
+ }, key));
237
+ return /* @__PURE__ */ jsx("span", {
238
+ className: style_default.Type,
239
+ children: /* @__PURE__ */ jsx("span", {
240
+ className: style_default.TypePreview,
241
+ "data-stldocs-type-preview": "properties",
242
+ children: /* @__PURE__ */ jsxs("span", {
243
+ className: style_default.TypePreviewContent,
244
+ children: [
245
+ /* @__PURE__ */ jsx("span", {
246
+ className: style_default.TypeBrace,
247
+ children: "{ "
248
+ }),
249
+ /* @__PURE__ */ jsx(Join, {
250
+ items,
251
+ limit: 3,
252
+ children: /* @__PURE__ */ jsx("span", {
253
+ className: style_default.TextOperator,
254
+ children: ", "
255
+ })
256
+ }),
257
+ /* @__PURE__ */ jsx("span", {
258
+ className: style_default.TypeBrace,
259
+ children: "}"
260
+ })
261
+ ]
262
+ })
263
+ })
264
+ });
265
+ }
266
+ }
267
+ }
268
+ function MethodSignature({ decl }) {
269
+ const Lang = useLanguageComponents();
270
+ const { Join } = useComponents();
271
+ const params = decl.args.map((param, i) => /* @__PURE__ */ jsx(React$1.Fragment, { children: /* @__PURE__ */ jsx("span", {
272
+ className: style_default.TextIdentifier,
273
+ children: param.ident
274
+ }) }, i));
275
+ return /* @__PURE__ */ jsx("div", {
276
+ className: style_default.MethodSignature,
277
+ children: /* @__PURE__ */ jsxs("span", {
278
+ className: style_default.SignatureTitle,
279
+ children: [
280
+ /* @__PURE__ */ jsx("span", {
281
+ className: style_default.SignatureQualified,
282
+ children: /* @__PURE__ */ jsx("span", {
283
+ className: style_default.TextIdentifier,
284
+ children: decl.qualified?.slice(0, -decl.ident.length)
285
+ })
286
+ }),
287
+ /* @__PURE__ */ jsx("span", {
288
+ className: style_default.SignatureName,
289
+ children: /* @__PURE__ */ jsx("span", {
290
+ className: style_default.TextIdentifier,
291
+ children: decl.ident
292
+ })
293
+ }),
294
+ /* @__PURE__ */ jsxs("span", {
295
+ className: style_default.MethodSignature,
296
+ children: [
297
+ /* @__PURE__ */ jsx("span", {
298
+ className: style_default.SignatureParen,
299
+ children: "("
300
+ }),
301
+ /* @__PURE__ */ jsx("span", {
302
+ className: style_default.SignatureParams,
303
+ children: /* @__PURE__ */ jsx(Join, {
304
+ items: params,
305
+ children: /* @__PURE__ */ jsx("span", {
306
+ className: style_default.TextOperator,
307
+ children: ", "
308
+ })
309
+ })
310
+ }),
311
+ /* @__PURE__ */ jsx("span", {
312
+ className: style_default.SignatureParen,
313
+ children: ")"
314
+ }),
315
+ " -> ",
316
+ decl.returns ? /* @__PURE__ */ jsx(Lang.Type, { type: decl.returns }) : "void"
317
+ ]
318
+ })
319
+ ]
320
+ })
321
+ });
322
+ }
323
+ function Property({ decl, children }) {
324
+ const Lang = useLanguageComponents();
325
+ switch (decl.kind) {
326
+ case "RubyDeclProperty": return children({
327
+ name: decl.ident,
328
+ typeName: /* @__PURE__ */ jsx(Lang.TypeName, { type: decl.type }),
329
+ type: decl.type.kind in ComplexTypes && /* @__PURE__ */ jsx(Lang.Type, { type: decl.type })
330
+ });
331
+ case "RubyDeclTypeAlias": return children({
332
+ name: decl.ident,
333
+ typeName: "alias",
334
+ type: /* @__PURE__ */ jsx(Lang.Type, { type: decl.type })
335
+ });
336
+ case "RubyDeclReference": return children({ type: /* @__PURE__ */ jsx(Lang.Type, { type: decl.type }) });
337
+ case "RubyDeclClass": return children({
338
+ name: decl.ident,
339
+ typeName: "class"
340
+ });
341
+ }
342
+ }
343
+ function Declaration({ decl }) {
344
+ const Lang = useLanguageComponents();
345
+ if (!decl) return;
346
+ switch (decl.kind) {
347
+ case "RubyDeclProperty": return /* @__PURE__ */ jsxs(Fragment$1, { children: [
348
+ /* @__PURE__ */ jsx("span", {
349
+ className: style_default.TypePropertyName,
350
+ children: /* @__PURE__ */ jsx("span", {
351
+ className: style_default.TextIdentifier,
352
+ children: decl.ident
353
+ })
354
+ }),
355
+ /* @__PURE__ */ jsx("span", {
356
+ className: style_default.TextPunctuation,
357
+ children: ": "
358
+ }),
359
+ /* @__PURE__ */ jsx(Lang.Type, { type: decl.type })
360
+ ] });
361
+ case "RubyDeclTypeAlias": return /* @__PURE__ */ jsxs(Fragment$1, { children: [
362
+ /* @__PURE__ */ jsx("span", {
363
+ className: style_default.TextIdentifier,
364
+ children: decl.ident
365
+ }),
366
+ /* @__PURE__ */ jsx("span", {
367
+ className: style_default.TextOperator,
368
+ children: " = "
369
+ }),
370
+ /* @__PURE__ */ jsx(Lang.Type, { type: decl.type })
371
+ ] });
372
+ case "RubyDeclClass": return /* @__PURE__ */ jsxs(Fragment$1, { children: [
373
+ /* @__PURE__ */ jsx("span", {
374
+ className: style_default.TextKeyword,
375
+ children: "class "
376
+ }),
377
+ /* @__PURE__ */ jsx("span", {
378
+ className: style_default.TextIdentifier,
379
+ children: decl.ident
380
+ }),
381
+ /* @__PURE__ */ jsx(TypePreview, { path: decl.stainlessPath })
382
+ ] });
383
+ case "RubyDeclReference": return /* @__PURE__ */ jsx(Lang.Type, { type: decl.type });
384
+ }
385
+ }
386
+
387
+ //#endregion
388
+ export { Declaration, MethodSignature, Property, Type, TypeName, ruby_exports as t };
@@ -1,14 +1,48 @@
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 { A as Type, C as DeclarationProps, D as Resource, E as PropertyProps, M as TypeProps, O as ResourceProps, S as Declaration, T as Property, j as TypeName, k as TerraformSource, w 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, Property, PropertyProps, Resource, ResourceProps, TerraformSource, Type, TypeName, TypeProps };
1
+ import { b as TerraformAST, m as Resource$1 } 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/terraform.d.ts
7
+ declare namespace terraform_d_exports {
8
+ export { Declaration, DeclarationProps, MethodSignature, Property, PropertyProps, Resource, ResourceProps, TerraformSource, Type, TypeName, TypeProps };
9
+ }
10
+ type TypeProps = {
11
+ type: TerraformAST.AttributeType;
12
+ };
13
+ declare function TypeName({
14
+ type
15
+ }: TypeProps): react_jsx_runtime0.JSX.Element;
16
+ declare function Type({
17
+ type
18
+ }: TypeProps): react_jsx_runtime0.JSX.Element | undefined;
19
+ declare function MethodSignature(): null;
20
+ type PropertyProps = {
21
+ decl: TerraformAST.TerraformDeclaration;
22
+ children: PropertyFn;
23
+ };
24
+ declare function Property({
25
+ decl,
26
+ children
27
+ }: PropertyProps): React$1.ReactNode;
28
+ declare function TerraformSource({
29
+ path,
30
+ group
31
+ }: {
32
+ path: string;
33
+ group: string;
34
+ }): react_jsx_runtime0.JSX.Element | undefined;
35
+ type DeclarationProps = {
36
+ decl: TerraformAST.TerraformDeclaration;
37
+ };
38
+ declare function Declaration({
39
+ decl
40
+ }: DeclarationProps): react_jsx_runtime0.JSX.Element | undefined;
41
+ type ResourceProps = {
42
+ resource: Resource$1;
43
+ };
44
+ declare function Resource({
45
+ resource
46
+ }: ResourceProps): react_jsx_runtime0.JSX.Element;
47
+ //#endregion
48
+ export { Declaration, DeclarationProps, MethodSignature, Property, PropertyProps, Resource, ResourceProps, TerraformSource, Type, TypeName, TypeProps, terraform_d_exports as t };