reflex 0.7.7a1__py3-none-any.whl → 0.7.8a1__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/web/utils/state.js +26 -16
- reflex/admin.py +1 -1
- reflex/app.py +6 -17
- reflex/app_mixins/lifespan.py +1 -1
- reflex/base.py +2 -2
- reflex/compiler/compiler.py +8 -7
- reflex/compiler/utils.py +6 -5
- reflex/components/base/app_wrap.pyi +18 -17
- reflex/components/base/bare.py +2 -1
- reflex/components/base/body.pyi +214 -19
- reflex/components/base/document.pyi +82 -81
- reflex/components/base/error_boundary.pyi +19 -18
- reflex/components/base/fragment.pyi +18 -17
- reflex/components/base/head.pyi +34 -33
- reflex/components/base/link.pyi +425 -36
- reflex/components/base/meta.pyi +673 -92
- reflex/components/base/script.pyi +21 -20
- reflex/components/base/strict_mode.pyi +18 -17
- reflex/components/component.py +20 -36
- reflex/components/core/auto_scroll.pyi +18 -17
- reflex/components/core/banner.pyi +98 -97
- reflex/components/core/breakpoints.py +1 -1
- reflex/components/core/client_side_routing.pyi +34 -33
- reflex/components/core/clipboard.py +1 -1
- reflex/components/core/clipboard.pyi +19 -18
- reflex/components/core/cond.py +2 -2
- reflex/components/core/debounce.py +3 -3
- reflex/components/core/debounce.pyi +20 -19
- reflex/components/core/foreach.py +2 -1
- reflex/components/core/html.pyi +18 -17
- reflex/components/core/match.py +2 -2
- reflex/components/core/sticky.pyi +66 -65
- reflex/components/core/upload.py +7 -10
- reflex/components/core/upload.pyi +86 -85
- reflex/components/datadisplay/code.pyi +34 -33
- reflex/components/datadisplay/dataeditor.py +3 -2
- reflex/components/datadisplay/dataeditor.pyi +35 -68
- reflex/components/datadisplay/shiki_code_block.pyi +50 -49
- reflex/components/el/element.pyi +18 -17
- reflex/components/el/elements/base.pyi +18 -17
- reflex/components/el/elements/forms.py +10 -8
- reflex/components/el/elements/forms.pyi +290 -332
- reflex/components/el/elements/inline.pyi +450 -449
- reflex/components/el/elements/media.pyi +402 -401
- reflex/components/el/elements/metadata.pyi +99 -97
- reflex/components/el/elements/other.pyi +114 -113
- reflex/components/el/elements/scripts.pyi +50 -49
- reflex/components/el/elements/sectioning.pyi +242 -241
- reflex/components/el/elements/tables.pyi +162 -161
- reflex/components/el/elements/typography.pyi +242 -241
- reflex/components/gridjs/datatable.py +3 -2
- reflex/components/gridjs/datatable.pyi +35 -34
- reflex/components/lucide/icon.pyi +50 -49
- reflex/components/markdown/markdown.py +2 -1
- reflex/components/markdown/markdown.pyi +20 -19
- reflex/components/moment/moment.pyi +19 -18
- reflex/components/next/base.pyi +18 -17
- reflex/components/next/image.pyi +20 -19
- reflex/components/next/link.pyi +18 -17
- reflex/components/next/video.pyi +18 -17
- reflex/components/plotly/plotly.py +3 -3
- reflex/components/plotly/plotly.pyi +326 -325
- reflex/components/radix/primitives/accordion.py +2 -1
- reflex/components/radix/primitives/accordion.pyi +115 -114
- reflex/components/radix/primitives/base.pyi +34 -33
- reflex/components/radix/primitives/drawer.py +2 -1
- reflex/components/radix/primitives/drawer.pyi +187 -186
- reflex/components/radix/primitives/form.pyi +168 -182
- reflex/components/radix/primitives/progress.pyi +82 -81
- reflex/components/radix/primitives/slider.py +2 -1
- reflex/components/radix/primitives/slider.pyi +84 -83
- reflex/components/radix/themes/base.pyi +130 -129
- reflex/components/radix/themes/color_mode.pyi +51 -50
- reflex/components/radix/themes/components/alert_dialog.pyi +118 -117
- reflex/components/radix/themes/components/aspect_ratio.pyi +18 -17
- reflex/components/radix/themes/components/avatar.pyi +18 -17
- reflex/components/radix/themes/components/badge.pyi +18 -17
- reflex/components/radix/themes/components/button.pyi +18 -17
- reflex/components/radix/themes/components/callout.pyi +82 -81
- reflex/components/radix/themes/components/card.pyi +18 -17
- reflex/components/radix/themes/components/checkbox.pyi +53 -52
- reflex/components/radix/themes/components/checkbox_cards.pyi +34 -33
- reflex/components/radix/themes/components/checkbox_group.py +2 -1
- reflex/components/radix/themes/components/checkbox_group.pyi +34 -33
- reflex/components/radix/themes/components/context_menu.pyi +225 -224
- reflex/components/radix/themes/components/data_list.pyi +66 -65
- reflex/components/radix/themes/components/dialog.pyi +121 -120
- reflex/components/radix/themes/components/dropdown_menu.pyi +142 -141
- reflex/components/radix/themes/components/hover_card.pyi +68 -67
- reflex/components/radix/themes/components/icon_button.pyi +18 -17
- reflex/components/radix/themes/components/inset.pyi +18 -17
- reflex/components/radix/themes/components/popover.pyi +73 -72
- reflex/components/radix/themes/components/progress.pyi +18 -17
- reflex/components/radix/themes/components/radio.pyi +18 -17
- reflex/components/radix/themes/components/radio_cards.pyi +35 -34
- reflex/components/radix/themes/components/radio_group.py +2 -1
- reflex/components/radix/themes/components/radio_group.pyi +67 -66
- reflex/components/radix/themes/components/scroll_area.pyi +18 -17
- reflex/components/radix/themes/components/segmented_control.py +2 -1
- reflex/components/radix/themes/components/segmented_control.pyi +35 -34
- reflex/components/radix/themes/components/select.py +2 -1
- reflex/components/radix/themes/components/select.pyi +155 -154
- reflex/components/radix/themes/components/separator.pyi +18 -17
- reflex/components/radix/themes/components/skeleton.pyi +18 -17
- reflex/components/radix/themes/components/slider.py +2 -1
- reflex/components/radix/themes/components/slider.pyi +20 -31
- reflex/components/radix/themes/components/spinner.pyi +18 -17
- reflex/components/radix/themes/components/switch.pyi +19 -18
- reflex/components/radix/themes/components/table.pyi +114 -113
- reflex/components/radix/themes/components/tabs.pyi +84 -83
- reflex/components/radix/themes/components/text_area.pyi +21 -24
- reflex/components/radix/themes/components/text_field.pyi +56 -63
- reflex/components/radix/themes/components/tooltip.py +2 -2
- reflex/components/radix/themes/components/tooltip.pyi +21 -20
- reflex/components/radix/themes/layout/base.pyi +18 -17
- reflex/components/radix/themes/layout/box.pyi +18 -17
- reflex/components/radix/themes/layout/center.pyi +18 -17
- reflex/components/radix/themes/layout/container.pyi +18 -17
- reflex/components/radix/themes/layout/flex.pyi +18 -17
- reflex/components/radix/themes/layout/grid.pyi +18 -17
- reflex/components/radix/themes/layout/list.py +2 -1
- reflex/components/radix/themes/layout/list.pyi +473 -83
- reflex/components/radix/themes/layout/section.pyi +18 -17
- reflex/components/radix/themes/layout/spacer.pyi +18 -17
- reflex/components/radix/themes/layout/stack.pyi +50 -49
- reflex/components/radix/themes/typography/blockquote.pyi +18 -17
- reflex/components/radix/themes/typography/code.pyi +18 -17
- reflex/components/radix/themes/typography/heading.pyi +18 -17
- reflex/components/radix/themes/typography/link.pyi +18 -17
- reflex/components/radix/themes/typography/text.pyi +114 -113
- reflex/components/react_player/audio.pyi +34 -36
- reflex/components/react_player/react_player.pyi +34 -33
- reflex/components/react_player/video.pyi +34 -36
- reflex/components/recharts/cartesian.py +7 -6
- reflex/components/recharts/cartesian.pyi +302 -301
- reflex/components/recharts/charts.py +2 -1
- reflex/components/recharts/charts.pyi +177 -176
- reflex/components/recharts/general.py +3 -2
- reflex/components/recharts/general.pyi +99 -98
- reflex/components/recharts/polar.py +9 -8
- reflex/components/recharts/polar.pyi +62 -61
- reflex/components/recharts/recharts.pyi +34 -33
- reflex/components/sonner/toast.pyi +19 -18
- reflex/components/suneditor/editor.py +22 -24
- reflex/components/suneditor/editor.pyi +27 -28
- reflex/components/tags/cond_tag.py +3 -3
- reflex/components/tags/iter_tag.py +2 -1
- reflex/components/tags/tag.py +3 -2
- reflex/config.py +27 -17
- reflex/constants/installer.py +4 -4
- reflex/constants/route.py +2 -3
- reflex/constants/utils.py +4 -3
- reflex/event.py +56 -28
- reflex/experimental/client_state.py +3 -2
- reflex/experimental/layout.pyi +84 -83
- reflex/istate/data.py +1 -1
- reflex/istate/storage.py +2 -2
- reflex/model.py +3 -3
- reflex/page.py +3 -2
- reflex/state.py +56 -57
- reflex/style.py +3 -2
- reflex/testing.py +12 -21
- reflex/utils/codespaces.py +14 -15
- reflex/utils/decorator.py +2 -1
- reflex/utils/exec.py +1 -1
- reflex/utils/format.py +2 -2
- reflex/utils/imports.py +6 -8
- reflex/utils/misc.py +2 -1
- reflex/utils/net.py +2 -1
- reflex/utils/prerequisites.py +12 -5
- reflex/utils/processes.py +6 -5
- reflex/utils/pyi_generator.py +6 -5
- reflex/utils/serializers.py +13 -25
- reflex/utils/types.py +34 -46
- reflex/vars/base.py +60 -56
- reflex/vars/dep_tracking.py +4 -4
- reflex/vars/function.py +13 -36
- reflex/vars/number.py +5 -17
- reflex/vars/object.py +9 -16
- reflex/vars/sequence.py +11 -23
- {reflex-0.7.7a1.dist-info → reflex-0.7.8a1.dist-info}/METADATA +1 -1
- {reflex-0.7.7a1.dist-info → reflex-0.7.8a1.dist-info}/RECORD +185 -185
- {reflex-0.7.7a1.dist-info → reflex-0.7.8a1.dist-info}/WHEEL +0 -0
- {reflex-0.7.7a1.dist-info → reflex-0.7.8a1.dist-info}/entry_points.txt +0 -0
- {reflex-0.7.7a1.dist-info → reflex-0.7.8a1.dist-info}/licenses/LICENSE +0 -0
reflex/components/base/link.pyi
CHANGED
|
@@ -3,14 +3,15 @@
|
|
|
3
3
|
# ------------------- DO NOT EDIT ----------------------
|
|
4
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
5
|
# ------------------------------------------------------
|
|
6
|
-
from
|
|
6
|
+
from collections.abc import Mapping, Sequence
|
|
7
|
+
from typing import Any, Literal, overload
|
|
7
8
|
|
|
8
|
-
from reflex.components.component import Component
|
|
9
9
|
from reflex.components.core.breakpoints import Breakpoints
|
|
10
|
+
from reflex.components.el.elements.base import BaseHTML
|
|
10
11
|
from reflex.event import EventType
|
|
11
12
|
from reflex.vars.base import Var
|
|
12
13
|
|
|
13
|
-
class RawLink(
|
|
14
|
+
class RawLink(BaseHTML):
|
|
14
15
|
@overload
|
|
15
16
|
@classmethod
|
|
16
17
|
def create( # type: ignore
|
|
@@ -18,6 +19,184 @@ class RawLink(Component):
|
|
|
18
19
|
*children,
|
|
19
20
|
href: Var[str] | str | None = None,
|
|
20
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,
|
|
21
200
|
style: Sequence[Mapping[str, Any]]
|
|
22
201
|
| Mapping[str, Any]
|
|
23
202
|
| Var[Mapping[str, Any]]
|
|
@@ -28,29 +207,45 @@ class RawLink(Component):
|
|
|
28
207
|
class_name: Any | None = None,
|
|
29
208
|
autofocus: bool | None = None,
|
|
30
209
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
31
|
-
on_blur:
|
|
32
|
-
on_click:
|
|
33
|
-
on_context_menu:
|
|
34
|
-
on_double_click:
|
|
35
|
-
on_focus:
|
|
36
|
-
on_mount:
|
|
37
|
-
on_mouse_down:
|
|
38
|
-
on_mouse_enter:
|
|
39
|
-
on_mouse_leave:
|
|
40
|
-
on_mouse_move:
|
|
41
|
-
on_mouse_out:
|
|
42
|
-
on_mouse_over:
|
|
43
|
-
on_mouse_up:
|
|
44
|
-
on_scroll:
|
|
45
|
-
on_unmount:
|
|
210
|
+
on_blur: EventType[()] | None = None,
|
|
211
|
+
on_click: EventType[()] | None = None,
|
|
212
|
+
on_context_menu: EventType[()] | None = None,
|
|
213
|
+
on_double_click: EventType[()] | None = None,
|
|
214
|
+
on_focus: EventType[()] | None = None,
|
|
215
|
+
on_mount: EventType[()] | None = None,
|
|
216
|
+
on_mouse_down: EventType[()] | None = None,
|
|
217
|
+
on_mouse_enter: EventType[()] | None = None,
|
|
218
|
+
on_mouse_leave: EventType[()] | None = None,
|
|
219
|
+
on_mouse_move: EventType[()] | None = None,
|
|
220
|
+
on_mouse_out: EventType[()] | None = None,
|
|
221
|
+
on_mouse_over: EventType[()] | None = None,
|
|
222
|
+
on_mouse_up: EventType[()] | None = None,
|
|
223
|
+
on_scroll: EventType[()] | None = None,
|
|
224
|
+
on_unmount: EventType[()] | None = None,
|
|
46
225
|
**props,
|
|
47
|
-
) ->
|
|
226
|
+
) -> RawLink:
|
|
48
227
|
"""Create the component.
|
|
49
228
|
|
|
50
229
|
Args:
|
|
51
230
|
*children: The children of the component.
|
|
52
231
|
href: The href.
|
|
53
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.
|
|
54
249
|
style: The style of the component.
|
|
55
250
|
key: A unique key for the component.
|
|
56
251
|
id: The id for the component.
|
|
@@ -64,7 +259,7 @@ class RawLink(Component):
|
|
|
64
259
|
"""
|
|
65
260
|
...
|
|
66
261
|
|
|
67
|
-
class ScriptTag(
|
|
262
|
+
class ScriptTag(BaseHTML):
|
|
68
263
|
@overload
|
|
69
264
|
@classmethod
|
|
70
265
|
def create( # type: ignore
|
|
@@ -77,6 +272,184 @@ class ScriptTag(Component):
|
|
|
77
272
|
referrer_policy: Var[str] | str | None = None,
|
|
78
273
|
is_async: Var[bool] | bool | None = None,
|
|
79
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,
|
|
80
453
|
style: Sequence[Mapping[str, Any]]
|
|
81
454
|
| Mapping[str, Any]
|
|
82
455
|
| Var[Mapping[str, Any]]
|
|
@@ -87,23 +460,23 @@ class ScriptTag(Component):
|
|
|
87
460
|
class_name: Any | None = None,
|
|
88
461
|
autofocus: bool | None = None,
|
|
89
462
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
90
|
-
on_blur:
|
|
91
|
-
on_click:
|
|
92
|
-
on_context_menu:
|
|
93
|
-
on_double_click:
|
|
94
|
-
on_focus:
|
|
95
|
-
on_mount:
|
|
96
|
-
on_mouse_down:
|
|
97
|
-
on_mouse_enter:
|
|
98
|
-
on_mouse_leave:
|
|
99
|
-
on_mouse_move:
|
|
100
|
-
on_mouse_out:
|
|
101
|
-
on_mouse_over:
|
|
102
|
-
on_mouse_up:
|
|
103
|
-
on_scroll:
|
|
104
|
-
on_unmount:
|
|
463
|
+
on_blur: EventType[()] | None = None,
|
|
464
|
+
on_click: EventType[()] | None = None,
|
|
465
|
+
on_context_menu: EventType[()] | None = None,
|
|
466
|
+
on_double_click: EventType[()] | None = None,
|
|
467
|
+
on_focus: EventType[()] | None = None,
|
|
468
|
+
on_mount: EventType[()] | None = None,
|
|
469
|
+
on_mouse_down: EventType[()] | None = None,
|
|
470
|
+
on_mouse_enter: EventType[()] | None = None,
|
|
471
|
+
on_mouse_leave: EventType[()] | None = None,
|
|
472
|
+
on_mouse_move: EventType[()] | None = None,
|
|
473
|
+
on_mouse_out: EventType[()] | None = None,
|
|
474
|
+
on_mouse_over: EventType[()] | None = None,
|
|
475
|
+
on_mouse_up: EventType[()] | None = None,
|
|
476
|
+
on_scroll: EventType[()] | None = None,
|
|
477
|
+
on_unmount: EventType[()] | None = None,
|
|
105
478
|
**props,
|
|
106
|
-
) ->
|
|
479
|
+
) -> ScriptTag:
|
|
107
480
|
"""Create the component.
|
|
108
481
|
|
|
109
482
|
Args:
|
|
@@ -115,6 +488,22 @@ class ScriptTag(Component):
|
|
|
115
488
|
referrer_policy: Indicates which referrer to send when fetching the script.
|
|
116
489
|
is_async: Whether to asynchronously load the script.
|
|
117
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.
|
|
118
507
|
style: The style of the component.
|
|
119
508
|
key: A unique key for the component.
|
|
120
509
|
id: The id for the component.
|