reflex 0.7.10.post1__py3-none-any.whl → 0.7.11a1__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.
Potentially problematic release.
This version of reflex might be problematic. Click here for more details.
- reflex/.templates/jinja/web/pages/_app.js.jinja2 +10 -10
- reflex/.templates/jinja/web/pages/_document.js.jinja2 +1 -1
- reflex/.templates/jinja/web/pages/index.js.jinja2 +1 -1
- reflex/.templates/jinja/web/pages/stateful_component.js.jinja2 +1 -1
- reflex/.templates/jinja/web/pages/utils.js.jinja2 +35 -72
- reflex/.templates/jinja/web/utils/context.js.jinja2 +6 -18
- reflex/.templates/web/components/reflex/radix_themes_color_mode_provider.js +7 -7
- reflex/.templates/web/components/shiki/code.js +5 -4
- reflex/compiler/compiler.py +20 -3
- reflex/components/base/bare.py +8 -5
- reflex/components/base/body.py +2 -4
- reflex/components/base/body.pyi +197 -3
- reflex/components/base/error_boundary.py +1 -1
- reflex/components/base/link.py +3 -3
- reflex/components/base/link.pyi +392 -4
- reflex/components/base/meta.py +5 -9
- reflex/components/base/meta.pyi +608 -28
- reflex/components/component.py +13 -27
- reflex/components/core/colors.py +35 -4
- reflex/components/core/cond.py +2 -2
- reflex/components/core/upload.py +2 -2
- reflex/components/datadisplay/shiki_code_block.py +2 -2
- reflex/components/dynamic.py +5 -2
- reflex/components/el/element.py +4 -0
- reflex/components/el/elements/forms.py +3 -1
- reflex/components/el/elements/inline.py +3 -1
- reflex/components/el/elements/metadata.py +1 -1
- reflex/components/el/elements/metadata.pyi +1 -0
- reflex/components/el/elements/typography.py +3 -1
- reflex/components/lucide/icon.py +47 -3
- reflex/components/lucide/icon.pyi +45 -0
- reflex/components/markdown/markdown.py +6 -7
- reflex/components/markdown/markdown.pyi +2 -2
- reflex/components/moment/moment.py +1 -1
- reflex/components/next/video.py +8 -1
- reflex/components/plotly/plotly.py +1 -1
- reflex/components/radix/primitives/drawer.py +1 -1
- reflex/components/radix/themes/layout/list.py +3 -2
- reflex/components/radix/themes/layout/list.pyi +391 -2
- reflex/components/suneditor/editor.py +1 -1
- reflex/config.py +3 -0
- reflex/constants/colors.py +23 -6
- reflex/constants/installer.py +2 -2
- reflex/state.py +3 -1
- reflex/utils/build.py +1 -2
- reflex/utils/format.py +16 -6
- reflex/utils/pyi_generator.py +1 -0
- reflex/utils/types.py +24 -8
- {reflex-0.7.10.post1.dist-info → reflex-0.7.11a1.dist-info}/METADATA +1 -1
- {reflex-0.7.10.post1.dist-info → reflex-0.7.11a1.dist-info}/RECORD +53 -53
- {reflex-0.7.10.post1.dist-info → reflex-0.7.11a1.dist-info}/WHEEL +0 -0
- {reflex-0.7.10.post1.dist-info → reflex-0.7.11a1.dist-info}/entry_points.txt +0 -0
- {reflex-0.7.10.post1.dist-info → reflex-0.7.11a1.dist-info}/licenses/LICENSE +0 -0
reflex/components/base/link.pyi
CHANGED
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
5
|
# ------------------------------------------------------
|
|
6
6
|
from collections.abc import Mapping, Sequence
|
|
7
|
-
from typing import Any, overload
|
|
7
|
+
from typing import Any, Literal, overload
|
|
8
8
|
|
|
9
|
-
from reflex.components.component import Component
|
|
10
9
|
from reflex.components.core.breakpoints import Breakpoints
|
|
10
|
+
from reflex.components.el.elements.base import BaseHTML
|
|
11
11
|
from reflex.event import EventType
|
|
12
12
|
from reflex.vars.base import Var
|
|
13
13
|
|
|
14
|
-
class RawLink(
|
|
14
|
+
class RawLink(BaseHTML):
|
|
15
15
|
@overload
|
|
16
16
|
@classmethod
|
|
17
17
|
def create( # type: ignore
|
|
@@ -19,6 +19,184 @@ class RawLink(Component):
|
|
|
19
19
|
*children,
|
|
20
20
|
href: Var[str] | str | None = None,
|
|
21
21
|
rel: Var[str] | str | None = None,
|
|
22
|
+
access_key: Var[str] | str | None = None,
|
|
23
|
+
auto_capitalize: Literal[
|
|
24
|
+
"characters", "none", "off", "on", "sentences", "words"
|
|
25
|
+
]
|
|
26
|
+
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
|
|
27
|
+
| None = None,
|
|
28
|
+
content_editable: Literal["inherit", "plaintext-only", False, True]
|
|
29
|
+
| Var[Literal["inherit", "plaintext-only", False, True]]
|
|
30
|
+
| None = None,
|
|
31
|
+
context_menu: Var[str] | str | None = None,
|
|
32
|
+
dir: Var[str] | str | None = None,
|
|
33
|
+
draggable: Var[bool] | bool | None = None,
|
|
34
|
+
enter_key_hint: Literal[
|
|
35
|
+
"done", "enter", "go", "next", "previous", "search", "send"
|
|
36
|
+
]
|
|
37
|
+
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
|
|
38
|
+
| None = None,
|
|
39
|
+
hidden: Var[bool] | bool | None = None,
|
|
40
|
+
input_mode: Literal[
|
|
41
|
+
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
42
|
+
]
|
|
43
|
+
| Var[
|
|
44
|
+
Literal[
|
|
45
|
+
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
46
|
+
]
|
|
47
|
+
]
|
|
48
|
+
| None = None,
|
|
49
|
+
item_prop: Var[str] | str | None = None,
|
|
50
|
+
lang: Var[str] | str | None = None,
|
|
51
|
+
role: Literal[
|
|
52
|
+
"alert",
|
|
53
|
+
"alertdialog",
|
|
54
|
+
"application",
|
|
55
|
+
"article",
|
|
56
|
+
"banner",
|
|
57
|
+
"button",
|
|
58
|
+
"cell",
|
|
59
|
+
"checkbox",
|
|
60
|
+
"columnheader",
|
|
61
|
+
"combobox",
|
|
62
|
+
"complementary",
|
|
63
|
+
"contentinfo",
|
|
64
|
+
"definition",
|
|
65
|
+
"dialog",
|
|
66
|
+
"directory",
|
|
67
|
+
"document",
|
|
68
|
+
"feed",
|
|
69
|
+
"figure",
|
|
70
|
+
"form",
|
|
71
|
+
"grid",
|
|
72
|
+
"gridcell",
|
|
73
|
+
"group",
|
|
74
|
+
"heading",
|
|
75
|
+
"img",
|
|
76
|
+
"link",
|
|
77
|
+
"list",
|
|
78
|
+
"listbox",
|
|
79
|
+
"listitem",
|
|
80
|
+
"log",
|
|
81
|
+
"main",
|
|
82
|
+
"marquee",
|
|
83
|
+
"math",
|
|
84
|
+
"menu",
|
|
85
|
+
"menubar",
|
|
86
|
+
"menuitem",
|
|
87
|
+
"menuitemcheckbox",
|
|
88
|
+
"menuitemradio",
|
|
89
|
+
"navigation",
|
|
90
|
+
"none",
|
|
91
|
+
"note",
|
|
92
|
+
"option",
|
|
93
|
+
"presentation",
|
|
94
|
+
"progressbar",
|
|
95
|
+
"radio",
|
|
96
|
+
"radiogroup",
|
|
97
|
+
"region",
|
|
98
|
+
"row",
|
|
99
|
+
"rowgroup",
|
|
100
|
+
"rowheader",
|
|
101
|
+
"scrollbar",
|
|
102
|
+
"search",
|
|
103
|
+
"searchbox",
|
|
104
|
+
"separator",
|
|
105
|
+
"slider",
|
|
106
|
+
"spinbutton",
|
|
107
|
+
"status",
|
|
108
|
+
"switch",
|
|
109
|
+
"tab",
|
|
110
|
+
"table",
|
|
111
|
+
"tablist",
|
|
112
|
+
"tabpanel",
|
|
113
|
+
"term",
|
|
114
|
+
"textbox",
|
|
115
|
+
"timer",
|
|
116
|
+
"toolbar",
|
|
117
|
+
"tooltip",
|
|
118
|
+
"tree",
|
|
119
|
+
"treegrid",
|
|
120
|
+
"treeitem",
|
|
121
|
+
]
|
|
122
|
+
| Var[
|
|
123
|
+
Literal[
|
|
124
|
+
"alert",
|
|
125
|
+
"alertdialog",
|
|
126
|
+
"application",
|
|
127
|
+
"article",
|
|
128
|
+
"banner",
|
|
129
|
+
"button",
|
|
130
|
+
"cell",
|
|
131
|
+
"checkbox",
|
|
132
|
+
"columnheader",
|
|
133
|
+
"combobox",
|
|
134
|
+
"complementary",
|
|
135
|
+
"contentinfo",
|
|
136
|
+
"definition",
|
|
137
|
+
"dialog",
|
|
138
|
+
"directory",
|
|
139
|
+
"document",
|
|
140
|
+
"feed",
|
|
141
|
+
"figure",
|
|
142
|
+
"form",
|
|
143
|
+
"grid",
|
|
144
|
+
"gridcell",
|
|
145
|
+
"group",
|
|
146
|
+
"heading",
|
|
147
|
+
"img",
|
|
148
|
+
"link",
|
|
149
|
+
"list",
|
|
150
|
+
"listbox",
|
|
151
|
+
"listitem",
|
|
152
|
+
"log",
|
|
153
|
+
"main",
|
|
154
|
+
"marquee",
|
|
155
|
+
"math",
|
|
156
|
+
"menu",
|
|
157
|
+
"menubar",
|
|
158
|
+
"menuitem",
|
|
159
|
+
"menuitemcheckbox",
|
|
160
|
+
"menuitemradio",
|
|
161
|
+
"navigation",
|
|
162
|
+
"none",
|
|
163
|
+
"note",
|
|
164
|
+
"option",
|
|
165
|
+
"presentation",
|
|
166
|
+
"progressbar",
|
|
167
|
+
"radio",
|
|
168
|
+
"radiogroup",
|
|
169
|
+
"region",
|
|
170
|
+
"row",
|
|
171
|
+
"rowgroup",
|
|
172
|
+
"rowheader",
|
|
173
|
+
"scrollbar",
|
|
174
|
+
"search",
|
|
175
|
+
"searchbox",
|
|
176
|
+
"separator",
|
|
177
|
+
"slider",
|
|
178
|
+
"spinbutton",
|
|
179
|
+
"status",
|
|
180
|
+
"switch",
|
|
181
|
+
"tab",
|
|
182
|
+
"table",
|
|
183
|
+
"tablist",
|
|
184
|
+
"tabpanel",
|
|
185
|
+
"term",
|
|
186
|
+
"textbox",
|
|
187
|
+
"timer",
|
|
188
|
+
"toolbar",
|
|
189
|
+
"tooltip",
|
|
190
|
+
"tree",
|
|
191
|
+
"treegrid",
|
|
192
|
+
"treeitem",
|
|
193
|
+
]
|
|
194
|
+
]
|
|
195
|
+
| None = None,
|
|
196
|
+
slot: Var[str] | str | None = None,
|
|
197
|
+
spell_check: Var[bool] | bool | None = None,
|
|
198
|
+
tab_index: Var[int] | int | None = None,
|
|
199
|
+
title: Var[str] | str | None = None,
|
|
22
200
|
style: Sequence[Mapping[str, Any]]
|
|
23
201
|
| Mapping[str, Any]
|
|
24
202
|
| Var[Mapping[str, Any]]
|
|
@@ -52,6 +230,22 @@ class RawLink(Component):
|
|
|
52
230
|
*children: The children of the component.
|
|
53
231
|
href: The href.
|
|
54
232
|
rel: The type of link.
|
|
233
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
234
|
+
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
235
|
+
content_editable: Indicates whether the element's content is editable.
|
|
236
|
+
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
237
|
+
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
238
|
+
draggable: Defines whether the element can be dragged.
|
|
239
|
+
enter_key_hint: Hints what media types the media element is able to play.
|
|
240
|
+
hidden: Defines whether the element is hidden.
|
|
241
|
+
input_mode: Defines the type of the element.
|
|
242
|
+
item_prop: Defines the name of the element for metadata purposes.
|
|
243
|
+
lang: Defines the language used in the element.
|
|
244
|
+
role: Defines the role of the element.
|
|
245
|
+
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
246
|
+
spell_check: Defines whether the element may be checked for spelling errors.
|
|
247
|
+
tab_index: Defines the position of the current element in the tabbing order.
|
|
248
|
+
title: Defines a tooltip for the element.
|
|
55
249
|
style: The style of the component.
|
|
56
250
|
key: A unique key for the component.
|
|
57
251
|
id: The id for the component.
|
|
@@ -65,7 +259,7 @@ class RawLink(Component):
|
|
|
65
259
|
"""
|
|
66
260
|
...
|
|
67
261
|
|
|
68
|
-
class ScriptTag(
|
|
262
|
+
class ScriptTag(BaseHTML):
|
|
69
263
|
@overload
|
|
70
264
|
@classmethod
|
|
71
265
|
def create( # type: ignore
|
|
@@ -78,6 +272,184 @@ class ScriptTag(Component):
|
|
|
78
272
|
referrer_policy: Var[str] | str | None = None,
|
|
79
273
|
is_async: Var[bool] | bool | None = None,
|
|
80
274
|
defer: Var[bool] | bool | None = None,
|
|
275
|
+
access_key: Var[str] | str | None = None,
|
|
276
|
+
auto_capitalize: Literal[
|
|
277
|
+
"characters", "none", "off", "on", "sentences", "words"
|
|
278
|
+
]
|
|
279
|
+
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
|
|
280
|
+
| None = None,
|
|
281
|
+
content_editable: Literal["inherit", "plaintext-only", False, True]
|
|
282
|
+
| Var[Literal["inherit", "plaintext-only", False, True]]
|
|
283
|
+
| None = None,
|
|
284
|
+
context_menu: Var[str] | str | None = None,
|
|
285
|
+
dir: Var[str] | str | None = None,
|
|
286
|
+
draggable: Var[bool] | bool | None = None,
|
|
287
|
+
enter_key_hint: Literal[
|
|
288
|
+
"done", "enter", "go", "next", "previous", "search", "send"
|
|
289
|
+
]
|
|
290
|
+
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
|
|
291
|
+
| None = None,
|
|
292
|
+
hidden: Var[bool] | bool | None = None,
|
|
293
|
+
input_mode: Literal[
|
|
294
|
+
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
295
|
+
]
|
|
296
|
+
| Var[
|
|
297
|
+
Literal[
|
|
298
|
+
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
299
|
+
]
|
|
300
|
+
]
|
|
301
|
+
| None = None,
|
|
302
|
+
item_prop: Var[str] | str | None = None,
|
|
303
|
+
lang: Var[str] | str | None = None,
|
|
304
|
+
role: Literal[
|
|
305
|
+
"alert",
|
|
306
|
+
"alertdialog",
|
|
307
|
+
"application",
|
|
308
|
+
"article",
|
|
309
|
+
"banner",
|
|
310
|
+
"button",
|
|
311
|
+
"cell",
|
|
312
|
+
"checkbox",
|
|
313
|
+
"columnheader",
|
|
314
|
+
"combobox",
|
|
315
|
+
"complementary",
|
|
316
|
+
"contentinfo",
|
|
317
|
+
"definition",
|
|
318
|
+
"dialog",
|
|
319
|
+
"directory",
|
|
320
|
+
"document",
|
|
321
|
+
"feed",
|
|
322
|
+
"figure",
|
|
323
|
+
"form",
|
|
324
|
+
"grid",
|
|
325
|
+
"gridcell",
|
|
326
|
+
"group",
|
|
327
|
+
"heading",
|
|
328
|
+
"img",
|
|
329
|
+
"link",
|
|
330
|
+
"list",
|
|
331
|
+
"listbox",
|
|
332
|
+
"listitem",
|
|
333
|
+
"log",
|
|
334
|
+
"main",
|
|
335
|
+
"marquee",
|
|
336
|
+
"math",
|
|
337
|
+
"menu",
|
|
338
|
+
"menubar",
|
|
339
|
+
"menuitem",
|
|
340
|
+
"menuitemcheckbox",
|
|
341
|
+
"menuitemradio",
|
|
342
|
+
"navigation",
|
|
343
|
+
"none",
|
|
344
|
+
"note",
|
|
345
|
+
"option",
|
|
346
|
+
"presentation",
|
|
347
|
+
"progressbar",
|
|
348
|
+
"radio",
|
|
349
|
+
"radiogroup",
|
|
350
|
+
"region",
|
|
351
|
+
"row",
|
|
352
|
+
"rowgroup",
|
|
353
|
+
"rowheader",
|
|
354
|
+
"scrollbar",
|
|
355
|
+
"search",
|
|
356
|
+
"searchbox",
|
|
357
|
+
"separator",
|
|
358
|
+
"slider",
|
|
359
|
+
"spinbutton",
|
|
360
|
+
"status",
|
|
361
|
+
"switch",
|
|
362
|
+
"tab",
|
|
363
|
+
"table",
|
|
364
|
+
"tablist",
|
|
365
|
+
"tabpanel",
|
|
366
|
+
"term",
|
|
367
|
+
"textbox",
|
|
368
|
+
"timer",
|
|
369
|
+
"toolbar",
|
|
370
|
+
"tooltip",
|
|
371
|
+
"tree",
|
|
372
|
+
"treegrid",
|
|
373
|
+
"treeitem",
|
|
374
|
+
]
|
|
375
|
+
| Var[
|
|
376
|
+
Literal[
|
|
377
|
+
"alert",
|
|
378
|
+
"alertdialog",
|
|
379
|
+
"application",
|
|
380
|
+
"article",
|
|
381
|
+
"banner",
|
|
382
|
+
"button",
|
|
383
|
+
"cell",
|
|
384
|
+
"checkbox",
|
|
385
|
+
"columnheader",
|
|
386
|
+
"combobox",
|
|
387
|
+
"complementary",
|
|
388
|
+
"contentinfo",
|
|
389
|
+
"definition",
|
|
390
|
+
"dialog",
|
|
391
|
+
"directory",
|
|
392
|
+
"document",
|
|
393
|
+
"feed",
|
|
394
|
+
"figure",
|
|
395
|
+
"form",
|
|
396
|
+
"grid",
|
|
397
|
+
"gridcell",
|
|
398
|
+
"group",
|
|
399
|
+
"heading",
|
|
400
|
+
"img",
|
|
401
|
+
"link",
|
|
402
|
+
"list",
|
|
403
|
+
"listbox",
|
|
404
|
+
"listitem",
|
|
405
|
+
"log",
|
|
406
|
+
"main",
|
|
407
|
+
"marquee",
|
|
408
|
+
"math",
|
|
409
|
+
"menu",
|
|
410
|
+
"menubar",
|
|
411
|
+
"menuitem",
|
|
412
|
+
"menuitemcheckbox",
|
|
413
|
+
"menuitemradio",
|
|
414
|
+
"navigation",
|
|
415
|
+
"none",
|
|
416
|
+
"note",
|
|
417
|
+
"option",
|
|
418
|
+
"presentation",
|
|
419
|
+
"progressbar",
|
|
420
|
+
"radio",
|
|
421
|
+
"radiogroup",
|
|
422
|
+
"region",
|
|
423
|
+
"row",
|
|
424
|
+
"rowgroup",
|
|
425
|
+
"rowheader",
|
|
426
|
+
"scrollbar",
|
|
427
|
+
"search",
|
|
428
|
+
"searchbox",
|
|
429
|
+
"separator",
|
|
430
|
+
"slider",
|
|
431
|
+
"spinbutton",
|
|
432
|
+
"status",
|
|
433
|
+
"switch",
|
|
434
|
+
"tab",
|
|
435
|
+
"table",
|
|
436
|
+
"tablist",
|
|
437
|
+
"tabpanel",
|
|
438
|
+
"term",
|
|
439
|
+
"textbox",
|
|
440
|
+
"timer",
|
|
441
|
+
"toolbar",
|
|
442
|
+
"tooltip",
|
|
443
|
+
"tree",
|
|
444
|
+
"treegrid",
|
|
445
|
+
"treeitem",
|
|
446
|
+
]
|
|
447
|
+
]
|
|
448
|
+
| None = None,
|
|
449
|
+
slot: Var[str] | str | None = None,
|
|
450
|
+
spell_check: Var[bool] | bool | None = None,
|
|
451
|
+
tab_index: Var[int] | int | None = None,
|
|
452
|
+
title: Var[str] | str | None = None,
|
|
81
453
|
style: Sequence[Mapping[str, Any]]
|
|
82
454
|
| Mapping[str, Any]
|
|
83
455
|
| Var[Mapping[str, Any]]
|
|
@@ -116,6 +488,22 @@ class ScriptTag(Component):
|
|
|
116
488
|
referrer_policy: Indicates which referrer to send when fetching the script.
|
|
117
489
|
is_async: Whether to asynchronously load the script.
|
|
118
490
|
defer: Whether to defer loading the script.
|
|
491
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
492
|
+
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
493
|
+
content_editable: Indicates whether the element's content is editable.
|
|
494
|
+
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
495
|
+
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
496
|
+
draggable: Defines whether the element can be dragged.
|
|
497
|
+
enter_key_hint: Hints what media types the media element is able to play.
|
|
498
|
+
hidden: Defines whether the element is hidden.
|
|
499
|
+
input_mode: Defines the type of the element.
|
|
500
|
+
item_prop: Defines the name of the element for metadata purposes.
|
|
501
|
+
lang: Defines the language used in the element.
|
|
502
|
+
role: Defines the role of the element.
|
|
503
|
+
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
504
|
+
spell_check: Defines whether the element may be checked for spelling errors.
|
|
505
|
+
tab_index: Defines the position of the current element in the tabbing order.
|
|
506
|
+
title: Defines a tooltip for the element.
|
|
119
507
|
style: The style of the component.
|
|
120
508
|
key: A unique key for the component.
|
|
121
509
|
id: The id for the component.
|
reflex/components/base/meta.py
CHANGED
|
@@ -3,14 +3,12 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
from reflex.components.base.bare import Bare
|
|
6
|
-
from reflex.components.
|
|
6
|
+
from reflex.components.el import elements
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
class Title(
|
|
9
|
+
class Title(elements.Title):
|
|
10
10
|
"""A component that displays the title of the current page."""
|
|
11
11
|
|
|
12
|
-
tag = "title"
|
|
13
|
-
|
|
14
12
|
def render(self) -> dict:
|
|
15
13
|
"""Render the title component.
|
|
16
14
|
|
|
@@ -26,11 +24,9 @@ class Title(Component):
|
|
|
26
24
|
return super().render()
|
|
27
25
|
|
|
28
26
|
|
|
29
|
-
class Meta(
|
|
27
|
+
class Meta(elements.Meta):
|
|
30
28
|
"""A component that displays metadata for the current page."""
|
|
31
29
|
|
|
32
|
-
tag = "meta"
|
|
33
|
-
|
|
34
30
|
# The description of character encoding.
|
|
35
31
|
char_set: str | None = None
|
|
36
32
|
|
|
@@ -47,14 +43,14 @@ class Meta(Component):
|
|
|
47
43
|
http_equiv: str | None = None
|
|
48
44
|
|
|
49
45
|
|
|
50
|
-
class Description(Meta):
|
|
46
|
+
class Description(elements.Meta):
|
|
51
47
|
"""A component that displays the title of the current page."""
|
|
52
48
|
|
|
53
49
|
# The type of the description.
|
|
54
50
|
name: str | None = "description"
|
|
55
51
|
|
|
56
52
|
|
|
57
|
-
class Image(Meta):
|
|
53
|
+
class Image(elements.Meta):
|
|
58
54
|
"""A component that displays the title of the current page."""
|
|
59
55
|
|
|
60
56
|
# The type of the image.
|