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,442 +0,0 @@
|
|
|
1
|
-
"""Stub file for reflex/components/chakra/forms/numberinput.py"""
|
|
2
|
-
|
|
3
|
-
# ------------------- DO NOT EDIT ----------------------
|
|
4
|
-
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
|
-
# ------------------------------------------------------
|
|
6
|
-
from numbers import Number
|
|
7
|
-
from typing import Any, Callable, Dict, Literal, Optional, Union, overload
|
|
8
|
-
|
|
9
|
-
from reflex.components.chakra import (
|
|
10
|
-
ChakraComponent,
|
|
11
|
-
)
|
|
12
|
-
from reflex.event import EventHandler, EventSpec
|
|
13
|
-
from reflex.style import Style
|
|
14
|
-
from reflex.vars import BaseVar, Var
|
|
15
|
-
|
|
16
|
-
class NumberInput(ChakraComponent):
|
|
17
|
-
@overload
|
|
18
|
-
@classmethod
|
|
19
|
-
def create( # type: ignore
|
|
20
|
-
cls,
|
|
21
|
-
*children,
|
|
22
|
-
value: Optional[Union[Var[Number], Number]] = None,
|
|
23
|
-
allow_mouse_wheel: Optional[Union[Var[bool], bool]] = None,
|
|
24
|
-
clamped_value_on_blur: Optional[Union[Var[bool], bool]] = None,
|
|
25
|
-
default_value: Optional[Union[Var[Number], Number]] = None,
|
|
26
|
-
error_border_color: Optional[Union[Var[str], str]] = None,
|
|
27
|
-
focus_border_color: Optional[Union[Var[str], str]] = None,
|
|
28
|
-
focus_input_on_change: Optional[Union[Var[bool], bool]] = None,
|
|
29
|
-
is_disabled: Optional[Union[Var[bool], bool]] = None,
|
|
30
|
-
is_invalid: Optional[Union[Var[bool], bool]] = None,
|
|
31
|
-
is_read_only: Optional[Union[Var[bool], bool]] = None,
|
|
32
|
-
is_required: Optional[Union[Var[bool], bool]] = None,
|
|
33
|
-
is_valid_character: Optional[Union[Var[str], str]] = None,
|
|
34
|
-
keep_within_range: Optional[Union[Var[bool], bool]] = None,
|
|
35
|
-
max_: Optional[Union[Var[Number], Number]] = None,
|
|
36
|
-
min_: Optional[Union[Var[Number], Number]] = None,
|
|
37
|
-
variant: Optional[
|
|
38
|
-
Union[
|
|
39
|
-
Var[Literal["outline", "filled", "flushed", "unstyled"]],
|
|
40
|
-
Literal["outline", "filled", "flushed", "unstyled"],
|
|
41
|
-
]
|
|
42
|
-
] = None,
|
|
43
|
-
size: Optional[
|
|
44
|
-
Union[Var[Literal["sm", "md", "lg", "xs"]], Literal["sm", "md", "lg", "xs"]]
|
|
45
|
-
] = None,
|
|
46
|
-
name: Optional[Union[Var[str], str]] = None,
|
|
47
|
-
style: Optional[Style] = None,
|
|
48
|
-
key: Optional[Any] = None,
|
|
49
|
-
id: Optional[Any] = None,
|
|
50
|
-
class_name: Optional[Any] = None,
|
|
51
|
-
autofocus: Optional[bool] = None,
|
|
52
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
53
|
-
on_blur: Optional[
|
|
54
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
55
|
-
] = None,
|
|
56
|
-
on_change: Optional[
|
|
57
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
58
|
-
] = None,
|
|
59
|
-
on_click: 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_focus: Optional[
|
|
69
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
70
|
-
] = None,
|
|
71
|
-
on_mount: Optional[
|
|
72
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
73
|
-
] = None,
|
|
74
|
-
on_mouse_down: Optional[
|
|
75
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
76
|
-
] = None,
|
|
77
|
-
on_mouse_enter: Optional[
|
|
78
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
79
|
-
] = None,
|
|
80
|
-
on_mouse_leave: Optional[
|
|
81
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
82
|
-
] = None,
|
|
83
|
-
on_mouse_move: Optional[
|
|
84
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
85
|
-
] = None,
|
|
86
|
-
on_mouse_out: Optional[
|
|
87
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
88
|
-
] = None,
|
|
89
|
-
on_mouse_over: Optional[
|
|
90
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
91
|
-
] = None,
|
|
92
|
-
on_mouse_up: Optional[
|
|
93
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
94
|
-
] = None,
|
|
95
|
-
on_scroll: Optional[
|
|
96
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
97
|
-
] = None,
|
|
98
|
-
on_unmount: Optional[
|
|
99
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
100
|
-
] = None,
|
|
101
|
-
**props,
|
|
102
|
-
) -> "NumberInput":
|
|
103
|
-
"""Create a number input component.
|
|
104
|
-
|
|
105
|
-
If no children are provided, a default stepper will be used.
|
|
106
|
-
|
|
107
|
-
Args:
|
|
108
|
-
*children: The children of the component.
|
|
109
|
-
value: State var to bind the input.
|
|
110
|
-
allow_mouse_wheel: If true, the input's value will change based on mouse wheel.
|
|
111
|
-
clamped_value_on_blur: This controls the value update when you blur out of the input. - If true and the value is greater than max, the value will be reset to max - Else, the value remains the same.
|
|
112
|
-
default_value: The initial value of the counter. Should be less than max and greater than min
|
|
113
|
-
error_border_color: The border color when the input is invalid.
|
|
114
|
-
focus_border_color: The border color when the input is focused.
|
|
115
|
-
focus_input_on_change: If true, the input will be focused as you increment or decrement the value with the stepper
|
|
116
|
-
is_disabled: Hints at the type of data that might be entered by the user. It also determines the type of keyboard shown to the user on mobile devices ("text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal") input_mode: Var[LiteralInputNumberMode] Whether the input should be disabled.
|
|
117
|
-
is_invalid: If true, the input will have `aria-invalid` set to true
|
|
118
|
-
is_read_only: If true, the input will be in readonly mode
|
|
119
|
-
is_required: Whether the input is required
|
|
120
|
-
is_valid_character: Whether the pressed key should be allowed in the input. The default behavior is to allow DOM floating point characters defined by /^[Ee0-9+\\-.]$/
|
|
121
|
-
keep_within_range: This controls the value update behavior in general. - If true and you use the stepper or up/down arrow keys, the value will not exceed the max or go lower than min - If false, the value will be allowed to go out of range.
|
|
122
|
-
max_: The maximum value of the counter
|
|
123
|
-
min_: The minimum value of the counter
|
|
124
|
-
variant: "outline" | "filled" | "flushed" | "unstyled"
|
|
125
|
-
size: "lg" | "md" | "sm" | "xs"
|
|
126
|
-
name: The name of the form field
|
|
127
|
-
style: The style of the component.
|
|
128
|
-
key: A unique key for the component.
|
|
129
|
-
id: The id for the component.
|
|
130
|
-
class_name: The class name for the component.
|
|
131
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
132
|
-
custom_attrs: custom attribute
|
|
133
|
-
**props: The props of the component.
|
|
134
|
-
|
|
135
|
-
Returns:
|
|
136
|
-
The component.
|
|
137
|
-
"""
|
|
138
|
-
...
|
|
139
|
-
|
|
140
|
-
class NumberInputField(ChakraComponent):
|
|
141
|
-
@overload
|
|
142
|
-
@classmethod
|
|
143
|
-
def create( # type: ignore
|
|
144
|
-
cls,
|
|
145
|
-
*children,
|
|
146
|
-
style: Optional[Style] = None,
|
|
147
|
-
key: Optional[Any] = None,
|
|
148
|
-
id: Optional[Any] = None,
|
|
149
|
-
class_name: Optional[Any] = None,
|
|
150
|
-
autofocus: Optional[bool] = None,
|
|
151
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
152
|
-
on_blur: Optional[
|
|
153
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
154
|
-
] = None,
|
|
155
|
-
on_click: Optional[
|
|
156
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
157
|
-
] = None,
|
|
158
|
-
on_context_menu: Optional[
|
|
159
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
160
|
-
] = None,
|
|
161
|
-
on_double_click: Optional[
|
|
162
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
163
|
-
] = None,
|
|
164
|
-
on_focus: Optional[
|
|
165
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
166
|
-
] = None,
|
|
167
|
-
on_mount: Optional[
|
|
168
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
169
|
-
] = None,
|
|
170
|
-
on_mouse_down: Optional[
|
|
171
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
172
|
-
] = None,
|
|
173
|
-
on_mouse_enter: Optional[
|
|
174
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
175
|
-
] = None,
|
|
176
|
-
on_mouse_leave: Optional[
|
|
177
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
178
|
-
] = None,
|
|
179
|
-
on_mouse_move: Optional[
|
|
180
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
181
|
-
] = None,
|
|
182
|
-
on_mouse_out: Optional[
|
|
183
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
184
|
-
] = None,
|
|
185
|
-
on_mouse_over: Optional[
|
|
186
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
187
|
-
] = None,
|
|
188
|
-
on_mouse_up: Optional[
|
|
189
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
190
|
-
] = None,
|
|
191
|
-
on_scroll: Optional[
|
|
192
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
193
|
-
] = None,
|
|
194
|
-
on_unmount: Optional[
|
|
195
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
196
|
-
] = None,
|
|
197
|
-
**props,
|
|
198
|
-
) -> "NumberInputField":
|
|
199
|
-
"""Create the component.
|
|
200
|
-
|
|
201
|
-
Args:
|
|
202
|
-
*children: The children of the component.
|
|
203
|
-
style: The style of the component.
|
|
204
|
-
key: A unique key for the component.
|
|
205
|
-
id: The id for the component.
|
|
206
|
-
class_name: The class name for the component.
|
|
207
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
208
|
-
custom_attrs: custom attribute
|
|
209
|
-
**props: The props of the component.
|
|
210
|
-
|
|
211
|
-
Returns:
|
|
212
|
-
The component.
|
|
213
|
-
"""
|
|
214
|
-
...
|
|
215
|
-
|
|
216
|
-
class NumberInputStepper(ChakraComponent):
|
|
217
|
-
@overload
|
|
218
|
-
@classmethod
|
|
219
|
-
def create( # type: ignore
|
|
220
|
-
cls,
|
|
221
|
-
*children,
|
|
222
|
-
style: Optional[Style] = None,
|
|
223
|
-
key: Optional[Any] = None,
|
|
224
|
-
id: Optional[Any] = None,
|
|
225
|
-
class_name: Optional[Any] = None,
|
|
226
|
-
autofocus: Optional[bool] = None,
|
|
227
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
228
|
-
on_blur: Optional[
|
|
229
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
230
|
-
] = None,
|
|
231
|
-
on_click: Optional[
|
|
232
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
233
|
-
] = None,
|
|
234
|
-
on_context_menu: Optional[
|
|
235
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
236
|
-
] = None,
|
|
237
|
-
on_double_click: Optional[
|
|
238
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
239
|
-
] = None,
|
|
240
|
-
on_focus: Optional[
|
|
241
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
242
|
-
] = None,
|
|
243
|
-
on_mount: Optional[
|
|
244
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
245
|
-
] = None,
|
|
246
|
-
on_mouse_down: Optional[
|
|
247
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
248
|
-
] = None,
|
|
249
|
-
on_mouse_enter: Optional[
|
|
250
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
251
|
-
] = None,
|
|
252
|
-
on_mouse_leave: Optional[
|
|
253
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
254
|
-
] = None,
|
|
255
|
-
on_mouse_move: Optional[
|
|
256
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
257
|
-
] = None,
|
|
258
|
-
on_mouse_out: Optional[
|
|
259
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
260
|
-
] = None,
|
|
261
|
-
on_mouse_over: Optional[
|
|
262
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
263
|
-
] = None,
|
|
264
|
-
on_mouse_up: Optional[
|
|
265
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
266
|
-
] = None,
|
|
267
|
-
on_scroll: Optional[
|
|
268
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
269
|
-
] = None,
|
|
270
|
-
on_unmount: Optional[
|
|
271
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
272
|
-
] = None,
|
|
273
|
-
**props,
|
|
274
|
-
) -> "NumberInputStepper":
|
|
275
|
-
"""Create the component.
|
|
276
|
-
|
|
277
|
-
Args:
|
|
278
|
-
*children: The children of the component.
|
|
279
|
-
style: The style of the component.
|
|
280
|
-
key: A unique key for the component.
|
|
281
|
-
id: The id for the component.
|
|
282
|
-
class_name: The class name for the component.
|
|
283
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
284
|
-
custom_attrs: custom attribute
|
|
285
|
-
**props: The props of the component.
|
|
286
|
-
|
|
287
|
-
Returns:
|
|
288
|
-
The component.
|
|
289
|
-
"""
|
|
290
|
-
...
|
|
291
|
-
|
|
292
|
-
class NumberIncrementStepper(ChakraComponent):
|
|
293
|
-
@overload
|
|
294
|
-
@classmethod
|
|
295
|
-
def create( # type: ignore
|
|
296
|
-
cls,
|
|
297
|
-
*children,
|
|
298
|
-
style: Optional[Style] = None,
|
|
299
|
-
key: Optional[Any] = None,
|
|
300
|
-
id: Optional[Any] = None,
|
|
301
|
-
class_name: Optional[Any] = None,
|
|
302
|
-
autofocus: Optional[bool] = None,
|
|
303
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
304
|
-
on_blur: Optional[
|
|
305
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
306
|
-
] = None,
|
|
307
|
-
on_click: Optional[
|
|
308
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
309
|
-
] = None,
|
|
310
|
-
on_context_menu: Optional[
|
|
311
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
312
|
-
] = None,
|
|
313
|
-
on_double_click: Optional[
|
|
314
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
315
|
-
] = None,
|
|
316
|
-
on_focus: Optional[
|
|
317
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
318
|
-
] = None,
|
|
319
|
-
on_mount: Optional[
|
|
320
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
321
|
-
] = None,
|
|
322
|
-
on_mouse_down: Optional[
|
|
323
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
324
|
-
] = None,
|
|
325
|
-
on_mouse_enter: Optional[
|
|
326
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
327
|
-
] = None,
|
|
328
|
-
on_mouse_leave: Optional[
|
|
329
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
330
|
-
] = None,
|
|
331
|
-
on_mouse_move: Optional[
|
|
332
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
333
|
-
] = None,
|
|
334
|
-
on_mouse_out: Optional[
|
|
335
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
336
|
-
] = None,
|
|
337
|
-
on_mouse_over: Optional[
|
|
338
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
339
|
-
] = None,
|
|
340
|
-
on_mouse_up: Optional[
|
|
341
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
342
|
-
] = None,
|
|
343
|
-
on_scroll: Optional[
|
|
344
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
345
|
-
] = None,
|
|
346
|
-
on_unmount: Optional[
|
|
347
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
348
|
-
] = None,
|
|
349
|
-
**props,
|
|
350
|
-
) -> "NumberIncrementStepper":
|
|
351
|
-
"""Create the component.
|
|
352
|
-
|
|
353
|
-
Args:
|
|
354
|
-
*children: The children of the component.
|
|
355
|
-
style: The style of the component.
|
|
356
|
-
key: A unique key for the component.
|
|
357
|
-
id: The id for the component.
|
|
358
|
-
class_name: The class name for the component.
|
|
359
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
360
|
-
custom_attrs: custom attribute
|
|
361
|
-
**props: The props of the component.
|
|
362
|
-
|
|
363
|
-
Returns:
|
|
364
|
-
The component.
|
|
365
|
-
"""
|
|
366
|
-
...
|
|
367
|
-
|
|
368
|
-
class NumberDecrementStepper(ChakraComponent):
|
|
369
|
-
@overload
|
|
370
|
-
@classmethod
|
|
371
|
-
def create( # type: ignore
|
|
372
|
-
cls,
|
|
373
|
-
*children,
|
|
374
|
-
style: Optional[Style] = None,
|
|
375
|
-
key: Optional[Any] = None,
|
|
376
|
-
id: Optional[Any] = None,
|
|
377
|
-
class_name: Optional[Any] = None,
|
|
378
|
-
autofocus: Optional[bool] = None,
|
|
379
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
380
|
-
on_blur: Optional[
|
|
381
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
382
|
-
] = None,
|
|
383
|
-
on_click: Optional[
|
|
384
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
385
|
-
] = None,
|
|
386
|
-
on_context_menu: Optional[
|
|
387
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
388
|
-
] = None,
|
|
389
|
-
on_double_click: Optional[
|
|
390
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
391
|
-
] = None,
|
|
392
|
-
on_focus: Optional[
|
|
393
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
394
|
-
] = None,
|
|
395
|
-
on_mount: Optional[
|
|
396
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
397
|
-
] = None,
|
|
398
|
-
on_mouse_down: Optional[
|
|
399
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
400
|
-
] = None,
|
|
401
|
-
on_mouse_enter: Optional[
|
|
402
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
403
|
-
] = None,
|
|
404
|
-
on_mouse_leave: Optional[
|
|
405
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
406
|
-
] = None,
|
|
407
|
-
on_mouse_move: Optional[
|
|
408
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
409
|
-
] = None,
|
|
410
|
-
on_mouse_out: Optional[
|
|
411
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
412
|
-
] = None,
|
|
413
|
-
on_mouse_over: Optional[
|
|
414
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
415
|
-
] = None,
|
|
416
|
-
on_mouse_up: Optional[
|
|
417
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
418
|
-
] = None,
|
|
419
|
-
on_scroll: Optional[
|
|
420
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
421
|
-
] = None,
|
|
422
|
-
on_unmount: Optional[
|
|
423
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
424
|
-
] = None,
|
|
425
|
-
**props,
|
|
426
|
-
) -> "NumberDecrementStepper":
|
|
427
|
-
"""Create the component.
|
|
428
|
-
|
|
429
|
-
Args:
|
|
430
|
-
*children: The children of the component.
|
|
431
|
-
style: The style of the component.
|
|
432
|
-
key: A unique key for the component.
|
|
433
|
-
id: The id for the component.
|
|
434
|
-
class_name: The class name for the component.
|
|
435
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
436
|
-
custom_attrs: custom attribute
|
|
437
|
-
**props: The props of the component.
|
|
438
|
-
|
|
439
|
-
Returns:
|
|
440
|
-
The component.
|
|
441
|
-
"""
|
|
442
|
-
...
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"""A password input component."""
|
|
2
|
-
|
|
3
|
-
from reflex.components.chakra.forms.input import Input
|
|
4
|
-
from reflex.vars import Var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
class Password(Input):
|
|
8
|
-
"""A password input component."""
|
|
9
|
-
|
|
10
|
-
# The type of input.
|
|
11
|
-
type_: Var[str] = "password" # type: ignore
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
"""Stub file for reflex/components/chakra/forms/password.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.forms.input import Input
|
|
9
|
-
from reflex.event import EventHandler, EventSpec
|
|
10
|
-
from reflex.style import Style
|
|
11
|
-
from reflex.vars import BaseVar, Var
|
|
12
|
-
|
|
13
|
-
class Password(Input):
|
|
14
|
-
@overload
|
|
15
|
-
@classmethod
|
|
16
|
-
def create( # type: ignore
|
|
17
|
-
cls,
|
|
18
|
-
*children,
|
|
19
|
-
type_: Optional[Union[Var[str], str]] = None,
|
|
20
|
-
value: Optional[Union[Var[str], str]] = None,
|
|
21
|
-
default_value: Optional[Union[Var[str], str]] = None,
|
|
22
|
-
placeholder: Optional[Union[Var[str], str]] = None,
|
|
23
|
-
error_border_color: Optional[Union[Var[str], str]] = None,
|
|
24
|
-
focus_border_color: Optional[Union[Var[str], str]] = None,
|
|
25
|
-
is_disabled: Optional[Union[Var[bool], bool]] = None,
|
|
26
|
-
is_invalid: Optional[Union[Var[bool], bool]] = None,
|
|
27
|
-
is_read_only: Optional[Union[Var[bool], bool]] = None,
|
|
28
|
-
is_required: Optional[Union[Var[bool], bool]] = None,
|
|
29
|
-
variant: Optional[
|
|
30
|
-
Union[
|
|
31
|
-
Var[Literal["outline", "filled", "flushed", "unstyled"]],
|
|
32
|
-
Literal["outline", "filled", "flushed", "unstyled"],
|
|
33
|
-
]
|
|
34
|
-
] = None,
|
|
35
|
-
size: Optional[
|
|
36
|
-
Union[Var[Literal["sm", "md", "lg", "xs"]], Literal["sm", "md", "lg", "xs"]]
|
|
37
|
-
] = None,
|
|
38
|
-
name: Optional[Union[Var[str], str]] = None,
|
|
39
|
-
style: Optional[Style] = None,
|
|
40
|
-
key: Optional[Any] = None,
|
|
41
|
-
id: Optional[Any] = None,
|
|
42
|
-
class_name: Optional[Any] = None,
|
|
43
|
-
autofocus: Optional[bool] = None,
|
|
44
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
45
|
-
on_blur: Optional[
|
|
46
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
47
|
-
] = None,
|
|
48
|
-
on_change: Optional[
|
|
49
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
50
|
-
] = None,
|
|
51
|
-
on_click: Optional[
|
|
52
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
53
|
-
] = None,
|
|
54
|
-
on_context_menu: Optional[
|
|
55
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
56
|
-
] = None,
|
|
57
|
-
on_double_click: Optional[
|
|
58
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
59
|
-
] = None,
|
|
60
|
-
on_focus: Optional[
|
|
61
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
62
|
-
] = None,
|
|
63
|
-
on_key_down: Optional[
|
|
64
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
65
|
-
] = None,
|
|
66
|
-
on_key_up: Optional[
|
|
67
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
68
|
-
] = None,
|
|
69
|
-
on_mount: Optional[
|
|
70
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
71
|
-
] = None,
|
|
72
|
-
on_mouse_down: Optional[
|
|
73
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
74
|
-
] = None,
|
|
75
|
-
on_mouse_enter: Optional[
|
|
76
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
77
|
-
] = None,
|
|
78
|
-
on_mouse_leave: Optional[
|
|
79
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
80
|
-
] = None,
|
|
81
|
-
on_mouse_move: Optional[
|
|
82
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
83
|
-
] = None,
|
|
84
|
-
on_mouse_out: Optional[
|
|
85
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
86
|
-
] = None,
|
|
87
|
-
on_mouse_over: Optional[
|
|
88
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
89
|
-
] = None,
|
|
90
|
-
on_mouse_up: Optional[
|
|
91
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
92
|
-
] = None,
|
|
93
|
-
on_scroll: Optional[
|
|
94
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
95
|
-
] = None,
|
|
96
|
-
on_unmount: Optional[
|
|
97
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
98
|
-
] = None,
|
|
99
|
-
**props,
|
|
100
|
-
) -> "Password":
|
|
101
|
-
"""Create an Input component.
|
|
102
|
-
|
|
103
|
-
Args:
|
|
104
|
-
*children: The children of the component.
|
|
105
|
-
type_: The type of input.
|
|
106
|
-
value: State var to bind the input.
|
|
107
|
-
default_value: The default value of the input.
|
|
108
|
-
placeholder: The placeholder text.
|
|
109
|
-
error_border_color: The border color when the input is invalid.
|
|
110
|
-
focus_border_color: The border color when the input is focused.
|
|
111
|
-
is_disabled: If true, the form control will be disabled. This has 2 side effects - The FormLabel will have `data-disabled` attribute - The form element (e.g, Input) will be disabled
|
|
112
|
-
is_invalid: If true, the form control will be invalid. This has 2 side effects - The FormLabel and FormErrorIcon will have `data-invalid` set to true - The form element (e.g, Input) will have `aria-invalid` set to true
|
|
113
|
-
is_read_only: If true, the form control will be readonly.
|
|
114
|
-
is_required: If true, the form control will be required. This has 2 side effects - The FormLabel will show a required indicator - The form element (e.g, Input) will have `aria-required` set to true
|
|
115
|
-
variant: "outline" | "filled" | "flushed" | "unstyled"
|
|
116
|
-
size: "lg" | "md" | "sm" | "xs"
|
|
117
|
-
name: The name of the form field
|
|
118
|
-
style: The style of the component.
|
|
119
|
-
key: A unique key for the component.
|
|
120
|
-
id: The id for the component.
|
|
121
|
-
class_name: The class name for the component.
|
|
122
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
123
|
-
custom_attrs: custom attribute
|
|
124
|
-
**props: The properties of the component.
|
|
125
|
-
|
|
126
|
-
Returns:
|
|
127
|
-
The component.
|
|
128
|
-
"""
|
|
129
|
-
...
|