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.

Files changed (170) hide show
  1. reflex/.templates/web/utils/client_side_routing.js +6 -1
  2. reflex/__init__.py +21 -2
  3. reflex/__init__.pyi +0 -1
  4. reflex/app.py +1 -1
  5. reflex/components/__init__.py +0 -1
  6. reflex/components/__init__.pyi +0 -1
  7. reflex/components/markdown/markdown.py +1 -1
  8. reflex/components/recharts/cartesian.py +3 -0
  9. reflex/components/recharts/cartesian.pyi +2 -0
  10. reflex/components/sonner/toast.py +27 -1
  11. reflex/components/sonner/toast.pyi +5 -0
  12. reflex/constants/base.py +2 -0
  13. reflex/constants/installer.py +2 -0
  14. reflex/experimental/hooks.py +1 -1
  15. reflex/reflex.py +0 -15
  16. reflex/state.py +22 -22
  17. reflex/testing.py +8 -3
  18. reflex/utils/net.py +43 -0
  19. reflex/utils/prerequisites.py +27 -126
  20. reflex/utils/registry.py +48 -0
  21. reflex/utils/types.py +1 -1
  22. reflex/vars.py +4 -2
  23. {reflex-0.5.9.dev1.dist-info → reflex-0.5.10.dist-info}/METADATA +2 -1
  24. {reflex-0.5.9.dev1.dist-info → reflex-0.5.10.dist-info}/RECORD +27 -168
  25. reflex/components/chakra/__init__.py +0 -204
  26. reflex/components/chakra/base.py +0 -210
  27. reflex/components/chakra/base.pyi +0 -319
  28. reflex/components/chakra/datadisplay/__init__.py +0 -10
  29. reflex/components/chakra/datadisplay/badge.py +0 -16
  30. reflex/components/chakra/datadisplay/badge.pyi +0 -96
  31. reflex/components/chakra/datadisplay/code.py +0 -11
  32. reflex/components/chakra/datadisplay/code.pyi +0 -87
  33. reflex/components/chakra/datadisplay/divider.py +0 -20
  34. reflex/components/chakra/datadisplay/divider.pyi +0 -100
  35. reflex/components/chakra/datadisplay/keyboard_key.py +0 -9
  36. reflex/components/chakra/datadisplay/keyboard_key.pyi +0 -87
  37. reflex/components/chakra/datadisplay/list.py +0 -60
  38. reflex/components/chakra/datadisplay/list.pyi +0 -339
  39. reflex/components/chakra/datadisplay/stat.py +0 -80
  40. reflex/components/chakra/datadisplay/stat.pyi +0 -477
  41. reflex/components/chakra/datadisplay/table.py +0 -305
  42. reflex/components/chakra/datadisplay/table.pyi +0 -737
  43. reflex/components/chakra/datadisplay/tag.py +0 -85
  44. reflex/components/chakra/datadisplay/tag.pyi +0 -433
  45. reflex/components/chakra/disclosure/__init__.py +0 -14
  46. reflex/components/chakra/disclosure/accordion.py +0 -110
  47. reflex/components/chakra/disclosure/accordion.pyi +0 -411
  48. reflex/components/chakra/disclosure/tabs.py +0 -117
  49. reflex/components/chakra/disclosure/tabs.pyi +0 -496
  50. reflex/components/chakra/disclosure/transition.py +0 -73
  51. reflex/components/chakra/disclosure/transition.pyi +0 -509
  52. reflex/components/chakra/disclosure/visuallyhidden.py +0 -9
  53. reflex/components/chakra/disclosure/visuallyhidden.pyi +0 -87
  54. reflex/components/chakra/feedback/__init__.py +0 -7
  55. reflex/components/chakra/feedback/alert.py +0 -68
  56. reflex/components/chakra/feedback/alert.pyi +0 -335
  57. reflex/components/chakra/feedback/circularprogress.py +0 -68
  58. reflex/components/chakra/feedback/circularprogress.pyi +0 -185
  59. reflex/components/chakra/feedback/progress.py +0 -33
  60. reflex/components/chakra/feedback/progress.pyi +0 -101
  61. reflex/components/chakra/feedback/skeleton.py +0 -70
  62. reflex/components/chakra/feedback/skeleton.pyi +0 -271
  63. reflex/components/chakra/feedback/spinner.py +0 -25
  64. reflex/components/chakra/feedback/spinner.pyi +0 -102
  65. reflex/components/chakra/forms/__init__.py +0 -49
  66. reflex/components/chakra/forms/button.py +0 -83
  67. reflex/components/chakra/forms/button.pyi +0 -262
  68. reflex/components/chakra/forms/checkbox.py +0 -77
  69. reflex/components/chakra/forms/checkbox.pyi +0 -247
  70. reflex/components/chakra/forms/colormodeswitch.py +0 -104
  71. reflex/components/chakra/forms/colormodeswitch.pyi +0 -473
  72. reflex/components/chakra/forms/date_picker.py +0 -11
  73. reflex/components/chakra/forms/date_picker.pyi +0 -129
  74. reflex/components/chakra/forms/date_time_picker.py +0 -11
  75. reflex/components/chakra/forms/date_time_picker.pyi +0 -129
  76. reflex/components/chakra/forms/editable.py +0 -67
  77. reflex/components/chakra/forms/editable.pyi +0 -343
  78. reflex/components/chakra/forms/email.py +0 -11
  79. reflex/components/chakra/forms/email.pyi +0 -129
  80. reflex/components/chakra/forms/form.py +0 -103
  81. reflex/components/chakra/forms/form.pyi +0 -484
  82. reflex/components/chakra/forms/iconbutton.py +0 -38
  83. reflex/components/chakra/forms/iconbutton.pyi +0 -108
  84. reflex/components/chakra/forms/input.py +0 -130
  85. reflex/components/chakra/forms/input.pyi +0 -566
  86. reflex/components/chakra/forms/multiselect.py +0 -355
  87. reflex/components/chakra/forms/numberinput.py +0 -128
  88. reflex/components/chakra/forms/numberinput.pyi +0 -442
  89. reflex/components/chakra/forms/password.py +0 -11
  90. reflex/components/chakra/forms/password.pyi +0 -129
  91. reflex/components/chakra/forms/pininput.py +0 -201
  92. reflex/components/chakra/forms/pininput.pyi +0 -215
  93. reflex/components/chakra/forms/radio.py +0 -101
  94. reflex/components/chakra/forms/radio.pyi +0 -197
  95. reflex/components/chakra/forms/rangeslider.py +0 -149
  96. reflex/components/chakra/forms/rangeslider.pyi +0 -354
  97. reflex/components/chakra/forms/select.py +0 -103
  98. reflex/components/chakra/forms/select.pyi +0 -204
  99. reflex/components/chakra/forms/slider.py +0 -130
  100. reflex/components/chakra/forms/slider.pyi +0 -449
  101. reflex/components/chakra/forms/switch.py +0 -49
  102. reflex/components/chakra/forms/switch.pyi +0 -159
  103. reflex/components/chakra/forms/textarea.py +0 -79
  104. reflex/components/chakra/forms/textarea.pyi +0 -123
  105. reflex/components/chakra/forms/time_picker.py +0 -11
  106. reflex/components/chakra/forms/time_picker.pyi +0 -129
  107. reflex/components/chakra/layout/__init__.py +0 -14
  108. reflex/components/chakra/layout/aspect_ratio.py +0 -13
  109. reflex/components/chakra/layout/aspect_ratio.pyi +0 -89
  110. reflex/components/chakra/layout/box.py +0 -31
  111. reflex/components/chakra/layout/box.pyi +0 -93
  112. reflex/components/chakra/layout/card.py +0 -100
  113. reflex/components/chakra/layout/card.pyi +0 -379
  114. reflex/components/chakra/layout/center.py +0 -21
  115. reflex/components/chakra/layout/center.pyi +0 -239
  116. reflex/components/chakra/layout/container.py +0 -13
  117. reflex/components/chakra/layout/container.pyi +0 -89
  118. reflex/components/chakra/layout/flex.py +0 -33
  119. reflex/components/chakra/layout/flex.pyi +0 -101
  120. reflex/components/chakra/layout/grid.py +0 -125
  121. reflex/components/chakra/layout/grid.pyi +0 -293
  122. reflex/components/chakra/layout/spacer.py +0 -9
  123. reflex/components/chakra/layout/spacer.pyi +0 -87
  124. reflex/components/chakra/layout/stack.py +0 -48
  125. reflex/components/chakra/layout/stack.pyi +0 -305
  126. reflex/components/chakra/layout/wrap.py +0 -57
  127. reflex/components/chakra/layout/wrap.pyi +0 -179
  128. reflex/components/chakra/media/__init__.py +0 -7
  129. reflex/components/chakra/media/avatar.py +0 -58
  130. reflex/components/chakra/media/avatar.pyi +0 -267
  131. reflex/components/chakra/media/icon.py +0 -111
  132. reflex/components/chakra/media/icon.pyi +0 -171
  133. reflex/components/chakra/media/image.py +0 -74
  134. reflex/components/chakra/media/image.pyi +0 -118
  135. reflex/components/chakra/navigation/__init__.py +0 -18
  136. reflex/components/chakra/navigation/breadcrumb.py +0 -98
  137. reflex/components/chakra/navigation/breadcrumb.pyi +0 -351
  138. reflex/components/chakra/navigation/link.py +0 -62
  139. reflex/components/chakra/navigation/link.pyi +0 -105
  140. reflex/components/chakra/navigation/linkoverlay.py +0 -22
  141. reflex/components/chakra/navigation/linkoverlay.pyi +0 -167
  142. reflex/components/chakra/navigation/stepper.py +0 -113
  143. reflex/components/chakra/navigation/stepper.pyi +0 -762
  144. reflex/components/chakra/overlay/__init__.py +0 -50
  145. reflex/components/chakra/overlay/alertdialog.py +0 -153
  146. reflex/components/chakra/overlay/alertdialog.pyi +0 -612
  147. reflex/components/chakra/overlay/drawer.py +0 -168
  148. reflex/components/chakra/overlay/drawer.pyi +0 -652
  149. reflex/components/chakra/overlay/menu.py +0 -225
  150. reflex/components/chakra/overlay/menu.pyi +0 -708
  151. reflex/components/chakra/overlay/modal.py +0 -166
  152. reflex/components/chakra/overlay/modal.pyi +0 -600
  153. reflex/components/chakra/overlay/popover.py +0 -183
  154. reflex/components/chakra/overlay/popover.pyi +0 -757
  155. reflex/components/chakra/overlay/tooltip.py +0 -70
  156. reflex/components/chakra/overlay/tooltip.pyi +0 -129
  157. reflex/components/chakra/typography/__init__.py +0 -10
  158. reflex/components/chakra/typography/heading.py +0 -16
  159. reflex/components/chakra/typography/heading.pyi +0 -96
  160. reflex/components/chakra/typography/highlight.py +0 -23
  161. reflex/components/chakra/typography/highlight.pyi +0 -91
  162. reflex/components/chakra/typography/span.py +0 -15
  163. reflex/components/chakra/typography/span.pyi +0 -89
  164. reflex/components/chakra/typography/text.py +0 -18
  165. reflex/components/chakra/typography/text.pyi +0 -91
  166. reflex/components/media/__init__.py +0 -1
  167. reflex/components/media/icon.py +0 -3
  168. {reflex-0.5.9.dev1.dist-info → reflex-0.5.10.dist-info}/LICENSE +0 -0
  169. {reflex-0.5.9.dev1.dist-info → reflex-0.5.10.dist-info}/WHEEL +0 -0
  170. {reflex-0.5.9.dev1.dist-info → reflex-0.5.10.dist-info}/entry_points.txt +0 -0
@@ -1,130 +0,0 @@
1
- """An input component."""
2
-
3
- from reflex.components.chakra import (
4
- ChakraComponent,
5
- LiteralButtonSize,
6
- LiteralInputVariant,
7
- )
8
- from reflex.components.component import Component
9
- from reflex.components.core.debounce import DebounceInput
10
- from reflex.components.literals import LiteralInputType
11
- from reflex.constants import MemoizationMode
12
- from reflex.event import EventHandler
13
- from reflex.utils.imports import ImportDict
14
- from reflex.vars import Var
15
-
16
-
17
- class Input(ChakraComponent):
18
- """The Input component is a component that is used to get user input in a text field."""
19
-
20
- tag = "Input"
21
-
22
- # State var to bind the input.
23
- value: Var[str]
24
-
25
- # The default value of the input.
26
- default_value: Var[str]
27
-
28
- # The placeholder text.
29
- placeholder: Var[str]
30
-
31
- # The type of input.
32
- type_: Var[LiteralInputType]
33
-
34
- # The border color when the input is invalid.
35
- error_border_color: Var[str]
36
-
37
- # The border color when the input is focused.
38
- focus_border_color: Var[str]
39
-
40
- # 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
41
- is_disabled: Var[bool]
42
-
43
- # 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
44
- is_invalid: Var[bool]
45
-
46
- # If true, the form control will be readonly.
47
- is_read_only: Var[bool]
48
-
49
- # 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
50
- is_required: Var[bool]
51
-
52
- # "outline" | "filled" | "flushed" | "unstyled"
53
- variant: Var[LiteralInputVariant]
54
-
55
- # "lg" | "md" | "sm" | "xs"
56
- size: Var[LiteralButtonSize]
57
-
58
- # The name of the form field
59
- name: Var[str]
60
-
61
- # Fired when the input value changes.
62
- on_change: EventHandler[lambda e0: [e0.target.value]]
63
-
64
- # Fired when the input is focused.
65
- on_focus: EventHandler[lambda e0: [e0.target.value]]
66
-
67
- # Fired when the input lose focus.
68
- on_blur: EventHandler[lambda e0: [e0.target.value]]
69
-
70
- # Fired when a key is pressed down.
71
- on_key_down: EventHandler[lambda e0: [e0.key]]
72
-
73
- # Fired when a key is released.
74
- on_key_up: EventHandler[lambda e0: [e0.key]]
75
-
76
- def add_imports(self) -> ImportDict:
77
- """Add imports for the Input component.
78
-
79
- Returns:
80
- The import dict.
81
- """
82
- return {"/utils/state": "set_val"}
83
-
84
- @classmethod
85
- def create(cls, *children, **props) -> Component:
86
- """Create an Input component.
87
-
88
- Args:
89
- *children: The children of the component.
90
- **props: The properties of the component.
91
-
92
- Returns:
93
- The component.
94
- """
95
- if props.get("value") is not None and props.get("on_change") is not None:
96
- # create a debounced input if the user requests full control to avoid typing jank
97
- return DebounceInput.create(super().create(*children, **props))
98
- return super().create(*children, **props)
99
-
100
-
101
- class InputGroup(ChakraComponent):
102
- """The InputGroup component is a component that is used to group a set of inputs."""
103
-
104
- tag = "InputGroup"
105
-
106
- _memoization_mode = MemoizationMode(recursive=False)
107
-
108
-
109
- class InputLeftAddon(ChakraComponent):
110
- """The InputLeftAddon component is a component that is used to add an addon to the left of an input."""
111
-
112
- tag = "InputLeftAddon"
113
-
114
-
115
- class InputRightAddon(ChakraComponent):
116
- """The InputRightAddon component is a component that is used to add an addon to the right of an input."""
117
-
118
- tag = "InputRightAddon"
119
-
120
-
121
- class InputLeftElement(ChakraComponent):
122
- """The InputLeftElement component is a component that is used to add an element to the left of an input."""
123
-
124
- tag = "InputLeftElement"
125
-
126
-
127
- class InputRightElement(ChakraComponent):
128
- """The InputRightElement component is a component that is used to add an element to the right of an input."""
129
-
130
- tag = "InputRightElement"
@@ -1,566 +0,0 @@
1
- """Stub file for reflex/components/chakra/forms/input.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 (
9
- ChakraComponent,
10
- )
11
- from reflex.event import EventHandler, EventSpec
12
- from reflex.style import Style
13
- from reflex.utils.imports import ImportDict
14
- from reflex.vars import BaseVar, Var
15
-
16
- class Input(ChakraComponent):
17
- def add_imports(self) -> ImportDict: ...
18
- @overload
19
- @classmethod
20
- def create( # type: ignore
21
- cls,
22
- *children,
23
- value: Optional[Union[Var[str], str]] = None,
24
- default_value: Optional[Union[Var[str], str]] = None,
25
- placeholder: Optional[Union[Var[str], str]] = None,
26
- type_: Optional[
27
- Union[
28
- Var[
29
- Literal[
30
- "button",
31
- "checkbox",
32
- "color",
33
- "date",
34
- "datetime-local",
35
- "email",
36
- "file",
37
- "hidden",
38
- "image",
39
- "month",
40
- "number",
41
- "password",
42
- "radio",
43
- "range",
44
- "reset",
45
- "search",
46
- "submit",
47
- "tel",
48
- "text",
49
- "time",
50
- "url",
51
- "week",
52
- ]
53
- ],
54
- Literal[
55
- "button",
56
- "checkbox",
57
- "color",
58
- "date",
59
- "datetime-local",
60
- "email",
61
- "file",
62
- "hidden",
63
- "image",
64
- "month",
65
- "number",
66
- "password",
67
- "radio",
68
- "range",
69
- "reset",
70
- "search",
71
- "submit",
72
- "tel",
73
- "text",
74
- "time",
75
- "url",
76
- "week",
77
- ],
78
- ]
79
- ] = None,
80
- error_border_color: Optional[Union[Var[str], str]] = None,
81
- focus_border_color: Optional[Union[Var[str], str]] = None,
82
- is_disabled: Optional[Union[Var[bool], bool]] = None,
83
- is_invalid: Optional[Union[Var[bool], bool]] = None,
84
- is_read_only: Optional[Union[Var[bool], bool]] = None,
85
- is_required: Optional[Union[Var[bool], bool]] = None,
86
- variant: Optional[
87
- Union[
88
- Var[Literal["outline", "filled", "flushed", "unstyled"]],
89
- Literal["outline", "filled", "flushed", "unstyled"],
90
- ]
91
- ] = None,
92
- size: Optional[
93
- Union[Var[Literal["sm", "md", "lg", "xs"]], Literal["sm", "md", "lg", "xs"]]
94
- ] = None,
95
- name: Optional[Union[Var[str], str]] = None,
96
- style: Optional[Style] = None,
97
- key: Optional[Any] = None,
98
- id: Optional[Any] = None,
99
- class_name: Optional[Any] = None,
100
- autofocus: Optional[bool] = None,
101
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
102
- on_blur: Optional[
103
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
104
- ] = None,
105
- on_change: Optional[
106
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
107
- ] = None,
108
- on_click: Optional[
109
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
110
- ] = None,
111
- on_context_menu: Optional[
112
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
113
- ] = None,
114
- on_double_click: Optional[
115
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
116
- ] = None,
117
- on_focus: Optional[
118
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
119
- ] = None,
120
- on_key_down: Optional[
121
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
122
- ] = None,
123
- on_key_up: Optional[
124
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
125
- ] = None,
126
- on_mount: Optional[
127
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
128
- ] = None,
129
- on_mouse_down: Optional[
130
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
131
- ] = None,
132
- on_mouse_enter: Optional[
133
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
134
- ] = None,
135
- on_mouse_leave: Optional[
136
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
137
- ] = None,
138
- on_mouse_move: Optional[
139
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
140
- ] = None,
141
- on_mouse_out: Optional[
142
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
143
- ] = None,
144
- on_mouse_over: Optional[
145
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
146
- ] = None,
147
- on_mouse_up: Optional[
148
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
149
- ] = None,
150
- on_scroll: Optional[
151
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
152
- ] = None,
153
- on_unmount: Optional[
154
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
155
- ] = None,
156
- **props,
157
- ) -> "Input":
158
- """Create an Input component.
159
-
160
- Args:
161
- *children: The children of the component.
162
- value: State var to bind the input.
163
- default_value: The default value of the input.
164
- placeholder: The placeholder text.
165
- type_: The type of input.
166
- error_border_color: The border color when the input is invalid.
167
- focus_border_color: The border color when the input is focused.
168
- 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
169
- 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
170
- is_read_only: If true, the form control will be readonly.
171
- 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
172
- variant: "outline" | "filled" | "flushed" | "unstyled"
173
- size: "lg" | "md" | "sm" | "xs"
174
- name: The name of the form field
175
- style: The style of the component.
176
- key: A unique key for the component.
177
- id: The id for the component.
178
- class_name: The class name for the component.
179
- autofocus: Whether the component should take the focus once the page is loaded
180
- custom_attrs: custom attribute
181
- **props: The properties of the component.
182
-
183
- Returns:
184
- The component.
185
- """
186
- ...
187
-
188
- class InputGroup(ChakraComponent):
189
- @overload
190
- @classmethod
191
- def create( # type: ignore
192
- cls,
193
- *children,
194
- style: Optional[Style] = None,
195
- key: Optional[Any] = None,
196
- id: Optional[Any] = None,
197
- class_name: Optional[Any] = None,
198
- autofocus: Optional[bool] = None,
199
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
200
- on_blur: Optional[
201
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
202
- ] = None,
203
- on_click: Optional[
204
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
205
- ] = None,
206
- on_context_menu: Optional[
207
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
208
- ] = None,
209
- on_double_click: Optional[
210
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
211
- ] = None,
212
- on_focus: Optional[
213
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
214
- ] = None,
215
- on_mount: Optional[
216
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
217
- ] = None,
218
- on_mouse_down: Optional[
219
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
220
- ] = None,
221
- on_mouse_enter: Optional[
222
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
223
- ] = None,
224
- on_mouse_leave: Optional[
225
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
226
- ] = None,
227
- on_mouse_move: Optional[
228
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
229
- ] = None,
230
- on_mouse_out: Optional[
231
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
232
- ] = None,
233
- on_mouse_over: Optional[
234
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
235
- ] = None,
236
- on_mouse_up: Optional[
237
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
238
- ] = None,
239
- on_scroll: Optional[
240
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
241
- ] = None,
242
- on_unmount: Optional[
243
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
244
- ] = None,
245
- **props,
246
- ) -> "InputGroup":
247
- """Create the component.
248
-
249
- Args:
250
- *children: The children of the component.
251
- style: The style of the component.
252
- key: A unique key for the component.
253
- id: The id for the component.
254
- class_name: The class name for the component.
255
- autofocus: Whether the component should take the focus once the page is loaded
256
- custom_attrs: custom attribute
257
- **props: The props of the component.
258
-
259
- Returns:
260
- The component.
261
- """
262
- ...
263
-
264
- class InputLeftAddon(ChakraComponent):
265
- @overload
266
- @classmethod
267
- def create( # type: ignore
268
- cls,
269
- *children,
270
- style: Optional[Style] = None,
271
- key: Optional[Any] = None,
272
- id: Optional[Any] = None,
273
- class_name: Optional[Any] = None,
274
- autofocus: Optional[bool] = None,
275
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
276
- on_blur: Optional[
277
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
278
- ] = None,
279
- on_click: Optional[
280
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
281
- ] = None,
282
- on_context_menu: Optional[
283
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
284
- ] = None,
285
- on_double_click: Optional[
286
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
287
- ] = None,
288
- on_focus: Optional[
289
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
290
- ] = None,
291
- on_mount: Optional[
292
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
293
- ] = None,
294
- on_mouse_down: Optional[
295
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
296
- ] = None,
297
- on_mouse_enter: Optional[
298
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
299
- ] = None,
300
- on_mouse_leave: Optional[
301
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
302
- ] = None,
303
- on_mouse_move: Optional[
304
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
305
- ] = None,
306
- on_mouse_out: Optional[
307
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
308
- ] = None,
309
- on_mouse_over: Optional[
310
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
311
- ] = None,
312
- on_mouse_up: Optional[
313
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
314
- ] = None,
315
- on_scroll: Optional[
316
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
317
- ] = None,
318
- on_unmount: Optional[
319
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
320
- ] = None,
321
- **props,
322
- ) -> "InputLeftAddon":
323
- """Create the component.
324
-
325
- Args:
326
- *children: The children of the component.
327
- style: The style of the component.
328
- key: A unique key for the component.
329
- id: The id for the component.
330
- class_name: The class name for the component.
331
- autofocus: Whether the component should take the focus once the page is loaded
332
- custom_attrs: custom attribute
333
- **props: The props of the component.
334
-
335
- Returns:
336
- The component.
337
- """
338
- ...
339
-
340
- class InputRightAddon(ChakraComponent):
341
- @overload
342
- @classmethod
343
- def create( # type: ignore
344
- cls,
345
- *children,
346
- style: Optional[Style] = None,
347
- key: Optional[Any] = None,
348
- id: Optional[Any] = None,
349
- class_name: Optional[Any] = None,
350
- autofocus: Optional[bool] = None,
351
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
352
- on_blur: Optional[
353
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
354
- ] = None,
355
- on_click: Optional[
356
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
357
- ] = None,
358
- on_context_menu: Optional[
359
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
360
- ] = None,
361
- on_double_click: Optional[
362
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
363
- ] = None,
364
- on_focus: Optional[
365
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
366
- ] = None,
367
- on_mount: Optional[
368
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
369
- ] = None,
370
- on_mouse_down: Optional[
371
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
372
- ] = None,
373
- on_mouse_enter: Optional[
374
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
375
- ] = None,
376
- on_mouse_leave: Optional[
377
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
378
- ] = None,
379
- on_mouse_move: Optional[
380
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
381
- ] = None,
382
- on_mouse_out: Optional[
383
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
384
- ] = None,
385
- on_mouse_over: Optional[
386
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
387
- ] = None,
388
- on_mouse_up: Optional[
389
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
390
- ] = None,
391
- on_scroll: Optional[
392
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
393
- ] = None,
394
- on_unmount: Optional[
395
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
396
- ] = None,
397
- **props,
398
- ) -> "InputRightAddon":
399
- """Create the component.
400
-
401
- Args:
402
- *children: The children of the component.
403
- style: The style of the component.
404
- key: A unique key for the component.
405
- id: The id for the component.
406
- class_name: The class name for the component.
407
- autofocus: Whether the component should take the focus once the page is loaded
408
- custom_attrs: custom attribute
409
- **props: The props of the component.
410
-
411
- Returns:
412
- The component.
413
- """
414
- ...
415
-
416
- class InputLeftElement(ChakraComponent):
417
- @overload
418
- @classmethod
419
- def create( # type: ignore
420
- cls,
421
- *children,
422
- style: Optional[Style] = None,
423
- key: Optional[Any] = None,
424
- id: Optional[Any] = None,
425
- class_name: Optional[Any] = None,
426
- autofocus: Optional[bool] = None,
427
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
428
- on_blur: Optional[
429
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
430
- ] = None,
431
- on_click: Optional[
432
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
433
- ] = None,
434
- on_context_menu: Optional[
435
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
436
- ] = None,
437
- on_double_click: Optional[
438
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
439
- ] = None,
440
- on_focus: Optional[
441
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
442
- ] = None,
443
- on_mount: Optional[
444
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
445
- ] = None,
446
- on_mouse_down: Optional[
447
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
448
- ] = None,
449
- on_mouse_enter: Optional[
450
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
451
- ] = None,
452
- on_mouse_leave: Optional[
453
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
454
- ] = None,
455
- on_mouse_move: Optional[
456
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
457
- ] = None,
458
- on_mouse_out: Optional[
459
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
460
- ] = None,
461
- on_mouse_over: Optional[
462
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
463
- ] = None,
464
- on_mouse_up: Optional[
465
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
466
- ] = None,
467
- on_scroll: Optional[
468
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
469
- ] = None,
470
- on_unmount: Optional[
471
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
472
- ] = None,
473
- **props,
474
- ) -> "InputLeftElement":
475
- """Create the component.
476
-
477
- Args:
478
- *children: The children of the component.
479
- style: The style of the component.
480
- key: A unique key for the component.
481
- id: The id for the component.
482
- class_name: The class name for the component.
483
- autofocus: Whether the component should take the focus once the page is loaded
484
- custom_attrs: custom attribute
485
- **props: The props of the component.
486
-
487
- Returns:
488
- The component.
489
- """
490
- ...
491
-
492
- class InputRightElement(ChakraComponent):
493
- @overload
494
- @classmethod
495
- def create( # type: ignore
496
- cls,
497
- *children,
498
- style: Optional[Style] = None,
499
- key: Optional[Any] = None,
500
- id: Optional[Any] = None,
501
- class_name: Optional[Any] = None,
502
- autofocus: Optional[bool] = None,
503
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
504
- on_blur: Optional[
505
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
506
- ] = None,
507
- on_click: Optional[
508
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
509
- ] = None,
510
- on_context_menu: Optional[
511
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
512
- ] = None,
513
- on_double_click: Optional[
514
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
515
- ] = None,
516
- on_focus: Optional[
517
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
518
- ] = None,
519
- on_mount: Optional[
520
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
521
- ] = None,
522
- on_mouse_down: Optional[
523
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
524
- ] = None,
525
- on_mouse_enter: Optional[
526
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
527
- ] = None,
528
- on_mouse_leave: Optional[
529
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
530
- ] = None,
531
- on_mouse_move: Optional[
532
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
533
- ] = None,
534
- on_mouse_out: Optional[
535
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
536
- ] = None,
537
- on_mouse_over: Optional[
538
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
539
- ] = None,
540
- on_mouse_up: Optional[
541
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
542
- ] = None,
543
- on_scroll: Optional[
544
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
545
- ] = None,
546
- on_unmount: Optional[
547
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
548
- ] = None,
549
- **props,
550
- ) -> "InputRightElement":
551
- """Create the component.
552
-
553
- Args:
554
- *children: The children of the component.
555
- style: The style of the component.
556
- key: A unique key for the component.
557
- id: The id for the component.
558
- class_name: The class name for the component.
559
- autofocus: Whether the component should take the focus once the page is loaded
560
- custom_attrs: custom attribute
561
- **props: The props of the component.
562
-
563
- Returns:
564
- The component.
565
- """
566
- ...