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,197 +0,0 @@
1
- """Stub file for reflex/components/chakra/forms/radio.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.chakra.typography.text import Text
10
- from reflex.event import EventHandler, EventSpec
11
- from reflex.style import Style
12
- from reflex.vars import BaseVar, Var
13
-
14
- class RadioGroup(ChakraComponent):
15
- @overload
16
- @classmethod
17
- def create( # type: ignore
18
- cls,
19
- *children,
20
- value: Optional[Union[Var[Any], Any]] = None,
21
- default_value: Optional[Union[Var[Any], Any]] = None,
22
- name: Optional[Union[Var[str], str]] = None,
23
- style: Optional[Style] = None,
24
- key: Optional[Any] = None,
25
- id: Optional[Any] = None,
26
- class_name: Optional[Any] = None,
27
- autofocus: Optional[bool] = None,
28
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
29
- on_blur: Optional[
30
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
31
- ] = None,
32
- on_change: Optional[
33
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
34
- ] = None,
35
- on_click: Optional[
36
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
37
- ] = None,
38
- on_context_menu: Optional[
39
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
40
- ] = None,
41
- on_double_click: Optional[
42
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
43
- ] = None,
44
- on_focus: Optional[
45
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
46
- ] = None,
47
- on_mount: Optional[
48
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
49
- ] = None,
50
- on_mouse_down: Optional[
51
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
52
- ] = None,
53
- on_mouse_enter: Optional[
54
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
55
- ] = None,
56
- on_mouse_leave: Optional[
57
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
58
- ] = None,
59
- on_mouse_move: Optional[
60
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
61
- ] = None,
62
- on_mouse_out: Optional[
63
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
64
- ] = None,
65
- on_mouse_over: Optional[
66
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
67
- ] = None,
68
- on_mouse_up: Optional[
69
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
70
- ] = None,
71
- on_scroll: Optional[
72
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
73
- ] = None,
74
- on_unmount: Optional[
75
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
76
- ] = None,
77
- **props,
78
- ) -> "RadioGroup":
79
- """Create a radio group component.
80
-
81
- Args:
82
- *children: The children of the component.
83
- value: State var to bind the input.
84
- default_value: The default value.
85
- name: The name of the form field
86
- style: The style of the component.
87
- key: A unique key for the component.
88
- id: The id for the component.
89
- class_name: The class name for the component.
90
- autofocus: Whether the component should take the focus once the page is loaded
91
- custom_attrs: custom attribute
92
- **props: The props of the component.
93
-
94
- Returns:
95
- The component.
96
- """
97
- ...
98
-
99
- class Radio(Text):
100
- @overload
101
- @classmethod
102
- def create( # type: ignore
103
- cls,
104
- *children,
105
- value: Optional[Union[Var[Any], Any]] = None,
106
- default_value: Optional[Union[Var[Any], Any]] = None,
107
- color_scheme: Optional[Union[Var[str], str]] = None,
108
- default_checked: Optional[Union[Var[bool], bool]] = None,
109
- is_checked: Optional[Union[Var[bool], bool]] = None,
110
- is_disabled: Optional[Union[Var[bool], bool]] = None,
111
- is_invalid: Optional[Union[Var[bool], bool]] = None,
112
- is_read_only: Optional[Union[Var[bool], bool]] = None,
113
- is_required: Optional[Union[Var[bool], bool]] = None,
114
- as_: Optional[Union[Var[str], str]] = None,
115
- no_of_lines: Optional[Union[Var[int], int]] = None,
116
- style: Optional[Style] = None,
117
- key: Optional[Any] = None,
118
- id: Optional[Any] = None,
119
- class_name: Optional[Any] = None,
120
- autofocus: Optional[bool] = None,
121
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
122
- on_blur: Optional[
123
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
124
- ] = None,
125
- on_click: Optional[
126
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
127
- ] = None,
128
- on_context_menu: Optional[
129
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
130
- ] = None,
131
- on_double_click: Optional[
132
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
133
- ] = None,
134
- on_focus: Optional[
135
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
136
- ] = None,
137
- on_mount: Optional[
138
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
139
- ] = None,
140
- on_mouse_down: Optional[
141
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
142
- ] = None,
143
- on_mouse_enter: Optional[
144
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
145
- ] = None,
146
- on_mouse_leave: Optional[
147
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
148
- ] = None,
149
- on_mouse_move: Optional[
150
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
151
- ] = None,
152
- on_mouse_out: Optional[
153
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
154
- ] = None,
155
- on_mouse_over: Optional[
156
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
157
- ] = None,
158
- on_mouse_up: Optional[
159
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
160
- ] = None,
161
- on_scroll: Optional[
162
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
163
- ] = None,
164
- on_unmount: Optional[
165
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
166
- ] = None,
167
- **props,
168
- ) -> "Radio":
169
- """Create a radio component.
170
-
171
- By default, the value is bound to the first child.
172
-
173
- Args:
174
- *children: The children of the component.
175
- value: Value of radio.
176
- default_value: The default value.
177
- color_scheme: The color scheme.
178
- default_checked: If true, the radio will be initially checked.
179
- is_checked: If true, the radio will be checked. You'll need to pass onChange to update its value (since it is now controlled)
180
- is_disabled: If true, the radio will be disabled.
181
- is_invalid: If true, the radio button will be invalid. This also sets `aria-invalid` to true.
182
- is_read_only: If true, the radio will be read-only
183
- is_required: If true, the radio button will be required. This also sets `aria-required` to true.
184
- as_: Override the tag. The default tag is `<p>`.
185
- 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.
186
- style: The style of the component.
187
- key: A unique key for the component.
188
- id: The id for the component.
189
- class_name: The class name for the component.
190
- autofocus: Whether the component should take the focus once the page is loaded
191
- custom_attrs: custom attribute
192
- **props: The props of the component.
193
-
194
- Returns:
195
- The radio component.
196
- """
197
- ...
@@ -1,149 +0,0 @@
1
- """A range slider component."""
2
-
3
- from __future__ import annotations
4
-
5
- from typing import List, Optional
6
-
7
- from reflex.components.chakra import ChakraComponent, LiteralChakraDirection
8
- from reflex.components.component import Component
9
- from reflex.event import EventHandler
10
- from reflex.utils import format
11
- from reflex.vars import Var
12
-
13
-
14
- class RangeSlider(ChakraComponent):
15
- """The RangeSlider is a multi thumb slider used to select a range of related values. A common use-case of this component is a price range picker that allows a user to set the minimum and maximum price."""
16
-
17
- tag = "RangeSlider"
18
-
19
- # State var to bind the input.
20
- value: Var[List[int]]
21
-
22
- # The default values.
23
- default_value: Var[List[int]]
24
-
25
- # The writing mode ("ltr" | "rtl")
26
- direction: Var[LiteralChakraDirection]
27
-
28
- # If false, the slider handle will not capture focus when value changes.
29
- focus_thumb_on_change: Var[bool]
30
-
31
- # If true, the slider will be disabled
32
- is_disabled: Var[bool]
33
-
34
- # If true, the slider will be in `read-only` state.
35
- is_read_only: Var[bool]
36
-
37
- # If true, the value will be incremented or decremented in reverse.
38
- is_reversed: Var[bool]
39
-
40
- # The minimum value of the slider.
41
- min_: Var[int]
42
-
43
- # The maximum value of the slider.
44
- max_: Var[int]
45
-
46
- # The minimum distance between slider thumbs. Useful for preventing the thumbs from being too close together.
47
- min_steps_between_thumbs: Var[int]
48
-
49
- # The name of the form field
50
- name: Var[str]
51
-
52
- # Fired when the value changes.
53
- on_change: EventHandler[lambda e0: [e0]]
54
-
55
- # Fired when the value starts changing.
56
- on_change_start: EventHandler[lambda e0: [e0]]
57
-
58
- # Fired when the value stops changing.
59
- on_change_end: EventHandler[lambda e0: [e0]]
60
-
61
- def get_ref(self):
62
- """Get the ref of the component.
63
-
64
- Returns:
65
- The ref of the component.
66
- """
67
- return None
68
-
69
- def _get_ref_hook(self) -> Optional[str]:
70
- """Override the base _get_ref_hook to handle array refs.
71
-
72
- Returns:
73
- The overrided hooks.
74
- """
75
- if self.id:
76
- ref = format.format_array_ref(self.id, None)
77
- if ref:
78
- return (
79
- f"const {ref} = Array.from({{length:2}}, () => useRef(null)); "
80
- f"{str(Var.create_safe(ref, _var_is_string=False).as_ref())} = {ref}"
81
- )
82
- return super()._get_ref_hook()
83
-
84
- @classmethod
85
- def create(cls, *children, **props) -> Component:
86
- """Create a RangeSlider component.
87
-
88
- If no children are provided, a default RangeSlider will be created.
89
-
90
- Args:
91
- *children: The children of the component.
92
- **props: The properties of the component.
93
-
94
- Returns:
95
- The RangeSlider component.
96
- """
97
- if len(children) == 0:
98
- _id = props.get("id", None)
99
- if _id:
100
- children = [
101
- RangeSliderTrack.create(
102
- RangeSliderFilledTrack.create(),
103
- ),
104
- RangeSliderThumb.create(index=0, id=_id),
105
- RangeSliderThumb.create(index=1, id=_id),
106
- ]
107
- else:
108
- children = [
109
- RangeSliderTrack.create(
110
- RangeSliderFilledTrack.create(),
111
- ),
112
- RangeSliderThumb.create(index=0),
113
- RangeSliderThumb.create(index=1),
114
- ]
115
- return super().create(*children, **props)
116
-
117
-
118
- class RangeSliderTrack(ChakraComponent):
119
- """A range slider track."""
120
-
121
- tag = "RangeSliderTrack"
122
-
123
-
124
- class RangeSliderFilledTrack(ChakraComponent):
125
- """A filled range slider track."""
126
-
127
- tag = "RangeSliderFilledTrack"
128
-
129
-
130
- class RangeSliderThumb(ChakraComponent):
131
- """A range slider thumb."""
132
-
133
- tag = "RangeSliderThumb"
134
-
135
- # The position of the thumb.
136
- index: Var[int]
137
-
138
- def _get_ref_hook(self) -> Optional[str]:
139
- # hook is None because RangeSlider is handling it.
140
- return None
141
-
142
- def get_ref(self):
143
- """Get an array ref for the range slider thumb.
144
-
145
- Returns:
146
- The array ref.
147
- """
148
- if self.id:
149
- return format.format_array_ref(self.id, self.index)
@@ -1,354 +0,0 @@
1
- """Stub file for reflex/components/chakra/forms/rangeslider.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, List, Literal, 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 RangeSlider(ChakraComponent):
14
- def get_ref(self): ...
15
- @overload
16
- @classmethod
17
- def create( # type: ignore
18
- cls,
19
- *children,
20
- value: Optional[Union[Var[List[int]], List[int]]] = None,
21
- default_value: Optional[Union[Var[List[int]], List[int]]] = None,
22
- direction: Optional[
23
- Union[Var[Literal["ltr", "rtl"]], Literal["ltr", "rtl"]]
24
- ] = None,
25
- focus_thumb_on_change: Optional[Union[Var[bool], bool]] = None,
26
- is_disabled: Optional[Union[Var[bool], bool]] = None,
27
- is_read_only: Optional[Union[Var[bool], bool]] = None,
28
- is_reversed: Optional[Union[Var[bool], bool]] = None,
29
- min_: Optional[Union[Var[int], int]] = None,
30
- max_: Optional[Union[Var[int], int]] = None,
31
- min_steps_between_thumbs: Optional[Union[Var[int], int]] = None,
32
- name: Optional[Union[Var[str], str]] = None,
33
- style: Optional[Style] = None,
34
- key: Optional[Any] = None,
35
- id: Optional[Any] = None,
36
- class_name: Optional[Any] = None,
37
- autofocus: Optional[bool] = None,
38
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
39
- on_blur: Optional[
40
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
41
- ] = None,
42
- on_change: Optional[
43
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
44
- ] = None,
45
- on_change_end: Optional[
46
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
47
- ] = None,
48
- on_change_start: 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_mount: Optional[
64
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
65
- ] = None,
66
- on_mouse_down: Optional[
67
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
68
- ] = None,
69
- on_mouse_enter: Optional[
70
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
71
- ] = None,
72
- on_mouse_leave: Optional[
73
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
74
- ] = None,
75
- on_mouse_move: Optional[
76
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
77
- ] = None,
78
- on_mouse_out: Optional[
79
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
80
- ] = None,
81
- on_mouse_over: Optional[
82
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
83
- ] = None,
84
- on_mouse_up: Optional[
85
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
86
- ] = None,
87
- on_scroll: Optional[
88
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
89
- ] = None,
90
- on_unmount: Optional[
91
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
92
- ] = None,
93
- **props,
94
- ) -> "RangeSlider":
95
- """Create a RangeSlider component.
96
-
97
- If no children are provided, a default RangeSlider will be created.
98
-
99
- Args:
100
- *children: The children of the component.
101
- value: State var to bind the input.
102
- default_value: The default values.
103
- direction: The writing mode ("ltr" | "rtl")
104
- focus_thumb_on_change: If false, the slider handle will not capture focus when value changes.
105
- is_disabled: If true, the slider will be disabled
106
- is_read_only: If true, the slider will be in `read-only` state.
107
- is_reversed: If true, the value will be incremented or decremented in reverse.
108
- min_: The minimum value of the slider.
109
- max_: The maximum value of the slider.
110
- min_steps_between_thumbs: The minimum distance between slider thumbs. Useful for preventing the thumbs from being too close together.
111
- name: The name of the form field
112
- style: The style of the component.
113
- key: A unique key for the component.
114
- id: The id for the component.
115
- class_name: The class name for the component.
116
- autofocus: Whether the component should take the focus once the page is loaded
117
- custom_attrs: custom attribute
118
- **props: The properties of the component.
119
-
120
- Returns:
121
- The RangeSlider component.
122
- """
123
- ...
124
-
125
- class RangeSliderTrack(ChakraComponent):
126
- @overload
127
- @classmethod
128
- def create( # type: ignore
129
- cls,
130
- *children,
131
- style: Optional[Style] = None,
132
- key: Optional[Any] = None,
133
- id: Optional[Any] = None,
134
- class_name: Optional[Any] = None,
135
- autofocus: Optional[bool] = None,
136
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
137
- on_blur: Optional[
138
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
139
- ] = None,
140
- on_click: Optional[
141
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
142
- ] = None,
143
- on_context_menu: Optional[
144
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
145
- ] = None,
146
- on_double_click: Optional[
147
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
148
- ] = None,
149
- on_focus: Optional[
150
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
151
- ] = None,
152
- on_mount: Optional[
153
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
154
- ] = None,
155
- on_mouse_down: Optional[
156
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
157
- ] = None,
158
- on_mouse_enter: Optional[
159
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
160
- ] = None,
161
- on_mouse_leave: Optional[
162
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
163
- ] = None,
164
- on_mouse_move: Optional[
165
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
166
- ] = None,
167
- on_mouse_out: Optional[
168
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
169
- ] = None,
170
- on_mouse_over: Optional[
171
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
172
- ] = None,
173
- on_mouse_up: Optional[
174
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
175
- ] = None,
176
- on_scroll: Optional[
177
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
178
- ] = None,
179
- on_unmount: Optional[
180
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
181
- ] = None,
182
- **props,
183
- ) -> "RangeSliderTrack":
184
- """Create the component.
185
-
186
- Args:
187
- *children: The children of the component.
188
- style: The style of the component.
189
- key: A unique key for the component.
190
- id: The id for the component.
191
- class_name: The class name for the component.
192
- autofocus: Whether the component should take the focus once the page is loaded
193
- custom_attrs: custom attribute
194
- **props: The props of the component.
195
-
196
- Returns:
197
- The component.
198
- """
199
- ...
200
-
201
- class RangeSliderFilledTrack(ChakraComponent):
202
- @overload
203
- @classmethod
204
- def create( # type: ignore
205
- cls,
206
- *children,
207
- style: Optional[Style] = None,
208
- key: Optional[Any] = None,
209
- id: Optional[Any] = None,
210
- class_name: Optional[Any] = None,
211
- autofocus: Optional[bool] = None,
212
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
213
- on_blur: Optional[
214
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
215
- ] = None,
216
- on_click: Optional[
217
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
218
- ] = None,
219
- on_context_menu: Optional[
220
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
221
- ] = None,
222
- on_double_click: Optional[
223
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
224
- ] = None,
225
- on_focus: Optional[
226
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
227
- ] = None,
228
- on_mount: Optional[
229
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
230
- ] = None,
231
- on_mouse_down: Optional[
232
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
233
- ] = None,
234
- on_mouse_enter: Optional[
235
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
236
- ] = None,
237
- on_mouse_leave: Optional[
238
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
239
- ] = None,
240
- on_mouse_move: Optional[
241
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
242
- ] = None,
243
- on_mouse_out: Optional[
244
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
245
- ] = None,
246
- on_mouse_over: Optional[
247
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
248
- ] = None,
249
- on_mouse_up: Optional[
250
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
251
- ] = None,
252
- on_scroll: Optional[
253
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
254
- ] = None,
255
- on_unmount: Optional[
256
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
257
- ] = None,
258
- **props,
259
- ) -> "RangeSliderFilledTrack":
260
- """Create the component.
261
-
262
- Args:
263
- *children: The children of the component.
264
- style: The style of the component.
265
- key: A unique key for the component.
266
- id: The id for the component.
267
- class_name: The class name for the component.
268
- autofocus: Whether the component should take the focus once the page is loaded
269
- custom_attrs: custom attribute
270
- **props: The props of the component.
271
-
272
- Returns:
273
- The component.
274
- """
275
- ...
276
-
277
- class RangeSliderThumb(ChakraComponent):
278
- def get_ref(self): ...
279
- @overload
280
- @classmethod
281
- def create( # type: ignore
282
- cls,
283
- *children,
284
- index: Optional[Union[Var[int], int]] = None,
285
- style: Optional[Style] = None,
286
- key: Optional[Any] = None,
287
- id: Optional[Any] = None,
288
- class_name: Optional[Any] = None,
289
- autofocus: Optional[bool] = None,
290
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
291
- on_blur: Optional[
292
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
293
- ] = None,
294
- on_click: Optional[
295
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
296
- ] = None,
297
- on_context_menu: Optional[
298
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
299
- ] = None,
300
- on_double_click: Optional[
301
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
302
- ] = None,
303
- on_focus: Optional[
304
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
305
- ] = None,
306
- on_mount: Optional[
307
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
308
- ] = None,
309
- on_mouse_down: Optional[
310
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
311
- ] = None,
312
- on_mouse_enter: Optional[
313
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
314
- ] = None,
315
- on_mouse_leave: Optional[
316
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
317
- ] = None,
318
- on_mouse_move: Optional[
319
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
320
- ] = None,
321
- on_mouse_out: Optional[
322
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
323
- ] = None,
324
- on_mouse_over: Optional[
325
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
326
- ] = None,
327
- on_mouse_up: Optional[
328
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
329
- ] = None,
330
- on_scroll: Optional[
331
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
332
- ] = None,
333
- on_unmount: Optional[
334
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
335
- ] = None,
336
- **props,
337
- ) -> "RangeSliderThumb":
338
- """Create the component.
339
-
340
- Args:
341
- *children: The children of the component.
342
- index: The position of the thumb.
343
- style: The style of the component.
344
- key: A unique key for the component.
345
- id: The id for the component.
346
- class_name: The class name for the component.
347
- autofocus: Whether the component should take the focus once the page is loaded
348
- custom_attrs: custom attribute
349
- **props: The props of the component.
350
-
351
- Returns:
352
- The component.
353
- """
354
- ...