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/meta.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 import elements
|
|
11
11
|
from reflex.event import EventType
|
|
12
12
|
from reflex.vars.base import Var
|
|
13
13
|
|
|
14
|
-
class Title(
|
|
14
|
+
class Title(elements.Title):
|
|
15
15
|
def render(self) -> dict: ...
|
|
16
16
|
@overload
|
|
17
17
|
@classmethod
|
|
@@ -62,7 +62,7 @@ class Title(Component):
|
|
|
62
62
|
"""
|
|
63
63
|
...
|
|
64
64
|
|
|
65
|
-
class Meta(
|
|
65
|
+
class Meta(elements.Meta):
|
|
66
66
|
@overload
|
|
67
67
|
@classmethod
|
|
68
68
|
def create( # type: ignore
|
|
@@ -73,6 +73,184 @@ class Meta(Component):
|
|
|
73
73
|
name: str | None = None,
|
|
74
74
|
property: str | None = None,
|
|
75
75
|
http_equiv: str | None = None,
|
|
76
|
+
access_key: Var[str] | str | None = None,
|
|
77
|
+
auto_capitalize: Literal[
|
|
78
|
+
"characters", "none", "off", "on", "sentences", "words"
|
|
79
|
+
]
|
|
80
|
+
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
|
|
81
|
+
| None = None,
|
|
82
|
+
content_editable: Literal["inherit", "plaintext-only", False, True]
|
|
83
|
+
| Var[Literal["inherit", "plaintext-only", False, True]]
|
|
84
|
+
| None = None,
|
|
85
|
+
context_menu: Var[str] | str | None = None,
|
|
86
|
+
dir: Var[str] | str | None = None,
|
|
87
|
+
draggable: Var[bool] | bool | None = None,
|
|
88
|
+
enter_key_hint: Literal[
|
|
89
|
+
"done", "enter", "go", "next", "previous", "search", "send"
|
|
90
|
+
]
|
|
91
|
+
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
|
|
92
|
+
| None = None,
|
|
93
|
+
hidden: Var[bool] | bool | None = None,
|
|
94
|
+
input_mode: Literal[
|
|
95
|
+
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
96
|
+
]
|
|
97
|
+
| Var[
|
|
98
|
+
Literal[
|
|
99
|
+
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
100
|
+
]
|
|
101
|
+
]
|
|
102
|
+
| None = None,
|
|
103
|
+
item_prop: Var[str] | str | None = None,
|
|
104
|
+
lang: Var[str] | str | None = None,
|
|
105
|
+
role: Literal[
|
|
106
|
+
"alert",
|
|
107
|
+
"alertdialog",
|
|
108
|
+
"application",
|
|
109
|
+
"article",
|
|
110
|
+
"banner",
|
|
111
|
+
"button",
|
|
112
|
+
"cell",
|
|
113
|
+
"checkbox",
|
|
114
|
+
"columnheader",
|
|
115
|
+
"combobox",
|
|
116
|
+
"complementary",
|
|
117
|
+
"contentinfo",
|
|
118
|
+
"definition",
|
|
119
|
+
"dialog",
|
|
120
|
+
"directory",
|
|
121
|
+
"document",
|
|
122
|
+
"feed",
|
|
123
|
+
"figure",
|
|
124
|
+
"form",
|
|
125
|
+
"grid",
|
|
126
|
+
"gridcell",
|
|
127
|
+
"group",
|
|
128
|
+
"heading",
|
|
129
|
+
"img",
|
|
130
|
+
"link",
|
|
131
|
+
"list",
|
|
132
|
+
"listbox",
|
|
133
|
+
"listitem",
|
|
134
|
+
"log",
|
|
135
|
+
"main",
|
|
136
|
+
"marquee",
|
|
137
|
+
"math",
|
|
138
|
+
"menu",
|
|
139
|
+
"menubar",
|
|
140
|
+
"menuitem",
|
|
141
|
+
"menuitemcheckbox",
|
|
142
|
+
"menuitemradio",
|
|
143
|
+
"navigation",
|
|
144
|
+
"none",
|
|
145
|
+
"note",
|
|
146
|
+
"option",
|
|
147
|
+
"presentation",
|
|
148
|
+
"progressbar",
|
|
149
|
+
"radio",
|
|
150
|
+
"radiogroup",
|
|
151
|
+
"region",
|
|
152
|
+
"row",
|
|
153
|
+
"rowgroup",
|
|
154
|
+
"rowheader",
|
|
155
|
+
"scrollbar",
|
|
156
|
+
"search",
|
|
157
|
+
"searchbox",
|
|
158
|
+
"separator",
|
|
159
|
+
"slider",
|
|
160
|
+
"spinbutton",
|
|
161
|
+
"status",
|
|
162
|
+
"switch",
|
|
163
|
+
"tab",
|
|
164
|
+
"table",
|
|
165
|
+
"tablist",
|
|
166
|
+
"tabpanel",
|
|
167
|
+
"term",
|
|
168
|
+
"textbox",
|
|
169
|
+
"timer",
|
|
170
|
+
"toolbar",
|
|
171
|
+
"tooltip",
|
|
172
|
+
"tree",
|
|
173
|
+
"treegrid",
|
|
174
|
+
"treeitem",
|
|
175
|
+
]
|
|
176
|
+
| Var[
|
|
177
|
+
Literal[
|
|
178
|
+
"alert",
|
|
179
|
+
"alertdialog",
|
|
180
|
+
"application",
|
|
181
|
+
"article",
|
|
182
|
+
"banner",
|
|
183
|
+
"button",
|
|
184
|
+
"cell",
|
|
185
|
+
"checkbox",
|
|
186
|
+
"columnheader",
|
|
187
|
+
"combobox",
|
|
188
|
+
"complementary",
|
|
189
|
+
"contentinfo",
|
|
190
|
+
"definition",
|
|
191
|
+
"dialog",
|
|
192
|
+
"directory",
|
|
193
|
+
"document",
|
|
194
|
+
"feed",
|
|
195
|
+
"figure",
|
|
196
|
+
"form",
|
|
197
|
+
"grid",
|
|
198
|
+
"gridcell",
|
|
199
|
+
"group",
|
|
200
|
+
"heading",
|
|
201
|
+
"img",
|
|
202
|
+
"link",
|
|
203
|
+
"list",
|
|
204
|
+
"listbox",
|
|
205
|
+
"listitem",
|
|
206
|
+
"log",
|
|
207
|
+
"main",
|
|
208
|
+
"marquee",
|
|
209
|
+
"math",
|
|
210
|
+
"menu",
|
|
211
|
+
"menubar",
|
|
212
|
+
"menuitem",
|
|
213
|
+
"menuitemcheckbox",
|
|
214
|
+
"menuitemradio",
|
|
215
|
+
"navigation",
|
|
216
|
+
"none",
|
|
217
|
+
"note",
|
|
218
|
+
"option",
|
|
219
|
+
"presentation",
|
|
220
|
+
"progressbar",
|
|
221
|
+
"radio",
|
|
222
|
+
"radiogroup",
|
|
223
|
+
"region",
|
|
224
|
+
"row",
|
|
225
|
+
"rowgroup",
|
|
226
|
+
"rowheader",
|
|
227
|
+
"scrollbar",
|
|
228
|
+
"search",
|
|
229
|
+
"searchbox",
|
|
230
|
+
"separator",
|
|
231
|
+
"slider",
|
|
232
|
+
"spinbutton",
|
|
233
|
+
"status",
|
|
234
|
+
"switch",
|
|
235
|
+
"tab",
|
|
236
|
+
"table",
|
|
237
|
+
"tablist",
|
|
238
|
+
"tabpanel",
|
|
239
|
+
"term",
|
|
240
|
+
"textbox",
|
|
241
|
+
"timer",
|
|
242
|
+
"toolbar",
|
|
243
|
+
"tooltip",
|
|
244
|
+
"tree",
|
|
245
|
+
"treegrid",
|
|
246
|
+
"treeitem",
|
|
247
|
+
]
|
|
248
|
+
]
|
|
249
|
+
| None = None,
|
|
250
|
+
slot: Var[str] | str | None = None,
|
|
251
|
+
spell_check: Var[bool] | bool | None = None,
|
|
252
|
+
tab_index: Var[int] | int | None = None,
|
|
253
|
+
title: Var[str] | str | None = None,
|
|
76
254
|
style: Sequence[Mapping[str, Any]]
|
|
77
255
|
| Mapping[str, Any]
|
|
78
256
|
| Var[Mapping[str, Any]]
|
|
@@ -104,11 +282,27 @@ class Meta(Component):
|
|
|
104
282
|
|
|
105
283
|
Args:
|
|
106
284
|
*children: The children of the component.
|
|
107
|
-
char_set:
|
|
108
|
-
content:
|
|
109
|
-
name:
|
|
285
|
+
char_set: Specifies the character encoding for the HTML document
|
|
286
|
+
content: Defines the content of the metadata
|
|
287
|
+
name: Specifies a name for the metadata
|
|
110
288
|
property: The type of metadata value.
|
|
111
|
-
http_equiv:
|
|
289
|
+
http_equiv: Provides an HTTP header for the information/value of the content attribute
|
|
290
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
291
|
+
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
292
|
+
content_editable: Indicates whether the element's content is editable.
|
|
293
|
+
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
294
|
+
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
295
|
+
draggable: Defines whether the element can be dragged.
|
|
296
|
+
enter_key_hint: Hints what media types the media element is able to play.
|
|
297
|
+
hidden: Defines whether the element is hidden.
|
|
298
|
+
input_mode: Defines the type of the element.
|
|
299
|
+
item_prop: Defines the name of the element for metadata purposes.
|
|
300
|
+
lang: Defines the language used in the element.
|
|
301
|
+
role: Defines the role of the element.
|
|
302
|
+
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
303
|
+
spell_check: Defines whether the element may be checked for spelling errors.
|
|
304
|
+
tab_index: Defines the position of the current element in the tabbing order.
|
|
305
|
+
title: Defines a tooltip for the element.
|
|
112
306
|
style: The style of the component.
|
|
113
307
|
key: A unique key for the component.
|
|
114
308
|
id: The id for the component.
|
|
@@ -122,17 +316,194 @@ class Meta(Component):
|
|
|
122
316
|
"""
|
|
123
317
|
...
|
|
124
318
|
|
|
125
|
-
class Description(Meta):
|
|
319
|
+
class Description(elements.Meta):
|
|
126
320
|
@overload
|
|
127
321
|
@classmethod
|
|
128
322
|
def create( # type: ignore
|
|
129
323
|
cls,
|
|
130
324
|
*children,
|
|
131
325
|
name: str | None = None,
|
|
132
|
-
char_set: str | None = None,
|
|
133
|
-
content: str | None = None,
|
|
134
|
-
|
|
135
|
-
|
|
326
|
+
char_set: Var[str] | str | None = None,
|
|
327
|
+
content: Var[str] | str | None = None,
|
|
328
|
+
http_equiv: Var[str] | str | None = None,
|
|
329
|
+
access_key: Var[str] | str | None = None,
|
|
330
|
+
auto_capitalize: Literal[
|
|
331
|
+
"characters", "none", "off", "on", "sentences", "words"
|
|
332
|
+
]
|
|
333
|
+
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
|
|
334
|
+
| None = None,
|
|
335
|
+
content_editable: Literal["inherit", "plaintext-only", False, True]
|
|
336
|
+
| Var[Literal["inherit", "plaintext-only", False, True]]
|
|
337
|
+
| None = None,
|
|
338
|
+
context_menu: Var[str] | str | None = None,
|
|
339
|
+
dir: Var[str] | str | None = None,
|
|
340
|
+
draggable: Var[bool] | bool | None = None,
|
|
341
|
+
enter_key_hint: Literal[
|
|
342
|
+
"done", "enter", "go", "next", "previous", "search", "send"
|
|
343
|
+
]
|
|
344
|
+
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
|
|
345
|
+
| None = None,
|
|
346
|
+
hidden: Var[bool] | bool | None = None,
|
|
347
|
+
input_mode: Literal[
|
|
348
|
+
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
349
|
+
]
|
|
350
|
+
| Var[
|
|
351
|
+
Literal[
|
|
352
|
+
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
353
|
+
]
|
|
354
|
+
]
|
|
355
|
+
| None = None,
|
|
356
|
+
item_prop: Var[str] | str | None = None,
|
|
357
|
+
lang: Var[str] | str | None = None,
|
|
358
|
+
role: Literal[
|
|
359
|
+
"alert",
|
|
360
|
+
"alertdialog",
|
|
361
|
+
"application",
|
|
362
|
+
"article",
|
|
363
|
+
"banner",
|
|
364
|
+
"button",
|
|
365
|
+
"cell",
|
|
366
|
+
"checkbox",
|
|
367
|
+
"columnheader",
|
|
368
|
+
"combobox",
|
|
369
|
+
"complementary",
|
|
370
|
+
"contentinfo",
|
|
371
|
+
"definition",
|
|
372
|
+
"dialog",
|
|
373
|
+
"directory",
|
|
374
|
+
"document",
|
|
375
|
+
"feed",
|
|
376
|
+
"figure",
|
|
377
|
+
"form",
|
|
378
|
+
"grid",
|
|
379
|
+
"gridcell",
|
|
380
|
+
"group",
|
|
381
|
+
"heading",
|
|
382
|
+
"img",
|
|
383
|
+
"link",
|
|
384
|
+
"list",
|
|
385
|
+
"listbox",
|
|
386
|
+
"listitem",
|
|
387
|
+
"log",
|
|
388
|
+
"main",
|
|
389
|
+
"marquee",
|
|
390
|
+
"math",
|
|
391
|
+
"menu",
|
|
392
|
+
"menubar",
|
|
393
|
+
"menuitem",
|
|
394
|
+
"menuitemcheckbox",
|
|
395
|
+
"menuitemradio",
|
|
396
|
+
"navigation",
|
|
397
|
+
"none",
|
|
398
|
+
"note",
|
|
399
|
+
"option",
|
|
400
|
+
"presentation",
|
|
401
|
+
"progressbar",
|
|
402
|
+
"radio",
|
|
403
|
+
"radiogroup",
|
|
404
|
+
"region",
|
|
405
|
+
"row",
|
|
406
|
+
"rowgroup",
|
|
407
|
+
"rowheader",
|
|
408
|
+
"scrollbar",
|
|
409
|
+
"search",
|
|
410
|
+
"searchbox",
|
|
411
|
+
"separator",
|
|
412
|
+
"slider",
|
|
413
|
+
"spinbutton",
|
|
414
|
+
"status",
|
|
415
|
+
"switch",
|
|
416
|
+
"tab",
|
|
417
|
+
"table",
|
|
418
|
+
"tablist",
|
|
419
|
+
"tabpanel",
|
|
420
|
+
"term",
|
|
421
|
+
"textbox",
|
|
422
|
+
"timer",
|
|
423
|
+
"toolbar",
|
|
424
|
+
"tooltip",
|
|
425
|
+
"tree",
|
|
426
|
+
"treegrid",
|
|
427
|
+
"treeitem",
|
|
428
|
+
]
|
|
429
|
+
| Var[
|
|
430
|
+
Literal[
|
|
431
|
+
"alert",
|
|
432
|
+
"alertdialog",
|
|
433
|
+
"application",
|
|
434
|
+
"article",
|
|
435
|
+
"banner",
|
|
436
|
+
"button",
|
|
437
|
+
"cell",
|
|
438
|
+
"checkbox",
|
|
439
|
+
"columnheader",
|
|
440
|
+
"combobox",
|
|
441
|
+
"complementary",
|
|
442
|
+
"contentinfo",
|
|
443
|
+
"definition",
|
|
444
|
+
"dialog",
|
|
445
|
+
"directory",
|
|
446
|
+
"document",
|
|
447
|
+
"feed",
|
|
448
|
+
"figure",
|
|
449
|
+
"form",
|
|
450
|
+
"grid",
|
|
451
|
+
"gridcell",
|
|
452
|
+
"group",
|
|
453
|
+
"heading",
|
|
454
|
+
"img",
|
|
455
|
+
"link",
|
|
456
|
+
"list",
|
|
457
|
+
"listbox",
|
|
458
|
+
"listitem",
|
|
459
|
+
"log",
|
|
460
|
+
"main",
|
|
461
|
+
"marquee",
|
|
462
|
+
"math",
|
|
463
|
+
"menu",
|
|
464
|
+
"menubar",
|
|
465
|
+
"menuitem",
|
|
466
|
+
"menuitemcheckbox",
|
|
467
|
+
"menuitemradio",
|
|
468
|
+
"navigation",
|
|
469
|
+
"none",
|
|
470
|
+
"note",
|
|
471
|
+
"option",
|
|
472
|
+
"presentation",
|
|
473
|
+
"progressbar",
|
|
474
|
+
"radio",
|
|
475
|
+
"radiogroup",
|
|
476
|
+
"region",
|
|
477
|
+
"row",
|
|
478
|
+
"rowgroup",
|
|
479
|
+
"rowheader",
|
|
480
|
+
"scrollbar",
|
|
481
|
+
"search",
|
|
482
|
+
"searchbox",
|
|
483
|
+
"separator",
|
|
484
|
+
"slider",
|
|
485
|
+
"spinbutton",
|
|
486
|
+
"status",
|
|
487
|
+
"switch",
|
|
488
|
+
"tab",
|
|
489
|
+
"table",
|
|
490
|
+
"tablist",
|
|
491
|
+
"tabpanel",
|
|
492
|
+
"term",
|
|
493
|
+
"textbox",
|
|
494
|
+
"timer",
|
|
495
|
+
"toolbar",
|
|
496
|
+
"tooltip",
|
|
497
|
+
"tree",
|
|
498
|
+
"treegrid",
|
|
499
|
+
"treeitem",
|
|
500
|
+
]
|
|
501
|
+
]
|
|
502
|
+
| None = None,
|
|
503
|
+
slot: Var[str] | str | None = None,
|
|
504
|
+
spell_check: Var[bool] | bool | None = None,
|
|
505
|
+
tab_index: Var[int] | int | None = None,
|
|
506
|
+
title: Var[str] | str | None = None,
|
|
136
507
|
style: Sequence[Mapping[str, Any]]
|
|
137
508
|
| Mapping[str, Any]
|
|
138
509
|
| Var[Mapping[str, Any]]
|
|
@@ -164,11 +535,26 @@ class Description(Meta):
|
|
|
164
535
|
|
|
165
536
|
Args:
|
|
166
537
|
*children: The children of the component.
|
|
167
|
-
name:
|
|
168
|
-
char_set:
|
|
169
|
-
content:
|
|
170
|
-
|
|
171
|
-
|
|
538
|
+
name: Specifies a name for the metadata
|
|
539
|
+
char_set: Specifies the character encoding for the HTML document
|
|
540
|
+
content: Defines the content of the metadata
|
|
541
|
+
http_equiv: Provides an HTTP header for the information/value of the content attribute
|
|
542
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
543
|
+
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
544
|
+
content_editable: Indicates whether the element's content is editable.
|
|
545
|
+
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
546
|
+
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
547
|
+
draggable: Defines whether the element can be dragged.
|
|
548
|
+
enter_key_hint: Hints what media types the media element is able to play.
|
|
549
|
+
hidden: Defines whether the element is hidden.
|
|
550
|
+
input_mode: Defines the type of the element.
|
|
551
|
+
item_prop: Defines the name of the element for metadata purposes.
|
|
552
|
+
lang: Defines the language used in the element.
|
|
553
|
+
role: Defines the role of the element.
|
|
554
|
+
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
555
|
+
spell_check: Defines whether the element may be checked for spelling errors.
|
|
556
|
+
tab_index: Defines the position of the current element in the tabbing order.
|
|
557
|
+
title: Defines a tooltip for the element.
|
|
172
558
|
style: The style of the component.
|
|
173
559
|
key: A unique key for the component.
|
|
174
560
|
id: The id for the component.
|
|
@@ -182,17 +568,195 @@ class Description(Meta):
|
|
|
182
568
|
"""
|
|
183
569
|
...
|
|
184
570
|
|
|
185
|
-
class Image(Meta):
|
|
571
|
+
class Image(elements.Meta):
|
|
186
572
|
@overload
|
|
187
573
|
@classmethod
|
|
188
574
|
def create( # type: ignore
|
|
189
575
|
cls,
|
|
190
576
|
*children,
|
|
191
577
|
property: str | None = None,
|
|
192
|
-
char_set: str | None = None,
|
|
193
|
-
content: str | None = None,
|
|
194
|
-
|
|
195
|
-
|
|
578
|
+
char_set: Var[str] | str | None = None,
|
|
579
|
+
content: Var[str] | str | None = None,
|
|
580
|
+
http_equiv: Var[str] | str | None = None,
|
|
581
|
+
name: Var[str] | str | None = None,
|
|
582
|
+
access_key: Var[str] | str | None = None,
|
|
583
|
+
auto_capitalize: Literal[
|
|
584
|
+
"characters", "none", "off", "on", "sentences", "words"
|
|
585
|
+
]
|
|
586
|
+
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
|
|
587
|
+
| None = None,
|
|
588
|
+
content_editable: Literal["inherit", "plaintext-only", False, True]
|
|
589
|
+
| Var[Literal["inherit", "plaintext-only", False, True]]
|
|
590
|
+
| None = None,
|
|
591
|
+
context_menu: Var[str] | str | None = None,
|
|
592
|
+
dir: Var[str] | str | None = None,
|
|
593
|
+
draggable: Var[bool] | bool | None = None,
|
|
594
|
+
enter_key_hint: Literal[
|
|
595
|
+
"done", "enter", "go", "next", "previous", "search", "send"
|
|
596
|
+
]
|
|
597
|
+
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
|
|
598
|
+
| None = None,
|
|
599
|
+
hidden: Var[bool] | bool | None = None,
|
|
600
|
+
input_mode: Literal[
|
|
601
|
+
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
602
|
+
]
|
|
603
|
+
| Var[
|
|
604
|
+
Literal[
|
|
605
|
+
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
606
|
+
]
|
|
607
|
+
]
|
|
608
|
+
| None = None,
|
|
609
|
+
item_prop: Var[str] | str | None = None,
|
|
610
|
+
lang: Var[str] | str | None = None,
|
|
611
|
+
role: Literal[
|
|
612
|
+
"alert",
|
|
613
|
+
"alertdialog",
|
|
614
|
+
"application",
|
|
615
|
+
"article",
|
|
616
|
+
"banner",
|
|
617
|
+
"button",
|
|
618
|
+
"cell",
|
|
619
|
+
"checkbox",
|
|
620
|
+
"columnheader",
|
|
621
|
+
"combobox",
|
|
622
|
+
"complementary",
|
|
623
|
+
"contentinfo",
|
|
624
|
+
"definition",
|
|
625
|
+
"dialog",
|
|
626
|
+
"directory",
|
|
627
|
+
"document",
|
|
628
|
+
"feed",
|
|
629
|
+
"figure",
|
|
630
|
+
"form",
|
|
631
|
+
"grid",
|
|
632
|
+
"gridcell",
|
|
633
|
+
"group",
|
|
634
|
+
"heading",
|
|
635
|
+
"img",
|
|
636
|
+
"link",
|
|
637
|
+
"list",
|
|
638
|
+
"listbox",
|
|
639
|
+
"listitem",
|
|
640
|
+
"log",
|
|
641
|
+
"main",
|
|
642
|
+
"marquee",
|
|
643
|
+
"math",
|
|
644
|
+
"menu",
|
|
645
|
+
"menubar",
|
|
646
|
+
"menuitem",
|
|
647
|
+
"menuitemcheckbox",
|
|
648
|
+
"menuitemradio",
|
|
649
|
+
"navigation",
|
|
650
|
+
"none",
|
|
651
|
+
"note",
|
|
652
|
+
"option",
|
|
653
|
+
"presentation",
|
|
654
|
+
"progressbar",
|
|
655
|
+
"radio",
|
|
656
|
+
"radiogroup",
|
|
657
|
+
"region",
|
|
658
|
+
"row",
|
|
659
|
+
"rowgroup",
|
|
660
|
+
"rowheader",
|
|
661
|
+
"scrollbar",
|
|
662
|
+
"search",
|
|
663
|
+
"searchbox",
|
|
664
|
+
"separator",
|
|
665
|
+
"slider",
|
|
666
|
+
"spinbutton",
|
|
667
|
+
"status",
|
|
668
|
+
"switch",
|
|
669
|
+
"tab",
|
|
670
|
+
"table",
|
|
671
|
+
"tablist",
|
|
672
|
+
"tabpanel",
|
|
673
|
+
"term",
|
|
674
|
+
"textbox",
|
|
675
|
+
"timer",
|
|
676
|
+
"toolbar",
|
|
677
|
+
"tooltip",
|
|
678
|
+
"tree",
|
|
679
|
+
"treegrid",
|
|
680
|
+
"treeitem",
|
|
681
|
+
]
|
|
682
|
+
| Var[
|
|
683
|
+
Literal[
|
|
684
|
+
"alert",
|
|
685
|
+
"alertdialog",
|
|
686
|
+
"application",
|
|
687
|
+
"article",
|
|
688
|
+
"banner",
|
|
689
|
+
"button",
|
|
690
|
+
"cell",
|
|
691
|
+
"checkbox",
|
|
692
|
+
"columnheader",
|
|
693
|
+
"combobox",
|
|
694
|
+
"complementary",
|
|
695
|
+
"contentinfo",
|
|
696
|
+
"definition",
|
|
697
|
+
"dialog",
|
|
698
|
+
"directory",
|
|
699
|
+
"document",
|
|
700
|
+
"feed",
|
|
701
|
+
"figure",
|
|
702
|
+
"form",
|
|
703
|
+
"grid",
|
|
704
|
+
"gridcell",
|
|
705
|
+
"group",
|
|
706
|
+
"heading",
|
|
707
|
+
"img",
|
|
708
|
+
"link",
|
|
709
|
+
"list",
|
|
710
|
+
"listbox",
|
|
711
|
+
"listitem",
|
|
712
|
+
"log",
|
|
713
|
+
"main",
|
|
714
|
+
"marquee",
|
|
715
|
+
"math",
|
|
716
|
+
"menu",
|
|
717
|
+
"menubar",
|
|
718
|
+
"menuitem",
|
|
719
|
+
"menuitemcheckbox",
|
|
720
|
+
"menuitemradio",
|
|
721
|
+
"navigation",
|
|
722
|
+
"none",
|
|
723
|
+
"note",
|
|
724
|
+
"option",
|
|
725
|
+
"presentation",
|
|
726
|
+
"progressbar",
|
|
727
|
+
"radio",
|
|
728
|
+
"radiogroup",
|
|
729
|
+
"region",
|
|
730
|
+
"row",
|
|
731
|
+
"rowgroup",
|
|
732
|
+
"rowheader",
|
|
733
|
+
"scrollbar",
|
|
734
|
+
"search",
|
|
735
|
+
"searchbox",
|
|
736
|
+
"separator",
|
|
737
|
+
"slider",
|
|
738
|
+
"spinbutton",
|
|
739
|
+
"status",
|
|
740
|
+
"switch",
|
|
741
|
+
"tab",
|
|
742
|
+
"table",
|
|
743
|
+
"tablist",
|
|
744
|
+
"tabpanel",
|
|
745
|
+
"term",
|
|
746
|
+
"textbox",
|
|
747
|
+
"timer",
|
|
748
|
+
"toolbar",
|
|
749
|
+
"tooltip",
|
|
750
|
+
"tree",
|
|
751
|
+
"treegrid",
|
|
752
|
+
"treeitem",
|
|
753
|
+
]
|
|
754
|
+
]
|
|
755
|
+
| None = None,
|
|
756
|
+
slot: Var[str] | str | None = None,
|
|
757
|
+
spell_check: Var[bool] | bool | None = None,
|
|
758
|
+
tab_index: Var[int] | int | None = None,
|
|
759
|
+
title: Var[str] | str | None = None,
|
|
196
760
|
style: Sequence[Mapping[str, Any]]
|
|
197
761
|
| Mapping[str, Any]
|
|
198
762
|
| Var[Mapping[str, Any]]
|
|
@@ -224,11 +788,27 @@ class Image(Meta):
|
|
|
224
788
|
|
|
225
789
|
Args:
|
|
226
790
|
*children: The children of the component.
|
|
227
|
-
property: The type of
|
|
228
|
-
char_set:
|
|
229
|
-
content:
|
|
230
|
-
|
|
231
|
-
|
|
791
|
+
property: The type of the image.
|
|
792
|
+
char_set: Specifies the character encoding for the HTML document
|
|
793
|
+
content: Defines the content of the metadata
|
|
794
|
+
http_equiv: Provides an HTTP header for the information/value of the content attribute
|
|
795
|
+
name: Specifies a name for the metadata
|
|
796
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
797
|
+
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
798
|
+
content_editable: Indicates whether the element's content is editable.
|
|
799
|
+
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
800
|
+
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
801
|
+
draggable: Defines whether the element can be dragged.
|
|
802
|
+
enter_key_hint: Hints what media types the media element is able to play.
|
|
803
|
+
hidden: Defines whether the element is hidden.
|
|
804
|
+
input_mode: Defines the type of the element.
|
|
805
|
+
item_prop: Defines the name of the element for metadata purposes.
|
|
806
|
+
lang: Defines the language used in the element.
|
|
807
|
+
role: Defines the role of the element.
|
|
808
|
+
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
809
|
+
spell_check: Defines whether the element may be checked for spelling errors.
|
|
810
|
+
tab_index: Defines the position of the current element in the tabbing order.
|
|
811
|
+
title: Defines a tooltip for the element.
|
|
232
812
|
style: The style of the component.
|
|
233
813
|
key: A unique key for the component.
|
|
234
814
|
id: The id for the component.
|