reflex 0.5.9.dev1__py3-none-any.whl → 0.5.10__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/client_side_routing.js +6 -1
- reflex/__init__.py +21 -2
- reflex/__init__.pyi +0 -1
- reflex/app.py +1 -1
- reflex/components/__init__.py +0 -1
- reflex/components/__init__.pyi +0 -1
- reflex/components/markdown/markdown.py +1 -1
- reflex/components/recharts/cartesian.py +3 -0
- reflex/components/recharts/cartesian.pyi +2 -0
- reflex/components/sonner/toast.py +27 -1
- reflex/components/sonner/toast.pyi +5 -0
- reflex/constants/base.py +2 -0
- reflex/constants/installer.py +2 -0
- reflex/experimental/hooks.py +1 -1
- reflex/reflex.py +0 -15
- reflex/state.py +22 -22
- reflex/testing.py +8 -3
- reflex/utils/net.py +43 -0
- reflex/utils/prerequisites.py +27 -126
- reflex/utils/registry.py +48 -0
- reflex/utils/types.py +1 -1
- reflex/vars.py +4 -2
- {reflex-0.5.9.dev1.dist-info → reflex-0.5.10.dist-info}/METADATA +2 -1
- {reflex-0.5.9.dev1.dist-info → reflex-0.5.10.dist-info}/RECORD +27 -168
- reflex/components/chakra/__init__.py +0 -204
- reflex/components/chakra/base.py +0 -210
- reflex/components/chakra/base.pyi +0 -319
- reflex/components/chakra/datadisplay/__init__.py +0 -10
- reflex/components/chakra/datadisplay/badge.py +0 -16
- reflex/components/chakra/datadisplay/badge.pyi +0 -96
- reflex/components/chakra/datadisplay/code.py +0 -11
- reflex/components/chakra/datadisplay/code.pyi +0 -87
- reflex/components/chakra/datadisplay/divider.py +0 -20
- reflex/components/chakra/datadisplay/divider.pyi +0 -100
- reflex/components/chakra/datadisplay/keyboard_key.py +0 -9
- reflex/components/chakra/datadisplay/keyboard_key.pyi +0 -87
- reflex/components/chakra/datadisplay/list.py +0 -60
- reflex/components/chakra/datadisplay/list.pyi +0 -339
- reflex/components/chakra/datadisplay/stat.py +0 -80
- reflex/components/chakra/datadisplay/stat.pyi +0 -477
- reflex/components/chakra/datadisplay/table.py +0 -305
- reflex/components/chakra/datadisplay/table.pyi +0 -737
- reflex/components/chakra/datadisplay/tag.py +0 -85
- reflex/components/chakra/datadisplay/tag.pyi +0 -433
- reflex/components/chakra/disclosure/__init__.py +0 -14
- reflex/components/chakra/disclosure/accordion.py +0 -110
- reflex/components/chakra/disclosure/accordion.pyi +0 -411
- reflex/components/chakra/disclosure/tabs.py +0 -117
- reflex/components/chakra/disclosure/tabs.pyi +0 -496
- reflex/components/chakra/disclosure/transition.py +0 -73
- reflex/components/chakra/disclosure/transition.pyi +0 -509
- reflex/components/chakra/disclosure/visuallyhidden.py +0 -9
- reflex/components/chakra/disclosure/visuallyhidden.pyi +0 -87
- reflex/components/chakra/feedback/__init__.py +0 -7
- reflex/components/chakra/feedback/alert.py +0 -68
- reflex/components/chakra/feedback/alert.pyi +0 -335
- reflex/components/chakra/feedback/circularprogress.py +0 -68
- reflex/components/chakra/feedback/circularprogress.pyi +0 -185
- reflex/components/chakra/feedback/progress.py +0 -33
- reflex/components/chakra/feedback/progress.pyi +0 -101
- reflex/components/chakra/feedback/skeleton.py +0 -70
- reflex/components/chakra/feedback/skeleton.pyi +0 -271
- reflex/components/chakra/feedback/spinner.py +0 -25
- reflex/components/chakra/feedback/spinner.pyi +0 -102
- reflex/components/chakra/forms/__init__.py +0 -49
- reflex/components/chakra/forms/button.py +0 -83
- reflex/components/chakra/forms/button.pyi +0 -262
- reflex/components/chakra/forms/checkbox.py +0 -77
- reflex/components/chakra/forms/checkbox.pyi +0 -247
- reflex/components/chakra/forms/colormodeswitch.py +0 -104
- reflex/components/chakra/forms/colormodeswitch.pyi +0 -473
- reflex/components/chakra/forms/date_picker.py +0 -11
- reflex/components/chakra/forms/date_picker.pyi +0 -129
- reflex/components/chakra/forms/date_time_picker.py +0 -11
- reflex/components/chakra/forms/date_time_picker.pyi +0 -129
- reflex/components/chakra/forms/editable.py +0 -67
- reflex/components/chakra/forms/editable.pyi +0 -343
- reflex/components/chakra/forms/email.py +0 -11
- reflex/components/chakra/forms/email.pyi +0 -129
- reflex/components/chakra/forms/form.py +0 -103
- reflex/components/chakra/forms/form.pyi +0 -484
- reflex/components/chakra/forms/iconbutton.py +0 -38
- reflex/components/chakra/forms/iconbutton.pyi +0 -108
- reflex/components/chakra/forms/input.py +0 -130
- reflex/components/chakra/forms/input.pyi +0 -566
- reflex/components/chakra/forms/multiselect.py +0 -355
- reflex/components/chakra/forms/numberinput.py +0 -128
- reflex/components/chakra/forms/numberinput.pyi +0 -442
- reflex/components/chakra/forms/password.py +0 -11
- reflex/components/chakra/forms/password.pyi +0 -129
- reflex/components/chakra/forms/pininput.py +0 -201
- reflex/components/chakra/forms/pininput.pyi +0 -215
- reflex/components/chakra/forms/radio.py +0 -101
- reflex/components/chakra/forms/radio.pyi +0 -197
- reflex/components/chakra/forms/rangeslider.py +0 -149
- reflex/components/chakra/forms/rangeslider.pyi +0 -354
- reflex/components/chakra/forms/select.py +0 -103
- reflex/components/chakra/forms/select.pyi +0 -204
- reflex/components/chakra/forms/slider.py +0 -130
- reflex/components/chakra/forms/slider.pyi +0 -449
- reflex/components/chakra/forms/switch.py +0 -49
- reflex/components/chakra/forms/switch.pyi +0 -159
- reflex/components/chakra/forms/textarea.py +0 -79
- reflex/components/chakra/forms/textarea.pyi +0 -123
- reflex/components/chakra/forms/time_picker.py +0 -11
- reflex/components/chakra/forms/time_picker.pyi +0 -129
- reflex/components/chakra/layout/__init__.py +0 -14
- reflex/components/chakra/layout/aspect_ratio.py +0 -13
- reflex/components/chakra/layout/aspect_ratio.pyi +0 -89
- reflex/components/chakra/layout/box.py +0 -31
- reflex/components/chakra/layout/box.pyi +0 -93
- reflex/components/chakra/layout/card.py +0 -100
- reflex/components/chakra/layout/card.pyi +0 -379
- reflex/components/chakra/layout/center.py +0 -21
- reflex/components/chakra/layout/center.pyi +0 -239
- reflex/components/chakra/layout/container.py +0 -13
- reflex/components/chakra/layout/container.pyi +0 -89
- reflex/components/chakra/layout/flex.py +0 -33
- reflex/components/chakra/layout/flex.pyi +0 -101
- reflex/components/chakra/layout/grid.py +0 -125
- reflex/components/chakra/layout/grid.pyi +0 -293
- reflex/components/chakra/layout/spacer.py +0 -9
- reflex/components/chakra/layout/spacer.pyi +0 -87
- reflex/components/chakra/layout/stack.py +0 -48
- reflex/components/chakra/layout/stack.pyi +0 -305
- reflex/components/chakra/layout/wrap.py +0 -57
- reflex/components/chakra/layout/wrap.pyi +0 -179
- reflex/components/chakra/media/__init__.py +0 -7
- reflex/components/chakra/media/avatar.py +0 -58
- reflex/components/chakra/media/avatar.pyi +0 -267
- reflex/components/chakra/media/icon.py +0 -111
- reflex/components/chakra/media/icon.pyi +0 -171
- reflex/components/chakra/media/image.py +0 -74
- reflex/components/chakra/media/image.pyi +0 -118
- reflex/components/chakra/navigation/__init__.py +0 -18
- reflex/components/chakra/navigation/breadcrumb.py +0 -98
- reflex/components/chakra/navigation/breadcrumb.pyi +0 -351
- reflex/components/chakra/navigation/link.py +0 -62
- reflex/components/chakra/navigation/link.pyi +0 -105
- reflex/components/chakra/navigation/linkoverlay.py +0 -22
- reflex/components/chakra/navigation/linkoverlay.pyi +0 -167
- reflex/components/chakra/navigation/stepper.py +0 -113
- reflex/components/chakra/navigation/stepper.pyi +0 -762
- reflex/components/chakra/overlay/__init__.py +0 -50
- reflex/components/chakra/overlay/alertdialog.py +0 -153
- reflex/components/chakra/overlay/alertdialog.pyi +0 -612
- reflex/components/chakra/overlay/drawer.py +0 -168
- reflex/components/chakra/overlay/drawer.pyi +0 -652
- reflex/components/chakra/overlay/menu.py +0 -225
- reflex/components/chakra/overlay/menu.pyi +0 -708
- reflex/components/chakra/overlay/modal.py +0 -166
- reflex/components/chakra/overlay/modal.pyi +0 -600
- reflex/components/chakra/overlay/popover.py +0 -183
- reflex/components/chakra/overlay/popover.pyi +0 -757
- reflex/components/chakra/overlay/tooltip.py +0 -70
- reflex/components/chakra/overlay/tooltip.pyi +0 -129
- reflex/components/chakra/typography/__init__.py +0 -10
- reflex/components/chakra/typography/heading.py +0 -16
- reflex/components/chakra/typography/heading.pyi +0 -96
- reflex/components/chakra/typography/highlight.py +0 -23
- reflex/components/chakra/typography/highlight.pyi +0 -91
- reflex/components/chakra/typography/span.py +0 -15
- reflex/components/chakra/typography/span.pyi +0 -89
- reflex/components/chakra/typography/text.py +0 -18
- reflex/components/chakra/typography/text.pyi +0 -91
- reflex/components/media/__init__.py +0 -1
- reflex/components/media/icon.py +0 -3
- {reflex-0.5.9.dev1.dist-info → reflex-0.5.10.dist-info}/LICENSE +0 -0
- {reflex-0.5.9.dev1.dist-info → reflex-0.5.10.dist-info}/WHEEL +0 -0
- {reflex-0.5.9.dev1.dist-info → reflex-0.5.10.dist-info}/entry_points.txt +0 -0
|
@@ -1,600 +0,0 @@
|
|
|
1
|
-
"""Stub file for reflex/components/chakra/overlay/modal.py"""
|
|
2
|
-
|
|
3
|
-
# ------------------- DO NOT EDIT ----------------------
|
|
4
|
-
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
|
-
# ------------------------------------------------------
|
|
6
|
-
from typing import Any, Callable, Dict, Literal, Optional, Union, overload
|
|
7
|
-
|
|
8
|
-
from reflex.components.chakra import ChakraComponent
|
|
9
|
-
from reflex.components.component import Component
|
|
10
|
-
from reflex.event import EventHandler, EventSpec
|
|
11
|
-
from reflex.style import Style
|
|
12
|
-
from reflex.vars import BaseVar, Var
|
|
13
|
-
|
|
14
|
-
ModalSizes = Literal["xs", "sm", "md", "lg", "xl", "full"]
|
|
15
|
-
|
|
16
|
-
class Modal(ChakraComponent):
|
|
17
|
-
@overload
|
|
18
|
-
@classmethod
|
|
19
|
-
def create( # type: ignore
|
|
20
|
-
cls,
|
|
21
|
-
*children,
|
|
22
|
-
header: Optional[Union[Component, str]] = None,
|
|
23
|
-
body: Optional[Union[Component, str]] = None,
|
|
24
|
-
footer: Optional[Union[Component, str]] = None,
|
|
25
|
-
close_button: Optional[Component] = None,
|
|
26
|
-
is_open: Optional[Union[Var[bool], bool]] = None,
|
|
27
|
-
allow_pinch_zoom: Optional[Union[Var[bool], bool]] = None,
|
|
28
|
-
auto_focus: Optional[Union[Var[bool], bool]] = None,
|
|
29
|
-
block_scroll_on_mount: Optional[Union[Var[bool], bool]] = None,
|
|
30
|
-
close_on_esc: Optional[Union[Var[bool], bool]] = None,
|
|
31
|
-
close_on_overlay_click: Optional[Union[Var[bool], bool]] = None,
|
|
32
|
-
is_centered: Optional[Union[Var[bool], bool]] = None,
|
|
33
|
-
lock_focus_across_frames: Optional[Union[Var[bool], bool]] = None,
|
|
34
|
-
motion_preset: Optional[Union[Var[str], str]] = None,
|
|
35
|
-
preserve_scroll_bar_gap: Optional[Union[Var[bool], bool]] = None,
|
|
36
|
-
return_focus_on_close: Optional[Union[Var[bool], bool]] = None,
|
|
37
|
-
size: Optional[
|
|
38
|
-
Union[
|
|
39
|
-
Var[Literal["xs", "sm", "md", "lg", "xl", "full"]],
|
|
40
|
-
Literal["xs", "sm", "md", "lg", "xl", "full"],
|
|
41
|
-
]
|
|
42
|
-
] = None,
|
|
43
|
-
use_inert: Optional[Union[Var[bool], bool]] = None,
|
|
44
|
-
style: Optional[Style] = None,
|
|
45
|
-
key: Optional[Any] = None,
|
|
46
|
-
id: Optional[Any] = None,
|
|
47
|
-
class_name: Optional[Any] = None,
|
|
48
|
-
autofocus: Optional[bool] = None,
|
|
49
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
50
|
-
on_blur: Optional[
|
|
51
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
52
|
-
] = None,
|
|
53
|
-
on_click: Optional[
|
|
54
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
55
|
-
] = None,
|
|
56
|
-
on_close: Optional[
|
|
57
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
58
|
-
] = None,
|
|
59
|
-
on_close_complete: Optional[
|
|
60
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
61
|
-
] = None,
|
|
62
|
-
on_context_menu: Optional[
|
|
63
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
64
|
-
] = None,
|
|
65
|
-
on_double_click: Optional[
|
|
66
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
67
|
-
] = None,
|
|
68
|
-
on_esc: Optional[
|
|
69
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
70
|
-
] = None,
|
|
71
|
-
on_focus: Optional[
|
|
72
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
73
|
-
] = None,
|
|
74
|
-
on_mount: Optional[
|
|
75
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
76
|
-
] = None,
|
|
77
|
-
on_mouse_down: Optional[
|
|
78
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
79
|
-
] = None,
|
|
80
|
-
on_mouse_enter: Optional[
|
|
81
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
82
|
-
] = None,
|
|
83
|
-
on_mouse_leave: Optional[
|
|
84
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
85
|
-
] = None,
|
|
86
|
-
on_mouse_move: Optional[
|
|
87
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
88
|
-
] = None,
|
|
89
|
-
on_mouse_out: Optional[
|
|
90
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
91
|
-
] = None,
|
|
92
|
-
on_mouse_over: Optional[
|
|
93
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
94
|
-
] = None,
|
|
95
|
-
on_mouse_up: Optional[
|
|
96
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
97
|
-
] = None,
|
|
98
|
-
on_overlay_click: Optional[
|
|
99
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
100
|
-
] = None,
|
|
101
|
-
on_scroll: Optional[
|
|
102
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
103
|
-
] = None,
|
|
104
|
-
on_unmount: Optional[
|
|
105
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
106
|
-
] = None,
|
|
107
|
-
**props,
|
|
108
|
-
) -> "Modal":
|
|
109
|
-
"""Create a modal component.
|
|
110
|
-
|
|
111
|
-
Args:
|
|
112
|
-
*children: The children of the component.
|
|
113
|
-
header: The header of the modal.
|
|
114
|
-
body: The body of the modal.
|
|
115
|
-
footer: The footer of the modal.
|
|
116
|
-
close_button: The close button of the modal.
|
|
117
|
-
is_open: If true, the modal will be open.
|
|
118
|
-
allow_pinch_zoom: Handle zoom/pinch gestures on iOS devices when scroll locking is enabled. Defaults to false.
|
|
119
|
-
auto_focus: If true, the modal will autofocus the first enabled and interactive element within the ModalContent
|
|
120
|
-
block_scroll_on_mount: If true, scrolling will be disabled on the body when the modal opens.
|
|
121
|
-
close_on_esc: If true, the modal will close when the Esc key is pressed
|
|
122
|
-
close_on_overlay_click: If true, the modal will close when the overlay is clicked
|
|
123
|
-
is_centered: If true, the modal will be centered on screen.
|
|
124
|
-
lock_focus_across_frames: Enables aggressive focus capturing within iframes. - If true: keep focus in the lock, no matter where lock is active - If false: allows focus to move outside of iframe
|
|
125
|
-
motion_preset: The transition that should be used for the modal
|
|
126
|
-
preserve_scroll_bar_gap: If true, a `padding-right` will be applied to the body element that's equal to the width of the scrollbar. This can help prevent some unpleasant flickering effect and content adjustment when the modal opens
|
|
127
|
-
return_focus_on_close: If true, the modal will return focus to the element that triggered it when it closes.
|
|
128
|
-
size: "xs" | "sm" | "md" | "lg" | "xl" | "full"
|
|
129
|
-
use_inert: A11y: If true, the siblings of the modal will have `aria-hidden` set to true so that screen readers can only see the modal. This is commonly known as making the other elements **inert**
|
|
130
|
-
style: The style of the component.
|
|
131
|
-
key: A unique key for the component.
|
|
132
|
-
id: The id for the component.
|
|
133
|
-
class_name: The class name for the component.
|
|
134
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
135
|
-
custom_attrs: custom attribute
|
|
136
|
-
**props: The properties of the component.
|
|
137
|
-
|
|
138
|
-
Raises:
|
|
139
|
-
AttributeError: error that occurs if conflicting props are passed
|
|
140
|
-
|
|
141
|
-
Returns:
|
|
142
|
-
The modal component.
|
|
143
|
-
"""
|
|
144
|
-
...
|
|
145
|
-
|
|
146
|
-
class ModalOverlay(ChakraComponent):
|
|
147
|
-
@overload
|
|
148
|
-
@classmethod
|
|
149
|
-
def create( # type: ignore
|
|
150
|
-
cls,
|
|
151
|
-
*children,
|
|
152
|
-
style: Optional[Style] = None,
|
|
153
|
-
key: Optional[Any] = None,
|
|
154
|
-
id: Optional[Any] = None,
|
|
155
|
-
class_name: Optional[Any] = None,
|
|
156
|
-
autofocus: Optional[bool] = None,
|
|
157
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
158
|
-
on_blur: Optional[
|
|
159
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
160
|
-
] = None,
|
|
161
|
-
on_click: Optional[
|
|
162
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
163
|
-
] = None,
|
|
164
|
-
on_context_menu: Optional[
|
|
165
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
166
|
-
] = None,
|
|
167
|
-
on_double_click: Optional[
|
|
168
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
169
|
-
] = None,
|
|
170
|
-
on_focus: Optional[
|
|
171
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
172
|
-
] = None,
|
|
173
|
-
on_mount: Optional[
|
|
174
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
175
|
-
] = None,
|
|
176
|
-
on_mouse_down: Optional[
|
|
177
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
178
|
-
] = None,
|
|
179
|
-
on_mouse_enter: Optional[
|
|
180
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
181
|
-
] = None,
|
|
182
|
-
on_mouse_leave: Optional[
|
|
183
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
184
|
-
] = None,
|
|
185
|
-
on_mouse_move: Optional[
|
|
186
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
187
|
-
] = None,
|
|
188
|
-
on_mouse_out: Optional[
|
|
189
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
190
|
-
] = None,
|
|
191
|
-
on_mouse_over: Optional[
|
|
192
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
193
|
-
] = None,
|
|
194
|
-
on_mouse_up: Optional[
|
|
195
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
196
|
-
] = None,
|
|
197
|
-
on_scroll: Optional[
|
|
198
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
199
|
-
] = None,
|
|
200
|
-
on_unmount: Optional[
|
|
201
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
202
|
-
] = None,
|
|
203
|
-
**props,
|
|
204
|
-
) -> "ModalOverlay":
|
|
205
|
-
"""Create the component.
|
|
206
|
-
|
|
207
|
-
Args:
|
|
208
|
-
*children: The children of the component.
|
|
209
|
-
style: The style of the component.
|
|
210
|
-
key: A unique key for the component.
|
|
211
|
-
id: The id for the component.
|
|
212
|
-
class_name: The class name for the component.
|
|
213
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
214
|
-
custom_attrs: custom attribute
|
|
215
|
-
**props: The props of the component.
|
|
216
|
-
|
|
217
|
-
Returns:
|
|
218
|
-
The component.
|
|
219
|
-
"""
|
|
220
|
-
...
|
|
221
|
-
|
|
222
|
-
class ModalHeader(ChakraComponent):
|
|
223
|
-
@overload
|
|
224
|
-
@classmethod
|
|
225
|
-
def create( # type: ignore
|
|
226
|
-
cls,
|
|
227
|
-
*children,
|
|
228
|
-
style: Optional[Style] = None,
|
|
229
|
-
key: Optional[Any] = None,
|
|
230
|
-
id: Optional[Any] = None,
|
|
231
|
-
class_name: Optional[Any] = None,
|
|
232
|
-
autofocus: Optional[bool] = None,
|
|
233
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
234
|
-
on_blur: Optional[
|
|
235
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
236
|
-
] = None,
|
|
237
|
-
on_click: Optional[
|
|
238
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
239
|
-
] = None,
|
|
240
|
-
on_context_menu: Optional[
|
|
241
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
242
|
-
] = None,
|
|
243
|
-
on_double_click: Optional[
|
|
244
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
245
|
-
] = None,
|
|
246
|
-
on_focus: Optional[
|
|
247
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
248
|
-
] = None,
|
|
249
|
-
on_mount: Optional[
|
|
250
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
251
|
-
] = None,
|
|
252
|
-
on_mouse_down: Optional[
|
|
253
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
254
|
-
] = None,
|
|
255
|
-
on_mouse_enter: Optional[
|
|
256
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
257
|
-
] = None,
|
|
258
|
-
on_mouse_leave: Optional[
|
|
259
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
260
|
-
] = None,
|
|
261
|
-
on_mouse_move: Optional[
|
|
262
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
263
|
-
] = None,
|
|
264
|
-
on_mouse_out: Optional[
|
|
265
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
266
|
-
] = None,
|
|
267
|
-
on_mouse_over: Optional[
|
|
268
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
269
|
-
] = None,
|
|
270
|
-
on_mouse_up: Optional[
|
|
271
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
272
|
-
] = None,
|
|
273
|
-
on_scroll: Optional[
|
|
274
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
275
|
-
] = None,
|
|
276
|
-
on_unmount: Optional[
|
|
277
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
278
|
-
] = None,
|
|
279
|
-
**props,
|
|
280
|
-
) -> "ModalHeader":
|
|
281
|
-
"""Create the component.
|
|
282
|
-
|
|
283
|
-
Args:
|
|
284
|
-
*children: The children of the component.
|
|
285
|
-
style: The style of the component.
|
|
286
|
-
key: A unique key for the component.
|
|
287
|
-
id: The id for the component.
|
|
288
|
-
class_name: The class name for the component.
|
|
289
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
290
|
-
custom_attrs: custom attribute
|
|
291
|
-
**props: The props of the component.
|
|
292
|
-
|
|
293
|
-
Returns:
|
|
294
|
-
The component.
|
|
295
|
-
"""
|
|
296
|
-
...
|
|
297
|
-
|
|
298
|
-
class ModalFooter(ChakraComponent):
|
|
299
|
-
@overload
|
|
300
|
-
@classmethod
|
|
301
|
-
def create( # type: ignore
|
|
302
|
-
cls,
|
|
303
|
-
*children,
|
|
304
|
-
style: Optional[Style] = None,
|
|
305
|
-
key: Optional[Any] = None,
|
|
306
|
-
id: Optional[Any] = None,
|
|
307
|
-
class_name: Optional[Any] = None,
|
|
308
|
-
autofocus: Optional[bool] = None,
|
|
309
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
310
|
-
on_blur: Optional[
|
|
311
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
312
|
-
] = None,
|
|
313
|
-
on_click: Optional[
|
|
314
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
315
|
-
] = None,
|
|
316
|
-
on_context_menu: Optional[
|
|
317
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
318
|
-
] = None,
|
|
319
|
-
on_double_click: Optional[
|
|
320
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
321
|
-
] = None,
|
|
322
|
-
on_focus: Optional[
|
|
323
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
324
|
-
] = None,
|
|
325
|
-
on_mount: Optional[
|
|
326
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
327
|
-
] = None,
|
|
328
|
-
on_mouse_down: Optional[
|
|
329
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
330
|
-
] = None,
|
|
331
|
-
on_mouse_enter: Optional[
|
|
332
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
333
|
-
] = None,
|
|
334
|
-
on_mouse_leave: Optional[
|
|
335
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
336
|
-
] = None,
|
|
337
|
-
on_mouse_move: Optional[
|
|
338
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
339
|
-
] = None,
|
|
340
|
-
on_mouse_out: Optional[
|
|
341
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
342
|
-
] = None,
|
|
343
|
-
on_mouse_over: Optional[
|
|
344
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
345
|
-
] = None,
|
|
346
|
-
on_mouse_up: Optional[
|
|
347
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
348
|
-
] = None,
|
|
349
|
-
on_scroll: Optional[
|
|
350
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
351
|
-
] = None,
|
|
352
|
-
on_unmount: Optional[
|
|
353
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
354
|
-
] = None,
|
|
355
|
-
**props,
|
|
356
|
-
) -> "ModalFooter":
|
|
357
|
-
"""Create the component.
|
|
358
|
-
|
|
359
|
-
Args:
|
|
360
|
-
*children: The children of the component.
|
|
361
|
-
style: The style of the component.
|
|
362
|
-
key: A unique key for the component.
|
|
363
|
-
id: The id for the component.
|
|
364
|
-
class_name: The class name for the component.
|
|
365
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
366
|
-
custom_attrs: custom attribute
|
|
367
|
-
**props: The props of the component.
|
|
368
|
-
|
|
369
|
-
Returns:
|
|
370
|
-
The component.
|
|
371
|
-
"""
|
|
372
|
-
...
|
|
373
|
-
|
|
374
|
-
class ModalContent(ChakraComponent):
|
|
375
|
-
@overload
|
|
376
|
-
@classmethod
|
|
377
|
-
def create( # type: ignore
|
|
378
|
-
cls,
|
|
379
|
-
*children,
|
|
380
|
-
style: Optional[Style] = None,
|
|
381
|
-
key: Optional[Any] = None,
|
|
382
|
-
id: Optional[Any] = None,
|
|
383
|
-
class_name: Optional[Any] = None,
|
|
384
|
-
autofocus: Optional[bool] = None,
|
|
385
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
386
|
-
on_blur: Optional[
|
|
387
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
388
|
-
] = None,
|
|
389
|
-
on_click: Optional[
|
|
390
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
391
|
-
] = None,
|
|
392
|
-
on_context_menu: Optional[
|
|
393
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
394
|
-
] = None,
|
|
395
|
-
on_double_click: Optional[
|
|
396
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
397
|
-
] = None,
|
|
398
|
-
on_focus: Optional[
|
|
399
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
400
|
-
] = None,
|
|
401
|
-
on_mount: Optional[
|
|
402
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
403
|
-
] = None,
|
|
404
|
-
on_mouse_down: Optional[
|
|
405
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
406
|
-
] = None,
|
|
407
|
-
on_mouse_enter: Optional[
|
|
408
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
409
|
-
] = None,
|
|
410
|
-
on_mouse_leave: Optional[
|
|
411
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
412
|
-
] = None,
|
|
413
|
-
on_mouse_move: Optional[
|
|
414
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
415
|
-
] = None,
|
|
416
|
-
on_mouse_out: Optional[
|
|
417
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
418
|
-
] = None,
|
|
419
|
-
on_mouse_over: Optional[
|
|
420
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
421
|
-
] = None,
|
|
422
|
-
on_mouse_up: Optional[
|
|
423
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
424
|
-
] = None,
|
|
425
|
-
on_scroll: Optional[
|
|
426
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
427
|
-
] = None,
|
|
428
|
-
on_unmount: Optional[
|
|
429
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
430
|
-
] = None,
|
|
431
|
-
**props,
|
|
432
|
-
) -> "ModalContent":
|
|
433
|
-
"""Create the component.
|
|
434
|
-
|
|
435
|
-
Args:
|
|
436
|
-
*children: The children of the component.
|
|
437
|
-
style: The style of the component.
|
|
438
|
-
key: A unique key for the component.
|
|
439
|
-
id: The id for the component.
|
|
440
|
-
class_name: The class name for the component.
|
|
441
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
442
|
-
custom_attrs: custom attribute
|
|
443
|
-
**props: The props of the component.
|
|
444
|
-
|
|
445
|
-
Returns:
|
|
446
|
-
The component.
|
|
447
|
-
"""
|
|
448
|
-
...
|
|
449
|
-
|
|
450
|
-
class ModalBody(ChakraComponent):
|
|
451
|
-
@overload
|
|
452
|
-
@classmethod
|
|
453
|
-
def create( # type: ignore
|
|
454
|
-
cls,
|
|
455
|
-
*children,
|
|
456
|
-
style: Optional[Style] = None,
|
|
457
|
-
key: Optional[Any] = None,
|
|
458
|
-
id: Optional[Any] = None,
|
|
459
|
-
class_name: Optional[Any] = None,
|
|
460
|
-
autofocus: Optional[bool] = None,
|
|
461
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
462
|
-
on_blur: Optional[
|
|
463
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
464
|
-
] = None,
|
|
465
|
-
on_click: Optional[
|
|
466
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
467
|
-
] = None,
|
|
468
|
-
on_context_menu: Optional[
|
|
469
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
470
|
-
] = None,
|
|
471
|
-
on_double_click: Optional[
|
|
472
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
473
|
-
] = None,
|
|
474
|
-
on_focus: Optional[
|
|
475
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
476
|
-
] = None,
|
|
477
|
-
on_mount: Optional[
|
|
478
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
479
|
-
] = None,
|
|
480
|
-
on_mouse_down: Optional[
|
|
481
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
482
|
-
] = None,
|
|
483
|
-
on_mouse_enter: Optional[
|
|
484
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
485
|
-
] = None,
|
|
486
|
-
on_mouse_leave: Optional[
|
|
487
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
488
|
-
] = None,
|
|
489
|
-
on_mouse_move: Optional[
|
|
490
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
491
|
-
] = None,
|
|
492
|
-
on_mouse_out: Optional[
|
|
493
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
494
|
-
] = None,
|
|
495
|
-
on_mouse_over: Optional[
|
|
496
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
497
|
-
] = None,
|
|
498
|
-
on_mouse_up: Optional[
|
|
499
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
500
|
-
] = None,
|
|
501
|
-
on_scroll: Optional[
|
|
502
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
503
|
-
] = None,
|
|
504
|
-
on_unmount: Optional[
|
|
505
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
506
|
-
] = None,
|
|
507
|
-
**props,
|
|
508
|
-
) -> "ModalBody":
|
|
509
|
-
"""Create the component.
|
|
510
|
-
|
|
511
|
-
Args:
|
|
512
|
-
*children: The children of the component.
|
|
513
|
-
style: The style of the component.
|
|
514
|
-
key: A unique key for the component.
|
|
515
|
-
id: The id for the component.
|
|
516
|
-
class_name: The class name for the component.
|
|
517
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
518
|
-
custom_attrs: custom attribute
|
|
519
|
-
**props: The props of the component.
|
|
520
|
-
|
|
521
|
-
Returns:
|
|
522
|
-
The component.
|
|
523
|
-
"""
|
|
524
|
-
...
|
|
525
|
-
|
|
526
|
-
class ModalCloseButton(ChakraComponent):
|
|
527
|
-
@overload
|
|
528
|
-
@classmethod
|
|
529
|
-
def create( # type: ignore
|
|
530
|
-
cls,
|
|
531
|
-
*children,
|
|
532
|
-
style: Optional[Style] = None,
|
|
533
|
-
key: Optional[Any] = None,
|
|
534
|
-
id: Optional[Any] = None,
|
|
535
|
-
class_name: Optional[Any] = None,
|
|
536
|
-
autofocus: Optional[bool] = None,
|
|
537
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
538
|
-
on_blur: Optional[
|
|
539
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
540
|
-
] = None,
|
|
541
|
-
on_click: Optional[
|
|
542
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
543
|
-
] = None,
|
|
544
|
-
on_context_menu: Optional[
|
|
545
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
546
|
-
] = None,
|
|
547
|
-
on_double_click: Optional[
|
|
548
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
549
|
-
] = None,
|
|
550
|
-
on_focus: Optional[
|
|
551
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
552
|
-
] = None,
|
|
553
|
-
on_mount: Optional[
|
|
554
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
555
|
-
] = None,
|
|
556
|
-
on_mouse_down: Optional[
|
|
557
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
558
|
-
] = None,
|
|
559
|
-
on_mouse_enter: Optional[
|
|
560
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
561
|
-
] = None,
|
|
562
|
-
on_mouse_leave: Optional[
|
|
563
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
564
|
-
] = None,
|
|
565
|
-
on_mouse_move: Optional[
|
|
566
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
567
|
-
] = None,
|
|
568
|
-
on_mouse_out: Optional[
|
|
569
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
570
|
-
] = None,
|
|
571
|
-
on_mouse_over: Optional[
|
|
572
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
573
|
-
] = None,
|
|
574
|
-
on_mouse_up: Optional[
|
|
575
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
576
|
-
] = None,
|
|
577
|
-
on_scroll: Optional[
|
|
578
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
579
|
-
] = None,
|
|
580
|
-
on_unmount: Optional[
|
|
581
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
582
|
-
] = None,
|
|
583
|
-
**props,
|
|
584
|
-
) -> "ModalCloseButton":
|
|
585
|
-
"""Create the component.
|
|
586
|
-
|
|
587
|
-
Args:
|
|
588
|
-
*children: The children of the component.
|
|
589
|
-
style: The style of the component.
|
|
590
|
-
key: A unique key for the component.
|
|
591
|
-
id: The id for the component.
|
|
592
|
-
class_name: The class name for the component.
|
|
593
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
594
|
-
custom_attrs: custom attribute
|
|
595
|
-
**props: The props of the component.
|
|
596
|
-
|
|
597
|
-
Returns:
|
|
598
|
-
The component.
|
|
599
|
-
"""
|
|
600
|
-
...
|