reflex 0.5.9a1__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/__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.9a1.dist-info → reflex-0.5.10.dist-info}/METADATA +2 -1
- {reflex-0.5.9a1.dist-info → reflex-0.5.10.dist-info}/RECORD +26 -167
- 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.9a1.dist-info → reflex-0.5.10.dist-info}/LICENSE +0 -0
- {reflex-0.5.9a1.dist-info → reflex-0.5.10.dist-info}/WHEEL +0 -0
- {reflex-0.5.9a1.dist-info → reflex-0.5.10.dist-info}/entry_points.txt +0 -0
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
"""Stub file for reflex/components/chakra/forms/date_picker.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 DatePicker(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
|
-
) -> "DatePicker":
|
|
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
|
-
...
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"""A datetime-local input component."""
|
|
2
|
-
|
|
3
|
-
from reflex.components.chakra.forms.input import Input
|
|
4
|
-
from reflex.vars import Var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
class DateTimePicker(Input):
|
|
8
|
-
"""A datetime-local input component."""
|
|
9
|
-
|
|
10
|
-
# The type of input.
|
|
11
|
-
type_: Var[str] = "datetime-local" # type: ignore
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
"""Stub file for reflex/components/chakra/forms/date_time_picker.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 DateTimePicker(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
|
-
) -> "DateTimePicker":
|
|
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
|
-
...
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"""An editable component."""
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from reflex.components.chakra import ChakraComponent
|
|
6
|
-
from reflex.event import EventHandler
|
|
7
|
-
from reflex.vars import Var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class Editable(ChakraComponent):
|
|
11
|
-
"""The wrapper component that provides context value."""
|
|
12
|
-
|
|
13
|
-
tag = "Editable"
|
|
14
|
-
|
|
15
|
-
# If true, the Editable will be disabled.
|
|
16
|
-
is_disabled: Var[bool]
|
|
17
|
-
|
|
18
|
-
# If true, the read only view, has a tabIndex set to 0 so it can receive focus via the keyboard or click.
|
|
19
|
-
is_preview_focusable: Var[bool]
|
|
20
|
-
|
|
21
|
-
# The placeholder text when the value is empty.
|
|
22
|
-
placeholder: Var[str]
|
|
23
|
-
|
|
24
|
-
# If true, the input's text will be highlighted on focus.
|
|
25
|
-
select_all_on_focus: Var[bool]
|
|
26
|
-
|
|
27
|
-
# If true, the Editable will start with edit mode by default.
|
|
28
|
-
start_with_edit_view: Var[bool]
|
|
29
|
-
|
|
30
|
-
# If true, it'll update the value onBlur and turn off the edit mode.
|
|
31
|
-
submit_on_blur: Var[bool]
|
|
32
|
-
|
|
33
|
-
# The value of the Editable in both edit & preview mode
|
|
34
|
-
value: Var[str]
|
|
35
|
-
|
|
36
|
-
# The initial value of the Editable in both edit and preview mode.
|
|
37
|
-
default_value: Var[str]
|
|
38
|
-
|
|
39
|
-
# Fired when the Editable is changed.
|
|
40
|
-
on_change: EventHandler[lambda e0: [e0]]
|
|
41
|
-
|
|
42
|
-
# Fired when the Editable is in edit mode.
|
|
43
|
-
on_edit: EventHandler[lambda e0: [e0]]
|
|
44
|
-
|
|
45
|
-
# Fired when the Editable is submitted.
|
|
46
|
-
on_submit: EventHandler[lambda e0: [e0]]
|
|
47
|
-
|
|
48
|
-
# Fired when the Editable is canceled.
|
|
49
|
-
on_cancel: EventHandler[lambda e0: [e0]]
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
class EditableInput(ChakraComponent):
|
|
53
|
-
"""The edit view of the component. It shows when you click or focus on the text."""
|
|
54
|
-
|
|
55
|
-
tag = "EditableInput"
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
class EditableTextarea(ChakraComponent):
|
|
59
|
-
"""Use the textarea element to handle multi line text input in an editable context."""
|
|
60
|
-
|
|
61
|
-
tag = "EditableTextarea"
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
class EditablePreview(ChakraComponent):
|
|
65
|
-
"""The read-only view of the component."""
|
|
66
|
-
|
|
67
|
-
tag = "EditablePreview"
|
|
@@ -1,343 +0,0 @@
|
|
|
1
|
-
"""Stub file for reflex/components/chakra/forms/editable.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, Optional, Union, overload
|
|
7
|
-
|
|
8
|
-
from reflex.components.chakra import ChakraComponent
|
|
9
|
-
from reflex.event import EventHandler, EventSpec
|
|
10
|
-
from reflex.style import Style
|
|
11
|
-
from reflex.vars import BaseVar, Var
|
|
12
|
-
|
|
13
|
-
class Editable(ChakraComponent):
|
|
14
|
-
@overload
|
|
15
|
-
@classmethod
|
|
16
|
-
def create( # type: ignore
|
|
17
|
-
cls,
|
|
18
|
-
*children,
|
|
19
|
-
is_disabled: Optional[Union[Var[bool], bool]] = None,
|
|
20
|
-
is_preview_focusable: Optional[Union[Var[bool], bool]] = None,
|
|
21
|
-
placeholder: Optional[Union[Var[str], str]] = None,
|
|
22
|
-
select_all_on_focus: Optional[Union[Var[bool], bool]] = None,
|
|
23
|
-
start_with_edit_view: Optional[Union[Var[bool], bool]] = None,
|
|
24
|
-
submit_on_blur: Optional[Union[Var[bool], bool]] = None,
|
|
25
|
-
value: Optional[Union[Var[str], str]] = None,
|
|
26
|
-
default_value: Optional[Union[Var[str], str]] = None,
|
|
27
|
-
style: Optional[Style] = None,
|
|
28
|
-
key: Optional[Any] = None,
|
|
29
|
-
id: Optional[Any] = None,
|
|
30
|
-
class_name: Optional[Any] = None,
|
|
31
|
-
autofocus: Optional[bool] = None,
|
|
32
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
33
|
-
on_blur: Optional[
|
|
34
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
35
|
-
] = None,
|
|
36
|
-
on_cancel: Optional[
|
|
37
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
38
|
-
] = None,
|
|
39
|
-
on_change: Optional[
|
|
40
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
41
|
-
] = None,
|
|
42
|
-
on_click: Optional[
|
|
43
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
44
|
-
] = None,
|
|
45
|
-
on_context_menu: Optional[
|
|
46
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
47
|
-
] = None,
|
|
48
|
-
on_double_click: Optional[
|
|
49
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
50
|
-
] = None,
|
|
51
|
-
on_edit: Optional[
|
|
52
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
53
|
-
] = None,
|
|
54
|
-
on_focus: Optional[
|
|
55
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
56
|
-
] = None,
|
|
57
|
-
on_mount: Optional[
|
|
58
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
59
|
-
] = None,
|
|
60
|
-
on_mouse_down: Optional[
|
|
61
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
62
|
-
] = None,
|
|
63
|
-
on_mouse_enter: Optional[
|
|
64
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
65
|
-
] = None,
|
|
66
|
-
on_mouse_leave: Optional[
|
|
67
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
68
|
-
] = None,
|
|
69
|
-
on_mouse_move: Optional[
|
|
70
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
71
|
-
] = None,
|
|
72
|
-
on_mouse_out: Optional[
|
|
73
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
74
|
-
] = None,
|
|
75
|
-
on_mouse_over: Optional[
|
|
76
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
77
|
-
] = None,
|
|
78
|
-
on_mouse_up: Optional[
|
|
79
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
80
|
-
] = None,
|
|
81
|
-
on_scroll: Optional[
|
|
82
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
83
|
-
] = None,
|
|
84
|
-
on_submit: Optional[
|
|
85
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
86
|
-
] = None,
|
|
87
|
-
on_unmount: Optional[
|
|
88
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
89
|
-
] = None,
|
|
90
|
-
**props,
|
|
91
|
-
) -> "Editable":
|
|
92
|
-
"""Create the component.
|
|
93
|
-
|
|
94
|
-
Args:
|
|
95
|
-
*children: The children of the component.
|
|
96
|
-
is_disabled: If true, the Editable will be disabled.
|
|
97
|
-
is_preview_focusable: If true, the read only view, has a tabIndex set to 0 so it can receive focus via the keyboard or click.
|
|
98
|
-
placeholder: The placeholder text when the value is empty.
|
|
99
|
-
select_all_on_focus: If true, the input's text will be highlighted on focus.
|
|
100
|
-
start_with_edit_view: If true, the Editable will start with edit mode by default.
|
|
101
|
-
submit_on_blur: If true, it'll update the value onBlur and turn off the edit mode.
|
|
102
|
-
value: The value of the Editable in both edit & preview mode
|
|
103
|
-
default_value: The initial value of the Editable in both edit and preview mode.
|
|
104
|
-
style: The style of the component.
|
|
105
|
-
key: A unique key for the component.
|
|
106
|
-
id: The id for the component.
|
|
107
|
-
class_name: The class name for the component.
|
|
108
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
109
|
-
custom_attrs: custom attribute
|
|
110
|
-
**props: The props of the component.
|
|
111
|
-
|
|
112
|
-
Returns:
|
|
113
|
-
The component.
|
|
114
|
-
"""
|
|
115
|
-
...
|
|
116
|
-
|
|
117
|
-
class EditableInput(ChakraComponent):
|
|
118
|
-
@overload
|
|
119
|
-
@classmethod
|
|
120
|
-
def create( # type: ignore
|
|
121
|
-
cls,
|
|
122
|
-
*children,
|
|
123
|
-
style: Optional[Style] = None,
|
|
124
|
-
key: Optional[Any] = None,
|
|
125
|
-
id: Optional[Any] = None,
|
|
126
|
-
class_name: Optional[Any] = None,
|
|
127
|
-
autofocus: Optional[bool] = None,
|
|
128
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
129
|
-
on_blur: Optional[
|
|
130
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
131
|
-
] = None,
|
|
132
|
-
on_click: Optional[
|
|
133
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
134
|
-
] = None,
|
|
135
|
-
on_context_menu: Optional[
|
|
136
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
137
|
-
] = None,
|
|
138
|
-
on_double_click: Optional[
|
|
139
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
140
|
-
] = None,
|
|
141
|
-
on_focus: Optional[
|
|
142
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
143
|
-
] = None,
|
|
144
|
-
on_mount: Optional[
|
|
145
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
146
|
-
] = None,
|
|
147
|
-
on_mouse_down: Optional[
|
|
148
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
149
|
-
] = None,
|
|
150
|
-
on_mouse_enter: Optional[
|
|
151
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
152
|
-
] = None,
|
|
153
|
-
on_mouse_leave: Optional[
|
|
154
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
155
|
-
] = None,
|
|
156
|
-
on_mouse_move: Optional[
|
|
157
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
158
|
-
] = None,
|
|
159
|
-
on_mouse_out: Optional[
|
|
160
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
161
|
-
] = None,
|
|
162
|
-
on_mouse_over: Optional[
|
|
163
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
164
|
-
] = None,
|
|
165
|
-
on_mouse_up: Optional[
|
|
166
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
167
|
-
] = None,
|
|
168
|
-
on_scroll: Optional[
|
|
169
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
170
|
-
] = None,
|
|
171
|
-
on_unmount: Optional[
|
|
172
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
173
|
-
] = None,
|
|
174
|
-
**props,
|
|
175
|
-
) -> "EditableInput":
|
|
176
|
-
"""Create the component.
|
|
177
|
-
|
|
178
|
-
Args:
|
|
179
|
-
*children: The children of the component.
|
|
180
|
-
style: The style of the component.
|
|
181
|
-
key: A unique key for the component.
|
|
182
|
-
id: The id for the component.
|
|
183
|
-
class_name: The class name for the component.
|
|
184
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
185
|
-
custom_attrs: custom attribute
|
|
186
|
-
**props: The props of the component.
|
|
187
|
-
|
|
188
|
-
Returns:
|
|
189
|
-
The component.
|
|
190
|
-
"""
|
|
191
|
-
...
|
|
192
|
-
|
|
193
|
-
class EditableTextarea(ChakraComponent):
|
|
194
|
-
@overload
|
|
195
|
-
@classmethod
|
|
196
|
-
def create( # type: ignore
|
|
197
|
-
cls,
|
|
198
|
-
*children,
|
|
199
|
-
style: Optional[Style] = None,
|
|
200
|
-
key: Optional[Any] = None,
|
|
201
|
-
id: Optional[Any] = None,
|
|
202
|
-
class_name: Optional[Any] = None,
|
|
203
|
-
autofocus: Optional[bool] = None,
|
|
204
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
205
|
-
on_blur: Optional[
|
|
206
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
207
|
-
] = None,
|
|
208
|
-
on_click: Optional[
|
|
209
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
210
|
-
] = None,
|
|
211
|
-
on_context_menu: Optional[
|
|
212
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
213
|
-
] = None,
|
|
214
|
-
on_double_click: Optional[
|
|
215
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
216
|
-
] = None,
|
|
217
|
-
on_focus: Optional[
|
|
218
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
219
|
-
] = None,
|
|
220
|
-
on_mount: Optional[
|
|
221
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
222
|
-
] = None,
|
|
223
|
-
on_mouse_down: Optional[
|
|
224
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
225
|
-
] = None,
|
|
226
|
-
on_mouse_enter: Optional[
|
|
227
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
228
|
-
] = None,
|
|
229
|
-
on_mouse_leave: Optional[
|
|
230
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
231
|
-
] = None,
|
|
232
|
-
on_mouse_move: Optional[
|
|
233
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
234
|
-
] = None,
|
|
235
|
-
on_mouse_out: Optional[
|
|
236
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
237
|
-
] = None,
|
|
238
|
-
on_mouse_over: Optional[
|
|
239
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
240
|
-
] = None,
|
|
241
|
-
on_mouse_up: Optional[
|
|
242
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
243
|
-
] = None,
|
|
244
|
-
on_scroll: Optional[
|
|
245
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
246
|
-
] = None,
|
|
247
|
-
on_unmount: Optional[
|
|
248
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
249
|
-
] = None,
|
|
250
|
-
**props,
|
|
251
|
-
) -> "EditableTextarea":
|
|
252
|
-
"""Create the component.
|
|
253
|
-
|
|
254
|
-
Args:
|
|
255
|
-
*children: The children of the component.
|
|
256
|
-
style: The style of the component.
|
|
257
|
-
key: A unique key for the component.
|
|
258
|
-
id: The id for the component.
|
|
259
|
-
class_name: The class name for the component.
|
|
260
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
261
|
-
custom_attrs: custom attribute
|
|
262
|
-
**props: The props of the component.
|
|
263
|
-
|
|
264
|
-
Returns:
|
|
265
|
-
The component.
|
|
266
|
-
"""
|
|
267
|
-
...
|
|
268
|
-
|
|
269
|
-
class EditablePreview(ChakraComponent):
|
|
270
|
-
@overload
|
|
271
|
-
@classmethod
|
|
272
|
-
def create( # type: ignore
|
|
273
|
-
cls,
|
|
274
|
-
*children,
|
|
275
|
-
style: Optional[Style] = None,
|
|
276
|
-
key: Optional[Any] = None,
|
|
277
|
-
id: Optional[Any] = None,
|
|
278
|
-
class_name: Optional[Any] = None,
|
|
279
|
-
autofocus: Optional[bool] = None,
|
|
280
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
281
|
-
on_blur: Optional[
|
|
282
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
283
|
-
] = None,
|
|
284
|
-
on_click: Optional[
|
|
285
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
286
|
-
] = None,
|
|
287
|
-
on_context_menu: Optional[
|
|
288
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
289
|
-
] = None,
|
|
290
|
-
on_double_click: Optional[
|
|
291
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
292
|
-
] = None,
|
|
293
|
-
on_focus: Optional[
|
|
294
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
295
|
-
] = None,
|
|
296
|
-
on_mount: Optional[
|
|
297
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
298
|
-
] = None,
|
|
299
|
-
on_mouse_down: Optional[
|
|
300
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
301
|
-
] = None,
|
|
302
|
-
on_mouse_enter: Optional[
|
|
303
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
304
|
-
] = None,
|
|
305
|
-
on_mouse_leave: Optional[
|
|
306
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
307
|
-
] = None,
|
|
308
|
-
on_mouse_move: Optional[
|
|
309
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
310
|
-
] = None,
|
|
311
|
-
on_mouse_out: Optional[
|
|
312
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
313
|
-
] = None,
|
|
314
|
-
on_mouse_over: Optional[
|
|
315
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
316
|
-
] = None,
|
|
317
|
-
on_mouse_up: Optional[
|
|
318
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
319
|
-
] = None,
|
|
320
|
-
on_scroll: Optional[
|
|
321
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
322
|
-
] = None,
|
|
323
|
-
on_unmount: Optional[
|
|
324
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
325
|
-
] = None,
|
|
326
|
-
**props,
|
|
327
|
-
) -> "EditablePreview":
|
|
328
|
-
"""Create the component.
|
|
329
|
-
|
|
330
|
-
Args:
|
|
331
|
-
*children: The children of the component.
|
|
332
|
-
style: The style of the component.
|
|
333
|
-
key: A unique key for the component.
|
|
334
|
-
id: The id for the component.
|
|
335
|
-
class_name: The class name for the component.
|
|
336
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
337
|
-
custom_attrs: custom attribute
|
|
338
|
-
**props: The props of the component.
|
|
339
|
-
|
|
340
|
-
Returns:
|
|
341
|
-
The component.
|
|
342
|
-
"""
|
|
343
|
-
...
|