reflex 0.7.1a3__py3-none-any.whl → 0.7.2a1__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 (226) hide show
  1. reflex/.templates/jinja/web/utils/context.js.jinja2 +8 -8
  2. reflex/.templates/web/components/reflex/radix_themes_color_mode_provider.js +3 -3
  3. reflex/admin.py +1 -2
  4. reflex/app.py +53 -50
  5. reflex/app_mixins/lifespan.py +2 -2
  6. reflex/app_mixins/middleware.py +1 -2
  7. reflex/assets.py +1 -2
  8. reflex/base.py +2 -2
  9. reflex/compiler/compiler.py +51 -16
  10. reflex/compiler/utils.py +4 -13
  11. reflex/components/base/app_wrap.pyi +7 -7
  12. reflex/components/base/bare.py +3 -3
  13. reflex/components/base/body.pyi +7 -7
  14. reflex/components/base/document.py +1 -3
  15. reflex/components/base/document.pyi +32 -32
  16. reflex/components/base/error_boundary.py +2 -4
  17. reflex/components/base/error_boundary.pyi +11 -13
  18. reflex/components/base/fragment.pyi +7 -7
  19. reflex/components/base/head.pyi +13 -13
  20. reflex/components/base/link.pyi +22 -22
  21. reflex/components/base/meta.py +5 -7
  22. reflex/components/base/meta.pyi +40 -40
  23. reflex/components/base/script.pyi +11 -14
  24. reflex/components/base/strict_mode.pyi +7 -7
  25. reflex/components/component.py +188 -113
  26. reflex/components/core/auto_scroll.py +8 -1
  27. reflex/components/core/auto_scroll.pyi +183 -210
  28. reflex/components/core/banner.py +2 -4
  29. reflex/components/core/banner.pyi +390 -444
  30. reflex/components/core/breakpoints.py +5 -5
  31. reflex/components/core/client_side_routing.pyi +14 -14
  32. reflex/components/core/clipboard.py +4 -4
  33. reflex/components/core/clipboard.pyi +12 -14
  34. reflex/components/core/cond.py +17 -25
  35. reflex/components/core/debounce.py +3 -3
  36. reflex/components/core/debounce.pyi +14 -14
  37. reflex/components/core/foreach.py +7 -2
  38. reflex/components/core/html.py +1 -3
  39. reflex/components/core/html.pyi +184 -213
  40. reflex/components/core/match.py +15 -19
  41. reflex/components/core/sticky.pyi +930 -1078
  42. reflex/components/core/upload.py +4 -4
  43. reflex/components/core/upload.pyi +62 -62
  44. reflex/components/datadisplay/code.py +6 -6
  45. reflex/components/datadisplay/code.pyi +1159 -1165
  46. reflex/components/datadisplay/dataeditor.py +49 -49
  47. reflex/components/datadisplay/dataeditor.pyi +95 -123
  48. reflex/components/datadisplay/logo.py +1 -3
  49. reflex/components/datadisplay/shiki_code_block.py +8 -10
  50. reflex/components/datadisplay/shiki_code_block.pyi +1678 -1720
  51. reflex/components/el/element.pyi +7 -7
  52. reflex/components/el/elements/base.pyi +183 -210
  53. reflex/components/el/elements/forms.py +23 -23
  54. reflex/components/el/elements/forms.pyi +2571 -2933
  55. reflex/components/el/elements/inline.py +4 -4
  56. reflex/components/el/elements/inline.pyi +5191 -5953
  57. reflex/components/el/elements/media.py +47 -47
  58. reflex/components/el/elements/media.pyi +4802 -5500
  59. reflex/components/el/elements/metadata.py +1 -3
  60. reflex/components/el/elements/metadata.pyi +782 -896
  61. reflex/components/el/elements/other.pyi +1278 -1467
  62. reflex/components/el/elements/scripts.pyi +580 -667
  63. reflex/components/el/elements/sectioning.pyi +2761 -3166
  64. reflex/components/el/elements/tables.pyi +1840 -2119
  65. reflex/components/el/elements/typography.pyi +2772 -3179
  66. reflex/components/gridjs/datatable.py +7 -7
  67. reflex/components/gridjs/datatable.pyi +19 -19
  68. reflex/components/lucide/icon.pyi +21 -21
  69. reflex/components/markdown/markdown.py +2 -2
  70. reflex/components/markdown/markdown.pyi +9 -9
  71. reflex/components/moment/moment.py +11 -12
  72. reflex/components/moment/moment.pyi +44 -47
  73. reflex/components/next/base.pyi +7 -7
  74. reflex/components/next/image.py +3 -3
  75. reflex/components/next/image.pyi +19 -21
  76. reflex/components/next/link.pyi +9 -9
  77. reflex/components/next/video.py +1 -3
  78. reflex/components/next/video.pyi +9 -9
  79. reflex/components/plotly/plotly.py +22 -45
  80. reflex/components/plotly/plotly.pyi +164 -164
  81. reflex/components/radix/primitives/accordion.py +14 -14
  82. reflex/components/radix/primitives/accordion.pyi +439 -487
  83. reflex/components/radix/primitives/base.py +1 -3
  84. reflex/components/radix/primitives/base.pyi +15 -15
  85. reflex/components/radix/primitives/drawer.py +3 -3
  86. reflex/components/radix/primitives/drawer.pyi +110 -116
  87. reflex/components/radix/primitives/form.py +1 -1
  88. reflex/components/radix/primitives/form.pyi +668 -752
  89. reflex/components/radix/primitives/progress.py +6 -6
  90. reflex/components/radix/primitives/progress.pyi +225 -243
  91. reflex/components/radix/primitives/slider.py +6 -6
  92. reflex/components/radix/primitives/slider.pyi +52 -55
  93. reflex/components/radix/themes/base.py +3 -6
  94. reflex/components/radix/themes/base.pyi +197 -303
  95. reflex/components/radix/themes/color_mode.py +5 -5
  96. reflex/components/radix/themes/color_mode.pyi +366 -436
  97. reflex/components/radix/themes/components/alert_dialog.pyi +229 -262
  98. reflex/components/radix/themes/components/aspect_ratio.py +1 -3
  99. reflex/components/radix/themes/components/aspect_ratio.pyi +8 -8
  100. reflex/components/radix/themes/components/avatar.pyi +79 -94
  101. reflex/components/radix/themes/components/badge.pyi +252 -295
  102. reflex/components/radix/themes/components/button.pyi +269 -314
  103. reflex/components/radix/themes/components/callout.py +2 -2
  104. reflex/components/radix/themes/components/callout.pyi +1116 -1290
  105. reflex/components/radix/themes/components/card.pyi +194 -229
  106. reflex/components/radix/themes/components/checkbox.pyi +243 -278
  107. reflex/components/radix/themes/components/checkbox_cards.py +3 -7
  108. reflex/components/radix/themes/components/checkbox_cards.pyi +101 -135
  109. reflex/components/radix/themes/components/checkbox_group.py +2 -2
  110. reflex/components/radix/themes/components/checkbox_group.pyi +83 -96
  111. reflex/components/radix/themes/components/context_menu.py +18 -15
  112. reflex/components/radix/themes/components/context_menu.pyi +408 -458
  113. reflex/components/radix/themes/components/data_list.pyi +122 -147
  114. reflex/components/radix/themes/components/dialog.pyi +231 -264
  115. reflex/components/radix/themes/components/dropdown_menu.py +16 -13
  116. reflex/components/radix/themes/components/dropdown_menu.pyi +223 -246
  117. reflex/components/radix/themes/components/hover_card.py +2 -2
  118. reflex/components/radix/themes/components/hover_card.pyi +237 -282
  119. reflex/components/radix/themes/components/icon_button.pyi +269 -314
  120. reflex/components/radix/themes/components/inset.py +8 -8
  121. reflex/components/radix/themes/components/inset.pyi +232 -292
  122. reflex/components/radix/themes/components/popover.py +2 -2
  123. reflex/components/radix/themes/components/popover.pyi +229 -271
  124. reflex/components/radix/themes/components/progress.pyi +80 -96
  125. reflex/components/radix/themes/components/radio.pyi +73 -86
  126. reflex/components/radix/themes/components/radio_cards.py +4 -8
  127. reflex/components/radix/themes/components/radio_cards.pyi +117 -154
  128. reflex/components/radix/themes/components/radio_group.py +3 -3
  129. reflex/components/radix/themes/components/radio_group.pyi +250 -291
  130. reflex/components/radix/themes/components/scroll_area.pyi +14 -20
  131. reflex/components/radix/themes/components/segmented_control.py +6 -6
  132. reflex/components/radix/themes/components/segmented_control.pyi +89 -108
  133. reflex/components/radix/themes/components/select.py +7 -7
  134. reflex/components/radix/themes/components/select.pyi +376 -444
  135. reflex/components/radix/themes/components/separator.pyi +79 -93
  136. reflex/components/radix/themes/components/skeleton.pyi +32 -26
  137. reflex/components/radix/themes/components/slider.py +8 -8
  138. reflex/components/radix/themes/components/slider.pyi +99 -122
  139. reflex/components/radix/themes/components/spinner.pyi +12 -19
  140. reflex/components/radix/themes/components/switch.pyi +84 -99
  141. reflex/components/radix/themes/components/table.py +9 -9
  142. reflex/components/radix/themes/components/table.pyi +1440 -1794
  143. reflex/components/radix/themes/components/tabs.py +4 -4
  144. reflex/components/radix/themes/components/tabs.pyi +120 -132
  145. reflex/components/radix/themes/components/text_area.pyi +281 -331
  146. reflex/components/radix/themes/components/text_field.py +2 -2
  147. reflex/components/radix/themes/components/text_field.pyi +639 -734
  148. reflex/components/radix/themes/components/tooltip.py +6 -6
  149. reflex/components/radix/themes/components/tooltip.pyi +34 -43
  150. reflex/components/radix/themes/layout/base.pyi +85 -182
  151. reflex/components/radix/themes/layout/box.pyi +183 -210
  152. reflex/components/radix/themes/layout/center.pyi +225 -286
  153. reflex/components/radix/themes/layout/container.pyi +191 -224
  154. reflex/components/radix/themes/layout/flex.py +2 -2
  155. reflex/components/radix/themes/layout/flex.pyi +225 -286
  156. reflex/components/radix/themes/layout/grid.py +2 -2
  157. reflex/components/radix/themes/layout/grid.pyi +245 -315
  158. reflex/components/radix/themes/layout/list.py +2 -2
  159. reflex/components/radix/themes/layout/list.pyi +712 -815
  160. reflex/components/radix/themes/layout/section.pyi +187 -221
  161. reflex/components/radix/themes/layout/spacer.pyi +225 -286
  162. reflex/components/radix/themes/layout/stack.pyi +625 -768
  163. reflex/components/radix/themes/typography/blockquote.pyi +257 -299
  164. reflex/components/radix/themes/typography/code.pyi +259 -304
  165. reflex/components/radix/themes/typography/heading.pyi +272 -324
  166. reflex/components/radix/themes/typography/link.pyi +302 -358
  167. reflex/components/radix/themes/typography/text.pyi +1669 -1945
  168. reflex/components/react_player/audio.pyi +20 -22
  169. reflex/components/react_player/react_player.pyi +19 -19
  170. reflex/components/react_player/video.pyi +20 -22
  171. reflex/components/recharts/cartesian.py +100 -97
  172. reflex/components/recharts/cartesian.pyi +891 -1007
  173. reflex/components/recharts/charts.py +42 -42
  174. reflex/components/recharts/charts.pyi +212 -249
  175. reflex/components/recharts/general.py +22 -21
  176. reflex/components/recharts/general.pyi +198 -223
  177. reflex/components/recharts/polar.py +42 -45
  178. reflex/components/recharts/polar.pyi +254 -288
  179. reflex/components/recharts/recharts.pyi +13 -13
  180. reflex/components/sonner/toast.py +20 -20
  181. reflex/components/sonner/toast.pyi +58 -61
  182. reflex/components/suneditor/editor.py +9 -9
  183. reflex/components/suneditor/editor.pyi +78 -83
  184. reflex/components/tags/cond_tag.py +2 -2
  185. reflex/components/tags/iter_tag.py +10 -14
  186. reflex/components/tags/match_tag.py +2 -2
  187. reflex/components/tags/tag.py +10 -10
  188. reflex/config.py +36 -35
  189. reflex/constants/__init__.py +56 -53
  190. reflex/custom_components/custom_components.py +6 -7
  191. reflex/event.py +38 -42
  192. reflex/experimental/client_state.py +2 -4
  193. reflex/experimental/layout.py +2 -2
  194. reflex/experimental/layout.pyi +579 -663
  195. reflex/istate/data.py +4 -5
  196. reflex/middleware/hydrate_middleware.py +2 -2
  197. reflex/middleware/middleware.py +2 -2
  198. reflex/model.py +3 -5
  199. reflex/page.py +2 -2
  200. reflex/reflex.py +9 -10
  201. reflex/state.py +77 -49
  202. reflex/style.py +9 -3
  203. reflex/testing.py +21 -24
  204. reflex/utils/console.py +1 -1
  205. reflex/utils/decorator.py +26 -1
  206. reflex/utils/exec.py +6 -11
  207. reflex/utils/export.py +2 -3
  208. reflex/utils/format.py +4 -4
  209. reflex/utils/imports.py +12 -12
  210. reflex/utils/prerequisites.py +35 -84
  211. reflex/utils/processes.py +5 -5
  212. reflex/utils/pyi_generator.py +33 -22
  213. reflex/utils/serializers.py +60 -15
  214. reflex/utils/types.py +237 -56
  215. reflex/vars/base.py +122 -72
  216. reflex/vars/datetime.py +2 -2
  217. reflex/vars/function.py +52 -55
  218. reflex/vars/number.py +59 -5
  219. reflex/vars/object.py +57 -26
  220. reflex/vars/sequence.py +983 -958
  221. {reflex-0.7.1a3.dist-info → reflex-0.7.2a1.dist-info}/METADATA +3 -6
  222. reflex-0.7.2a1.dist-info/RECORD +405 -0
  223. {reflex-0.7.1a3.dist-info → reflex-0.7.2a1.dist-info}/WHEEL +1 -1
  224. reflex-0.7.1a3.dist-info/RECORD +0 -405
  225. {reflex-0.7.1a3.dist-info → reflex-0.7.2a1.dist-info}/LICENSE +0 -0
  226. {reflex-0.7.1a3.dist-info → reflex-0.7.2a1.dist-info}/entry_points.txt +0 -0
@@ -3,7 +3,7 @@
3
3
  # ------------------- DO NOT EDIT ----------------------
4
4
  # This file was generated by `reflex/utils/pyi_generator.py`!
5
5
  # ------------------------------------------------------
6
- from typing import Any, Dict, Literal, Optional, Union, overload
6
+ from typing import Any, Literal, Optional, overload
7
7
 
8
8
  from reflex.components.core.breakpoints import Breakpoints
9
9
  from reflex.event import EventType
@@ -20,99 +20,85 @@ class Separator(RadixThemesComponent):
20
20
  def create( # type: ignore
21
21
  cls,
22
22
  *children,
23
- size: Optional[
24
- Union[
25
- Breakpoints[str, Literal["1", "2", "3", "4"]],
26
- Literal["1", "2", "3", "4"],
27
- Var[
28
- Union[
29
- Breakpoints[str, Literal["1", "2", "3", "4"]],
30
- Literal["1", "2", "3", "4"],
31
- ]
32
- ],
23
+ size: Breakpoints[str, Literal["1", "2", "3", "4"]]
24
+ | Literal["1", "2", "3", "4"]
25
+ | Var[
26
+ Breakpoints[str, Literal["1", "2", "3", "4"]] | Literal["1", "2", "3", "4"]
27
+ ]
28
+ | None = None,
29
+ color_scheme: Literal[
30
+ "amber",
31
+ "blue",
32
+ "bronze",
33
+ "brown",
34
+ "crimson",
35
+ "cyan",
36
+ "gold",
37
+ "grass",
38
+ "gray",
39
+ "green",
40
+ "indigo",
41
+ "iris",
42
+ "jade",
43
+ "lime",
44
+ "mint",
45
+ "orange",
46
+ "pink",
47
+ "plum",
48
+ "purple",
49
+ "red",
50
+ "ruby",
51
+ "sky",
52
+ "teal",
53
+ "tomato",
54
+ "violet",
55
+ "yellow",
56
+ ]
57
+ | Var[
58
+ Literal[
59
+ "amber",
60
+ "blue",
61
+ "bronze",
62
+ "brown",
63
+ "crimson",
64
+ "cyan",
65
+ "gold",
66
+ "grass",
67
+ "gray",
68
+ "green",
69
+ "indigo",
70
+ "iris",
71
+ "jade",
72
+ "lime",
73
+ "mint",
74
+ "orange",
75
+ "pink",
76
+ "plum",
77
+ "purple",
78
+ "red",
79
+ "ruby",
80
+ "sky",
81
+ "teal",
82
+ "tomato",
83
+ "violet",
84
+ "yellow",
33
85
  ]
34
- ] = None,
35
- color_scheme: Optional[
36
- Union[
37
- Literal[
38
- "amber",
39
- "blue",
40
- "bronze",
41
- "brown",
42
- "crimson",
43
- "cyan",
44
- "gold",
45
- "grass",
46
- "gray",
47
- "green",
48
- "indigo",
49
- "iris",
50
- "jade",
51
- "lime",
52
- "mint",
53
- "orange",
54
- "pink",
55
- "plum",
56
- "purple",
57
- "red",
58
- "ruby",
59
- "sky",
60
- "teal",
61
- "tomato",
62
- "violet",
63
- "yellow",
64
- ],
65
- Var[
66
- Literal[
67
- "amber",
68
- "blue",
69
- "bronze",
70
- "brown",
71
- "crimson",
72
- "cyan",
73
- "gold",
74
- "grass",
75
- "gray",
76
- "green",
77
- "indigo",
78
- "iris",
79
- "jade",
80
- "lime",
81
- "mint",
82
- "orange",
83
- "pink",
84
- "plum",
85
- "purple",
86
- "red",
87
- "ruby",
88
- "sky",
89
- "teal",
90
- "tomato",
91
- "violet",
92
- "yellow",
93
- ]
94
- ],
95
- ]
96
- ] = None,
97
- orientation: Optional[
98
- Union[
99
- Breakpoints[str, Literal["horizontal", "vertical"]],
100
- Literal["horizontal", "vertical"],
101
- Var[
102
- Union[
103
- Breakpoints[str, Literal["horizontal", "vertical"]],
104
- Literal["horizontal", "vertical"],
105
- ]
106
- ],
107
- ]
108
- ] = None,
109
- decorative: Optional[Union[Var[bool], bool]] = None,
110
- style: Optional[Style] = None,
111
- key: Optional[Any] = None,
112
- id: Optional[Any] = None,
113
- class_name: Optional[Any] = None,
114
- autofocus: Optional[bool] = None,
115
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
86
+ ]
87
+ | None = None,
88
+ orientation: Breakpoints[str, Literal["horizontal", "vertical"]]
89
+ | Literal["horizontal", "vertical"]
90
+ | Var[
91
+ Breakpoints[str, Literal["horizontal", "vertical"]]
92
+ | Literal["horizontal", "vertical"]
93
+ ]
94
+ | None = None,
95
+ decorative: Var[bool] | bool | None = None,
96
+ style: Style | None = None,
97
+ key: Any | None = None,
98
+ id: Any | None = None,
99
+ class_name: Any | None = None,
100
+ autofocus: bool | None = None,
101
+ custom_attrs: dict[str, Var | Any] | None = None,
116
102
  on_blur: Optional[EventType[()]] = None,
117
103
  on_click: Optional[EventType[()]] = None,
118
104
  on_context_menu: Optional[EventType[()]] = None,
@@ -3,7 +3,7 @@
3
3
  # ------------------- DO NOT EDIT ----------------------
4
4
  # This file was generated by `reflex/utils/pyi_generator.py`!
5
5
  # ------------------------------------------------------
6
- from typing import Any, Dict, Optional, Union, overload
6
+ from typing import Any, Optional, overload
7
7
 
8
8
  from reflex.components.core.breakpoints import Breakpoints
9
9
  from reflex.event import EventType
@@ -18,31 +18,37 @@ class Skeleton(RadixLoadingProp, RadixThemesComponent):
18
18
  def create( # type: ignore
19
19
  cls,
20
20
  *children,
21
- width: Optional[
22
- Union[Breakpoints[str, str], Var[Union[Breakpoints[str, str], str]], str]
23
- ] = None,
24
- min_width: Optional[
25
- Union[Breakpoints[str, str], Var[Union[Breakpoints[str, str], str]], str]
26
- ] = None,
27
- max_width: Optional[
28
- Union[Breakpoints[str, str], Var[Union[Breakpoints[str, str], str]], str]
29
- ] = None,
30
- height: Optional[
31
- Union[Breakpoints[str, str], Var[Union[Breakpoints[str, str], str]], str]
32
- ] = None,
33
- min_height: Optional[
34
- Union[Breakpoints[str, str], Var[Union[Breakpoints[str, str], str]], str]
35
- ] = None,
36
- max_height: Optional[
37
- Union[Breakpoints[str, str], Var[Union[Breakpoints[str, str], str]], str]
38
- ] = None,
39
- loading: Optional[Union[Var[bool], bool]] = None,
40
- style: Optional[Style] = None,
41
- key: Optional[Any] = None,
42
- id: Optional[Any] = None,
43
- class_name: Optional[Any] = None,
44
- autofocus: Optional[bool] = None,
45
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
21
+ width: Breakpoints[str, str]
22
+ | Var[Breakpoints[str, str] | str]
23
+ | str
24
+ | None = None,
25
+ min_width: Breakpoints[str, str]
26
+ | Var[Breakpoints[str, str] | str]
27
+ | str
28
+ | None = None,
29
+ max_width: Breakpoints[str, str]
30
+ | Var[Breakpoints[str, str] | str]
31
+ | str
32
+ | None = None,
33
+ height: Breakpoints[str, str]
34
+ | Var[Breakpoints[str, str] | str]
35
+ | str
36
+ | None = None,
37
+ min_height: Breakpoints[str, str]
38
+ | Var[Breakpoints[str, str] | str]
39
+ | str
40
+ | None = None,
41
+ max_height: Breakpoints[str, str]
42
+ | Var[Breakpoints[str, str] | str]
43
+ | str
44
+ | None = None,
45
+ loading: Var[bool] | bool | None = None,
46
+ style: Style | None = None,
47
+ key: Any | None = None,
48
+ id: Any | None = None,
49
+ class_name: Any | None = None,
50
+ autofocus: bool | None = None,
51
+ custom_attrs: dict[str, Var | Any] | None = None,
46
52
  on_blur: Optional[EventType[()]] = None,
47
53
  on_click: Optional[EventType[()]] = None,
48
54
  on_context_menu: Optional[EventType[()]] = None,
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import List, Literal, Optional, Union
5
+ from typing import Literal, Sequence
6
6
 
7
7
  from reflex.components.component import Component
8
8
  from reflex.components.core.breakpoints import Responsive
@@ -12,7 +12,7 @@ from reflex.vars.base import Var
12
12
  from ..base import LiteralAccentColor, RadixThemesComponent
13
13
 
14
14
  on_value_event_spec = (
15
- passthrough_event_spec(list[Union[int, float]]),
15
+ passthrough_event_spec(list[int | float]),
16
16
  passthrough_event_spec(list[int]),
17
17
  passthrough_event_spec(list[float]),
18
18
  )
@@ -42,25 +42,25 @@ class Slider(RadixThemesComponent):
42
42
  radius: Var[Literal["none", "small", "full"]]
43
43
 
44
44
  # The value of the slider when initially rendered. Use when you do not need to control the state of the slider.
45
- default_value: Var[Union[List[Union[float, int]], float, int]]
45
+ default_value: Var[Sequence[float | int] | float | int]
46
46
 
47
47
  # The controlled value of the slider. Must be used in conjunction with onValueChange.
48
- value: Var[List[Union[float, int]]]
48
+ value: Var[Sequence[float | int]]
49
49
 
50
50
  # The name of the slider. Submitted with its owning form as part of a name/value pair.
51
51
  name: Var[str]
52
52
 
53
53
  # The width of the slider.
54
- width: Var[Optional[str]] = Var.create("100%")
54
+ width: Var[str | None] = Var.create("100%")
55
55
 
56
56
  # The minimum value of the slider.
57
- min: Var[Union[float, int]]
57
+ min: Var[float | int]
58
58
 
59
59
  # The maximum value of the slider.
60
- max: Var[Union[float, int]]
60
+ max: Var[float | int]
61
61
 
62
62
  # The step value of the slider.
63
- step: Var[Union[float, int]]
63
+ step: Var[float | int]
64
64
 
65
65
  # Whether the slider is disabled
66
66
  disabled: Var[bool]
@@ -3,7 +3,7 @@
3
3
  # ------------------- DO NOT EDIT ----------------------
4
4
  # This file was generated by `reflex/utils/pyi_generator.py`!
5
5
  # ------------------------------------------------------
6
- from typing import Any, Dict, List, Literal, Optional, Union, overload
6
+ from typing import Any, Literal, Optional, Sequence, Union, overload
7
7
 
8
8
  from reflex.components.core.breakpoints import Breakpoints
9
9
  from reflex.event import EventType, passthrough_event_spec
@@ -13,7 +13,7 @@ from reflex.vars.base import Var
13
13
  from ..base import RadixThemesComponent
14
14
 
15
15
  on_value_event_spec = (
16
- passthrough_event_spec(list[Union[int, float]]),
16
+ passthrough_event_spec(list[int | float]),
17
17
  passthrough_event_spec(list[int]),
18
18
  passthrough_event_spec(list[float]),
19
19
  )
@@ -24,127 +24,104 @@ class Slider(RadixThemesComponent):
24
24
  def create( # type: ignore
25
25
  cls,
26
26
  *children,
27
- as_child: Optional[Union[Var[bool], bool]] = None,
28
- size: Optional[
29
- Union[
30
- Breakpoints[str, Literal["1", "2", "3"]],
31
- Literal["1", "2", "3"],
32
- Var[
33
- Union[
34
- Breakpoints[str, Literal["1", "2", "3"]], Literal["1", "2", "3"]
35
- ]
36
- ],
37
- ]
38
- ] = None,
39
- variant: Optional[
40
- Union[
41
- Literal["classic", "soft", "surface"],
42
- Var[Literal["classic", "soft", "surface"]],
43
- ]
44
- ] = None,
45
- color_scheme: Optional[
46
- Union[
47
- Literal[
48
- "amber",
49
- "blue",
50
- "bronze",
51
- "brown",
52
- "crimson",
53
- "cyan",
54
- "gold",
55
- "grass",
56
- "gray",
57
- "green",
58
- "indigo",
59
- "iris",
60
- "jade",
61
- "lime",
62
- "mint",
63
- "orange",
64
- "pink",
65
- "plum",
66
- "purple",
67
- "red",
68
- "ruby",
69
- "sky",
70
- "teal",
71
- "tomato",
72
- "violet",
73
- "yellow",
74
- ],
75
- Var[
76
- Literal[
77
- "amber",
78
- "blue",
79
- "bronze",
80
- "brown",
81
- "crimson",
82
- "cyan",
83
- "gold",
84
- "grass",
85
- "gray",
86
- "green",
87
- "indigo",
88
- "iris",
89
- "jade",
90
- "lime",
91
- "mint",
92
- "orange",
93
- "pink",
94
- "plum",
95
- "purple",
96
- "red",
97
- "ruby",
98
- "sky",
99
- "teal",
100
- "tomato",
101
- "violet",
102
- "yellow",
103
- ]
104
- ],
105
- ]
106
- ] = None,
107
- high_contrast: Optional[Union[Var[bool], bool]] = None,
108
- radius: Optional[
109
- Union[
110
- Literal["full", "none", "small"], Var[Literal["full", "none", "small"]]
27
+ as_child: Var[bool] | bool | None = None,
28
+ size: Breakpoints[str, Literal["1", "2", "3"]]
29
+ | Literal["1", "2", "3"]
30
+ | Var[Breakpoints[str, Literal["1", "2", "3"]] | Literal["1", "2", "3"]]
31
+ | None = None,
32
+ variant: Literal["classic", "soft", "surface"]
33
+ | Var[Literal["classic", "soft", "surface"]]
34
+ | None = None,
35
+ color_scheme: Literal[
36
+ "amber",
37
+ "blue",
38
+ "bronze",
39
+ "brown",
40
+ "crimson",
41
+ "cyan",
42
+ "gold",
43
+ "grass",
44
+ "gray",
45
+ "green",
46
+ "indigo",
47
+ "iris",
48
+ "jade",
49
+ "lime",
50
+ "mint",
51
+ "orange",
52
+ "pink",
53
+ "plum",
54
+ "purple",
55
+ "red",
56
+ "ruby",
57
+ "sky",
58
+ "teal",
59
+ "tomato",
60
+ "violet",
61
+ "yellow",
62
+ ]
63
+ | Var[
64
+ Literal[
65
+ "amber",
66
+ "blue",
67
+ "bronze",
68
+ "brown",
69
+ "crimson",
70
+ "cyan",
71
+ "gold",
72
+ "grass",
73
+ "gray",
74
+ "green",
75
+ "indigo",
76
+ "iris",
77
+ "jade",
78
+ "lime",
79
+ "mint",
80
+ "orange",
81
+ "pink",
82
+ "plum",
83
+ "purple",
84
+ "red",
85
+ "ruby",
86
+ "sky",
87
+ "teal",
88
+ "tomato",
89
+ "violet",
90
+ "yellow",
111
91
  ]
112
- ] = None,
113
- default_value: Optional[
114
- Union[
115
- List[Union[float, int]],
116
- Var[Union[List[Union[float, int]], float, int]],
117
- float,
118
- int,
119
- ]
120
- ] = None,
121
- value: Optional[
122
- Union[List[Union[float, int]], Var[List[Union[float, int]]]]
123
- ] = None,
124
- name: Optional[Union[Var[str], str]] = None,
125
- width: Optional[Union[Var[Optional[str]], str]] = None,
126
- min: Optional[Union[Var[Union[float, int]], float, int]] = None,
127
- max: Optional[Union[Var[Union[float, int]], float, int]] = None,
128
- step: Optional[Union[Var[Union[float, int]], float, int]] = None,
129
- disabled: Optional[Union[Var[bool], bool]] = None,
130
- orientation: Optional[
131
- Union[
132
- Literal["horizontal", "vertical"],
133
- Var[Literal["horizontal", "vertical"]],
134
- ]
135
- ] = None,
136
- style: Optional[Style] = None,
137
- key: Optional[Any] = None,
138
- id: Optional[Any] = None,
139
- class_name: Optional[Any] = None,
140
- autofocus: Optional[bool] = None,
141
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
92
+ ]
93
+ | None = None,
94
+ high_contrast: Var[bool] | bool | None = None,
95
+ radius: Literal["full", "none", "small"]
96
+ | Var[Literal["full", "none", "small"]]
97
+ | None = None,
98
+ default_value: Sequence[float | int]
99
+ | Var[Sequence[float | int] | float | int]
100
+ | float
101
+ | int
102
+ | None = None,
103
+ value: Sequence[float | int] | Var[Sequence[float | int]] | None = None,
104
+ name: Var[str] | str | None = None,
105
+ width: Var[str | None] | str | None = None,
106
+ min: Var[float | int] | float | int | None = None,
107
+ max: Var[float | int] | float | int | None = None,
108
+ step: Var[float | int] | float | int | None = None,
109
+ disabled: Var[bool] | bool | None = None,
110
+ orientation: Literal["horizontal", "vertical"]
111
+ | Var[Literal["horizontal", "vertical"]]
112
+ | None = None,
113
+ style: Style | None = None,
114
+ key: Any | None = None,
115
+ id: Any | None = None,
116
+ class_name: Any | None = None,
117
+ autofocus: bool | None = None,
118
+ custom_attrs: dict[str, Var | Any] | None = None,
142
119
  on_blur: Optional[EventType[()]] = None,
143
120
  on_change: Optional[
144
121
  Union[
145
- Union[EventType[()], EventType[list[Union[int, float]]]],
146
- Union[EventType[()], EventType[list[int]]],
147
- Union[EventType[()], EventType[list[float]]],
122
+ EventType[()] | EventType[list[Union[int, float]]],
123
+ EventType[()] | EventType[list[int]],
124
+ EventType[()] | EventType[list[float]],
148
125
  ]
149
126
  ] = None,
150
127
  on_click: Optional[EventType[()]] = None,
@@ -163,9 +140,9 @@ class Slider(RadixThemesComponent):
163
140
  on_unmount: Optional[EventType[()]] = None,
164
141
  on_value_commit: Optional[
165
142
  Union[
166
- Union[EventType[()], EventType[list[Union[int, float]]]],
167
- Union[EventType[()], EventType[list[int]]],
168
- Union[EventType[()], EventType[list[float]]],
143
+ EventType[()] | EventType[list[Union[int, float]]],
144
+ EventType[()] | EventType[list[int]],
145
+ EventType[()] | EventType[list[float]],
169
146
  ]
170
147
  ] = None,
171
148
  **props,
@@ -3,7 +3,7 @@
3
3
  # ------------------- DO NOT EDIT ----------------------
4
4
  # This file was generated by `reflex/utils/pyi_generator.py`!
5
5
  # ------------------------------------------------------
6
- from typing import Any, Dict, Literal, Optional, Union, overload
6
+ from typing import Any, Literal, Optional, overload
7
7
 
8
8
  from reflex.components.core.breakpoints import Breakpoints
9
9
  from reflex.event import EventType
@@ -20,24 +20,17 @@ class Spinner(RadixLoadingProp, RadixThemesComponent):
20
20
  def create( # type: ignore
21
21
  cls,
22
22
  *children,
23
- size: Optional[
24
- Union[
25
- Breakpoints[str, Literal["1", "2", "3"]],
26
- Literal["1", "2", "3"],
27
- Var[
28
- Union[
29
- Breakpoints[str, Literal["1", "2", "3"]], Literal["1", "2", "3"]
30
- ]
31
- ],
32
- ]
33
- ] = None,
34
- loading: Optional[Union[Var[bool], bool]] = None,
35
- style: Optional[Style] = None,
36
- key: Optional[Any] = None,
37
- id: Optional[Any] = None,
38
- class_name: Optional[Any] = None,
39
- autofocus: Optional[bool] = None,
40
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
23
+ size: Breakpoints[str, Literal["1", "2", "3"]]
24
+ | Literal["1", "2", "3"]
25
+ | Var[Breakpoints[str, Literal["1", "2", "3"]] | Literal["1", "2", "3"]]
26
+ | None = None,
27
+ loading: Var[bool] | bool | None = None,
28
+ style: Style | None = None,
29
+ key: Any | None = None,
30
+ id: Any | None = None,
31
+ class_name: Any | None = None,
32
+ autofocus: bool | None = None,
33
+ custom_attrs: dict[str, Var | Any] | None = None,
41
34
  on_blur: Optional[EventType[()]] = None,
42
35
  on_click: Optional[EventType[()]] = None,
43
36
  on_context_menu: Optional[EventType[()]] = None,