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.

Files changed (169) hide show
  1. reflex/__init__.py +21 -2
  2. reflex/__init__.pyi +0 -1
  3. reflex/app.py +1 -1
  4. reflex/components/__init__.py +0 -1
  5. reflex/components/__init__.pyi +0 -1
  6. reflex/components/markdown/markdown.py +1 -1
  7. reflex/components/recharts/cartesian.py +3 -0
  8. reflex/components/recharts/cartesian.pyi +2 -0
  9. reflex/components/sonner/toast.py +27 -1
  10. reflex/components/sonner/toast.pyi +5 -0
  11. reflex/constants/base.py +2 -0
  12. reflex/constants/installer.py +2 -0
  13. reflex/experimental/hooks.py +1 -1
  14. reflex/reflex.py +0 -15
  15. reflex/state.py +22 -22
  16. reflex/testing.py +8 -3
  17. reflex/utils/net.py +43 -0
  18. reflex/utils/prerequisites.py +27 -126
  19. reflex/utils/registry.py +48 -0
  20. reflex/utils/types.py +1 -1
  21. reflex/vars.py +4 -2
  22. {reflex-0.5.9a1.dist-info → reflex-0.5.10.dist-info}/METADATA +2 -1
  23. {reflex-0.5.9a1.dist-info → reflex-0.5.10.dist-info}/RECORD +26 -167
  24. reflex/components/chakra/__init__.py +0 -204
  25. reflex/components/chakra/base.py +0 -210
  26. reflex/components/chakra/base.pyi +0 -319
  27. reflex/components/chakra/datadisplay/__init__.py +0 -10
  28. reflex/components/chakra/datadisplay/badge.py +0 -16
  29. reflex/components/chakra/datadisplay/badge.pyi +0 -96
  30. reflex/components/chakra/datadisplay/code.py +0 -11
  31. reflex/components/chakra/datadisplay/code.pyi +0 -87
  32. reflex/components/chakra/datadisplay/divider.py +0 -20
  33. reflex/components/chakra/datadisplay/divider.pyi +0 -100
  34. reflex/components/chakra/datadisplay/keyboard_key.py +0 -9
  35. reflex/components/chakra/datadisplay/keyboard_key.pyi +0 -87
  36. reflex/components/chakra/datadisplay/list.py +0 -60
  37. reflex/components/chakra/datadisplay/list.pyi +0 -339
  38. reflex/components/chakra/datadisplay/stat.py +0 -80
  39. reflex/components/chakra/datadisplay/stat.pyi +0 -477
  40. reflex/components/chakra/datadisplay/table.py +0 -305
  41. reflex/components/chakra/datadisplay/table.pyi +0 -737
  42. reflex/components/chakra/datadisplay/tag.py +0 -85
  43. reflex/components/chakra/datadisplay/tag.pyi +0 -433
  44. reflex/components/chakra/disclosure/__init__.py +0 -14
  45. reflex/components/chakra/disclosure/accordion.py +0 -110
  46. reflex/components/chakra/disclosure/accordion.pyi +0 -411
  47. reflex/components/chakra/disclosure/tabs.py +0 -117
  48. reflex/components/chakra/disclosure/tabs.pyi +0 -496
  49. reflex/components/chakra/disclosure/transition.py +0 -73
  50. reflex/components/chakra/disclosure/transition.pyi +0 -509
  51. reflex/components/chakra/disclosure/visuallyhidden.py +0 -9
  52. reflex/components/chakra/disclosure/visuallyhidden.pyi +0 -87
  53. reflex/components/chakra/feedback/__init__.py +0 -7
  54. reflex/components/chakra/feedback/alert.py +0 -68
  55. reflex/components/chakra/feedback/alert.pyi +0 -335
  56. reflex/components/chakra/feedback/circularprogress.py +0 -68
  57. reflex/components/chakra/feedback/circularprogress.pyi +0 -185
  58. reflex/components/chakra/feedback/progress.py +0 -33
  59. reflex/components/chakra/feedback/progress.pyi +0 -101
  60. reflex/components/chakra/feedback/skeleton.py +0 -70
  61. reflex/components/chakra/feedback/skeleton.pyi +0 -271
  62. reflex/components/chakra/feedback/spinner.py +0 -25
  63. reflex/components/chakra/feedback/spinner.pyi +0 -102
  64. reflex/components/chakra/forms/__init__.py +0 -49
  65. reflex/components/chakra/forms/button.py +0 -83
  66. reflex/components/chakra/forms/button.pyi +0 -262
  67. reflex/components/chakra/forms/checkbox.py +0 -77
  68. reflex/components/chakra/forms/checkbox.pyi +0 -247
  69. reflex/components/chakra/forms/colormodeswitch.py +0 -104
  70. reflex/components/chakra/forms/colormodeswitch.pyi +0 -473
  71. reflex/components/chakra/forms/date_picker.py +0 -11
  72. reflex/components/chakra/forms/date_picker.pyi +0 -129
  73. reflex/components/chakra/forms/date_time_picker.py +0 -11
  74. reflex/components/chakra/forms/date_time_picker.pyi +0 -129
  75. reflex/components/chakra/forms/editable.py +0 -67
  76. reflex/components/chakra/forms/editable.pyi +0 -343
  77. reflex/components/chakra/forms/email.py +0 -11
  78. reflex/components/chakra/forms/email.pyi +0 -129
  79. reflex/components/chakra/forms/form.py +0 -103
  80. reflex/components/chakra/forms/form.pyi +0 -484
  81. reflex/components/chakra/forms/iconbutton.py +0 -38
  82. reflex/components/chakra/forms/iconbutton.pyi +0 -108
  83. reflex/components/chakra/forms/input.py +0 -130
  84. reflex/components/chakra/forms/input.pyi +0 -566
  85. reflex/components/chakra/forms/multiselect.py +0 -355
  86. reflex/components/chakra/forms/numberinput.py +0 -128
  87. reflex/components/chakra/forms/numberinput.pyi +0 -442
  88. reflex/components/chakra/forms/password.py +0 -11
  89. reflex/components/chakra/forms/password.pyi +0 -129
  90. reflex/components/chakra/forms/pininput.py +0 -201
  91. reflex/components/chakra/forms/pininput.pyi +0 -215
  92. reflex/components/chakra/forms/radio.py +0 -101
  93. reflex/components/chakra/forms/radio.pyi +0 -197
  94. reflex/components/chakra/forms/rangeslider.py +0 -149
  95. reflex/components/chakra/forms/rangeslider.pyi +0 -354
  96. reflex/components/chakra/forms/select.py +0 -103
  97. reflex/components/chakra/forms/select.pyi +0 -204
  98. reflex/components/chakra/forms/slider.py +0 -130
  99. reflex/components/chakra/forms/slider.pyi +0 -449
  100. reflex/components/chakra/forms/switch.py +0 -49
  101. reflex/components/chakra/forms/switch.pyi +0 -159
  102. reflex/components/chakra/forms/textarea.py +0 -79
  103. reflex/components/chakra/forms/textarea.pyi +0 -123
  104. reflex/components/chakra/forms/time_picker.py +0 -11
  105. reflex/components/chakra/forms/time_picker.pyi +0 -129
  106. reflex/components/chakra/layout/__init__.py +0 -14
  107. reflex/components/chakra/layout/aspect_ratio.py +0 -13
  108. reflex/components/chakra/layout/aspect_ratio.pyi +0 -89
  109. reflex/components/chakra/layout/box.py +0 -31
  110. reflex/components/chakra/layout/box.pyi +0 -93
  111. reflex/components/chakra/layout/card.py +0 -100
  112. reflex/components/chakra/layout/card.pyi +0 -379
  113. reflex/components/chakra/layout/center.py +0 -21
  114. reflex/components/chakra/layout/center.pyi +0 -239
  115. reflex/components/chakra/layout/container.py +0 -13
  116. reflex/components/chakra/layout/container.pyi +0 -89
  117. reflex/components/chakra/layout/flex.py +0 -33
  118. reflex/components/chakra/layout/flex.pyi +0 -101
  119. reflex/components/chakra/layout/grid.py +0 -125
  120. reflex/components/chakra/layout/grid.pyi +0 -293
  121. reflex/components/chakra/layout/spacer.py +0 -9
  122. reflex/components/chakra/layout/spacer.pyi +0 -87
  123. reflex/components/chakra/layout/stack.py +0 -48
  124. reflex/components/chakra/layout/stack.pyi +0 -305
  125. reflex/components/chakra/layout/wrap.py +0 -57
  126. reflex/components/chakra/layout/wrap.pyi +0 -179
  127. reflex/components/chakra/media/__init__.py +0 -7
  128. reflex/components/chakra/media/avatar.py +0 -58
  129. reflex/components/chakra/media/avatar.pyi +0 -267
  130. reflex/components/chakra/media/icon.py +0 -111
  131. reflex/components/chakra/media/icon.pyi +0 -171
  132. reflex/components/chakra/media/image.py +0 -74
  133. reflex/components/chakra/media/image.pyi +0 -118
  134. reflex/components/chakra/navigation/__init__.py +0 -18
  135. reflex/components/chakra/navigation/breadcrumb.py +0 -98
  136. reflex/components/chakra/navigation/breadcrumb.pyi +0 -351
  137. reflex/components/chakra/navigation/link.py +0 -62
  138. reflex/components/chakra/navigation/link.pyi +0 -105
  139. reflex/components/chakra/navigation/linkoverlay.py +0 -22
  140. reflex/components/chakra/navigation/linkoverlay.pyi +0 -167
  141. reflex/components/chakra/navigation/stepper.py +0 -113
  142. reflex/components/chakra/navigation/stepper.pyi +0 -762
  143. reflex/components/chakra/overlay/__init__.py +0 -50
  144. reflex/components/chakra/overlay/alertdialog.py +0 -153
  145. reflex/components/chakra/overlay/alertdialog.pyi +0 -612
  146. reflex/components/chakra/overlay/drawer.py +0 -168
  147. reflex/components/chakra/overlay/drawer.pyi +0 -652
  148. reflex/components/chakra/overlay/menu.py +0 -225
  149. reflex/components/chakra/overlay/menu.pyi +0 -708
  150. reflex/components/chakra/overlay/modal.py +0 -166
  151. reflex/components/chakra/overlay/modal.pyi +0 -600
  152. reflex/components/chakra/overlay/popover.py +0 -183
  153. reflex/components/chakra/overlay/popover.pyi +0 -757
  154. reflex/components/chakra/overlay/tooltip.py +0 -70
  155. reflex/components/chakra/overlay/tooltip.pyi +0 -129
  156. reflex/components/chakra/typography/__init__.py +0 -10
  157. reflex/components/chakra/typography/heading.py +0 -16
  158. reflex/components/chakra/typography/heading.pyi +0 -96
  159. reflex/components/chakra/typography/highlight.py +0 -23
  160. reflex/components/chakra/typography/highlight.pyi +0 -91
  161. reflex/components/chakra/typography/span.py +0 -15
  162. reflex/components/chakra/typography/span.pyi +0 -89
  163. reflex/components/chakra/typography/text.py +0 -18
  164. reflex/components/chakra/typography/text.pyi +0 -91
  165. reflex/components/media/__init__.py +0 -1
  166. reflex/components/media/icon.py +0 -3
  167. {reflex-0.5.9a1.dist-info → reflex-0.5.10.dist-info}/LICENSE +0 -0
  168. {reflex-0.5.9a1.dist-info → reflex-0.5.10.dist-info}/WHEEL +0 -0
  169. {reflex-0.5.9a1.dist-info → reflex-0.5.10.dist-info}/entry_points.txt +0 -0
@@ -1,484 +0,0 @@
1
- """Stub file for reflex/components/chakra/forms/form.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.components.el.elements.forms import Form as HTMLForm
10
- from reflex.event import EventHandler, EventSpec
11
- from reflex.style import Style
12
- from reflex.vars import BaseVar, Var
13
-
14
- class Form(ChakraComponent, HTMLForm):
15
- @overload
16
- @classmethod
17
- def create( # type: ignore
18
- cls,
19
- *children,
20
- as_: Optional[Union[Var[str], str]] = None,
21
- accept: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
22
- accept_charset: Optional[
23
- Union[Var[Union[bool, int, str]], str, int, bool]
24
- ] = None,
25
- action: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
26
- auto_complete: Optional[
27
- Union[Var[Union[bool, int, str]], str, int, bool]
28
- ] = None,
29
- enc_type: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
30
- method: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
31
- name: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
32
- no_validate: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
33
- target: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
34
- reset_on_submit: Optional[Union[Var[bool], bool]] = None,
35
- handle_submit_unique_name: Optional[Union[Var[str], str]] = None,
36
- access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
37
- auto_capitalize: Optional[
38
- Union[Var[Union[bool, int, str]], str, int, bool]
39
- ] = None,
40
- content_editable: Optional[
41
- Union[Var[Union[bool, int, str]], str, int, bool]
42
- ] = None,
43
- context_menu: Optional[
44
- Union[Var[Union[bool, int, str]], str, int, bool]
45
- ] = None,
46
- dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
47
- draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
48
- enter_key_hint: Optional[
49
- Union[Var[Union[bool, int, str]], str, int, bool]
50
- ] = None,
51
- hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
52
- input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
53
- item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
54
- lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
55
- role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
56
- slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
57
- spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
58
- tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
59
- title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
60
- style: Optional[Style] = None,
61
- key: Optional[Any] = None,
62
- id: Optional[Any] = None,
63
- class_name: Optional[Any] = None,
64
- autofocus: Optional[bool] = None,
65
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
66
- on_blur: Optional[
67
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
68
- ] = None,
69
- on_click: Optional[
70
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
71
- ] = None,
72
- on_context_menu: Optional[
73
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
74
- ] = None,
75
- on_double_click: Optional[
76
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
77
- ] = None,
78
- on_focus: Optional[
79
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
80
- ] = None,
81
- on_mount: Optional[
82
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
83
- ] = None,
84
- on_mouse_down: Optional[
85
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
86
- ] = None,
87
- on_mouse_enter: Optional[
88
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
89
- ] = None,
90
- on_mouse_leave: Optional[
91
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
92
- ] = None,
93
- on_mouse_move: Optional[
94
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
95
- ] = None,
96
- on_mouse_out: Optional[
97
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
98
- ] = None,
99
- on_mouse_over: Optional[
100
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
101
- ] = None,
102
- on_mouse_up: Optional[
103
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
104
- ] = None,
105
- on_scroll: Optional[
106
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
107
- ] = None,
108
- on_submit: Optional[
109
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
110
- ] = None,
111
- on_unmount: Optional[
112
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
113
- ] = None,
114
- **props,
115
- ) -> "Form":
116
- """Create a form component.
117
-
118
- Args:
119
- *children: The children of the form.
120
- as_: What the form renders to.
121
- accept: MIME types the server accepts for file upload
122
- accept_charset: Character encodings to be used for form submission
123
- action: URL where the form's data should be submitted
124
- auto_complete: Whether the form should have autocomplete enabled
125
- enc_type: Encoding type for the form data when submitted
126
- method: HTTP method to use for form submission
127
- name: Name of the form
128
- no_validate: Indicates that the form should not be validated on submit
129
- target: Where to display the response after submitting the form
130
- reset_on_submit: If true, the form will be cleared after submit.
131
- handle_submit_unique_name: The name used to make this form's submit handler function unique.
132
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
133
- auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
134
- content_editable: Indicates whether the element's content is editable.
135
- context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
136
- dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
137
- draggable: Defines whether the element can be dragged.
138
- enter_key_hint: Hints what media types the media element is able to play.
139
- hidden: Defines whether the element is hidden.
140
- input_mode: Defines the type of the element.
141
- item_prop: Defines the name of the element for metadata purposes.
142
- lang: Defines the language used in the element.
143
- role: Defines the role of the element.
144
- slot: Assigns a slot in a shadow DOM shadow tree to an element.
145
- spell_check: Defines whether the element may be checked for spelling errors.
146
- tab_index: Defines the position of the current element in the tabbing order.
147
- title: Defines a tooltip for the element.
148
- style: The style of the component.
149
- key: A unique key for the component.
150
- id: The id for the component.
151
- class_name: The class name for the component.
152
- autofocus: Whether the component should take the focus once the page is loaded
153
- custom_attrs: custom attribute
154
- **props: The properties of the form.
155
-
156
- Returns:
157
- The form component.
158
- """
159
- ...
160
-
161
- class FormControl(ChakraComponent):
162
- @overload
163
- @classmethod
164
- def create( # type: ignore
165
- cls,
166
- *children,
167
- label=None,
168
- input=None,
169
- help_text=None,
170
- error_message=None,
171
- is_disabled: Optional[Union[Var[bool], bool]] = None,
172
- is_invalid: Optional[Union[Var[bool], bool]] = None,
173
- is_read_only: Optional[Union[Var[bool], bool]] = None,
174
- is_required: Optional[Union[Var[bool], bool]] = None,
175
- style: Optional[Style] = None,
176
- key: Optional[Any] = None,
177
- id: Optional[Any] = None,
178
- class_name: Optional[Any] = None,
179
- autofocus: Optional[bool] = None,
180
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
181
- on_blur: Optional[
182
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
183
- ] = None,
184
- on_click: Optional[
185
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
186
- ] = None,
187
- on_context_menu: Optional[
188
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
189
- ] = None,
190
- on_double_click: Optional[
191
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
192
- ] = None,
193
- on_focus: Optional[
194
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
195
- ] = None,
196
- on_mount: Optional[
197
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
198
- ] = None,
199
- on_mouse_down: Optional[
200
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
201
- ] = None,
202
- on_mouse_enter: Optional[
203
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
204
- ] = None,
205
- on_mouse_leave: Optional[
206
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
207
- ] = None,
208
- on_mouse_move: Optional[
209
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
210
- ] = None,
211
- on_mouse_out: Optional[
212
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
213
- ] = None,
214
- on_mouse_over: Optional[
215
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
216
- ] = None,
217
- on_mouse_up: Optional[
218
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
219
- ] = None,
220
- on_scroll: Optional[
221
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
222
- ] = None,
223
- on_unmount: Optional[
224
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
225
- ] = None,
226
- **props,
227
- ) -> "FormControl":
228
- """Create a form control component.
229
-
230
- Args:
231
- *children: The children of the form control.
232
- label: The label of the form control.
233
- input: The input of the form control.
234
- help_text: The help text of the form control.
235
- error_message: The error message of the form control.
236
- is_disabled: If true, the form control will be disabled.
237
- is_invalid: If true, the form control will be invalid.
238
- is_read_only: If true, the form control will be readonly
239
- is_required: If true, the form control will be required.
240
- style: The style of the component.
241
- key: A unique key for the component.
242
- id: The id for the component.
243
- class_name: The class name for the component.
244
- autofocus: Whether the component should take the focus once the page is loaded
245
- custom_attrs: custom attribute
246
- **props: The properties of the form control.
247
-
248
- Raises:
249
- AttributeError: raise an error if missing required kwargs.
250
-
251
- Returns:
252
- The form control component.
253
- """
254
- ...
255
-
256
- class FormHelperText(ChakraComponent):
257
- @overload
258
- @classmethod
259
- def create( # type: ignore
260
- cls,
261
- *children,
262
- style: Optional[Style] = None,
263
- key: Optional[Any] = None,
264
- id: Optional[Any] = None,
265
- class_name: Optional[Any] = None,
266
- autofocus: Optional[bool] = None,
267
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
268
- on_blur: Optional[
269
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
270
- ] = None,
271
- on_click: Optional[
272
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
273
- ] = None,
274
- on_context_menu: Optional[
275
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
276
- ] = None,
277
- on_double_click: Optional[
278
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
279
- ] = None,
280
- on_focus: Optional[
281
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
282
- ] = None,
283
- on_mount: Optional[
284
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
285
- ] = None,
286
- on_mouse_down: Optional[
287
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
288
- ] = None,
289
- on_mouse_enter: Optional[
290
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
291
- ] = None,
292
- on_mouse_leave: Optional[
293
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
294
- ] = None,
295
- on_mouse_move: Optional[
296
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
297
- ] = None,
298
- on_mouse_out: Optional[
299
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
300
- ] = None,
301
- on_mouse_over: Optional[
302
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
303
- ] = None,
304
- on_mouse_up: Optional[
305
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
306
- ] = None,
307
- on_scroll: Optional[
308
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
309
- ] = None,
310
- on_unmount: Optional[
311
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
312
- ] = None,
313
- **props,
314
- ) -> "FormHelperText":
315
- """Create the component.
316
-
317
- Args:
318
- *children: The children of the component.
319
- style: The style of the component.
320
- key: A unique key for the component.
321
- id: The id for the component.
322
- class_name: The class name for the component.
323
- autofocus: Whether the component should take the focus once the page is loaded
324
- custom_attrs: custom attribute
325
- **props: The props of the component.
326
-
327
- Returns:
328
- The component.
329
- """
330
- ...
331
-
332
- class FormLabel(ChakraComponent):
333
- @overload
334
- @classmethod
335
- def create( # type: ignore
336
- cls,
337
- *children,
338
- html_for: Optional[Union[Var[str], str]] = None,
339
- style: Optional[Style] = None,
340
- key: Optional[Any] = None,
341
- id: Optional[Any] = None,
342
- class_name: Optional[Any] = None,
343
- autofocus: Optional[bool] = None,
344
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
345
- on_blur: Optional[
346
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
347
- ] = None,
348
- on_click: Optional[
349
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
350
- ] = None,
351
- on_context_menu: Optional[
352
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
353
- ] = None,
354
- on_double_click: Optional[
355
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
356
- ] = None,
357
- on_focus: Optional[
358
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
359
- ] = None,
360
- on_mount: Optional[
361
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
362
- ] = None,
363
- on_mouse_down: Optional[
364
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
365
- ] = None,
366
- on_mouse_enter: Optional[
367
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
368
- ] = None,
369
- on_mouse_leave: Optional[
370
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
371
- ] = None,
372
- on_mouse_move: Optional[
373
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
374
- ] = None,
375
- on_mouse_out: Optional[
376
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
377
- ] = None,
378
- on_mouse_over: Optional[
379
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
380
- ] = None,
381
- on_mouse_up: Optional[
382
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
383
- ] = None,
384
- on_scroll: Optional[
385
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
386
- ] = None,
387
- on_unmount: Optional[
388
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
389
- ] = None,
390
- **props,
391
- ) -> "FormLabel":
392
- """Create the component.
393
-
394
- Args:
395
- *children: The children of the component.
396
- html_for: Link
397
- style: The style of the component.
398
- key: A unique key for the component.
399
- id: The id for the component.
400
- class_name: The class name for the component.
401
- autofocus: Whether the component should take the focus once the page is loaded
402
- custom_attrs: custom attribute
403
- **props: The props of the component.
404
-
405
- Returns:
406
- The component.
407
- """
408
- ...
409
-
410
- class FormErrorMessage(ChakraComponent):
411
- @overload
412
- @classmethod
413
- def create( # type: ignore
414
- cls,
415
- *children,
416
- style: Optional[Style] = None,
417
- key: Optional[Any] = None,
418
- id: Optional[Any] = None,
419
- class_name: Optional[Any] = None,
420
- autofocus: Optional[bool] = None,
421
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
422
- on_blur: Optional[
423
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
424
- ] = None,
425
- on_click: Optional[
426
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
427
- ] = None,
428
- on_context_menu: Optional[
429
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
430
- ] = None,
431
- on_double_click: Optional[
432
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
433
- ] = None,
434
- on_focus: Optional[
435
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
436
- ] = None,
437
- on_mount: Optional[
438
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
439
- ] = None,
440
- on_mouse_down: Optional[
441
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
442
- ] = None,
443
- on_mouse_enter: Optional[
444
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
445
- ] = None,
446
- on_mouse_leave: Optional[
447
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
448
- ] = None,
449
- on_mouse_move: Optional[
450
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
451
- ] = None,
452
- on_mouse_out: Optional[
453
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
454
- ] = None,
455
- on_mouse_over: Optional[
456
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
457
- ] = None,
458
- on_mouse_up: Optional[
459
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
460
- ] = None,
461
- on_scroll: Optional[
462
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
463
- ] = None,
464
- on_unmount: Optional[
465
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
466
- ] = None,
467
- **props,
468
- ) -> "FormErrorMessage":
469
- """Create the component.
470
-
471
- Args:
472
- *children: The children of the component.
473
- style: The style of the component.
474
- key: A unique key for the component.
475
- id: The id for the component.
476
- class_name: The class name for the component.
477
- autofocus: Whether the component should take the focus once the page is loaded
478
- custom_attrs: custom attribute
479
- **props: The props of the component.
480
-
481
- Returns:
482
- The component.
483
- """
484
- ...
@@ -1,38 +0,0 @@
1
- """An icon button component."""
2
-
3
- from typing import Optional
4
-
5
- from reflex.components.chakra.typography.text import Text
6
- from reflex.components.component import Component
7
- from reflex.vars import Var
8
-
9
-
10
- class IconButton(Text):
11
- """A button with an icon."""
12
-
13
- tag = "IconButton"
14
- library = "@chakra-ui/button@2.1.0"
15
-
16
- # The type of button.
17
- type: Var[str]
18
-
19
- # A label that describes the button
20
- aria_label: Var[str]
21
-
22
- # The icon to be used in the button.
23
- icon: Optional[Component]
24
-
25
- # If true, the button will be styled in its active state.
26
- is_active: Var[bool]
27
-
28
- # If true, the button will be disabled.
29
- is_disabled: Var[bool]
30
-
31
- # If true, the button will show a spinner.
32
- is_loading: Var[bool]
33
-
34
- # If true, the button will be perfectly round. Else, it'll be slightly round
35
- is_round: Var[bool]
36
-
37
- # Replace the spinner component when isLoading is set to true
38
- spinner: Var[str]
@@ -1,108 +0,0 @@
1
- """Stub file for reflex/components/chakra/forms/iconbutton.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.typography.text import Text
9
- from reflex.components.component import Component
10
- from reflex.event import EventHandler, EventSpec
11
- from reflex.style import Style
12
- from reflex.vars import BaseVar, Var
13
-
14
- class IconButton(Text):
15
- @overload
16
- @classmethod
17
- def create( # type: ignore
18
- cls,
19
- *children,
20
- type: Optional[Union[Var[str], str]] = None,
21
- aria_label: Optional[Union[Var[str], str]] = None,
22
- icon: Optional[Component] = None,
23
- is_active: Optional[Union[Var[bool], bool]] = None,
24
- is_disabled: Optional[Union[Var[bool], bool]] = None,
25
- is_loading: Optional[Union[Var[bool], bool]] = None,
26
- is_round: Optional[Union[Var[bool], bool]] = None,
27
- spinner: Optional[Union[Var[str], str]] = None,
28
- as_: Optional[Union[Var[str], str]] = None,
29
- no_of_lines: Optional[Union[Var[int], int]] = None,
30
- style: Optional[Style] = None,
31
- key: Optional[Any] = None,
32
- id: Optional[Any] = None,
33
- class_name: Optional[Any] = None,
34
- autofocus: Optional[bool] = None,
35
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
36
- on_blur: Optional[
37
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
38
- ] = None,
39
- on_click: Optional[
40
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
41
- ] = None,
42
- on_context_menu: Optional[
43
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
44
- ] = None,
45
- on_double_click: Optional[
46
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
47
- ] = None,
48
- on_focus: Optional[
49
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
50
- ] = None,
51
- on_mount: Optional[
52
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
53
- ] = None,
54
- on_mouse_down: Optional[
55
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
56
- ] = None,
57
- on_mouse_enter: Optional[
58
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
59
- ] = None,
60
- on_mouse_leave: Optional[
61
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
62
- ] = None,
63
- on_mouse_move: Optional[
64
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
65
- ] = None,
66
- on_mouse_out: Optional[
67
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
68
- ] = None,
69
- on_mouse_over: Optional[
70
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
71
- ] = None,
72
- on_mouse_up: Optional[
73
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
74
- ] = None,
75
- on_scroll: Optional[
76
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
77
- ] = None,
78
- on_unmount: Optional[
79
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
80
- ] = None,
81
- **props,
82
- ) -> "IconButton":
83
- """Create the component.
84
-
85
- Args:
86
- *children: The children of the component.
87
- type: The type of button.
88
- aria_label: A label that describes the button
89
- icon: The icon to be used in the button.
90
- is_active: If true, the button will be styled in its active state.
91
- is_disabled: If true, the button will be disabled.
92
- is_loading: If true, the button will show a spinner.
93
- is_round: If true, the button will be perfectly round. Else, it'll be slightly round
94
- spinner: Replace the spinner component when isLoading is set to true
95
- as_: Override the tag. The default tag is `<p>`.
96
- no_of_lines: Truncate text after a specific number of lines. It will render an ellipsis when the text exceeds the width of the viewport or max_width prop.
97
- style: The style of the component.
98
- key: A unique key for the component.
99
- id: The id for the component.
100
- class_name: The class name for the component.
101
- autofocus: Whether the component should take the focus once the page is loaded
102
- custom_attrs: custom attribute
103
- **props: The props of the component.
104
-
105
- Returns:
106
- The component.
107
- """
108
- ...