reflex-components-core 0.9.0__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.
- reflex_components_core/__init__.py +20 -0
- reflex_components_core/__init__.pyi +8 -0
- reflex_components_core/base/__init__.py +29 -0
- reflex_components_core/base/__init__.pyi +35 -0
- reflex_components_core/base/app_wrap.py +19 -0
- reflex_components_core/base/app_wrap.pyi +52 -0
- reflex_components_core/base/bare.py +247 -0
- reflex_components_core/base/body.py +7 -0
- reflex_components_core/base/body.pyi +273 -0
- reflex_components_core/base/document.py +39 -0
- reflex_components_core/base/document.pyi +403 -0
- reflex_components_core/base/error_boundary.py +179 -0
- reflex_components_core/base/error_boundary.pyi +89 -0
- reflex_components_core/base/fragment.py +13 -0
- reflex_components_core/base/fragment.pyi +80 -0
- reflex_components_core/base/link.py +38 -0
- reflex_components_core/base/link.pyi +551 -0
- reflex_components_core/base/meta.py +47 -0
- reflex_components_core/base/meta.pyi +620 -0
- reflex_components_core/base/script.py +77 -0
- reflex_components_core/base/script.pyi +320 -0
- reflex_components_core/base/strict_mode.py +10 -0
- reflex_components_core/base/strict_mode.pyi +78 -0
- reflex_components_core/core/__init__.py +60 -0
- reflex_components_core/core/__init__.pyi +85 -0
- reflex_components_core/core/_upload.py +696 -0
- reflex_components_core/core/auto_scroll.py +123 -0
- reflex_components_core/core/auto_scroll.pyi +279 -0
- reflex_components_core/core/banner.py +481 -0
- reflex_components_core/core/banner.pyi +787 -0
- reflex_components_core/core/breakpoints.py +4 -0
- reflex_components_core/core/clipboard.py +101 -0
- reflex_components_core/core/clipboard.pyi +92 -0
- reflex_components_core/core/colors.py +53 -0
- reflex_components_core/core/cond.py +197 -0
- reflex_components_core/core/debounce.py +150 -0
- reflex_components_core/core/debounce.pyi +108 -0
- reflex_components_core/core/foreach.py +180 -0
- reflex_components_core/core/helmet.py +14 -0
- reflex_components_core/core/helmet.pyi +80 -0
- reflex_components_core/core/html.py +48 -0
- reflex_components_core/core/html.pyi +280 -0
- reflex_components_core/core/layout/__init__.py +1 -0
- reflex_components_core/core/markdown_component_map.py +78 -0
- reflex_components_core/core/match.py +300 -0
- reflex_components_core/core/responsive.py +69 -0
- reflex_components_core/core/sticky.py +130 -0
- reflex_components_core/core/sticky.pyi +973 -0
- reflex_components_core/core/upload.py +490 -0
- reflex_components_core/core/upload.pyi +462 -0
- reflex_components_core/core/window_events.py +142 -0
- reflex_components_core/core/window_events.pyi +95 -0
- reflex_components_core/datadisplay/__init__.py +20 -0
- reflex_components_core/datadisplay/__init__.pyi +18 -0
- reflex_components_core/datadisplay/logo.py +72 -0
- reflex_components_core/el/__init__.py +24 -0
- reflex_components_core/el/__init__.pyi +520 -0
- reflex_components_core/el/element.py +22 -0
- reflex_components_core/el/element.pyi +78 -0
- reflex_components_core/el/elements/__init__.py +160 -0
- reflex_components_core/el/elements/__init__.pyi +655 -0
- reflex_components_core/el/elements/base.py +142 -0
- reflex_components_core/el/elements/base.pyi +351 -0
- reflex_components_core/el/elements/forms.py +799 -0
- reflex_components_core/el/elements/forms.pyi +4934 -0
- reflex_components_core/el/elements/inline.py +256 -0
- reflex_components_core/el/elements/inline.pyi +7384 -0
- reflex_components_core/el/elements/media.py +1018 -0
- reflex_components_core/el/elements/media.pyi +13681 -0
- reflex_components_core/el/elements/metadata.py +106 -0
- reflex_components_core/el/elements/metadata.pyi +1254 -0
- reflex_components_core/el/elements/other.py +81 -0
- reflex_components_core/el/elements/other.pyi +1848 -0
- reflex_components_core/el/elements/scripts.py +58 -0
- reflex_components_core/el/elements/scripts.pyi +840 -0
- reflex_components_core/el/elements/sectioning.py +110 -0
- reflex_components_core/el/elements/sectioning.pyi +3930 -0
- reflex_components_core/el/elements/tables.py +114 -0
- reflex_components_core/el/elements/tables.pyi +2657 -0
- reflex_components_core/el/elements/typography.py +153 -0
- reflex_components_core/el/elements/typography.pyi +4210 -0
- reflex_components_core/react_router/__init__.py +5 -0
- reflex_components_core/react_router/dom.py +75 -0
- reflex_components_core/react_router/dom.pyi +337 -0
- reflex_components_core-0.9.0.dist-info/METADATA +17 -0
- reflex_components_core-0.9.0.dist-info/RECORD +87 -0
- reflex_components_core-0.9.0.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
"""Stub file for reflex_components_core/base/body.py"""
|
|
2
|
+
|
|
3
|
+
# ------------------- DO NOT EDIT ----------------------
|
|
4
|
+
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
|
+
# ------------------------------------------------------
|
|
6
|
+
from collections.abc import Mapping, Sequence
|
|
7
|
+
from typing import Any, Literal
|
|
8
|
+
|
|
9
|
+
from reflex_base.event import EventType, PointerEventInfo
|
|
10
|
+
from reflex_base.vars.base import Var
|
|
11
|
+
|
|
12
|
+
from reflex_components_core.core.breakpoints import Breakpoints
|
|
13
|
+
from reflex_components_core.el import elements
|
|
14
|
+
|
|
15
|
+
class Body(elements.Body):
|
|
16
|
+
@classmethod
|
|
17
|
+
def create(
|
|
18
|
+
cls,
|
|
19
|
+
*children,
|
|
20
|
+
access_key: Var[str] | str | None = None,
|
|
21
|
+
auto_capitalize: Literal[
|
|
22
|
+
"characters", "none", "off", "on", "sentences", "words"
|
|
23
|
+
]
|
|
24
|
+
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
|
|
25
|
+
| None = None,
|
|
26
|
+
content_editable: Literal["inherit", "plaintext-only"]
|
|
27
|
+
| Var[Literal["inherit", "plaintext-only"] | bool]
|
|
28
|
+
| bool
|
|
29
|
+
| None = None,
|
|
30
|
+
context_menu: Var[str] | str | None = None,
|
|
31
|
+
dir: Var[str] | str | None = None,
|
|
32
|
+
draggable: Var[bool] | bool | None = None,
|
|
33
|
+
enter_key_hint: Literal[
|
|
34
|
+
"done", "enter", "go", "next", "previous", "search", "send"
|
|
35
|
+
]
|
|
36
|
+
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
|
|
37
|
+
| None = None,
|
|
38
|
+
hidden: Var[bool] | bool | None = None,
|
|
39
|
+
input_mode: Literal[
|
|
40
|
+
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
41
|
+
]
|
|
42
|
+
| Var[
|
|
43
|
+
Literal[
|
|
44
|
+
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
45
|
+
]
|
|
46
|
+
]
|
|
47
|
+
| None = None,
|
|
48
|
+
item_prop: Var[str] | str | None = None,
|
|
49
|
+
lang: Var[str] | str | None = None,
|
|
50
|
+
role: Literal[
|
|
51
|
+
"alert",
|
|
52
|
+
"alertdialog",
|
|
53
|
+
"application",
|
|
54
|
+
"article",
|
|
55
|
+
"banner",
|
|
56
|
+
"button",
|
|
57
|
+
"cell",
|
|
58
|
+
"checkbox",
|
|
59
|
+
"columnheader",
|
|
60
|
+
"combobox",
|
|
61
|
+
"complementary",
|
|
62
|
+
"contentinfo",
|
|
63
|
+
"definition",
|
|
64
|
+
"dialog",
|
|
65
|
+
"directory",
|
|
66
|
+
"document",
|
|
67
|
+
"feed",
|
|
68
|
+
"figure",
|
|
69
|
+
"form",
|
|
70
|
+
"grid",
|
|
71
|
+
"gridcell",
|
|
72
|
+
"group",
|
|
73
|
+
"heading",
|
|
74
|
+
"img",
|
|
75
|
+
"link",
|
|
76
|
+
"list",
|
|
77
|
+
"listbox",
|
|
78
|
+
"listitem",
|
|
79
|
+
"log",
|
|
80
|
+
"main",
|
|
81
|
+
"marquee",
|
|
82
|
+
"math",
|
|
83
|
+
"menu",
|
|
84
|
+
"menubar",
|
|
85
|
+
"menuitem",
|
|
86
|
+
"menuitemcheckbox",
|
|
87
|
+
"menuitemradio",
|
|
88
|
+
"navigation",
|
|
89
|
+
"none",
|
|
90
|
+
"note",
|
|
91
|
+
"option",
|
|
92
|
+
"presentation",
|
|
93
|
+
"progressbar",
|
|
94
|
+
"radio",
|
|
95
|
+
"radiogroup",
|
|
96
|
+
"region",
|
|
97
|
+
"row",
|
|
98
|
+
"rowgroup",
|
|
99
|
+
"rowheader",
|
|
100
|
+
"scrollbar",
|
|
101
|
+
"search",
|
|
102
|
+
"searchbox",
|
|
103
|
+
"separator",
|
|
104
|
+
"slider",
|
|
105
|
+
"spinbutton",
|
|
106
|
+
"status",
|
|
107
|
+
"switch",
|
|
108
|
+
"tab",
|
|
109
|
+
"table",
|
|
110
|
+
"tablist",
|
|
111
|
+
"tabpanel",
|
|
112
|
+
"term",
|
|
113
|
+
"textbox",
|
|
114
|
+
"timer",
|
|
115
|
+
"toolbar",
|
|
116
|
+
"tooltip",
|
|
117
|
+
"tree",
|
|
118
|
+
"treegrid",
|
|
119
|
+
"treeitem",
|
|
120
|
+
]
|
|
121
|
+
| Var[
|
|
122
|
+
Literal[
|
|
123
|
+
"alert",
|
|
124
|
+
"alertdialog",
|
|
125
|
+
"application",
|
|
126
|
+
"article",
|
|
127
|
+
"banner",
|
|
128
|
+
"button",
|
|
129
|
+
"cell",
|
|
130
|
+
"checkbox",
|
|
131
|
+
"columnheader",
|
|
132
|
+
"combobox",
|
|
133
|
+
"complementary",
|
|
134
|
+
"contentinfo",
|
|
135
|
+
"definition",
|
|
136
|
+
"dialog",
|
|
137
|
+
"directory",
|
|
138
|
+
"document",
|
|
139
|
+
"feed",
|
|
140
|
+
"figure",
|
|
141
|
+
"form",
|
|
142
|
+
"grid",
|
|
143
|
+
"gridcell",
|
|
144
|
+
"group",
|
|
145
|
+
"heading",
|
|
146
|
+
"img",
|
|
147
|
+
"link",
|
|
148
|
+
"list",
|
|
149
|
+
"listbox",
|
|
150
|
+
"listitem",
|
|
151
|
+
"log",
|
|
152
|
+
"main",
|
|
153
|
+
"marquee",
|
|
154
|
+
"math",
|
|
155
|
+
"menu",
|
|
156
|
+
"menubar",
|
|
157
|
+
"menuitem",
|
|
158
|
+
"menuitemcheckbox",
|
|
159
|
+
"menuitemradio",
|
|
160
|
+
"navigation",
|
|
161
|
+
"none",
|
|
162
|
+
"note",
|
|
163
|
+
"option",
|
|
164
|
+
"presentation",
|
|
165
|
+
"progressbar",
|
|
166
|
+
"radio",
|
|
167
|
+
"radiogroup",
|
|
168
|
+
"region",
|
|
169
|
+
"row",
|
|
170
|
+
"rowgroup",
|
|
171
|
+
"rowheader",
|
|
172
|
+
"scrollbar",
|
|
173
|
+
"search",
|
|
174
|
+
"searchbox",
|
|
175
|
+
"separator",
|
|
176
|
+
"slider",
|
|
177
|
+
"spinbutton",
|
|
178
|
+
"status",
|
|
179
|
+
"switch",
|
|
180
|
+
"tab",
|
|
181
|
+
"table",
|
|
182
|
+
"tablist",
|
|
183
|
+
"tabpanel",
|
|
184
|
+
"term",
|
|
185
|
+
"textbox",
|
|
186
|
+
"timer",
|
|
187
|
+
"toolbar",
|
|
188
|
+
"tooltip",
|
|
189
|
+
"tree",
|
|
190
|
+
"treegrid",
|
|
191
|
+
"treeitem",
|
|
192
|
+
]
|
|
193
|
+
]
|
|
194
|
+
| None = None,
|
|
195
|
+
slot: Var[str] | str | None = None,
|
|
196
|
+
spell_check: Var[bool] | bool | None = None,
|
|
197
|
+
tab_index: Var[int] | int | None = None,
|
|
198
|
+
title: Var[str] | str | None = None,
|
|
199
|
+
style: Sequence[Mapping[str, Any]]
|
|
200
|
+
| Mapping[str, Any]
|
|
201
|
+
| Var[Mapping[str, Any]]
|
|
202
|
+
| Breakpoints
|
|
203
|
+
| None = None,
|
|
204
|
+
key: Any | None = None,
|
|
205
|
+
id: Any | None = None,
|
|
206
|
+
ref: Var | None = None,
|
|
207
|
+
class_name: Any | None = None,
|
|
208
|
+
custom_attrs: dict[str, Any | Var] | None = None,
|
|
209
|
+
on_blur: EventType[()] | None = None,
|
|
210
|
+
on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
211
|
+
on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
212
|
+
on_double_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
213
|
+
on_focus: EventType[()] | None = None,
|
|
214
|
+
on_mount: EventType[()] | None = None,
|
|
215
|
+
on_mouse_down: EventType[()] | None = None,
|
|
216
|
+
on_mouse_enter: EventType[()] | None = None,
|
|
217
|
+
on_mouse_leave: EventType[()] | None = None,
|
|
218
|
+
on_mouse_move: EventType[()] | None = None,
|
|
219
|
+
on_mouse_out: EventType[()] | None = None,
|
|
220
|
+
on_mouse_over: EventType[()] | None = None,
|
|
221
|
+
on_mouse_up: EventType[()] | None = None,
|
|
222
|
+
on_scroll: EventType[()] | None = None,
|
|
223
|
+
on_scroll_end: EventType[()] | None = None,
|
|
224
|
+
on_unmount: EventType[()] | None = None,
|
|
225
|
+
**props,
|
|
226
|
+
) -> Body:
|
|
227
|
+
"""Create the component.
|
|
228
|
+
|
|
229
|
+
Args:
|
|
230
|
+
*children: The children of the component.
|
|
231
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
232
|
+
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
233
|
+
content_editable: Indicates whether the element's content is editable.
|
|
234
|
+
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
235
|
+
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
236
|
+
draggable: Defines whether the element can be dragged.
|
|
237
|
+
enter_key_hint: Hints what media types the media element is able to play.
|
|
238
|
+
hidden: Defines whether the element is hidden.
|
|
239
|
+
input_mode: Defines the type of the element.
|
|
240
|
+
item_prop: Defines the name of the element for metadata purposes.
|
|
241
|
+
lang: Defines the language used in the element.
|
|
242
|
+
role: Defines the role of the element.
|
|
243
|
+
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
244
|
+
spell_check: Defines whether the element may be checked for spelling errors.
|
|
245
|
+
tab_index: Defines the position of the current element in the tabbing order.
|
|
246
|
+
title: Defines a tooltip for the element.
|
|
247
|
+
style: The style of the component.
|
|
248
|
+
key: A unique key for the component.
|
|
249
|
+
id: The id for the component.
|
|
250
|
+
ref: The Var to pass as the ref to the component.
|
|
251
|
+
class_name: The class name for the component.
|
|
252
|
+
custom_attrs: Attributes passed directly to the component.
|
|
253
|
+
on_focus: Fired when the element (or some element inside of it) receives focus. For example, it is called when the user clicks on a text input.
|
|
254
|
+
on_blur: Fired when focus has left the element (or left some element inside of it). For example, it is called when the user clicks outside of a focused text input.
|
|
255
|
+
on_click: Fired when the user clicks on an element. For example, it's called when the user clicks on a button.
|
|
256
|
+
on_context_menu: Fired when the user right-clicks on an element.
|
|
257
|
+
on_double_click: Fired when the user double-clicks on an element.
|
|
258
|
+
on_mouse_down: Fired when the user presses a mouse button on an element.
|
|
259
|
+
on_mouse_enter: Fired when the mouse pointer enters the element.
|
|
260
|
+
on_mouse_leave: Fired when the mouse pointer leaves the element.
|
|
261
|
+
on_mouse_move: Fired when the mouse pointer moves over the element.
|
|
262
|
+
on_mouse_out: Fired when the mouse pointer moves out of the element.
|
|
263
|
+
on_mouse_over: Fired when the mouse pointer moves onto the element.
|
|
264
|
+
on_mouse_up: Fired when the user releases a mouse button on an element.
|
|
265
|
+
on_scroll: Fired when the user scrolls the element.
|
|
266
|
+
on_scroll_end: Fired when scrolling ends on the element.
|
|
267
|
+
on_mount: Fired when the component is mounted to the page.
|
|
268
|
+
on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
|
|
269
|
+
**props: The props of the component.
|
|
270
|
+
|
|
271
|
+
Returns:
|
|
272
|
+
The component.
|
|
273
|
+
"""
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"""Document components."""
|
|
2
|
+
|
|
3
|
+
from reflex_base.components.component import Component
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class ReactRouterLib(Component):
|
|
7
|
+
"""Root document components."""
|
|
8
|
+
|
|
9
|
+
library = "react-router"
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class Meta(ReactRouterLib):
|
|
13
|
+
"""The document meta tags."""
|
|
14
|
+
|
|
15
|
+
tag = "Meta"
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class Links(ReactRouterLib):
|
|
19
|
+
"""The document link tags."""
|
|
20
|
+
|
|
21
|
+
tag = "Links"
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class ScrollRestoration(ReactRouterLib):
|
|
25
|
+
"""The document scroll restoration."""
|
|
26
|
+
|
|
27
|
+
tag = "ScrollRestoration"
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class Outlet(ReactRouterLib):
|
|
31
|
+
"""The document outlet."""
|
|
32
|
+
|
|
33
|
+
tag = "Outlet"
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class Scripts(ReactRouterLib):
|
|
37
|
+
"""The document main scripts."""
|
|
38
|
+
|
|
39
|
+
tag = "Scripts"
|