rspress-plugin-api-extractor 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +32 -236
- package/package.json +2 -1
- package/runtime/components/ApiExample/index.js +29 -0
- package/runtime/components/ApiLlmsPackageActions/index.js +348 -0
- package/runtime/components/ApiLlmsPackageActions/index.module.js +2 -0
- package/runtime/components/ApiLlmsViewOptions/index.js +365 -0
- package/runtime/components/ApiMember/index.js +51 -0
- package/runtime/components/ApiSignature/index.js +32 -0
- package/runtime/components/EnumMembersTable/index.js +69 -0
- package/runtime/components/EnumMembersTable/index.module.js +7 -0
- package/runtime/components/EnumMembersTable/index_module.css +100 -0
- package/runtime/components/ExampleBlock/index.js +36 -0
- package/runtime/components/ExampleBlock/index.module.js +6 -0
- package/runtime/components/ExampleBlock/index_module.css +12 -0
- package/runtime/components/MarkdownContent/index.js +23 -0
- package/runtime/components/MarkdownText/index.js +27 -0
- package/runtime/components/MemberSignature/index.js +54 -0
- package/runtime/components/MemberSignature/index.module.js +7 -0
- package/runtime/components/MemberSignature/index_module.css +27 -0
- package/runtime/components/ParametersTable/index.js +69 -0
- package/runtime/components/ParametersTable/index.module.js +7 -0
- package/runtime/components/ParametersTable/index_module.css +104 -0
- package/runtime/components/SignatureBlock/index.js +35 -0
- package/runtime/components/SignatureBlock/index.module.js +7 -0
- package/runtime/components/SignatureBlock/index_module.css +27 -0
- package/runtime/components/SignatureCode/index.js +36 -0
- package/runtime/components/SignatureCode/index.module.js +7 -0
- package/runtime/components/SignatureCode/index_module.css +53 -0
- package/runtime/components/SignatureToolbar/index.js +55 -0
- package/runtime/components/SignatureToolbar/index.module.js +11 -0
- package/runtime/components/SignatureToolbar/index_module.css +124 -0
- package/runtime/components/buttons/ButtonGroup.js +9 -0
- package/runtime/components/buttons/CopyCodeButton.js +42 -0
- package/runtime/components/buttons/WrapSignatureButton.js +20 -0
- package/runtime/components/buttons/index.module.js +6 -0
- package/runtime/components/buttons/index_module.css +37 -0
- package/runtime/components/icons/CheckIcon/index.js +20 -0
- package/runtime/components/icons/CopyIcon/index.js +20 -0
- package/runtime/components/icons/UnwrapIcon/index.js +21 -0
- package/runtime/components/icons/WrapIcon/index.js +20 -0
- package/runtime/components/shared/_twoslash.css +447 -0
- package/runtime/components/shared/types.js +0 -0
- package/runtime/components/shared/variables.css +85 -0
- package/runtime/hooks/useWrapToggle.js +12 -0
- package/runtime/index.js +11 -664
- package/runtime/utils/decode-hast.js +18 -0
- package/runtime/utils/hast-renderer.js +10 -0
- package/runtime/index.css +0 -1016
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--api-color-bg: #f6f8fa;
|
|
3
|
+
--api-color-bg-secondary: #fff;
|
|
4
|
+
--api-color-text: #24292f;
|
|
5
|
+
--api-color-text-secondary: #57606a;
|
|
6
|
+
--api-color-border: #e1e4e8;
|
|
7
|
+
--api-color-border-secondary: #d0d7de;
|
|
8
|
+
--api-color-border-hover: #b1b8c0;
|
|
9
|
+
--api-color-hover-bg: #f3f4f6;
|
|
10
|
+
--api-color-active-bg: #e5e7eb;
|
|
11
|
+
--api-color-link: #0969da;
|
|
12
|
+
--api-color-link-hover: #0550ae;
|
|
13
|
+
--api-color-code-bg: #afb8c133;
|
|
14
|
+
--api-spacing-xs: .375rem;
|
|
15
|
+
--api-spacing-sm: .5rem;
|
|
16
|
+
--api-spacing-md: .75rem;
|
|
17
|
+
--api-spacing-lg: 1rem;
|
|
18
|
+
--api-spacing-xl: 1.5rem;
|
|
19
|
+
--api-border-radius: 6px;
|
|
20
|
+
--api-border-radius-sm: 3px;
|
|
21
|
+
--api-border-radius-md: 4px;
|
|
22
|
+
--api-font-size-sm: .875rem;
|
|
23
|
+
--api-font-size-base: .9375rem;
|
|
24
|
+
--api-font-size-md: 1rem;
|
|
25
|
+
--api-font-size-lg: 1.2rem;
|
|
26
|
+
--api-line-height-base: 1.5;
|
|
27
|
+
--api-line-height-button: 1.25rem;
|
|
28
|
+
--api-transition-fast: .15s ease;
|
|
29
|
+
--api-transition-base: .2s ease;
|
|
30
|
+
--api-transition-slow: .3s ease;
|
|
31
|
+
--api-shadow-sm: 0 1px 2px #0000000d;
|
|
32
|
+
--api-shadow-md: 0 4px 6px #0000001a;
|
|
33
|
+
--api-z-index-dropdown: 40;
|
|
34
|
+
--api-z-index-tooltip: 999;
|
|
35
|
+
--api-z-index-popup: 1000;
|
|
36
|
+
--api-breakpoint-mobile: 768px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.api-doc-code .shiki, .api-doc-code .shiki span {
|
|
40
|
+
color: var(--api-shiki-light);
|
|
41
|
+
background-color: var(--api-shiki-light-bg, inherit);
|
|
42
|
+
font-style: var(--api-shiki-light-font-style, inherit);
|
|
43
|
+
font-weight: var(--api-shiki-light-font-weight, inherit);
|
|
44
|
+
-webkit-text-decoration: var(--api-shiki-light-text-decoration, inherit);
|
|
45
|
+
text-decoration: var(--api-shiki-light-text-decoration, inherit);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
html.rp-dark .api-doc-code .shiki, html.rp-dark .api-doc-code .shiki span {
|
|
49
|
+
color: var(--api-shiki-dark);
|
|
50
|
+
background-color: var(--api-shiki-dark-bg, inherit);
|
|
51
|
+
font-style: var(--api-shiki-dark-font-style, inherit);
|
|
52
|
+
font-weight: var(--api-shiki-dark-font-weight, inherit);
|
|
53
|
+
-webkit-text-decoration: var(--api-shiki-dark-text-decoration, inherit);
|
|
54
|
+
text-decoration: var(--api-shiki-dark-text-decoration, inherit);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
html.rp-dark {
|
|
58
|
+
--api-color-bg: #161b22;
|
|
59
|
+
--api-color-bg-secondary: #21262d;
|
|
60
|
+
--api-color-text: #e6edf3;
|
|
61
|
+
--api-color-text-secondary: #8b949e;
|
|
62
|
+
--api-color-border: #30363d;
|
|
63
|
+
--api-color-border-hover: #8b949e;
|
|
64
|
+
--api-color-hover-bg: #30363d;
|
|
65
|
+
--api-color-active-bg: #161b22;
|
|
66
|
+
--api-color-link: #58a6ff;
|
|
67
|
+
--api-color-link-hover: #79c0ff;
|
|
68
|
+
--api-color-code-bg: #6e768166;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
html.rp-dark .rp-social-links__item {
|
|
72
|
+
background-color: var(--api-color-bg-secondary);
|
|
73
|
+
border-color: var(--api-color-border);
|
|
74
|
+
color: var(--api-color-text);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
html.rp-dark .rp-social-links__item:hover {
|
|
78
|
+
background-color: var(--api-color-hover-bg);
|
|
79
|
+
border-color: var(--api-color-border-hover);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
html.rp-dark .rp-social-links__item:active {
|
|
83
|
+
background-color: var(--api-color-active-bg);
|
|
84
|
+
}
|
|
85
|
+
|