pyjs 0.0.1__py3-none-any.whl
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.
- pyjs/__init__.py +6 -0
- pyjs/__main__.py +6 -0
- pyjs/cli.py +816 -0
- pyjs/decorators.py +170 -0
- pyjs/docs/__init__.py +6 -0
- pyjs/docs/builder.py +351 -0
- pyjs/docs/cli.py +55 -0
- pyjs/docs/config.py +45 -0
- pyjs/docs/favicon.svg +18 -0
- pyjs/docs/markdown.py +61 -0
- pyjs/docs/models.py +38 -0
- pyjs/docs/navigation.py +61 -0
- pyjs/docs/style.css +901 -0
- pyjs/docs/ui.py +349 -0
- pyjs/nativescript/__init__.py +77 -0
- pyjs/scaffolding/__init__.py +418 -0
- pyjs/scaffolding/templates/app/README.md.template +33 -0
- pyjs/scaffolding/templates/app/__PYJS_SOURCE_ROOT__/__PYJS_PACKAGE__/__PYJS_PACKAGE__.py.template +81 -0
- pyjs/scaffolding/templates/app/__PYJS_SOURCE_ROOT__/__PYJS_PACKAGE__/__init__.py.template +0 -0
- pyjs/scaffolding/templates/app/__PYJS_SOURCE_ROOT__/__PYJS_PACKAGE__/__main__.py.template +5 -0
- pyjs/scaffolding/templates/app/tests/test_app.py.template +22 -0
- pyjs/scaffolding/templates/app/tests/test_browser_app.py.template +19 -0
- pyjs/scaffolding/templates/app_test.py.template +8 -0
- pyjs/server.py +468 -0
- pyjs/skills/pyjs/SKILL.md +161 -0
- pyjs/state.py +101 -0
- pyjs/testing/__init__.py +3 -0
- pyjs/testing/android.py +248 -0
- pyjs/testing/artifacts.py +37 -0
- pyjs/testing/assertion_rewriter.py +125 -0
- pyjs/testing/builder.py +191 -0
- pyjs/testing/capture.py +133 -0
- pyjs/testing/client/__init__.py +1 -0
- pyjs/testing/client/app.py +718 -0
- pyjs/testing/client/assertions.py +49 -0
- pyjs/testing/client/runtime.py +123 -0
- pyjs/testing/client/sidebar.py +377 -0
- pyjs/testing/client/state.py +107 -0
- pyjs/testing/client/viewer.py +361 -0
- pyjs/testing/daemon.py +641 -0
- pyjs/testing/helpers.py +155 -0
- pyjs/testing/protocol.py +56 -0
- pyjs/testing/pytest_plugin.py +797 -0
- pyjs/testing/web.py +97 -0
- pyjs/testing/webgpu.py +27 -0
- pyjs/tooling/__init__.py +4 -0
- pyjs/tooling/android.py +138 -0
- pyjs/tooling/browser.py +676 -0
- pyjs/tooling/command.py +75 -0
- pyjs/tooling/nativescript.py +156 -0
- pyjs/tooling/node.py +170 -0
- pyjs/tooling/perf.py +163 -0
- pyjs/transpiler/__init__.py +23 -0
- pyjs/transpiler/_builtins.py +485 -0
- pyjs/transpiler/analyzer.py +1495 -0
- pyjs/transpiler/objects.py +1015 -0
- pyjs/transpiler/source.py +189 -0
- pyjs/transpiler/transpiler.py +748 -0
- pyjs/transpiler/utils.py +150 -0
- pyjs/web/__init__.py +5 -0
- pyjs/web/console.py +16 -0
- pyjs/web/dom.py +1529 -0
- pyjs/web/domx.py +474 -0
- pyjs/web/dragdrop.py +102 -0
- pyjs/web/events.py +1306 -0
- pyjs/web/files.py +203 -0
- pyjs/web/geometry.py +475 -0
- pyjs/web/html.py +927 -0
- pyjs/web/indexeddb.py +410 -0
- pyjs/web/javascript.py +112 -0
- pyjs/web/network.py +193 -0
- pyjs/web/ssr.py +70 -0
- pyjs/web/streams.py +17 -0
- pyjs/web/svg.py +684 -0
- pyjs/web/timers.py +29 -0
- pyjs/web/ui/__init__.py +18 -0
- pyjs/web/ui/accordion.py +166 -0
- pyjs/web/ui/alert.py +52 -0
- pyjs/web/ui/alert_dialog.py +102 -0
- pyjs/web/ui/aspect_ratio.py +12 -0
- pyjs/web/ui/attachment.py +80 -0
- pyjs/web/ui/avatar.py +105 -0
- pyjs/web/ui/badge.py +48 -0
- pyjs/web/ui/breadcrumb.py +85 -0
- pyjs/web/ui/bubble.py +38 -0
- pyjs/web/ui/button.py +86 -0
- pyjs/web/ui/calendar.py +124 -0
- pyjs/web/ui/card.py +58 -0
- pyjs/web/ui/carousel.py +99 -0
- pyjs/web/ui/chart.py +56 -0
- pyjs/web/ui/checkbox.py +31 -0
- pyjs/web/ui/collapsible.py +71 -0
- pyjs/web/ui/combobox.py +36 -0
- pyjs/web/ui/command.py +118 -0
- pyjs/web/ui/context_menu.py +65 -0
- pyjs/web/ui/date_picker.py +24 -0
- pyjs/web/ui/dialog.py +289 -0
- pyjs/web/ui/direction.py +9 -0
- pyjs/web/ui/drawer.py +72 -0
- pyjs/web/ui/dropdown_menu.py +239 -0
- pyjs/web/ui/empty.py +69 -0
- pyjs/web/ui/field.py +96 -0
- pyjs/web/ui/floating.py +90 -0
- pyjs/web/ui/hover_card.py +128 -0
- pyjs/web/ui/input.py +48 -0
- pyjs/web/ui/input_group.py +77 -0
- pyjs/web/ui/input_otp.py +76 -0
- pyjs/web/ui/item.py +78 -0
- pyjs/web/ui/kbd.py +26 -0
- pyjs/web/ui/label.py +14 -0
- pyjs/web/ui/marker.py +29 -0
- pyjs/web/ui/menubar.py +52 -0
- pyjs/web/ui/message.py +57 -0
- pyjs/web/ui/message_scroller.py +45 -0
- pyjs/web/ui/native_select.py +47 -0
- pyjs/web/ui/navigation_menu.py +110 -0
- pyjs/web/ui/pagination.py +63 -0
- pyjs/web/ui/popover.py +217 -0
- pyjs/web/ui/progress.py +44 -0
- pyjs/web/ui/radio_group.py +129 -0
- pyjs/web/ui/resizable.py +194 -0
- pyjs/web/ui/scroll_area.py +29 -0
- pyjs/web/ui/select.py +83 -0
- pyjs/web/ui/separator.py +24 -0
- pyjs/web/ui/sheet.py +77 -0
- pyjs/web/ui/sidebar.py +162 -0
- pyjs/web/ui/skeleton.py +15 -0
- pyjs/web/ui/slider.py +46 -0
- pyjs/web/ui/sonner.py +70 -0
- pyjs/web/ui/spinner.py +14 -0
- pyjs/web/ui/switch.py +35 -0
- pyjs/web/ui/table.py +84 -0
- pyjs/web/ui/tabs.py +167 -0
- pyjs/web/ui/text.py +15 -0
- pyjs/web/ui/textarea.py +28 -0
- pyjs/web/ui/toggle.py +109 -0
- pyjs/web/ui/tooltip.py +164 -0
- pyjs/web/ui/typography.py +79 -0
- pyjs/web/url.py +76 -0
- pyjs/web/webgpu.py +496 -0
- pyjs-0.0.1.dist-info/METADATA +441 -0
- pyjs-0.0.1.dist-info/RECORD +146 -0
- pyjs-0.0.1.dist-info/WHEEL +5 -0
- pyjs-0.0.1.dist-info/entry_points.txt +5 -0
- pyjs-0.0.1.dist-info/licenses/LICENSE +28 -0
- pyjs-0.0.1.dist-info/top_level.txt +1 -0
pyjs/docs/style.css
ADDED
|
@@ -0,0 +1,901 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
color-scheme: light;
|
|
3
|
+
--accent: #5b5bd6;
|
|
4
|
+
--accent-bright: #4343c7;
|
|
5
|
+
--accent-soft: #eeeeff;
|
|
6
|
+
--background: #ffffff;
|
|
7
|
+
--background-raised: #ffffff;
|
|
8
|
+
--background-subtle: #f7f8fa;
|
|
9
|
+
--border: #e4e7ec;
|
|
10
|
+
--border-strong: #cfd4dc;
|
|
11
|
+
--code-background: #111827;
|
|
12
|
+
--code-foreground: #e5e7eb;
|
|
13
|
+
--foreground: #18181b;
|
|
14
|
+
--foreground-muted: #616775;
|
|
15
|
+
--header-background: rgb(255 255 255 / 88%);
|
|
16
|
+
--selection: #dadaff;
|
|
17
|
+
--shadow: 0 16px 50px rgb(20 24 40 / 12%);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@media (prefers-color-scheme: dark) {
|
|
21
|
+
:root:not([data-theme="light"]) {
|
|
22
|
+
color-scheme: dark;
|
|
23
|
+
--accent: #a5a6ff;
|
|
24
|
+
--accent-bright: #c3c4ff;
|
|
25
|
+
--accent-soft: #242440;
|
|
26
|
+
--background: #0b0d11;
|
|
27
|
+
--background-raised: #12151b;
|
|
28
|
+
--background-subtle: #101218;
|
|
29
|
+
--border: #292d36;
|
|
30
|
+
--border-strong: #3a404d;
|
|
31
|
+
--code-background: #08090c;
|
|
32
|
+
--code-foreground: #e5e7eb;
|
|
33
|
+
--foreground: #f5f6f8;
|
|
34
|
+
--foreground-muted: #a7adba;
|
|
35
|
+
--header-background: rgb(11 13 17 / 88%);
|
|
36
|
+
--selection: #34346b;
|
|
37
|
+
--shadow: 0 20px 60px rgb(0 0 0 / 45%);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:root[data-theme="dark"] {
|
|
42
|
+
color-scheme: dark;
|
|
43
|
+
--accent: #a5a6ff;
|
|
44
|
+
--accent-bright: #c3c4ff;
|
|
45
|
+
--accent-soft: #242440;
|
|
46
|
+
--background: #0b0d11;
|
|
47
|
+
--background-raised: #12151b;
|
|
48
|
+
--background-subtle: #101218;
|
|
49
|
+
--border: #292d36;
|
|
50
|
+
--border-strong: #3a404d;
|
|
51
|
+
--code-background: #08090c;
|
|
52
|
+
--code-foreground: #e5e7eb;
|
|
53
|
+
--foreground: #f5f6f8;
|
|
54
|
+
--foreground-muted: #a7adba;
|
|
55
|
+
--header-background: rgb(11 13 17 / 88%);
|
|
56
|
+
--selection: #34346b;
|
|
57
|
+
--shadow: 0 20px 60px rgb(0 0 0 / 45%);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
* {
|
|
61
|
+
box-sizing: border-box;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
html {
|
|
65
|
+
background: var(--background);
|
|
66
|
+
scroll-behavior: smooth;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
body {
|
|
70
|
+
margin: 0;
|
|
71
|
+
background:
|
|
72
|
+
radial-gradient(circle at 48% -15%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 32rem),
|
|
73
|
+
var(--background);
|
|
74
|
+
color: var(--foreground);
|
|
75
|
+
font-family:
|
|
76
|
+
Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
77
|
+
font-size: 15px;
|
|
78
|
+
line-height: 1.65;
|
|
79
|
+
text-rendering: optimizeLegibility;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
::selection {
|
|
83
|
+
background: var(--selection);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
a {
|
|
87
|
+
color: inherit;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
button,
|
|
91
|
+
input {
|
|
92
|
+
font: inherit;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
button {
|
|
96
|
+
color: inherit;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.skip-link {
|
|
100
|
+
position: fixed;
|
|
101
|
+
z-index: 100;
|
|
102
|
+
top: 0.5rem;
|
|
103
|
+
left: 0.5rem;
|
|
104
|
+
padding: 0.55rem 0.8rem;
|
|
105
|
+
border-radius: 0.45rem;
|
|
106
|
+
background: var(--foreground);
|
|
107
|
+
color: var(--background);
|
|
108
|
+
transform: translateY(-150%);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.skip-link:focus {
|
|
112
|
+
transform: translateY(0);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.site-header {
|
|
116
|
+
position: sticky;
|
|
117
|
+
z-index: 40;
|
|
118
|
+
top: 0;
|
|
119
|
+
height: 4rem;
|
|
120
|
+
border-bottom: 1px solid var(--border);
|
|
121
|
+
background: var(--header-background);
|
|
122
|
+
backdrop-filter: blur(16px) saturate(160%);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.header-inner {
|
|
126
|
+
display: flex;
|
|
127
|
+
align-items: center;
|
|
128
|
+
width: min(100%, 96rem);
|
|
129
|
+
height: 100%;
|
|
130
|
+
margin: 0 auto;
|
|
131
|
+
padding: 0 1.5rem;
|
|
132
|
+
gap: 0.6rem;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.brand {
|
|
136
|
+
display: inline-flex;
|
|
137
|
+
align-items: center;
|
|
138
|
+
gap: 0.55rem;
|
|
139
|
+
color: var(--foreground);
|
|
140
|
+
font-size: 1rem;
|
|
141
|
+
font-weight: 720;
|
|
142
|
+
letter-spacing: -0.02em;
|
|
143
|
+
text-decoration: none;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.brand-mark {
|
|
147
|
+
display: grid;
|
|
148
|
+
place-items: center;
|
|
149
|
+
width: 1.85rem;
|
|
150
|
+
height: 1.85rem;
|
|
151
|
+
border-radius: 0.5rem;
|
|
152
|
+
background: linear-gradient(135deg, #6969e8, #4747bc);
|
|
153
|
+
color: white;
|
|
154
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
155
|
+
font-size: 0.74rem;
|
|
156
|
+
font-weight: 800;
|
|
157
|
+
box-shadow: inset 0 0 0 1px rgb(255 255 255 / 16%);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.brand-section {
|
|
161
|
+
text-decoration: none;
|
|
162
|
+
padding-left: 0.55rem;
|
|
163
|
+
border-left: 1px solid var(--border-strong);
|
|
164
|
+
color: var(--foreground-muted);
|
|
165
|
+
font-weight: 520;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.brand-section:hover {
|
|
169
|
+
color: var(--foreground);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.site-links {
|
|
173
|
+
display: flex;
|
|
174
|
+
align-items: center;
|
|
175
|
+
margin-left: 1.25rem;
|
|
176
|
+
gap: 1rem;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.site-links a {
|
|
180
|
+
color: var(--foreground-muted);
|
|
181
|
+
font-size: 0.8rem;
|
|
182
|
+
font-weight: 550;
|
|
183
|
+
text-decoration: none;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.site-links a:hover,
|
|
187
|
+
.site-links a[aria-current="page"] {
|
|
188
|
+
color: var(--foreground);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.header-spacer {
|
|
192
|
+
flex: 1;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.icon-button,
|
|
196
|
+
.search-button {
|
|
197
|
+
display: inline-flex;
|
|
198
|
+
align-items: center;
|
|
199
|
+
justify-content: center;
|
|
200
|
+
height: 2.25rem;
|
|
201
|
+
border: 1px solid var(--border);
|
|
202
|
+
border-radius: 0.55rem;
|
|
203
|
+
background: var(--background-raised);
|
|
204
|
+
color: var(--foreground-muted);
|
|
205
|
+
cursor: pointer;
|
|
206
|
+
text-decoration: none;
|
|
207
|
+
transition: border-color 120ms, color 120ms, background 120ms;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.icon-button {
|
|
211
|
+
min-width: 2.25rem;
|
|
212
|
+
padding: 0 0.65rem;
|
|
213
|
+
font-size: 0.74rem;
|
|
214
|
+
font-weight: 650;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.icon-button:hover,
|
|
218
|
+
.search-button:hover {
|
|
219
|
+
border-color: var(--border-strong);
|
|
220
|
+
background: var(--background-subtle);
|
|
221
|
+
color: var(--foreground);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.search-button {
|
|
225
|
+
min-width: 13rem;
|
|
226
|
+
justify-content: flex-start;
|
|
227
|
+
padding: 0 0.55rem 0 0.8rem;
|
|
228
|
+
gap: 0.5rem;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.search-label {
|
|
232
|
+
flex: 1;
|
|
233
|
+
color: var(--foreground-muted);
|
|
234
|
+
text-align: left;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.search-icon {
|
|
238
|
+
width: 1rem;
|
|
239
|
+
height: 1rem;
|
|
240
|
+
fill: none;
|
|
241
|
+
stroke: currentcolor;
|
|
242
|
+
stroke-linecap: round;
|
|
243
|
+
stroke-linejoin: round;
|
|
244
|
+
stroke-width: 2;
|
|
245
|
+
color: var(--foreground-muted);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
kbd {
|
|
249
|
+
padding: 0.05rem 0.35rem;
|
|
250
|
+
border: 1px solid var(--border);
|
|
251
|
+
border-radius: 0.3rem;
|
|
252
|
+
background: var(--background-subtle);
|
|
253
|
+
color: var(--foreground-muted);
|
|
254
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
255
|
+
font-size: 0.68rem;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.mobile-menu-button {
|
|
259
|
+
display: none;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.docs-layout {
|
|
263
|
+
display: grid;
|
|
264
|
+
grid-template-columns: minmax(13rem, 16rem) minmax(0, 50rem) minmax(10rem, 13rem);
|
|
265
|
+
justify-content: center;
|
|
266
|
+
width: min(100%, 96rem);
|
|
267
|
+
min-height: calc(100vh - 4rem);
|
|
268
|
+
margin: 0 auto;
|
|
269
|
+
gap: clamp(1.5rem, 3vw, 4rem);
|
|
270
|
+
padding: 0 1.5rem;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.docs-sidebar,
|
|
274
|
+
.docs-outline {
|
|
275
|
+
position: sticky;
|
|
276
|
+
top: 4rem;
|
|
277
|
+
align-self: start;
|
|
278
|
+
height: calc(100vh - 4rem);
|
|
279
|
+
overflow-y: auto;
|
|
280
|
+
scrollbar-width: thin;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.docs-sidebar {
|
|
284
|
+
padding: 2rem 0 4rem;
|
|
285
|
+
border-right: 1px solid var(--border);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.nav-list,
|
|
289
|
+
.outline-list {
|
|
290
|
+
margin: 0;
|
|
291
|
+
padding: 0;
|
|
292
|
+
list-style: none;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.nav-group + .nav-group {
|
|
296
|
+
margin-top: 1.6rem;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.nav-heading {
|
|
300
|
+
margin: 0 1rem 0.4rem 0;
|
|
301
|
+
color: var(--foreground);
|
|
302
|
+
font-size: 0.76rem;
|
|
303
|
+
font-weight: 720;
|
|
304
|
+
letter-spacing: 0.025em;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.nav-link {
|
|
308
|
+
display: block;
|
|
309
|
+
margin-right: 1rem;
|
|
310
|
+
padding: 0.3rem 0.65rem;
|
|
311
|
+
border-left: 1px solid transparent;
|
|
312
|
+
border-radius: 0.3rem;
|
|
313
|
+
color: var(--foreground-muted);
|
|
314
|
+
font-size: 0.85rem;
|
|
315
|
+
line-height: 1.45;
|
|
316
|
+
text-decoration: none;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.nav-link:hover {
|
|
320
|
+
color: var(--foreground);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.nav-link[aria-current="page"] {
|
|
324
|
+
border-left-color: var(--accent);
|
|
325
|
+
background: var(--accent-soft);
|
|
326
|
+
color: var(--accent-bright);
|
|
327
|
+
font-weight: 620;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.nav-nested {
|
|
331
|
+
margin: 0.25rem 0 0.5rem 0.65rem;
|
|
332
|
+
padding: 0 0 0 0.65rem;
|
|
333
|
+
border-left: 1px solid var(--border);
|
|
334
|
+
list-style: none;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.docs-main {
|
|
338
|
+
min-width: 0;
|
|
339
|
+
padding: 3.5rem 0 7rem;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.docs-article {
|
|
343
|
+
width: 100%;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.breadcrumbs {
|
|
347
|
+
display: flex;
|
|
348
|
+
flex-wrap: wrap;
|
|
349
|
+
gap: 0.35rem;
|
|
350
|
+
margin: 0 0 1rem;
|
|
351
|
+
color: var(--foreground-muted);
|
|
352
|
+
font-size: 0.79rem;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.breadcrumbs a {
|
|
356
|
+
text-decoration: none;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.breadcrumbs a:hover {
|
|
360
|
+
color: var(--foreground);
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.page-eyebrow {
|
|
364
|
+
margin: 0 0 0.55rem;
|
|
365
|
+
color: var(--accent-bright);
|
|
366
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
367
|
+
font-size: 0.74rem;
|
|
368
|
+
font-weight: 700;
|
|
369
|
+
letter-spacing: 0.08em;
|
|
370
|
+
text-transform: uppercase;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.page-title {
|
|
374
|
+
max-width: 48rem;
|
|
375
|
+
margin: 0;
|
|
376
|
+
color: var(--foreground);
|
|
377
|
+
font-size: clamp(2.35rem, 6vw, 3.85rem);
|
|
378
|
+
font-weight: 760;
|
|
379
|
+
letter-spacing: -0.052em;
|
|
380
|
+
line-height: 1.02;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.page-description {
|
|
384
|
+
max-width: 44rem;
|
|
385
|
+
margin: 1.25rem 0 2.8rem;
|
|
386
|
+
color: var(--foreground-muted);
|
|
387
|
+
font-size: 1.12rem;
|
|
388
|
+
line-height: 1.75;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.docs-content {
|
|
392
|
+
max-width: 48rem;
|
|
393
|
+
color: var(--foreground);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.docs-content > h1:first-child {
|
|
397
|
+
display: none;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.docs-content h2,
|
|
401
|
+
.docs-content h3,
|
|
402
|
+
.docs-content h4 {
|
|
403
|
+
scroll-margin-top: 5.5rem;
|
|
404
|
+
color: var(--foreground);
|
|
405
|
+
letter-spacing: -0.025em;
|
|
406
|
+
line-height: 1.25;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
.docs-content h2 {
|
|
410
|
+
margin: 3.5rem 0 1rem;
|
|
411
|
+
padding-top: 1rem;
|
|
412
|
+
border-top: 1px solid var(--border);
|
|
413
|
+
font-size: 1.7rem;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.docs-content h3 {
|
|
417
|
+
margin: 2.3rem 0 0.8rem;
|
|
418
|
+
font-size: 1.28rem;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.docs-content h4 {
|
|
422
|
+
margin: 1.8rem 0 0.65rem;
|
|
423
|
+
font-size: 1.05rem;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.docs-content p,
|
|
427
|
+
.docs-content ul,
|
|
428
|
+
.docs-content ol {
|
|
429
|
+
margin: 1rem 0;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.docs-content ul,
|
|
433
|
+
.docs-content ol {
|
|
434
|
+
padding-left: 1.5rem;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.docs-content li {
|
|
438
|
+
margin: 0.38rem 0;
|
|
439
|
+
padding-left: 0.15rem;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
.docs-content a {
|
|
443
|
+
color: var(--accent-bright);
|
|
444
|
+
font-weight: 540;
|
|
445
|
+
text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
|
|
446
|
+
text-underline-offset: 0.18em;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
.docs-content a:hover {
|
|
450
|
+
text-decoration-color: var(--accent);
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
.headerlink {
|
|
454
|
+
margin-left: 0.35rem;
|
|
455
|
+
color: var(--foreground-muted) !important;
|
|
456
|
+
opacity: 0;
|
|
457
|
+
text-decoration: none;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
h2:hover .headerlink,
|
|
461
|
+
h3:hover .headerlink,
|
|
462
|
+
h4:hover .headerlink,
|
|
463
|
+
.headerlink:focus {
|
|
464
|
+
opacity: 1;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
.docs-content code:not(.highlight code) {
|
|
468
|
+
padding: 0.14rem 0.34rem;
|
|
469
|
+
border: 1px solid var(--border);
|
|
470
|
+
border-radius: 0.3rem;
|
|
471
|
+
background: var(--background-subtle);
|
|
472
|
+
color: var(--foreground);
|
|
473
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
474
|
+
font-size: 0.87em;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
.highlight {
|
|
478
|
+
position: relative;
|
|
479
|
+
margin: 1.5rem 0;
|
|
480
|
+
overflow: hidden;
|
|
481
|
+
border: 1px solid color-mix(in srgb, var(--border) 55%, #000);
|
|
482
|
+
border-radius: 0.7rem;
|
|
483
|
+
background: var(--code-background);
|
|
484
|
+
box-shadow: 0 8px 24px rgb(0 0 0 / 9%);
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
.highlight pre {
|
|
488
|
+
margin: 0;
|
|
489
|
+
padding: 1.15rem 1.25rem;
|
|
490
|
+
overflow-x: auto;
|
|
491
|
+
color: var(--code-foreground);
|
|
492
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
493
|
+
font-size: 0.82rem;
|
|
494
|
+
line-height: 1.7;
|
|
495
|
+
tab-size: 4;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
.copy-button {
|
|
499
|
+
position: absolute;
|
|
500
|
+
top: 0.65rem;
|
|
501
|
+
right: 0.65rem;
|
|
502
|
+
padding: 0.3rem 0.5rem;
|
|
503
|
+
border: 1px solid #343b49;
|
|
504
|
+
border-radius: 0.35rem;
|
|
505
|
+
background: #1c222d;
|
|
506
|
+
color: #cbd5e1;
|
|
507
|
+
font-size: 0.7rem;
|
|
508
|
+
cursor: pointer;
|
|
509
|
+
opacity: 0;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
.highlight:hover .copy-button,
|
|
513
|
+
.copy-button:focus {
|
|
514
|
+
opacity: 1;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
.highlight .hll {
|
|
518
|
+
background-color: #272d3a;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
.highlight .c,
|
|
522
|
+
.highlight .c1,
|
|
523
|
+
.highlight .cm {
|
|
524
|
+
color: #788398;
|
|
525
|
+
font-style: italic;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
.highlight .k,
|
|
529
|
+
.highlight .kc,
|
|
530
|
+
.highlight .kd,
|
|
531
|
+
.highlight .kn {
|
|
532
|
+
color: #c4a7e7;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
.highlight .s,
|
|
536
|
+
.highlight .s1,
|
|
537
|
+
.highlight .s2 {
|
|
538
|
+
color: #9ccfd8;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
.highlight .m,
|
|
542
|
+
.highlight .mi,
|
|
543
|
+
.highlight .mf {
|
|
544
|
+
color: #f6c177;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
.highlight .na,
|
|
548
|
+
.highlight .nb,
|
|
549
|
+
.highlight .nc,
|
|
550
|
+
.highlight .nf {
|
|
551
|
+
color: #8bd5ca;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
.docs-content blockquote {
|
|
555
|
+
margin: 1.5rem 0;
|
|
556
|
+
padding: 0.2rem 0 0.2rem 1rem;
|
|
557
|
+
border-left: 3px solid var(--accent);
|
|
558
|
+
color: var(--foreground-muted);
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
.docs-content table {
|
|
562
|
+
width: 100%;
|
|
563
|
+
margin: 1.5rem 0;
|
|
564
|
+
border-collapse: collapse;
|
|
565
|
+
font-size: 0.9rem;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
.docs-content th,
|
|
569
|
+
.docs-content td {
|
|
570
|
+
padding: 0.7rem 0.8rem;
|
|
571
|
+
border-bottom: 1px solid var(--border);
|
|
572
|
+
text-align: left;
|
|
573
|
+
vertical-align: top;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
.docs-content th {
|
|
577
|
+
background: var(--background-subtle);
|
|
578
|
+
color: var(--foreground);
|
|
579
|
+
font-weight: 650;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
.admonition {
|
|
583
|
+
margin: 1.5rem 0;
|
|
584
|
+
padding: 0.9rem 1rem;
|
|
585
|
+
border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
|
|
586
|
+
border-radius: 0.65rem;
|
|
587
|
+
background: color-mix(in srgb, var(--accent-soft) 55%, var(--background));
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
.admonition-title {
|
|
591
|
+
margin: 0 0 0.35rem !important;
|
|
592
|
+
color: var(--accent-bright);
|
|
593
|
+
font-size: 0.82rem;
|
|
594
|
+
font-weight: 700;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
.admonition > :last-child {
|
|
598
|
+
margin-bottom: 0;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
.docs-pager {
|
|
602
|
+
display: grid;
|
|
603
|
+
grid-template-columns: 1fr 1fr;
|
|
604
|
+
margin-top: 4rem;
|
|
605
|
+
gap: 0.85rem;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
.pager-link {
|
|
609
|
+
min-width: 0;
|
|
610
|
+
padding: 0.9rem 1rem;
|
|
611
|
+
border: 1px solid var(--border);
|
|
612
|
+
border-radius: 0.65rem;
|
|
613
|
+
background: var(--background-raised);
|
|
614
|
+
text-decoration: none;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
.pager-link:hover {
|
|
618
|
+
border-color: var(--accent);
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
.pager-next {
|
|
622
|
+
text-align: right;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
.pager-direction {
|
|
626
|
+
display: block;
|
|
627
|
+
color: var(--foreground-muted);
|
|
628
|
+
font-size: 0.72rem;
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
.pager-title {
|
|
632
|
+
display: block;
|
|
633
|
+
margin-top: 0.2rem;
|
|
634
|
+
color: var(--foreground);
|
|
635
|
+
font-weight: 620;
|
|
636
|
+
overflow: hidden;
|
|
637
|
+
text-overflow: ellipsis;
|
|
638
|
+
white-space: nowrap;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
.docs-outline {
|
|
642
|
+
padding: 3.5rem 0 4rem;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
.outline-title {
|
|
646
|
+
margin: 0 0 0.8rem;
|
|
647
|
+
color: var(--foreground);
|
|
648
|
+
font-size: 0.74rem;
|
|
649
|
+
font-weight: 720;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
.outline-link {
|
|
653
|
+
display: block;
|
|
654
|
+
padding: 0.25rem 0;
|
|
655
|
+
color: var(--foreground-muted);
|
|
656
|
+
font-size: 0.78rem;
|
|
657
|
+
line-height: 1.45;
|
|
658
|
+
text-decoration: none;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
.outline-link:hover {
|
|
662
|
+
color: var(--foreground);
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
.outline-level-3 {
|
|
666
|
+
padding-left: 0.75rem;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
.outline-level-4 {
|
|
670
|
+
padding-left: 1.5rem;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
.outline-edit {
|
|
674
|
+
display: block;
|
|
675
|
+
margin-top: 1.2rem;
|
|
676
|
+
padding-top: 1rem;
|
|
677
|
+
border-top: 1px solid var(--border);
|
|
678
|
+
color: var(--foreground-muted);
|
|
679
|
+
font-size: 0.75rem;
|
|
680
|
+
text-decoration: none;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
.outline-edit:hover {
|
|
684
|
+
color: var(--foreground);
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
.search-dialog {
|
|
688
|
+
width: min(42rem, calc(100vw - 2rem));
|
|
689
|
+
max-height: min(38rem, calc(100vh - 5rem));
|
|
690
|
+
margin: 10vh auto 0;
|
|
691
|
+
padding: 0;
|
|
692
|
+
overflow: hidden;
|
|
693
|
+
border: 1px solid var(--border-strong);
|
|
694
|
+
border-radius: 0.85rem;
|
|
695
|
+
background: var(--background-raised);
|
|
696
|
+
color: var(--foreground);
|
|
697
|
+
box-shadow: var(--shadow);
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
.search-dialog::backdrop {
|
|
701
|
+
background: rgb(6 8 12 / 55%);
|
|
702
|
+
backdrop-filter: blur(3px);
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
.search-panel {
|
|
706
|
+
display: flex;
|
|
707
|
+
max-height: min(38rem, calc(100vh - 5rem));
|
|
708
|
+
flex-direction: column;
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
.search-field {
|
|
712
|
+
display: flex;
|
|
713
|
+
align-items: center;
|
|
714
|
+
padding: 0.8rem 0.9rem;
|
|
715
|
+
border-bottom: 1px solid var(--border);
|
|
716
|
+
gap: 0.65rem;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
.search-input {
|
|
720
|
+
min-width: 0;
|
|
721
|
+
flex: 1;
|
|
722
|
+
border: 0;
|
|
723
|
+
outline: 0;
|
|
724
|
+
background: transparent;
|
|
725
|
+
color: var(--foreground);
|
|
726
|
+
font-size: 1rem;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
.search-input::placeholder {
|
|
730
|
+
color: var(--foreground-muted);
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
.search-close {
|
|
734
|
+
padding: 0.2rem 0.42rem;
|
|
735
|
+
border: 1px solid var(--border);
|
|
736
|
+
border-radius: 0.3rem;
|
|
737
|
+
background: var(--background-subtle);
|
|
738
|
+
color: var(--foreground-muted);
|
|
739
|
+
font-size: 0.7rem;
|
|
740
|
+
cursor: pointer;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
.search-results {
|
|
744
|
+
min-height: 8rem;
|
|
745
|
+
padding: 0.55rem;
|
|
746
|
+
overflow-y: auto;
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
.search-empty {
|
|
750
|
+
display: grid;
|
|
751
|
+
min-height: 7rem;
|
|
752
|
+
place-items: center;
|
|
753
|
+
color: var(--foreground-muted);
|
|
754
|
+
font-size: 0.85rem;
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
.search-result {
|
|
758
|
+
display: grid;
|
|
759
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
760
|
+
padding: 0.7rem 0.8rem;
|
|
761
|
+
border-radius: 0.5rem;
|
|
762
|
+
text-decoration: none;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
.search-result:hover,
|
|
766
|
+
.search-result:focus {
|
|
767
|
+
outline: none;
|
|
768
|
+
background: var(--accent-soft);
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
.search-result-title {
|
|
772
|
+
min-width: 0;
|
|
773
|
+
color: var(--foreground);
|
|
774
|
+
font-size: 0.88rem;
|
|
775
|
+
font-weight: 650;
|
|
776
|
+
overflow: hidden;
|
|
777
|
+
text-overflow: ellipsis;
|
|
778
|
+
white-space: nowrap;
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
.search-result-section {
|
|
782
|
+
color: var(--foreground-muted);
|
|
783
|
+
font-size: 0.72rem;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
.search-result-text {
|
|
787
|
+
grid-column: 1 / -1;
|
|
788
|
+
margin-top: 0.1rem;
|
|
789
|
+
color: var(--foreground-muted);
|
|
790
|
+
font-size: 0.78rem;
|
|
791
|
+
overflow: hidden;
|
|
792
|
+
text-overflow: ellipsis;
|
|
793
|
+
white-space: nowrap;
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
.docs-search-data {
|
|
797
|
+
display: none;
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
@media (max-width: 74rem) {
|
|
801
|
+
.docs-layout {
|
|
802
|
+
grid-template-columns: minmax(13rem, 15rem) minmax(0, 50rem);
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
.docs-outline {
|
|
806
|
+
display: none;
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
@media (max-width: 50rem) {
|
|
811
|
+
.header-inner {
|
|
812
|
+
padding: 0 1rem;
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
.mobile-menu-button {
|
|
816
|
+
display: inline-flex;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
.github-button,
|
|
820
|
+
.site-links,
|
|
821
|
+
.search-label,
|
|
822
|
+
.search-button kbd {
|
|
823
|
+
display: none;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
.search-button {
|
|
827
|
+
min-width: 2.25rem;
|
|
828
|
+
width: 2.25rem;
|
|
829
|
+
padding: 0;
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
.docs-layout {
|
|
833
|
+
display: block;
|
|
834
|
+
padding: 0 1.25rem;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
.docs-sidebar {
|
|
838
|
+
position: fixed;
|
|
839
|
+
z-index: 35;
|
|
840
|
+
top: 4rem;
|
|
841
|
+
bottom: 0;
|
|
842
|
+
left: 0;
|
|
843
|
+
display: none;
|
|
844
|
+
width: min(19rem, 85vw);
|
|
845
|
+
height: auto;
|
|
846
|
+
padding: 1.5rem 1rem 4rem;
|
|
847
|
+
border-right: 1px solid var(--border);
|
|
848
|
+
background: var(--background);
|
|
849
|
+
box-shadow: var(--shadow);
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
docs-app[data-menu-open] .docs-sidebar {
|
|
853
|
+
display: block;
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
.docs-main {
|
|
857
|
+
padding-top: 2.5rem;
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
.page-title {
|
|
861
|
+
font-size: clamp(2.2rem, 12vw, 3.2rem);
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
.page-description {
|
|
865
|
+
margin-bottom: 2rem;
|
|
866
|
+
font-size: 1rem;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
.docs-content h2 {
|
|
870
|
+
margin-top: 2.8rem;
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
@media (max-width: 34rem) {
|
|
875
|
+
.brand-section,
|
|
876
|
+
.theme-button {
|
|
877
|
+
display: none;
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
.docs-pager {
|
|
881
|
+
grid-template-columns: 1fr;
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
@media print {
|
|
886
|
+
.site-header,
|
|
887
|
+
.docs-sidebar,
|
|
888
|
+
.docs-outline,
|
|
889
|
+
.copy-button,
|
|
890
|
+
.docs-pager {
|
|
891
|
+
display: none;
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
.docs-layout {
|
|
895
|
+
display: block;
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
.docs-main {
|
|
899
|
+
padding: 0;
|
|
900
|
+
}
|
|
901
|
+
}
|