reflex 0.5.10a3__py3-none-any.whl → 0.6.0__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 (303) hide show
  1. reflex/.templates/jinja/custom_components/pyproject.toml.jinja2 +2 -2
  2. reflex/.templates/jinja/web/pages/_app.js.jinja2 +1 -1
  3. reflex/.templates/jinja/web/pages/utils.js.jinja2 +4 -4
  4. reflex/.templates/jinja/web/utils/context.js.jinja2 +1 -1
  5. reflex/.templates/jinja/web/utils/theme.js.jinja2 +1 -1
  6. reflex/.templates/web/utils/state.js +3 -1
  7. reflex/__init__.py +10 -3
  8. reflex/__init__.pyi +3 -2
  9. reflex/app.py +47 -11
  10. reflex/app_module_for_backend.py +1 -1
  11. reflex/base.py +3 -2
  12. reflex/compiler/compiler.py +5 -5
  13. reflex/compiler/utils.py +5 -3
  14. reflex/components/base/app_wrap.py +2 -4
  15. reflex/components/base/app_wrap.pyi +16 -26
  16. reflex/components/base/bare.py +6 -4
  17. reflex/components/base/body.pyi +16 -26
  18. reflex/components/base/document.pyi +76 -126
  19. reflex/components/base/error_boundary.py +9 -8
  20. reflex/components/base/error_boundary.pyi +18 -30
  21. reflex/components/base/fragment.pyi +16 -26
  22. reflex/components/base/head.pyi +31 -51
  23. reflex/components/base/link.py +1 -1
  24. reflex/components/base/link.pyi +31 -51
  25. reflex/components/base/meta.pyi +61 -101
  26. reflex/components/base/script.py +2 -2
  27. reflex/components/base/script.pyi +20 -36
  28. reflex/components/component.py +107 -130
  29. reflex/components/core/banner.py +61 -66
  30. reflex/components/core/banner.pyi +129 -230
  31. reflex/components/core/client_side_routing.py +2 -2
  32. reflex/components/core/client_side_routing.pyi +31 -51
  33. reflex/components/core/clipboard.py +4 -3
  34. reflex/components/core/clipboard.pyi +19 -31
  35. reflex/components/core/cond.py +21 -44
  36. reflex/components/core/debounce.py +7 -9
  37. reflex/components/core/debounce.pyi +19 -31
  38. reflex/components/core/foreach.py +4 -14
  39. reflex/components/core/html.py +1 -1
  40. reflex/components/core/html.pyi +34 -44
  41. reflex/components/core/match.py +36 -43
  42. reflex/components/core/upload.py +27 -26
  43. reflex/components/core/upload.pyi +81 -116
  44. reflex/components/datadisplay/code.py +55 -29
  45. reflex/components/datadisplay/code.pyi +303 -410
  46. reflex/components/datadisplay/dataeditor.py +13 -9
  47. reflex/components/datadisplay/dataeditor.pyi +39 -51
  48. reflex/components/el/__init__.py +0 -1
  49. reflex/components/el/__init__.pyi +0 -11
  50. reflex/components/el/element.pyi +16 -26
  51. reflex/components/el/elements/__init__.py +1 -7
  52. reflex/components/el/elements/__init__.pyi +1 -15
  53. reflex/components/el/elements/base.py +1 -1
  54. reflex/components/el/elements/base.pyi +33 -43
  55. reflex/components/el/elements/forms.py +26 -33
  56. reflex/components/el/elements/forms.pyi +542 -694
  57. reflex/components/el/elements/inline.py +1 -1
  58. reflex/components/el/elements/inline.pyi +909 -1189
  59. reflex/components/el/elements/media.py +1 -22
  60. reflex/components/el/elements/media.pyi +765 -975
  61. reflex/components/el/elements/metadata.py +3 -5
  62. reflex/components/el/elements/metadata.pyi +175 -235
  63. reflex/components/el/elements/other.py +1 -1
  64. reflex/components/el/elements/other.pyi +228 -298
  65. reflex/components/el/elements/scripts.py +1 -1
  66. reflex/components/el/elements/scripts.pyi +106 -136
  67. reflex/components/el/elements/sectioning.py +0 -2
  68. reflex/components/el/elements/sectioning.pyi +481 -631
  69. reflex/components/el/elements/tables.py +1 -1
  70. reflex/components/el/elements/tables.pyi +341 -441
  71. reflex/components/el/elements/typography.py +1 -1
  72. reflex/components/el/elements/typography.pyi +491 -641
  73. reflex/components/gridjs/datatable.py +9 -13
  74. reflex/components/gridjs/datatable.pyi +33 -53
  75. reflex/components/lucide/icon.py +3 -127
  76. reflex/components/lucide/icon.pyi +31 -160
  77. reflex/components/markdown/markdown.py +32 -42
  78. reflex/components/markdown/markdown.pyi +28 -41
  79. reflex/components/moment/moment.py +13 -12
  80. reflex/components/moment/moment.pyi +22 -33
  81. reflex/components/next/base.pyi +16 -26
  82. reflex/components/next/image.py +1 -5
  83. reflex/components/next/image.pyi +21 -35
  84. reflex/components/next/link.py +1 -1
  85. reflex/components/next/link.pyi +16 -26
  86. reflex/components/next/video.py +1 -1
  87. reflex/components/next/video.pyi +16 -26
  88. reflex/components/plotly/plotly.py +17 -30
  89. reflex/components/plotly/plotly.pyi +38 -52
  90. reflex/components/props.py +21 -10
  91. reflex/components/radix/__init__.pyi +2 -1
  92. reflex/components/radix/primitives/accordion.py +6 -7
  93. reflex/components/radix/primitives/accordion.pyi +415 -485
  94. reflex/components/radix/primitives/base.py +1 -1
  95. reflex/components/radix/primitives/base.pyi +31 -51
  96. reflex/components/radix/primitives/drawer.py +1 -1
  97. reflex/components/radix/primitives/drawer.pyi +162 -262
  98. reflex/components/radix/primitives/form.py +1 -1
  99. reflex/components/radix/primitives/form.pyi +247 -353
  100. reflex/components/radix/primitives/progress.py +1 -1
  101. reflex/components/radix/primitives/progress.pyi +226 -276
  102. reflex/components/radix/primitives/slider.py +1 -1
  103. reflex/components/radix/primitives/slider.pyi +82 -132
  104. reflex/components/radix/themes/base.py +8 -25
  105. reflex/components/radix/themes/base.pyi +171 -242
  106. reflex/components/radix/themes/color_mode.py +11 -20
  107. reflex/components/radix/themes/color_mode.pyi +198 -231
  108. reflex/components/radix/themes/components/__init__.pyi +1 -0
  109. reflex/components/radix/themes/components/alert_dialog.py +1 -1
  110. reflex/components/radix/themes/components/alert_dialog.pyi +129 -199
  111. reflex/components/radix/themes/components/aspect_ratio.py +1 -1
  112. reflex/components/radix/themes/components/aspect_ratio.pyi +16 -26
  113. reflex/components/radix/themes/components/avatar.py +1 -1
  114. reflex/components/radix/themes/components/avatar.pyi +69 -79
  115. reflex/components/radix/themes/components/badge.py +1 -1
  116. reflex/components/radix/themes/components/badge.pyi +87 -97
  117. reflex/components/radix/themes/components/button.py +1 -1
  118. reflex/components/radix/themes/components/button.pyi +97 -107
  119. reflex/components/radix/themes/components/callout.py +1 -1
  120. reflex/components/radix/themes/components/callout.pyi +317 -367
  121. reflex/components/radix/themes/components/card.py +1 -1
  122. reflex/components/radix/themes/components/card.pyi +37 -47
  123. reflex/components/radix/themes/components/checkbox.py +2 -4
  124. reflex/components/radix/themes/components/checkbox.pyi +205 -241
  125. reflex/components/radix/themes/components/checkbox_cards.py +1 -1
  126. reflex/components/radix/themes/components/checkbox_cards.pyi +92 -112
  127. reflex/components/radix/themes/components/checkbox_group.py +1 -1
  128. reflex/components/radix/themes/components/checkbox_group.pyi +84 -104
  129. reflex/components/radix/themes/components/context_menu.py +1 -1
  130. reflex/components/radix/themes/components/context_menu.pyi +230 -310
  131. reflex/components/radix/themes/components/data_list.py +6 -1
  132. reflex/components/radix/themes/components/data_list.pyi +131 -166
  133. reflex/components/radix/themes/components/dialog.py +1 -1
  134. reflex/components/radix/themes/components/dialog.pyi +132 -202
  135. reflex/components/radix/themes/components/dropdown_menu.py +1 -1
  136. reflex/components/radix/themes/components/dropdown_menu.pyi +241 -323
  137. reflex/components/radix/themes/components/hover_card.py +1 -1
  138. reflex/components/radix/themes/components/hover_card.pyi +86 -126
  139. reflex/components/radix/themes/components/icon_button.py +1 -1
  140. reflex/components/radix/themes/components/icon_button.pyi +97 -107
  141. reflex/components/radix/themes/components/inset.py +1 -1
  142. reflex/components/radix/themes/components/inset.pyi +46 -56
  143. reflex/components/radix/themes/components/popover.py +1 -1
  144. reflex/components/radix/themes/components/popover.pyi +91 -131
  145. reflex/components/radix/themes/components/progress.py +1 -1
  146. reflex/components/radix/themes/components/progress.pyi +70 -80
  147. reflex/components/radix/themes/components/radio.py +1 -1
  148. reflex/components/radix/themes/components/radio.pyi +68 -78
  149. reflex/components/radix/themes/components/radio_cards.py +1 -1
  150. reflex/components/radix/themes/components/radio_cards.pyi +96 -116
  151. reflex/components/radix/themes/components/radio_group.py +32 -31
  152. reflex/components/radix/themes/components/radio_group.pyi +230 -266
  153. reflex/components/radix/themes/components/scroll_area.py +1 -1
  154. reflex/components/radix/themes/components/scroll_area.pyi +20 -30
  155. reflex/components/radix/themes/components/segmented_control.py +1 -1
  156. reflex/components/radix/themes/components/segmented_control.pyi +88 -110
  157. reflex/components/radix/themes/components/select.py +1 -1
  158. reflex/components/radix/themes/components/select.pyi +365 -461
  159. reflex/components/radix/themes/components/separator.py +2 -4
  160. reflex/components/radix/themes/components/separator.pyi +68 -78
  161. reflex/components/radix/themes/components/skeleton.py +1 -1
  162. reflex/components/radix/themes/components/skeleton.pyi +22 -32
  163. reflex/components/radix/themes/components/slider.py +1 -1
  164. reflex/components/radix/themes/components/slider.pyi +74 -86
  165. reflex/components/radix/themes/components/spinner.py +1 -1
  166. reflex/components/radix/themes/components/spinner.pyi +18 -28
  167. reflex/components/radix/themes/components/switch.py +1 -1
  168. reflex/components/radix/themes/components/switch.pyi +70 -82
  169. reflex/components/radix/themes/components/table.py +1 -1
  170. reflex/components/radix/themes/components/table.pyi +254 -324
  171. reflex/components/radix/themes/components/tabs.py +1 -1
  172. reflex/components/radix/themes/components/tabs.pyi +134 -188
  173. reflex/components/radix/themes/components/text_area.py +1 -1
  174. reflex/components/radix/themes/components/text_area.pyi +95 -109
  175. reflex/components/radix/themes/components/text_field.py +1 -80
  176. reflex/components/radix/themes/components/text_field.pyi +245 -290
  177. reflex/components/radix/themes/components/tooltip.py +1 -1
  178. reflex/components/radix/themes/components/tooltip.pyi +25 -35
  179. reflex/components/radix/themes/layout/__init__.pyi +1 -0
  180. reflex/components/radix/themes/layout/base.py +1 -1
  181. reflex/components/radix/themes/layout/base.pyi +55 -65
  182. reflex/components/radix/themes/layout/box.pyi +33 -43
  183. reflex/components/radix/themes/layout/center.pyi +55 -65
  184. reflex/components/radix/themes/layout/container.py +2 -4
  185. reflex/components/radix/themes/layout/container.pyi +35 -45
  186. reflex/components/radix/themes/layout/flex.py +1 -1
  187. reflex/components/radix/themes/layout/flex.pyi +55 -65
  188. reflex/components/radix/themes/layout/grid.py +1 -1
  189. reflex/components/radix/themes/layout/grid.pyi +63 -73
  190. reflex/components/radix/themes/layout/list.py +1 -1
  191. reflex/components/radix/themes/layout/list.pyi +188 -238
  192. reflex/components/radix/themes/layout/section.py +2 -4
  193. reflex/components/radix/themes/layout/section.pyi +35 -45
  194. reflex/components/radix/themes/layout/spacer.pyi +55 -65
  195. reflex/components/radix/themes/layout/stack.py +1 -1
  196. reflex/components/radix/themes/layout/stack.pyi +125 -155
  197. reflex/components/radix/themes/typography/blockquote.py +1 -1
  198. reflex/components/radix/themes/typography/blockquote.pyi +88 -98
  199. reflex/components/radix/themes/typography/code.py +1 -1
  200. reflex/components/radix/themes/typography/code.pyi +89 -99
  201. reflex/components/radix/themes/typography/heading.py +1 -1
  202. reflex/components/radix/themes/typography/heading.pyi +95 -105
  203. reflex/components/radix/themes/typography/link.py +1 -1
  204. reflex/components/radix/themes/typography/link.pyi +101 -111
  205. reflex/components/radix/themes/typography/text.py +1 -1
  206. reflex/components/radix/themes/typography/text.pyi +494 -564
  207. reflex/components/react_player/audio.pyi +32 -58
  208. reflex/components/react_player/react_player.py +1 -1
  209. reflex/components/react_player/react_player.pyi +32 -58
  210. reflex/components/react_player/video.pyi +32 -58
  211. reflex/components/recharts/cartesian.py +22 -19
  212. reflex/components/recharts/cartesian.pyi +658 -840
  213. reflex/components/recharts/charts.py +3 -3
  214. reflex/components/recharts/charts.pyi +238 -342
  215. reflex/components/recharts/general.py +8 -8
  216. reflex/components/recharts/general.pyi +175 -225
  217. reflex/components/recharts/polar.py +11 -11
  218. reflex/components/recharts/polar.pyi +135 -171
  219. reflex/components/recharts/recharts.pyi +31 -51
  220. reflex/components/sonner/toast.py +27 -31
  221. reflex/components/sonner/toast.pyi +36 -45
  222. reflex/components/suneditor/editor.py +1 -1
  223. reflex/components/suneditor/editor.pyi +54 -76
  224. reflex/components/tags/cond_tag.py +6 -4
  225. reflex/components/tags/iter_tag.py +37 -25
  226. reflex/components/tags/match_tag.py +6 -4
  227. reflex/components/tags/tag.py +43 -28
  228. reflex/constants/base.py +3 -1
  229. reflex/constants/event.py +1 -0
  230. reflex/custom_components/custom_components.py +3 -1
  231. reflex/event.py +166 -108
  232. reflex/experimental/__init__.py +25 -6
  233. reflex/experimental/client_state.py +34 -57
  234. reflex/experimental/hooks.py +12 -17
  235. reflex/experimental/layout.py +4 -4
  236. reflex/experimental/layout.pyi +130 -180
  237. reflex/middleware/hydrate_middleware.py +2 -0
  238. reflex/middleware/middleware.py +3 -3
  239. reflex/model.py +22 -0
  240. reflex/reflex.py +4 -0
  241. reflex/state.py +491 -110
  242. reflex/style.py +56 -39
  243. reflex/testing.py +8 -3
  244. reflex/utils/exceptions.py +32 -0
  245. reflex/utils/exec.py +0 -14
  246. reflex/utils/format.py +80 -209
  247. reflex/utils/imports.py +16 -73
  248. reflex/utils/net.py +43 -0
  249. reflex/utils/path_ops.py +13 -1
  250. reflex/utils/prerequisites.py +81 -41
  251. reflex/utils/pyi_generator.py +12 -6
  252. reflex/utils/serializers.py +13 -41
  253. reflex/utils/telemetry.py +3 -2
  254. reflex/utils/types.py +47 -7
  255. reflex/{experimental/vars → vars}/__init__.py +6 -3
  256. reflex/vars/base.py +2563 -0
  257. reflex/vars/function.py +196 -0
  258. reflex/vars/number.py +1158 -0
  259. reflex/vars/object.py +562 -0
  260. reflex/vars/sequence.py +1604 -0
  261. {reflex-0.5.10a3.dist-info → reflex-0.6.0.dist-info}/METADATA +6 -9
  262. reflex-0.6.0.dist-info/RECORD +382 -0
  263. reflex/.templates/apps/demo/.gitignore +0 -4
  264. reflex/.templates/apps/demo/assets/favicon.ico +0 -0
  265. reflex/.templates/apps/demo/assets/github.svg +0 -10
  266. reflex/.templates/apps/demo/assets/icon.svg +0 -37
  267. reflex/.templates/apps/demo/assets/logo.svg +0 -68
  268. reflex/.templates/apps/demo/assets/paneleft.svg +0 -13
  269. reflex/.templates/apps/demo/code/__init__.py +0 -1
  270. reflex/.templates/apps/demo/code/demo.py +0 -127
  271. reflex/.templates/apps/demo/code/pages/__init__.py +0 -7
  272. reflex/.templates/apps/demo/code/pages/chatapp.py +0 -31
  273. reflex/.templates/apps/demo/code/pages/datatable.py +0 -360
  274. reflex/.templates/apps/demo/code/pages/forms.py +0 -257
  275. reflex/.templates/apps/demo/code/pages/graphing.py +0 -253
  276. reflex/.templates/apps/demo/code/pages/home.py +0 -56
  277. reflex/.templates/apps/demo/code/sidebar.py +0 -178
  278. reflex/.templates/apps/demo/code/state.py +0 -22
  279. reflex/.templates/apps/demo/code/states/form_state.py +0 -40
  280. reflex/.templates/apps/demo/code/states/pie_state.py +0 -47
  281. reflex/.templates/apps/demo/code/styles.py +0 -68
  282. reflex/.templates/apps/demo/code/webui/__init__.py +0 -0
  283. reflex/.templates/apps/demo/code/webui/components/__init__.py +0 -4
  284. reflex/.templates/apps/demo/code/webui/components/chat.py +0 -118
  285. reflex/.templates/apps/demo/code/webui/components/loading_icon.py +0 -19
  286. reflex/.templates/apps/demo/code/webui/components/modal.py +0 -56
  287. reflex/.templates/apps/demo/code/webui/components/navbar.py +0 -70
  288. reflex/.templates/apps/demo/code/webui/components/sidebar.py +0 -66
  289. reflex/.templates/apps/demo/code/webui/state.py +0 -146
  290. reflex/.templates/apps/demo/code/webui/styles.py +0 -88
  291. reflex/.templates/web/components/reflex/chakra_color_mode_provider.js +0 -36
  292. reflex/experimental/vars/base.py +0 -583
  293. reflex/experimental/vars/function.py +0 -290
  294. reflex/experimental/vars/number.py +0 -1458
  295. reflex/experimental/vars/object.py +0 -804
  296. reflex/experimental/vars/sequence.py +0 -1764
  297. reflex/utils/watch.py +0 -96
  298. reflex/vars.py +0 -2604
  299. reflex/vars.pyi +0 -218
  300. reflex-0.5.10a3.dist-info/RECORD +0 -413
  301. {reflex-0.5.10a3.dist-info → reflex-0.6.0.dist-info}/LICENSE +0 -0
  302. {reflex-0.5.10a3.dist-info → reflex-0.6.0.dist-info}/WHEEL +0 -0
  303. {reflex-0.5.10a3.dist-info → reflex-0.6.0.dist-info}/entry_points.txt +0 -0
@@ -8,7 +8,7 @@ from typing import Any, Callable, Dict, List, Literal, Optional, Union, overload
8
8
  from reflex.constants.colors import Color
9
9
  from reflex.event import EventHandler, EventSpec
10
10
  from reflex.style import Style
11
- from reflex.vars import BaseVar, Var
11
+ from reflex.vars.base import Var
12
12
 
13
13
  from .recharts import (
14
14
  Recharts,
@@ -20,12 +20,12 @@ class Axis(Recharts):
20
20
  def create( # type: ignore
21
21
  cls,
22
22
  *children,
23
- data_key: Optional[Union[Var[Union[int, str]], str, int]] = None,
23
+ data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
24
24
  hide: Optional[Union[Var[bool], bool]] = None,
25
- width: Optional[Union[Var[Union[int, str]], str, int]] = None,
26
- height: Optional[Union[Var[Union[int, str]], str, int]] = None,
25
+ width: Optional[Union[Var[Union[int, str]], int, str]] = None,
26
+ height: Optional[Union[Var[Union[int, str]], int, str]] = None,
27
27
  type_: Optional[
28
- Union[Var[Literal["number", "category"]], Literal["number", "category"]]
28
+ Union[Literal["category", "number"], Var[Literal["category", "number"]]]
29
29
  ] = None,
30
30
  allow_decimals: Optional[Union[Var[bool], bool]] = None,
31
31
  allow_data_overflow: Optional[Union[Var[bool], bool]] = None,
@@ -34,59 +34,59 @@ class Axis(Recharts):
34
34
  mirror: Optional[Union[Var[bool], bool]] = None,
35
35
  reversed: Optional[Union[Var[bool], bool]] = None,
36
36
  label: Optional[
37
- Union[Var[Union[Dict[str, Any], int, str]], str, int, Dict[str, Any]]
37
+ Union[Dict[str, Any], Var[Union[Dict[str, Any], int, str]], int, str]
38
38
  ] = None,
39
39
  scale: Optional[
40
40
  Union[
41
+ Literal[
42
+ "auto",
43
+ "band",
44
+ "identity",
45
+ "linear",
46
+ "log",
47
+ "ordinal",
48
+ "point",
49
+ "pow",
50
+ "quantile",
51
+ "quantize",
52
+ "sequential",
53
+ "sqrt",
54
+ "threshold",
55
+ "time",
56
+ "utc",
57
+ ],
41
58
  Var[
42
59
  Literal[
43
60
  "auto",
61
+ "band",
62
+ "identity",
44
63
  "linear",
45
- "pow",
46
- "sqrt",
47
64
  "log",
48
- "identity",
49
- "time",
50
- "band",
51
- "point",
52
65
  "ordinal",
66
+ "point",
67
+ "pow",
53
68
  "quantile",
54
69
  "quantize",
55
- "utc",
56
70
  "sequential",
71
+ "sqrt",
57
72
  "threshold",
73
+ "time",
74
+ "utc",
58
75
  ]
59
76
  ],
60
- Literal[
61
- "auto",
62
- "linear",
63
- "pow",
64
- "sqrt",
65
- "log",
66
- "identity",
67
- "time",
68
- "band",
69
- "point",
70
- "ordinal",
71
- "quantile",
72
- "quantize",
73
- "utc",
74
- "sequential",
75
- "threshold",
76
- ],
77
77
  ]
78
78
  ] = None,
79
- unit: Optional[Union[Var[Union[int, str]], str, int]] = None,
80
- name: Optional[Union[Var[Union[int, str]], str, int]] = None,
79
+ unit: Optional[Union[Var[Union[int, str]], int, str]] = None,
80
+ name: Optional[Union[Var[Union[int, str]], int, str]] = None,
81
81
  ticks: Optional[
82
- Union[Var[List[Union[int, str]]], List[Union[int, str]]]
82
+ Union[List[Union[int, str]], Var[List[Union[int, str]]]]
83
83
  ] = None,
84
84
  tick: Optional[Union[Var[bool], bool]] = None,
85
85
  tick_count: Optional[Union[Var[int], int]] = None,
86
86
  tick_line: Optional[Union[Var[bool], bool]] = None,
87
87
  tick_size: Optional[Union[Var[int], int]] = None,
88
88
  min_tick_gap: Optional[Union[Var[int], int]] = None,
89
- stroke: Optional[Union[Var[Union[Color, str]], str, Color]] = None,
89
+ stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
90
90
  text_anchor: Optional[Union[Var[str], str]] = None,
91
91
  style: Optional[Style] = None,
92
92
  key: Optional[Any] = None,
@@ -94,50 +94,40 @@ class Axis(Recharts):
94
94
  class_name: Optional[Any] = None,
95
95
  autofocus: Optional[bool] = None,
96
96
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
97
- on_blur: Optional[
98
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
99
- ] = None,
100
- on_click: Optional[
101
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
102
- ] = None,
97
+ on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
98
+ on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
103
99
  on_context_menu: Optional[
104
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
100
+ Union[EventHandler, EventSpec, list, Callable, Var]
105
101
  ] = None,
106
102
  on_double_click: Optional[
107
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
108
- ] = None,
109
- on_focus: Optional[
110
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
111
- ] = None,
112
- on_mount: Optional[
113
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
103
+ Union[EventHandler, EventSpec, list, Callable, Var]
114
104
  ] = None,
105
+ on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
106
+ on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
115
107
  on_mouse_down: Optional[
116
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
108
+ Union[EventHandler, EventSpec, list, Callable, Var]
117
109
  ] = None,
118
110
  on_mouse_enter: Optional[
119
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
111
+ Union[EventHandler, EventSpec, list, Callable, Var]
120
112
  ] = None,
121
113
  on_mouse_leave: Optional[
122
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
114
+ Union[EventHandler, EventSpec, list, Callable, Var]
123
115
  ] = None,
124
116
  on_mouse_move: Optional[
125
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
117
+ Union[EventHandler, EventSpec, list, Callable, Var]
126
118
  ] = None,
127
119
  on_mouse_out: Optional[
128
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
120
+ Union[EventHandler, EventSpec, list, Callable, Var]
129
121
  ] = None,
130
122
  on_mouse_over: Optional[
131
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
123
+ Union[EventHandler, EventSpec, list, Callable, Var]
132
124
  ] = None,
133
125
  on_mouse_up: Optional[
134
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
135
- ] = None,
136
- on_scroll: Optional[
137
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
126
+ Union[EventHandler, EventSpec, list, Callable, Var]
138
127
  ] = None,
128
+ on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
139
129
  on_unmount: Optional[
140
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
130
+ Union[EventHandler, EventSpec, list, Callable, Var]
141
131
  ] = None,
142
132
  **props,
143
133
  ) -> "Axis":
@@ -188,17 +178,17 @@ class XAxis(Axis):
188
178
  cls,
189
179
  *children,
190
180
  orientation: Optional[
191
- Union[Var[Literal["top", "bottom"]], Literal["top", "bottom"]]
181
+ Union[Literal["bottom", "top"], Var[Literal["bottom", "top"]]]
192
182
  ] = None,
193
- x_axis_id: Optional[Union[Var[Union[int, str]], str, int]] = None,
183
+ x_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
194
184
  include_hidden: Optional[Union[Var[bool], bool]] = None,
195
- domain: Optional[Union[Var[List], List]] = None,
196
- data_key: Optional[Union[Var[Union[int, str]], str, int]] = None,
185
+ domain: Optional[Union[List, Var[List]]] = None,
186
+ data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
197
187
  hide: Optional[Union[Var[bool], bool]] = None,
198
- width: Optional[Union[Var[Union[int, str]], str, int]] = None,
199
- height: Optional[Union[Var[Union[int, str]], str, int]] = None,
188
+ width: Optional[Union[Var[Union[int, str]], int, str]] = None,
189
+ height: Optional[Union[Var[Union[int, str]], int, str]] = None,
200
190
  type_: Optional[
201
- Union[Var[Literal["number", "category"]], Literal["number", "category"]]
191
+ Union[Literal["category", "number"], Var[Literal["category", "number"]]]
202
192
  ] = None,
203
193
  allow_decimals: Optional[Union[Var[bool], bool]] = None,
204
194
  allow_data_overflow: Optional[Union[Var[bool], bool]] = None,
@@ -207,59 +197,59 @@ class XAxis(Axis):
207
197
  mirror: Optional[Union[Var[bool], bool]] = None,
208
198
  reversed: Optional[Union[Var[bool], bool]] = None,
209
199
  label: Optional[
210
- Union[Var[Union[Dict[str, Any], int, str]], str, int, Dict[str, Any]]
200
+ Union[Dict[str, Any], Var[Union[Dict[str, Any], int, str]], int, str]
211
201
  ] = None,
212
202
  scale: Optional[
213
203
  Union[
204
+ Literal[
205
+ "auto",
206
+ "band",
207
+ "identity",
208
+ "linear",
209
+ "log",
210
+ "ordinal",
211
+ "point",
212
+ "pow",
213
+ "quantile",
214
+ "quantize",
215
+ "sequential",
216
+ "sqrt",
217
+ "threshold",
218
+ "time",
219
+ "utc",
220
+ ],
214
221
  Var[
215
222
  Literal[
216
223
  "auto",
224
+ "band",
225
+ "identity",
217
226
  "linear",
218
- "pow",
219
- "sqrt",
220
227
  "log",
221
- "identity",
222
- "time",
223
- "band",
224
- "point",
225
228
  "ordinal",
229
+ "point",
230
+ "pow",
226
231
  "quantile",
227
232
  "quantize",
228
- "utc",
229
233
  "sequential",
234
+ "sqrt",
230
235
  "threshold",
236
+ "time",
237
+ "utc",
231
238
  ]
232
239
  ],
233
- Literal[
234
- "auto",
235
- "linear",
236
- "pow",
237
- "sqrt",
238
- "log",
239
- "identity",
240
- "time",
241
- "band",
242
- "point",
243
- "ordinal",
244
- "quantile",
245
- "quantize",
246
- "utc",
247
- "sequential",
248
- "threshold",
249
- ],
250
240
  ]
251
241
  ] = None,
252
- unit: Optional[Union[Var[Union[int, str]], str, int]] = None,
253
- name: Optional[Union[Var[Union[int, str]], str, int]] = None,
242
+ unit: Optional[Union[Var[Union[int, str]], int, str]] = None,
243
+ name: Optional[Union[Var[Union[int, str]], int, str]] = None,
254
244
  ticks: Optional[
255
- Union[Var[List[Union[int, str]]], List[Union[int, str]]]
245
+ Union[List[Union[int, str]], Var[List[Union[int, str]]]]
256
246
  ] = None,
257
247
  tick: Optional[Union[Var[bool], bool]] = None,
258
248
  tick_count: Optional[Union[Var[int], int]] = None,
259
249
  tick_line: Optional[Union[Var[bool], bool]] = None,
260
250
  tick_size: Optional[Union[Var[int], int]] = None,
261
251
  min_tick_gap: Optional[Union[Var[int], int]] = None,
262
- stroke: Optional[Union[Var[Union[Color, str]], str, Color]] = None,
252
+ stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
263
253
  text_anchor: Optional[Union[Var[str], str]] = None,
264
254
  style: Optional[Style] = None,
265
255
  key: Optional[Any] = None,
@@ -267,50 +257,40 @@ class XAxis(Axis):
267
257
  class_name: Optional[Any] = None,
268
258
  autofocus: Optional[bool] = None,
269
259
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
270
- on_blur: Optional[
271
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
272
- ] = None,
273
- on_click: Optional[
274
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
275
- ] = None,
260
+ on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
261
+ on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
276
262
  on_context_menu: Optional[
277
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
263
+ Union[EventHandler, EventSpec, list, Callable, Var]
278
264
  ] = None,
279
265
  on_double_click: Optional[
280
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
281
- ] = None,
282
- on_focus: Optional[
283
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
284
- ] = None,
285
- on_mount: Optional[
286
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
266
+ Union[EventHandler, EventSpec, list, Callable, Var]
287
267
  ] = None,
268
+ on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
269
+ on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
288
270
  on_mouse_down: Optional[
289
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
271
+ Union[EventHandler, EventSpec, list, Callable, Var]
290
272
  ] = None,
291
273
  on_mouse_enter: Optional[
292
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
274
+ Union[EventHandler, EventSpec, list, Callable, Var]
293
275
  ] = None,
294
276
  on_mouse_leave: Optional[
295
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
277
+ Union[EventHandler, EventSpec, list, Callable, Var]
296
278
  ] = None,
297
279
  on_mouse_move: Optional[
298
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
280
+ Union[EventHandler, EventSpec, list, Callable, Var]
299
281
  ] = None,
300
282
  on_mouse_out: Optional[
301
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
283
+ Union[EventHandler, EventSpec, list, Callable, Var]
302
284
  ] = None,
303
285
  on_mouse_over: Optional[
304
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
286
+ Union[EventHandler, EventSpec, list, Callable, Var]
305
287
  ] = None,
306
288
  on_mouse_up: Optional[
307
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
308
- ] = None,
309
- on_scroll: Optional[
310
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
289
+ Union[EventHandler, EventSpec, list, Callable, Var]
311
290
  ] = None,
291
+ on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
312
292
  on_unmount: Optional[
313
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
293
+ Union[EventHandler, EventSpec, list, Callable, Var]
314
294
  ] = None,
315
295
  **props,
316
296
  ) -> "XAxis":
@@ -365,16 +345,16 @@ class YAxis(Axis):
365
345
  cls,
366
346
  *children,
367
347
  orientation: Optional[
368
- Union[Var[Literal["left", "right"]], Literal["left", "right"]]
348
+ Union[Literal["left", "right"], Var[Literal["left", "right"]]]
369
349
  ] = None,
370
- y_axis_id: Optional[Union[Var[Union[int, str]], str, int]] = None,
371
- domain: Optional[Union[Var[List], List]] = None,
372
- data_key: Optional[Union[Var[Union[int, str]], str, int]] = None,
350
+ y_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
351
+ domain: Optional[Union[List, Var[List]]] = None,
352
+ data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
373
353
  hide: Optional[Union[Var[bool], bool]] = None,
374
- width: Optional[Union[Var[Union[int, str]], str, int]] = None,
375
- height: Optional[Union[Var[Union[int, str]], str, int]] = None,
354
+ width: Optional[Union[Var[Union[int, str]], int, str]] = None,
355
+ height: Optional[Union[Var[Union[int, str]], int, str]] = None,
376
356
  type_: Optional[
377
- Union[Var[Literal["number", "category"]], Literal["number", "category"]]
357
+ Union[Literal["category", "number"], Var[Literal["category", "number"]]]
378
358
  ] = None,
379
359
  allow_decimals: Optional[Union[Var[bool], bool]] = None,
380
360
  allow_data_overflow: Optional[Union[Var[bool], bool]] = None,
@@ -383,59 +363,59 @@ class YAxis(Axis):
383
363
  mirror: Optional[Union[Var[bool], bool]] = None,
384
364
  reversed: Optional[Union[Var[bool], bool]] = None,
385
365
  label: Optional[
386
- Union[Var[Union[Dict[str, Any], int, str]], str, int, Dict[str, Any]]
366
+ Union[Dict[str, Any], Var[Union[Dict[str, Any], int, str]], int, str]
387
367
  ] = None,
388
368
  scale: Optional[
389
369
  Union[
370
+ Literal[
371
+ "auto",
372
+ "band",
373
+ "identity",
374
+ "linear",
375
+ "log",
376
+ "ordinal",
377
+ "point",
378
+ "pow",
379
+ "quantile",
380
+ "quantize",
381
+ "sequential",
382
+ "sqrt",
383
+ "threshold",
384
+ "time",
385
+ "utc",
386
+ ],
390
387
  Var[
391
388
  Literal[
392
389
  "auto",
390
+ "band",
391
+ "identity",
393
392
  "linear",
394
- "pow",
395
- "sqrt",
396
393
  "log",
397
- "identity",
398
- "time",
399
- "band",
400
- "point",
401
394
  "ordinal",
395
+ "point",
396
+ "pow",
402
397
  "quantile",
403
398
  "quantize",
404
- "utc",
405
399
  "sequential",
400
+ "sqrt",
406
401
  "threshold",
402
+ "time",
403
+ "utc",
407
404
  ]
408
405
  ],
409
- Literal[
410
- "auto",
411
- "linear",
412
- "pow",
413
- "sqrt",
414
- "log",
415
- "identity",
416
- "time",
417
- "band",
418
- "point",
419
- "ordinal",
420
- "quantile",
421
- "quantize",
422
- "utc",
423
- "sequential",
424
- "threshold",
425
- ],
426
406
  ]
427
407
  ] = None,
428
- unit: Optional[Union[Var[Union[int, str]], str, int]] = None,
429
- name: Optional[Union[Var[Union[int, str]], str, int]] = None,
408
+ unit: Optional[Union[Var[Union[int, str]], int, str]] = None,
409
+ name: Optional[Union[Var[Union[int, str]], int, str]] = None,
430
410
  ticks: Optional[
431
- Union[Var[List[Union[int, str]]], List[Union[int, str]]]
411
+ Union[List[Union[int, str]], Var[List[Union[int, str]]]]
432
412
  ] = None,
433
413
  tick: Optional[Union[Var[bool], bool]] = None,
434
414
  tick_count: Optional[Union[Var[int], int]] = None,
435
415
  tick_line: Optional[Union[Var[bool], bool]] = None,
436
416
  tick_size: Optional[Union[Var[int], int]] = None,
437
417
  min_tick_gap: Optional[Union[Var[int], int]] = None,
438
- stroke: Optional[Union[Var[Union[Color, str]], str, Color]] = None,
418
+ stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
439
419
  text_anchor: Optional[Union[Var[str], str]] = None,
440
420
  style: Optional[Style] = None,
441
421
  key: Optional[Any] = None,
@@ -443,50 +423,40 @@ class YAxis(Axis):
443
423
  class_name: Optional[Any] = None,
444
424
  autofocus: Optional[bool] = None,
445
425
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
446
- on_blur: Optional[
447
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
448
- ] = None,
449
- on_click: Optional[
450
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
451
- ] = None,
426
+ on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
427
+ on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
452
428
  on_context_menu: Optional[
453
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
429
+ Union[EventHandler, EventSpec, list, Callable, Var]
454
430
  ] = None,
455
431
  on_double_click: Optional[
456
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
457
- ] = None,
458
- on_focus: Optional[
459
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
460
- ] = None,
461
- on_mount: Optional[
462
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
432
+ Union[EventHandler, EventSpec, list, Callable, Var]
463
433
  ] = None,
434
+ on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
435
+ on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
464
436
  on_mouse_down: Optional[
465
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
437
+ Union[EventHandler, EventSpec, list, Callable, Var]
466
438
  ] = None,
467
439
  on_mouse_enter: Optional[
468
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
440
+ Union[EventHandler, EventSpec, list, Callable, Var]
469
441
  ] = None,
470
442
  on_mouse_leave: Optional[
471
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
443
+ Union[EventHandler, EventSpec, list, Callable, Var]
472
444
  ] = None,
473
445
  on_mouse_move: Optional[
474
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
446
+ Union[EventHandler, EventSpec, list, Callable, Var]
475
447
  ] = None,
476
448
  on_mouse_out: Optional[
477
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
449
+ Union[EventHandler, EventSpec, list, Callable, Var]
478
450
  ] = None,
479
451
  on_mouse_over: Optional[
480
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
452
+ Union[EventHandler, EventSpec, list, Callable, Var]
481
453
  ] = None,
482
454
  on_mouse_up: Optional[
483
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
484
- ] = None,
485
- on_scroll: Optional[
486
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
455
+ Union[EventHandler, EventSpec, list, Callable, Var]
487
456
  ] = None,
457
+ on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
488
458
  on_unmount: Optional[
489
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
459
+ Union[EventHandler, EventSpec, list, Callable, Var]
490
460
  ] = None,
491
461
  **props,
492
462
  ) -> "YAxis":
@@ -539,48 +509,48 @@ class ZAxis(Recharts):
539
509
  def create( # type: ignore
540
510
  cls,
541
511
  *children,
542
- data_key: Optional[Union[Var[Union[int, str]], str, int]] = None,
543
- range: Optional[Union[Var[List[int]], List[int]]] = None,
544
- unit: Optional[Union[Var[Union[int, str]], str, int]] = None,
545
- name: Optional[Union[Var[Union[int, str]], str, int]] = None,
512
+ data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
513
+ range: Optional[Union[List[int], Var[List[int]]]] = None,
514
+ unit: Optional[Union[Var[Union[int, str]], int, str]] = None,
515
+ name: Optional[Union[Var[Union[int, str]], int, str]] = None,
546
516
  scale: Optional[
547
517
  Union[
518
+ Literal[
519
+ "auto",
520
+ "band",
521
+ "identity",
522
+ "linear",
523
+ "log",
524
+ "ordinal",
525
+ "point",
526
+ "pow",
527
+ "quantile",
528
+ "quantize",
529
+ "sequential",
530
+ "sqrt",
531
+ "threshold",
532
+ "time",
533
+ "utc",
534
+ ],
548
535
  Var[
549
536
  Literal[
550
537
  "auto",
538
+ "band",
539
+ "identity",
551
540
  "linear",
552
- "pow",
553
- "sqrt",
554
541
  "log",
555
- "identity",
556
- "time",
557
- "band",
558
- "point",
559
542
  "ordinal",
543
+ "point",
544
+ "pow",
560
545
  "quantile",
561
546
  "quantize",
562
- "utc",
563
547
  "sequential",
548
+ "sqrt",
564
549
  "threshold",
550
+ "time",
551
+ "utc",
565
552
  ]
566
553
  ],
567
- Literal[
568
- "auto",
569
- "linear",
570
- "pow",
571
- "sqrt",
572
- "log",
573
- "identity",
574
- "time",
575
- "band",
576
- "point",
577
- "ordinal",
578
- "quantile",
579
- "quantize",
580
- "utc",
581
- "sequential",
582
- "threshold",
583
- ],
584
554
  ]
585
555
  ] = None,
586
556
  style: Optional[Style] = None,
@@ -589,50 +559,40 @@ class ZAxis(Recharts):
589
559
  class_name: Optional[Any] = None,
590
560
  autofocus: Optional[bool] = None,
591
561
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
592
- on_blur: Optional[
593
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
594
- ] = None,
595
- on_click: Optional[
596
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
597
- ] = None,
562
+ on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
563
+ on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
598
564
  on_context_menu: Optional[
599
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
565
+ Union[EventHandler, EventSpec, list, Callable, Var]
600
566
  ] = None,
601
567
  on_double_click: Optional[
602
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
603
- ] = None,
604
- on_focus: Optional[
605
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
606
- ] = None,
607
- on_mount: Optional[
608
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
568
+ Union[EventHandler, EventSpec, list, Callable, Var]
609
569
  ] = None,
570
+ on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
571
+ on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
610
572
  on_mouse_down: Optional[
611
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
573
+ Union[EventHandler, EventSpec, list, Callable, Var]
612
574
  ] = None,
613
575
  on_mouse_enter: Optional[
614
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
576
+ Union[EventHandler, EventSpec, list, Callable, Var]
615
577
  ] = None,
616
578
  on_mouse_leave: Optional[
617
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
579
+ Union[EventHandler, EventSpec, list, Callable, Var]
618
580
  ] = None,
619
581
  on_mouse_move: Optional[
620
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
582
+ Union[EventHandler, EventSpec, list, Callable, Var]
621
583
  ] = None,
622
584
  on_mouse_out: Optional[
623
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
585
+ Union[EventHandler, EventSpec, list, Callable, Var]
624
586
  ] = None,
625
587
  on_mouse_over: Optional[
626
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
588
+ Union[EventHandler, EventSpec, list, Callable, Var]
627
589
  ] = None,
628
590
  on_mouse_up: Optional[
629
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
630
- ] = None,
631
- on_scroll: Optional[
632
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
591
+ Union[EventHandler, EventSpec, list, Callable, Var]
633
592
  ] = None,
593
+ on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
634
594
  on_unmount: Optional[
635
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
595
+ Union[EventHandler, EventSpec, list, Callable, Var]
636
596
  ] = None,
637
597
  **props,
638
598
  ) -> "ZAxis":
@@ -665,14 +625,14 @@ class Brush(Recharts):
665
625
  def create( # type: ignore
666
626
  cls,
667
627
  *children,
668
- stroke: Optional[Union[Var[Union[Color, str]], str, Color]] = None,
669
- fill: Optional[Union[Var[Union[Color, str]], str, Color]] = None,
670
- data_key: Optional[Union[Var[Union[int, str]], str, int]] = None,
628
+ stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
629
+ fill: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
630
+ data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
671
631
  x: Optional[Union[Var[int], int]] = None,
672
632
  y: Optional[Union[Var[int], int]] = None,
673
633
  width: Optional[Union[Var[int], int]] = None,
674
634
  height: Optional[Union[Var[int], int]] = None,
675
- data: Optional[Union[Var[List[Any]], List[Any]]] = None,
635
+ data: Optional[Union[List[Any], Var[List[Any]]]] = None,
676
636
  traveller_width: Optional[Union[Var[int], int]] = None,
677
637
  gap: Optional[Union[Var[int], int]] = None,
678
638
  start_index: Optional[Union[Var[int], int]] = None,
@@ -683,9 +643,7 @@ class Brush(Recharts):
683
643
  class_name: Optional[Any] = None,
684
644
  autofocus: Optional[bool] = None,
685
645
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
686
- on_change: Optional[
687
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
688
- ] = None,
646
+ on_change: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
689
647
  **props,
690
648
  ) -> "Brush":
691
649
  """Create the component.
@@ -725,43 +683,43 @@ class Cartesian(Recharts):
725
683
  *children,
726
684
  layout: Optional[
727
685
  Union[
728
- Var[Literal["horizontal", "vertical"]],
729
686
  Literal["horizontal", "vertical"],
687
+ Var[Literal["horizontal", "vertical"]],
730
688
  ]
731
689
  ] = None,
732
- data_key: Optional[Union[Var[Union[int, str]], str, int]] = None,
733
- x_axis_id: Optional[Union[Var[Union[int, str]], str, int]] = None,
734
- y_axis_id: Optional[Union[Var[Union[int, str]], str, int]] = None,
690
+ data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
691
+ x_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
692
+ y_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
735
693
  legend_type: Optional[
736
694
  Union[
695
+ Literal[
696
+ "circle",
697
+ "cross",
698
+ "diamond",
699
+ "line",
700
+ "none",
701
+ "plainline",
702
+ "rect",
703
+ "square",
704
+ "star",
705
+ "triangle",
706
+ "wye",
707
+ ],
737
708
  Var[
738
709
  Literal[
739
- "line",
740
- "plainline",
741
- "square",
742
- "rect",
743
710
  "circle",
744
711
  "cross",
745
712
  "diamond",
713
+ "line",
714
+ "none",
715
+ "plainline",
716
+ "rect",
717
+ "square",
746
718
  "star",
747
719
  "triangle",
748
720
  "wye",
749
- "none",
750
721
  ]
751
722
  ],
752
- Literal[
753
- "line",
754
- "plainline",
755
- "square",
756
- "rect",
757
- "circle",
758
- "cross",
759
- "diamond",
760
- "star",
761
- "triangle",
762
- "wye",
763
- "none",
764
- ],
765
723
  ]
766
724
  ] = None,
767
725
  style: Optional[Style] = None,
@@ -770,50 +728,40 @@ class Cartesian(Recharts):
770
728
  class_name: Optional[Any] = None,
771
729
  autofocus: Optional[bool] = None,
772
730
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
773
- on_blur: Optional[
774
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
775
- ] = None,
776
- on_click: Optional[
777
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
778
- ] = None,
731
+ on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
732
+ on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
779
733
  on_context_menu: Optional[
780
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
734
+ Union[EventHandler, EventSpec, list, Callable, Var]
781
735
  ] = None,
782
736
  on_double_click: Optional[
783
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
784
- ] = None,
785
- on_focus: Optional[
786
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
787
- ] = None,
788
- on_mount: Optional[
789
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
737
+ Union[EventHandler, EventSpec, list, Callable, Var]
790
738
  ] = None,
739
+ on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
740
+ on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
791
741
  on_mouse_down: Optional[
792
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
742
+ Union[EventHandler, EventSpec, list, Callable, Var]
793
743
  ] = None,
794
744
  on_mouse_enter: Optional[
795
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
745
+ Union[EventHandler, EventSpec, list, Callable, Var]
796
746
  ] = None,
797
747
  on_mouse_leave: Optional[
798
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
748
+ Union[EventHandler, EventSpec, list, Callable, Var]
799
749
  ] = None,
800
750
  on_mouse_move: Optional[
801
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
751
+ Union[EventHandler, EventSpec, list, Callable, Var]
802
752
  ] = None,
803
753
  on_mouse_out: Optional[
804
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
754
+ Union[EventHandler, EventSpec, list, Callable, Var]
805
755
  ] = None,
806
756
  on_mouse_over: Optional[
807
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
757
+ Union[EventHandler, EventSpec, list, Callable, Var]
808
758
  ] = None,
809
759
  on_mouse_up: Optional[
810
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
811
- ] = None,
812
- on_scroll: Optional[
813
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
760
+ Union[EventHandler, EventSpec, list, Callable, Var]
814
761
  ] = None,
762
+ on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
815
763
  on_unmount: Optional[
816
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
764
+ Union[EventHandler, EventSpec, list, Callable, Var]
817
765
  ] = None,
818
766
  **props,
819
767
  ) -> "Cartesian":
@@ -845,98 +793,98 @@ class Area(Cartesian):
845
793
  def create( # type: ignore
846
794
  cls,
847
795
  *children,
848
- stroke: Optional[Union[Var[Union[Color, str]], str, Color]] = None,
796
+ stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
849
797
  stroke_width: Optional[Union[Var[int], int]] = None,
850
- fill: Optional[Union[Var[Union[Color, str]], str, Color]] = None,
798
+ fill: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
851
799
  type_: Optional[
852
800
  Union[
801
+ Literal[
802
+ "basis",
803
+ "basisClosed",
804
+ "basisOpen",
805
+ "bump",
806
+ "bumpX",
807
+ "bumpY",
808
+ "linear",
809
+ "linearClosed",
810
+ "monotone",
811
+ "monotoneX",
812
+ "monotoneY",
813
+ "natural",
814
+ "step",
815
+ "stepAfter",
816
+ "stepBefore",
817
+ ],
853
818
  Var[
854
819
  Literal[
855
820
  "basis",
856
821
  "basisClosed",
857
822
  "basisOpen",
823
+ "bump",
858
824
  "bumpX",
859
825
  "bumpY",
860
- "bump",
861
826
  "linear",
862
827
  "linearClosed",
863
- "natural",
828
+ "monotone",
864
829
  "monotoneX",
865
830
  "monotoneY",
866
- "monotone",
831
+ "natural",
867
832
  "step",
868
- "stepBefore",
869
833
  "stepAfter",
834
+ "stepBefore",
870
835
  ]
871
836
  ],
872
- Literal[
873
- "basis",
874
- "basisClosed",
875
- "basisOpen",
876
- "bumpX",
877
- "bumpY",
878
- "bump",
879
- "linear",
880
- "linearClosed",
881
- "natural",
882
- "monotoneX",
883
- "monotoneY",
884
- "monotone",
885
- "step",
886
- "stepBefore",
887
- "stepAfter",
888
- ],
889
837
  ]
890
838
  ] = None,
891
839
  dot: Optional[
892
- Union[Var[Union[Dict[str, Any], bool]], bool, Dict[str, Any]]
840
+ Union[Dict[str, Any], Var[Union[Dict[str, Any], bool]], bool]
893
841
  ] = None,
894
842
  active_dot: Optional[
895
- Union[Var[Union[Dict[str, Any], bool]], bool, Dict[str, Any]]
843
+ Union[Dict[str, Any], Var[Union[Dict[str, Any], bool]], bool]
896
844
  ] = None,
897
845
  label: Optional[Union[Var[bool], bool]] = None,
898
- stack_id: Optional[Union[Var[Union[int, str]], str, int]] = None,
899
- unit: Optional[Union[Var[Union[int, str]], str, int]] = None,
900
- name: Optional[Union[Var[Union[int, str]], str, int]] = None,
846
+ stack_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
847
+ unit: Optional[Union[Var[Union[int, str]], int, str]] = None,
848
+ name: Optional[Union[Var[Union[int, str]], int, str]] = None,
901
849
  layout: Optional[
902
850
  Union[
903
- Var[Literal["horizontal", "vertical"]],
904
851
  Literal["horizontal", "vertical"],
852
+ Var[Literal["horizontal", "vertical"]],
905
853
  ]
906
854
  ] = None,
907
- data_key: Optional[Union[Var[Union[int, str]], str, int]] = None,
908
- x_axis_id: Optional[Union[Var[Union[int, str]], str, int]] = None,
909
- y_axis_id: Optional[Union[Var[Union[int, str]], str, int]] = None,
855
+ data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
856
+ x_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
857
+ y_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
910
858
  legend_type: Optional[
911
859
  Union[
860
+ Literal[
861
+ "circle",
862
+ "cross",
863
+ "diamond",
864
+ "line",
865
+ "none",
866
+ "plainline",
867
+ "rect",
868
+ "square",
869
+ "star",
870
+ "triangle",
871
+ "wye",
872
+ ],
912
873
  Var[
913
874
  Literal[
914
- "line",
915
- "plainline",
916
- "square",
917
- "rect",
918
875
  "circle",
919
876
  "cross",
920
877
  "diamond",
878
+ "line",
879
+ "none",
880
+ "plainline",
881
+ "rect",
882
+ "square",
921
883
  "star",
922
884
  "triangle",
923
885
  "wye",
924
- "none",
925
886
  ]
926
887
  ],
927
- Literal[
928
- "line",
929
- "plainline",
930
- "square",
931
- "rect",
932
- "circle",
933
- "cross",
934
- "diamond",
935
- "star",
936
- "triangle",
937
- "wye",
938
- "none",
939
- ],
940
888
  ]
941
889
  ] = None,
942
890
  style: Optional[Style] = None,
@@ -945,50 +893,40 @@ class Area(Cartesian):
945
893
  class_name: Optional[Any] = None,
946
894
  autofocus: Optional[bool] = None,
947
895
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
948
- on_blur: Optional[
949
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
950
- ] = None,
951
- on_click: Optional[
952
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
953
- ] = None,
896
+ on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
897
+ on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
954
898
  on_context_menu: Optional[
955
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
899
+ Union[EventHandler, EventSpec, list, Callable, Var]
956
900
  ] = None,
957
901
  on_double_click: Optional[
958
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
959
- ] = None,
960
- on_focus: Optional[
961
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
962
- ] = None,
963
- on_mount: Optional[
964
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
902
+ Union[EventHandler, EventSpec, list, Callable, Var]
965
903
  ] = None,
904
+ on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
905
+ on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
966
906
  on_mouse_down: Optional[
967
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
907
+ Union[EventHandler, EventSpec, list, Callable, Var]
968
908
  ] = None,
969
909
  on_mouse_enter: Optional[
970
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
910
+ Union[EventHandler, EventSpec, list, Callable, Var]
971
911
  ] = None,
972
912
  on_mouse_leave: Optional[
973
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
913
+ Union[EventHandler, EventSpec, list, Callable, Var]
974
914
  ] = None,
975
915
  on_mouse_move: Optional[
976
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
916
+ Union[EventHandler, EventSpec, list, Callable, Var]
977
917
  ] = None,
978
918
  on_mouse_out: Optional[
979
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
919
+ Union[EventHandler, EventSpec, list, Callable, Var]
980
920
  ] = None,
981
921
  on_mouse_over: Optional[
982
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
922
+ Union[EventHandler, EventSpec, list, Callable, Var]
983
923
  ] = None,
984
924
  on_mouse_up: Optional[
985
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
986
- ] = None,
987
- on_scroll: Optional[
988
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
925
+ Union[EventHandler, EventSpec, list, Callable, Var]
989
926
  ] = None,
927
+ on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
990
928
  on_unmount: Optional[
991
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
929
+ Union[EventHandler, EventSpec, list, Callable, Var]
992
930
  ] = None,
993
931
  **props,
994
932
  ) -> "Area":
@@ -1030,15 +968,15 @@ class Bar(Cartesian):
1030
968
  def create( # type: ignore
1031
969
  cls,
1032
970
  *children,
1033
- stroke: Optional[Union[Var[Union[Color, str]], str, Color]] = None,
971
+ stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
1034
972
  stroke_width: Optional[Union[Var[int], int]] = None,
1035
- fill: Optional[Union[Var[Union[Color, str]], str, Color]] = None,
973
+ fill: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
1036
974
  background: Optional[Union[Var[bool], bool]] = None,
1037
975
  label: Optional[Union[Var[bool], bool]] = None,
1038
976
  stack_id: Optional[Union[Var[str], str]] = None,
1039
- unit: Optional[Union[Var[Union[int, str]], str, int]] = None,
977
+ unit: Optional[Union[Var[Union[int, str]], int, str]] = None,
1040
978
  min_point_size: Optional[Union[Var[int], int]] = None,
1041
- name: Optional[Union[Var[Union[int, str]], str, int]] = None,
979
+ name: Optional[Union[Var[Union[int, str]], int, str]] = None,
1042
980
  bar_size: Optional[Union[Var[int], int]] = None,
1043
981
  max_bar_size: Optional[Union[Var[int], int]] = None,
1044
982
  is_animation_active: Optional[Union[Var[bool], bool]] = None,
@@ -1046,49 +984,49 @@ class Bar(Cartesian):
1046
984
  animation_duration: Optional[Union[Var[int], int]] = None,
1047
985
  animation_easing: Optional[
1048
986
  Union[
1049
- Var[Literal["ease", "ease-in", "ease-out", "ease-in-out", "linear"]],
1050
- Literal["ease", "ease-in", "ease-out", "ease-in-out", "linear"],
987
+ Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"],
988
+ Var[Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"]],
1051
989
  ]
1052
990
  ] = None,
1053
991
  layout: Optional[
1054
992
  Union[
1055
- Var[Literal["horizontal", "vertical"]],
1056
993
  Literal["horizontal", "vertical"],
994
+ Var[Literal["horizontal", "vertical"]],
1057
995
  ]
1058
996
  ] = None,
1059
- data_key: Optional[Union[Var[Union[int, str]], str, int]] = None,
1060
- x_axis_id: Optional[Union[Var[Union[int, str]], str, int]] = None,
1061
- y_axis_id: Optional[Union[Var[Union[int, str]], str, int]] = None,
997
+ data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
998
+ x_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
999
+ y_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
1062
1000
  legend_type: Optional[
1063
1001
  Union[
1002
+ Literal[
1003
+ "circle",
1004
+ "cross",
1005
+ "diamond",
1006
+ "line",
1007
+ "none",
1008
+ "plainline",
1009
+ "rect",
1010
+ "square",
1011
+ "star",
1012
+ "triangle",
1013
+ "wye",
1014
+ ],
1064
1015
  Var[
1065
1016
  Literal[
1066
- "line",
1067
- "plainline",
1068
- "square",
1069
- "rect",
1070
1017
  "circle",
1071
1018
  "cross",
1072
1019
  "diamond",
1020
+ "line",
1021
+ "none",
1022
+ "plainline",
1023
+ "rect",
1024
+ "square",
1073
1025
  "star",
1074
1026
  "triangle",
1075
1027
  "wye",
1076
- "none",
1077
1028
  ]
1078
1029
  ],
1079
- Literal[
1080
- "line",
1081
- "plainline",
1082
- "square",
1083
- "rect",
1084
- "circle",
1085
- "cross",
1086
- "diamond",
1087
- "star",
1088
- "triangle",
1089
- "wye",
1090
- "none",
1091
- ],
1092
1030
  ]
1093
1031
  ] = None,
1094
1032
  style: Optional[Style] = None,
@@ -1098,55 +1036,45 @@ class Bar(Cartesian):
1098
1036
  autofocus: Optional[bool] = None,
1099
1037
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
1100
1038
  on_animation_end: Optional[
1101
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1039
+ Union[EventHandler, EventSpec, list, Callable, Var]
1102
1040
  ] = None,
1103
1041
  on_animation_start: Optional[
1104
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1105
- ] = None,
1106
- on_blur: Optional[
1107
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1108
- ] = None,
1109
- on_click: Optional[
1110
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1042
+ Union[EventHandler, EventSpec, list, Callable, Var]
1111
1043
  ] = None,
1044
+ on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1045
+ on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1112
1046
  on_context_menu: Optional[
1113
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1047
+ Union[EventHandler, EventSpec, list, Callable, Var]
1114
1048
  ] = None,
1115
1049
  on_double_click: Optional[
1116
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1117
- ] = None,
1118
- on_focus: Optional[
1119
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1120
- ] = None,
1121
- on_mount: Optional[
1122
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1050
+ Union[EventHandler, EventSpec, list, Callable, Var]
1123
1051
  ] = None,
1052
+ on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1053
+ on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1124
1054
  on_mouse_down: Optional[
1125
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1055
+ Union[EventHandler, EventSpec, list, Callable, Var]
1126
1056
  ] = None,
1127
1057
  on_mouse_enter: Optional[
1128
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1058
+ Union[EventHandler, EventSpec, list, Callable, Var]
1129
1059
  ] = None,
1130
1060
  on_mouse_leave: Optional[
1131
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1061
+ Union[EventHandler, EventSpec, list, Callable, Var]
1132
1062
  ] = None,
1133
1063
  on_mouse_move: Optional[
1134
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1064
+ Union[EventHandler, EventSpec, list, Callable, Var]
1135
1065
  ] = None,
1136
1066
  on_mouse_out: Optional[
1137
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1067
+ Union[EventHandler, EventSpec, list, Callable, Var]
1138
1068
  ] = None,
1139
1069
  on_mouse_over: Optional[
1140
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1070
+ Union[EventHandler, EventSpec, list, Callable, Var]
1141
1071
  ] = None,
1142
1072
  on_mouse_up: Optional[
1143
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1144
- ] = None,
1145
- on_scroll: Optional[
1146
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1073
+ Union[EventHandler, EventSpec, list, Callable, Var]
1147
1074
  ] = None,
1075
+ on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1148
1076
  on_unmount: Optional[
1149
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1077
+ Union[EventHandler, EventSpec, list, Callable, Var]
1150
1078
  ] = None,
1151
1079
  **props,
1152
1080
  ) -> "Bar":
@@ -1195,96 +1123,96 @@ class Line(Cartesian):
1195
1123
  *children,
1196
1124
  type_: Optional[
1197
1125
  Union[
1126
+ Literal[
1127
+ "basis",
1128
+ "basisClosed",
1129
+ "basisOpen",
1130
+ "bump",
1131
+ "bumpX",
1132
+ "bumpY",
1133
+ "linear",
1134
+ "linearClosed",
1135
+ "monotone",
1136
+ "monotoneX",
1137
+ "monotoneY",
1138
+ "natural",
1139
+ "step",
1140
+ "stepAfter",
1141
+ "stepBefore",
1142
+ ],
1198
1143
  Var[
1199
1144
  Literal[
1200
1145
  "basis",
1201
1146
  "basisClosed",
1202
1147
  "basisOpen",
1148
+ "bump",
1203
1149
  "bumpX",
1204
1150
  "bumpY",
1205
- "bump",
1206
1151
  "linear",
1207
1152
  "linearClosed",
1208
- "natural",
1153
+ "monotone",
1209
1154
  "monotoneX",
1210
1155
  "monotoneY",
1211
- "monotone",
1156
+ "natural",
1212
1157
  "step",
1213
- "stepBefore",
1214
1158
  "stepAfter",
1159
+ "stepBefore",
1215
1160
  ]
1216
1161
  ],
1217
- Literal[
1218
- "basis",
1219
- "basisClosed",
1220
- "basisOpen",
1221
- "bumpX",
1222
- "bumpY",
1223
- "bump",
1224
- "linear",
1225
- "linearClosed",
1226
- "natural",
1227
- "monotoneX",
1228
- "monotoneY",
1229
- "monotone",
1230
- "step",
1231
- "stepBefore",
1232
- "stepAfter",
1233
- ],
1234
1162
  ]
1235
1163
  ] = None,
1236
- stroke: Optional[Union[Var[Union[Color, str]], str, Color]] = None,
1164
+ stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
1237
1165
  stroke_width: Optional[Union[Var[int], int]] = None,
1238
1166
  dot: Optional[
1239
- Union[Var[Union[Dict[str, Any], bool]], bool, Dict[str, Any]]
1167
+ Union[Dict[str, Any], Var[Union[Dict[str, Any], bool]], bool]
1240
1168
  ] = None,
1241
1169
  active_dot: Optional[
1242
- Union[Var[Union[Dict[str, Any], bool]], bool, Dict[str, Any]]
1170
+ Union[Dict[str, Any], Var[Union[Dict[str, Any], bool]], bool]
1243
1171
  ] = None,
1244
1172
  label: Optional[Union[Var[bool], bool]] = None,
1245
1173
  hide: Optional[Union[Var[bool], bool]] = None,
1246
1174
  connect_nulls: Optional[Union[Var[bool], bool]] = None,
1247
- unit: Optional[Union[Var[Union[int, str]], str, int]] = None,
1248
- name: Optional[Union[Var[Union[int, str]], str, int]] = None,
1175
+ unit: Optional[Union[Var[Union[int, str]], int, str]] = None,
1176
+ name: Optional[Union[Var[Union[int, str]], int, str]] = None,
1249
1177
  layout: Optional[
1250
1178
  Union[
1251
- Var[Literal["horizontal", "vertical"]],
1252
1179
  Literal["horizontal", "vertical"],
1180
+ Var[Literal["horizontal", "vertical"]],
1253
1181
  ]
1254
1182
  ] = None,
1255
- data_key: Optional[Union[Var[Union[int, str]], str, int]] = None,
1256
- x_axis_id: Optional[Union[Var[Union[int, str]], str, int]] = None,
1257
- y_axis_id: Optional[Union[Var[Union[int, str]], str, int]] = None,
1183
+ data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
1184
+ x_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
1185
+ y_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
1258
1186
  legend_type: Optional[
1259
1187
  Union[
1188
+ Literal[
1189
+ "circle",
1190
+ "cross",
1191
+ "diamond",
1192
+ "line",
1193
+ "none",
1194
+ "plainline",
1195
+ "rect",
1196
+ "square",
1197
+ "star",
1198
+ "triangle",
1199
+ "wye",
1200
+ ],
1260
1201
  Var[
1261
1202
  Literal[
1262
- "line",
1263
- "plainline",
1264
- "square",
1265
- "rect",
1266
1203
  "circle",
1267
1204
  "cross",
1268
1205
  "diamond",
1206
+ "line",
1207
+ "none",
1208
+ "plainline",
1209
+ "rect",
1210
+ "square",
1269
1211
  "star",
1270
1212
  "triangle",
1271
1213
  "wye",
1272
- "none",
1273
1214
  ]
1274
1215
  ],
1275
- Literal[
1276
- "line",
1277
- "plainline",
1278
- "square",
1279
- "rect",
1280
- "circle",
1281
- "cross",
1282
- "diamond",
1283
- "star",
1284
- "triangle",
1285
- "wye",
1286
- "none",
1287
- ],
1288
1216
  ]
1289
1217
  ] = None,
1290
1218
  style: Optional[Style] = None,
@@ -1293,50 +1221,40 @@ class Line(Cartesian):
1293
1221
  class_name: Optional[Any] = None,
1294
1222
  autofocus: Optional[bool] = None,
1295
1223
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
1296
- on_blur: Optional[
1297
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1298
- ] = None,
1299
- on_click: Optional[
1300
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1301
- ] = None,
1224
+ on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1225
+ on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1302
1226
  on_context_menu: Optional[
1303
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1227
+ Union[EventHandler, EventSpec, list, Callable, Var]
1304
1228
  ] = None,
1305
1229
  on_double_click: Optional[
1306
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1307
- ] = None,
1308
- on_focus: Optional[
1309
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1310
- ] = None,
1311
- on_mount: Optional[
1312
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1230
+ Union[EventHandler, EventSpec, list, Callable, Var]
1313
1231
  ] = None,
1232
+ on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1233
+ on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1314
1234
  on_mouse_down: Optional[
1315
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1235
+ Union[EventHandler, EventSpec, list, Callable, Var]
1316
1236
  ] = None,
1317
1237
  on_mouse_enter: Optional[
1318
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1238
+ Union[EventHandler, EventSpec, list, Callable, Var]
1319
1239
  ] = None,
1320
1240
  on_mouse_leave: Optional[
1321
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1241
+ Union[EventHandler, EventSpec, list, Callable, Var]
1322
1242
  ] = None,
1323
1243
  on_mouse_move: Optional[
1324
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1244
+ Union[EventHandler, EventSpec, list, Callable, Var]
1325
1245
  ] = None,
1326
1246
  on_mouse_out: Optional[
1327
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1247
+ Union[EventHandler, EventSpec, list, Callable, Var]
1328
1248
  ] = None,
1329
1249
  on_mouse_over: Optional[
1330
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1250
+ Union[EventHandler, EventSpec, list, Callable, Var]
1331
1251
  ] = None,
1332
1252
  on_mouse_up: Optional[
1333
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1334
- ] = None,
1335
- on_scroll: Optional[
1336
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1253
+ Union[EventHandler, EventSpec, list, Callable, Var]
1337
1254
  ] = None,
1255
+ on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1338
1256
  on_unmount: Optional[
1339
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1257
+ Union[EventHandler, EventSpec, list, Callable, Var]
1340
1258
  ] = None,
1341
1259
  **props,
1342
1260
  ) -> "Line":
@@ -1378,73 +1296,73 @@ class Scatter(Recharts):
1378
1296
  def create( # type: ignore
1379
1297
  cls,
1380
1298
  *children,
1381
- data: Optional[Union[Var[List[Dict[str, Any]]], List[Dict[str, Any]]]] = None,
1299
+ data: Optional[Union[List[Dict[str, Any]], Var[List[Dict[str, Any]]]]] = None,
1382
1300
  legend_type: Optional[
1383
1301
  Union[
1302
+ Literal[
1303
+ "circle",
1304
+ "cross",
1305
+ "diamond",
1306
+ "line",
1307
+ "none",
1308
+ "plainline",
1309
+ "rect",
1310
+ "square",
1311
+ "star",
1312
+ "triangle",
1313
+ "wye",
1314
+ ],
1384
1315
  Var[
1385
1316
  Literal[
1386
- "line",
1387
- "plainline",
1388
- "square",
1389
- "rect",
1390
1317
  "circle",
1391
1318
  "cross",
1392
1319
  "diamond",
1320
+ "line",
1321
+ "none",
1322
+ "plainline",
1323
+ "rect",
1324
+ "square",
1393
1325
  "star",
1394
1326
  "triangle",
1395
1327
  "wye",
1396
- "none",
1397
1328
  ]
1398
1329
  ],
1399
- Literal[
1400
- "line",
1401
- "plainline",
1402
- "square",
1403
- "rect",
1404
- "circle",
1405
- "cross",
1406
- "diamond",
1407
- "star",
1408
- "triangle",
1409
- "wye",
1410
- "none",
1411
- ],
1412
1330
  ]
1413
1331
  ] = None,
1414
- x_axis_id: Optional[Union[Var[Union[int, str]], str, int]] = None,
1415
- y_axis_id: Optional[Union[Var[Union[int, str]], str, int]] = None,
1332
+ x_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
1333
+ y_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
1416
1334
  z_axis_id: Optional[Union[Var[str], str]] = None,
1417
1335
  line: Optional[Union[Var[bool], bool]] = None,
1418
1336
  shape: Optional[
1419
1337
  Union[
1338
+ Literal[
1339
+ "circle", "cross", "diamond", "square", "star", "triangle", "wye"
1340
+ ],
1420
1341
  Var[
1421
1342
  Literal[
1422
- "square",
1423
1343
  "circle",
1424
1344
  "cross",
1425
1345
  "diamond",
1346
+ "square",
1426
1347
  "star",
1427
1348
  "triangle",
1428
1349
  "wye",
1429
1350
  ]
1430
1351
  ],
1431
- Literal[
1432
- "square", "circle", "cross", "diamond", "star", "triangle", "wye"
1433
- ],
1434
1352
  ]
1435
1353
  ] = None,
1436
1354
  line_type: Optional[
1437
- Union[Var[Literal["joint", "fitting"]], Literal["joint", "fitting"]]
1355
+ Union[Literal["fitting", "joint"], Var[Literal["fitting", "joint"]]]
1438
1356
  ] = None,
1439
- fill: Optional[Union[Var[Union[Color, str]], str, Color]] = None,
1440
- name: Optional[Union[Var[Union[int, str]], str, int]] = None,
1357
+ fill: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
1358
+ name: Optional[Union[Var[Union[int, str]], int, str]] = None,
1441
1359
  is_animation_active: Optional[Union[Var[bool], bool]] = None,
1442
1360
  animation_begin: Optional[Union[Var[int], int]] = None,
1443
1361
  animation_duration: Optional[Union[Var[int], int]] = None,
1444
1362
  animation_easing: Optional[
1445
1363
  Union[
1446
- Var[Literal["ease", "ease-in", "ease-out", "ease-in-out", "linear"]],
1447
- Literal["ease", "ease-in", "ease-out", "ease-in-out", "linear"],
1364
+ Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"],
1365
+ Var[Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"]],
1448
1366
  ]
1449
1367
  ] = None,
1450
1368
  style: Optional[Style] = None,
@@ -1453,50 +1371,40 @@ class Scatter(Recharts):
1453
1371
  class_name: Optional[Any] = None,
1454
1372
  autofocus: Optional[bool] = None,
1455
1373
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
1456
- on_blur: Optional[
1457
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1458
- ] = None,
1459
- on_click: Optional[
1460
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1461
- ] = None,
1374
+ on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1375
+ on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1462
1376
  on_context_menu: Optional[
1463
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1377
+ Union[EventHandler, EventSpec, list, Callable, Var]
1464
1378
  ] = None,
1465
1379
  on_double_click: Optional[
1466
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1467
- ] = None,
1468
- on_focus: Optional[
1469
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1470
- ] = None,
1471
- on_mount: Optional[
1472
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1380
+ Union[EventHandler, EventSpec, list, Callable, Var]
1473
1381
  ] = None,
1382
+ on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1383
+ on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1474
1384
  on_mouse_down: Optional[
1475
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1385
+ Union[EventHandler, EventSpec, list, Callable, Var]
1476
1386
  ] = None,
1477
1387
  on_mouse_enter: Optional[
1478
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1388
+ Union[EventHandler, EventSpec, list, Callable, Var]
1479
1389
  ] = None,
1480
1390
  on_mouse_leave: Optional[
1481
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1391
+ Union[EventHandler, EventSpec, list, Callable, Var]
1482
1392
  ] = None,
1483
1393
  on_mouse_move: Optional[
1484
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1394
+ Union[EventHandler, EventSpec, list, Callable, Var]
1485
1395
  ] = None,
1486
1396
  on_mouse_out: Optional[
1487
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1397
+ Union[EventHandler, EventSpec, list, Callable, Var]
1488
1398
  ] = None,
1489
1399
  on_mouse_over: Optional[
1490
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1400
+ Union[EventHandler, EventSpec, list, Callable, Var]
1491
1401
  ] = None,
1492
1402
  on_mouse_up: Optional[
1493
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1494
- ] = None,
1495
- on_scroll: Optional[
1496
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1403
+ Union[EventHandler, EventSpec, list, Callable, Var]
1497
1404
  ] = None,
1405
+ on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1498
1406
  on_unmount: Optional[
1499
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1407
+ Union[EventHandler, EventSpec, list, Callable, Var]
1500
1408
  ] = None,
1501
1409
  **props,
1502
1410
  ) -> "Scatter":
@@ -1537,39 +1445,39 @@ class Funnel(Recharts):
1537
1445
  def create( # type: ignore
1538
1446
  cls,
1539
1447
  *children,
1540
- data: Optional[Union[Var[List[Dict[str, Any]]], List[Dict[str, Any]]]] = None,
1541
- data_key: Optional[Union[Var[Union[int, str]], str, int]] = None,
1448
+ data: Optional[Union[List[Dict[str, Any]], Var[List[Dict[str, Any]]]]] = None,
1449
+ data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
1542
1450
  name_key: Optional[Union[Var[str], str]] = None,
1543
1451
  legend_type: Optional[
1544
1452
  Union[
1453
+ Literal[
1454
+ "circle",
1455
+ "cross",
1456
+ "diamond",
1457
+ "line",
1458
+ "none",
1459
+ "plainline",
1460
+ "rect",
1461
+ "square",
1462
+ "star",
1463
+ "triangle",
1464
+ "wye",
1465
+ ],
1545
1466
  Var[
1546
1467
  Literal[
1547
- "line",
1548
- "plainline",
1549
- "square",
1550
- "rect",
1551
1468
  "circle",
1552
1469
  "cross",
1553
1470
  "diamond",
1471
+ "line",
1472
+ "none",
1473
+ "plainline",
1474
+ "rect",
1475
+ "square",
1554
1476
  "star",
1555
1477
  "triangle",
1556
1478
  "wye",
1557
- "none",
1558
1479
  ]
1559
1480
  ],
1560
- Literal[
1561
- "line",
1562
- "plainline",
1563
- "square",
1564
- "rect",
1565
- "circle",
1566
- "cross",
1567
- "diamond",
1568
- "star",
1569
- "triangle",
1570
- "wye",
1571
- "none",
1572
- ],
1573
1481
  ]
1574
1482
  ] = None,
1575
1483
  is_animation_active: Optional[Union[Var[bool], bool]] = None,
@@ -1577,11 +1485,11 @@ class Funnel(Recharts):
1577
1485
  animation_duration: Optional[Union[Var[int], int]] = None,
1578
1486
  animation_easing: Optional[
1579
1487
  Union[
1580
- Var[Literal["ease", "ease-in", "ease-out", "ease-in-out", "linear"]],
1581
- Literal["ease", "ease-in", "ease-out", "ease-in-out", "linear"],
1488
+ Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"],
1489
+ Var[Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"]],
1582
1490
  ]
1583
1491
  ] = None,
1584
- stroke: Optional[Union[Var[Union[Color, str]], str, Color]] = None,
1492
+ stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
1585
1493
  style: Optional[Style] = None,
1586
1494
  key: Optional[Any] = None,
1587
1495
  id: Optional[Any] = None,
@@ -1589,55 +1497,45 @@ class Funnel(Recharts):
1589
1497
  autofocus: Optional[bool] = None,
1590
1498
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
1591
1499
  on_animation_end: Optional[
1592
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1500
+ Union[EventHandler, EventSpec, list, Callable, Var]
1593
1501
  ] = None,
1594
1502
  on_animation_start: Optional[
1595
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1596
- ] = None,
1597
- on_blur: Optional[
1598
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1599
- ] = None,
1600
- on_click: Optional[
1601
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1503
+ Union[EventHandler, EventSpec, list, Callable, Var]
1602
1504
  ] = None,
1505
+ on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1506
+ on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1603
1507
  on_context_menu: Optional[
1604
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1508
+ Union[EventHandler, EventSpec, list, Callable, Var]
1605
1509
  ] = None,
1606
1510
  on_double_click: Optional[
1607
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1608
- ] = None,
1609
- on_focus: Optional[
1610
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1611
- ] = None,
1612
- on_mount: Optional[
1613
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1511
+ Union[EventHandler, EventSpec, list, Callable, Var]
1614
1512
  ] = None,
1513
+ on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1514
+ on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1615
1515
  on_mouse_down: Optional[
1616
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1516
+ Union[EventHandler, EventSpec, list, Callable, Var]
1617
1517
  ] = None,
1618
1518
  on_mouse_enter: Optional[
1619
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1519
+ Union[EventHandler, EventSpec, list, Callable, Var]
1620
1520
  ] = None,
1621
1521
  on_mouse_leave: Optional[
1622
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1522
+ Union[EventHandler, EventSpec, list, Callable, Var]
1623
1523
  ] = None,
1624
1524
  on_mouse_move: Optional[
1625
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1525
+ Union[EventHandler, EventSpec, list, Callable, Var]
1626
1526
  ] = None,
1627
1527
  on_mouse_out: Optional[
1628
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1528
+ Union[EventHandler, EventSpec, list, Callable, Var]
1629
1529
  ] = None,
1630
1530
  on_mouse_over: Optional[
1631
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1531
+ Union[EventHandler, EventSpec, list, Callable, Var]
1632
1532
  ] = None,
1633
1533
  on_mouse_up: Optional[
1634
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1635
- ] = None,
1636
- on_scroll: Optional[
1637
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1534
+ Union[EventHandler, EventSpec, list, Callable, Var]
1638
1535
  ] = None,
1536
+ on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1639
1537
  on_unmount: Optional[
1640
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1538
+ Union[EventHandler, EventSpec, list, Callable, Var]
1641
1539
  ] = None,
1642
1540
  **props,
1643
1541
  ) -> "Funnel":
@@ -1674,11 +1572,11 @@ class ErrorBar(Recharts):
1674
1572
  cls,
1675
1573
  *children,
1676
1574
  direction: Optional[
1677
- Union[Var[Literal["x", "y", "both"]], Literal["x", "y", "both"]]
1575
+ Union[Literal["both", "x", "y"], Var[Literal["both", "x", "y"]]]
1678
1576
  ] = None,
1679
- data_key: Optional[Union[Var[Union[int, str]], str, int]] = None,
1577
+ data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
1680
1578
  width: Optional[Union[Var[int], int]] = None,
1681
- stroke: Optional[Union[Var[Union[Color, str]], str, Color]] = None,
1579
+ stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
1682
1580
  stroke_width: Optional[Union[Var[int], int]] = None,
1683
1581
  style: Optional[Style] = None,
1684
1582
  key: Optional[Any] = None,
@@ -1686,50 +1584,40 @@ class ErrorBar(Recharts):
1686
1584
  class_name: Optional[Any] = None,
1687
1585
  autofocus: Optional[bool] = None,
1688
1586
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
1689
- on_blur: Optional[
1690
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1691
- ] = None,
1692
- on_click: Optional[
1693
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1694
- ] = None,
1587
+ on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1588
+ on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1695
1589
  on_context_menu: Optional[
1696
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1590
+ Union[EventHandler, EventSpec, list, Callable, Var]
1697
1591
  ] = None,
1698
1592
  on_double_click: Optional[
1699
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1700
- ] = None,
1701
- on_focus: Optional[
1702
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1703
- ] = None,
1704
- on_mount: Optional[
1705
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1593
+ Union[EventHandler, EventSpec, list, Callable, Var]
1706
1594
  ] = None,
1595
+ on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1596
+ on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1707
1597
  on_mouse_down: Optional[
1708
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1598
+ Union[EventHandler, EventSpec, list, Callable, Var]
1709
1599
  ] = None,
1710
1600
  on_mouse_enter: Optional[
1711
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1601
+ Union[EventHandler, EventSpec, list, Callable, Var]
1712
1602
  ] = None,
1713
1603
  on_mouse_leave: Optional[
1714
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1604
+ Union[EventHandler, EventSpec, list, Callable, Var]
1715
1605
  ] = None,
1716
1606
  on_mouse_move: Optional[
1717
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1607
+ Union[EventHandler, EventSpec, list, Callable, Var]
1718
1608
  ] = None,
1719
1609
  on_mouse_out: Optional[
1720
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1610
+ Union[EventHandler, EventSpec, list, Callable, Var]
1721
1611
  ] = None,
1722
1612
  on_mouse_over: Optional[
1723
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1613
+ Union[EventHandler, EventSpec, list, Callable, Var]
1724
1614
  ] = None,
1725
1615
  on_mouse_up: Optional[
1726
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1727
- ] = None,
1728
- on_scroll: Optional[
1729
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1616
+ Union[EventHandler, EventSpec, list, Callable, Var]
1730
1617
  ] = None,
1618
+ on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1731
1619
  on_unmount: Optional[
1732
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1620
+ Union[EventHandler, EventSpec, list, Callable, Var]
1733
1621
  ] = None,
1734
1622
  **props,
1735
1623
  ) -> "ErrorBar":
@@ -1761,15 +1649,15 @@ class Reference(Recharts):
1761
1649
  def create( # type: ignore
1762
1650
  cls,
1763
1651
  *children,
1764
- x_axis_id: Optional[Union[Var[Union[int, str]], str, int]] = None,
1765
- y_axis_id: Optional[Union[Var[Union[int, str]], str, int]] = None,
1652
+ x_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
1653
+ y_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
1766
1654
  if_overflow: Optional[
1767
1655
  Union[
1768
- Var[Literal["discard", "hidden", "visible", "extendDomain"]],
1769
- Literal["discard", "hidden", "visible", "extendDomain"],
1656
+ Literal["discard", "extendDomain", "hidden", "visible"],
1657
+ Var[Literal["discard", "extendDomain", "hidden", "visible"]],
1770
1658
  ]
1771
1659
  ] = None,
1772
- label: Optional[Union[Var[Union[int, str]], str, int]] = None,
1660
+ label: Optional[Union[Var[Union[int, str]], int, str]] = None,
1773
1661
  is_front: Optional[Union[Var[bool], bool]] = None,
1774
1662
  style: Optional[Style] = None,
1775
1663
  key: Optional[Any] = None,
@@ -1777,50 +1665,40 @@ class Reference(Recharts):
1777
1665
  class_name: Optional[Any] = None,
1778
1666
  autofocus: Optional[bool] = None,
1779
1667
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
1780
- on_blur: Optional[
1781
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1782
- ] = None,
1783
- on_click: Optional[
1784
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1785
- ] = None,
1668
+ on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1669
+ on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1786
1670
  on_context_menu: Optional[
1787
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1671
+ Union[EventHandler, EventSpec, list, Callable, Var]
1788
1672
  ] = None,
1789
1673
  on_double_click: Optional[
1790
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1791
- ] = None,
1792
- on_focus: Optional[
1793
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1794
- ] = None,
1795
- on_mount: Optional[
1796
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1674
+ Union[EventHandler, EventSpec, list, Callable, Var]
1797
1675
  ] = None,
1676
+ on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1677
+ on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1798
1678
  on_mouse_down: Optional[
1799
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1679
+ Union[EventHandler, EventSpec, list, Callable, Var]
1800
1680
  ] = None,
1801
1681
  on_mouse_enter: Optional[
1802
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1682
+ Union[EventHandler, EventSpec, list, Callable, Var]
1803
1683
  ] = None,
1804
1684
  on_mouse_leave: Optional[
1805
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1685
+ Union[EventHandler, EventSpec, list, Callable, Var]
1806
1686
  ] = None,
1807
1687
  on_mouse_move: Optional[
1808
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1688
+ Union[EventHandler, EventSpec, list, Callable, Var]
1809
1689
  ] = None,
1810
1690
  on_mouse_out: Optional[
1811
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1691
+ Union[EventHandler, EventSpec, list, Callable, Var]
1812
1692
  ] = None,
1813
1693
  on_mouse_over: Optional[
1814
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1694
+ Union[EventHandler, EventSpec, list, Callable, Var]
1815
1695
  ] = None,
1816
1696
  on_mouse_up: Optional[
1817
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1818
- ] = None,
1819
- on_scroll: Optional[
1820
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1697
+ Union[EventHandler, EventSpec, list, Callable, Var]
1821
1698
  ] = None,
1699
+ on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1822
1700
  on_unmount: Optional[
1823
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1701
+ Union[EventHandler, EventSpec, list, Callable, Var]
1824
1702
  ] = None,
1825
1703
  **props,
1826
1704
  ) -> "Reference":
@@ -1852,20 +1730,20 @@ class ReferenceLine(Reference):
1852
1730
  def create( # type: ignore
1853
1731
  cls,
1854
1732
  *children,
1855
- x: Optional[Union[Var[Union[int, str]], str, int]] = None,
1856
- y: Optional[Union[Var[Union[int, str]], str, int]] = None,
1857
- stroke: Optional[Union[Var[Union[Color, str]], str, Color]] = None,
1858
- stroke_width: Optional[Union[Var[Union[int, str]], str, int]] = None,
1733
+ x: Optional[Union[Var[Union[int, str]], int, str]] = None,
1734
+ y: Optional[Union[Var[Union[int, str]], int, str]] = None,
1735
+ stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
1736
+ stroke_width: Optional[Union[Var[Union[int, str]], int, str]] = None,
1859
1737
  segment: Optional[List[Any]] = None,
1860
- x_axis_id: Optional[Union[Var[Union[int, str]], str, int]] = None,
1861
- y_axis_id: Optional[Union[Var[Union[int, str]], str, int]] = None,
1738
+ x_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
1739
+ y_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
1862
1740
  if_overflow: Optional[
1863
1741
  Union[
1864
- Var[Literal["discard", "hidden", "visible", "extendDomain"]],
1865
- Literal["discard", "hidden", "visible", "extendDomain"],
1742
+ Literal["discard", "extendDomain", "hidden", "visible"],
1743
+ Var[Literal["discard", "extendDomain", "hidden", "visible"]],
1866
1744
  ]
1867
1745
  ] = None,
1868
- label: Optional[Union[Var[Union[int, str]], str, int]] = None,
1746
+ label: Optional[Union[Var[Union[int, str]], int, str]] = None,
1869
1747
  is_front: Optional[Union[Var[bool], bool]] = None,
1870
1748
  style: Optional[Style] = None,
1871
1749
  key: Optional[Any] = None,
@@ -1873,50 +1751,40 @@ class ReferenceLine(Reference):
1873
1751
  class_name: Optional[Any] = None,
1874
1752
  autofocus: Optional[bool] = None,
1875
1753
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
1876
- on_blur: Optional[
1877
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1878
- ] = None,
1879
- on_click: Optional[
1880
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1881
- ] = None,
1754
+ on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1755
+ on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1882
1756
  on_context_menu: Optional[
1883
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1757
+ Union[EventHandler, EventSpec, list, Callable, Var]
1884
1758
  ] = None,
1885
1759
  on_double_click: Optional[
1886
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1887
- ] = None,
1888
- on_focus: Optional[
1889
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1890
- ] = None,
1891
- on_mount: Optional[
1892
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1760
+ Union[EventHandler, EventSpec, list, Callable, Var]
1893
1761
  ] = None,
1762
+ on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1763
+ on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1894
1764
  on_mouse_down: Optional[
1895
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1765
+ Union[EventHandler, EventSpec, list, Callable, Var]
1896
1766
  ] = None,
1897
1767
  on_mouse_enter: Optional[
1898
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1768
+ Union[EventHandler, EventSpec, list, Callable, Var]
1899
1769
  ] = None,
1900
1770
  on_mouse_leave: Optional[
1901
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1771
+ Union[EventHandler, EventSpec, list, Callable, Var]
1902
1772
  ] = None,
1903
1773
  on_mouse_move: Optional[
1904
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1774
+ Union[EventHandler, EventSpec, list, Callable, Var]
1905
1775
  ] = None,
1906
1776
  on_mouse_out: Optional[
1907
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1777
+ Union[EventHandler, EventSpec, list, Callable, Var]
1908
1778
  ] = None,
1909
1779
  on_mouse_over: Optional[
1910
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1780
+ Union[EventHandler, EventSpec, list, Callable, Var]
1911
1781
  ] = None,
1912
1782
  on_mouse_up: Optional[
1913
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1914
- ] = None,
1915
- on_scroll: Optional[
1916
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1783
+ Union[EventHandler, EventSpec, list, Callable, Var]
1917
1784
  ] = None,
1785
+ on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1918
1786
  on_unmount: Optional[
1919
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1787
+ Union[EventHandler, EventSpec, list, Callable, Var]
1920
1788
  ] = None,
1921
1789
  **props,
1922
1790
  ) -> "ReferenceLine":
@@ -1953,20 +1821,20 @@ class ReferenceDot(Reference):
1953
1821
  def create( # type: ignore
1954
1822
  cls,
1955
1823
  *children,
1956
- x: Optional[Union[Var[Union[int, str]], str, int]] = None,
1957
- y: Optional[Union[Var[Union[int, str]], str, int]] = None,
1824
+ x: Optional[Union[Var[Union[int, str]], int, str]] = None,
1825
+ y: Optional[Union[Var[Union[int, str]], int, str]] = None,
1958
1826
  r: Optional[Union[Var[int], int]] = None,
1959
- fill: Optional[Union[Var[Union[Color, str]], str, Color]] = None,
1960
- stroke: Optional[Union[Var[Union[Color, str]], str, Color]] = None,
1961
- x_axis_id: Optional[Union[Var[Union[int, str]], str, int]] = None,
1962
- y_axis_id: Optional[Union[Var[Union[int, str]], str, int]] = None,
1827
+ fill: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
1828
+ stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
1829
+ x_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
1830
+ y_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
1963
1831
  if_overflow: Optional[
1964
1832
  Union[
1965
- Var[Literal["discard", "hidden", "visible", "extendDomain"]],
1966
- Literal["discard", "hidden", "visible", "extendDomain"],
1833
+ Literal["discard", "extendDomain", "hidden", "visible"],
1834
+ Var[Literal["discard", "extendDomain", "hidden", "visible"]],
1967
1835
  ]
1968
1836
  ] = None,
1969
- label: Optional[Union[Var[Union[int, str]], str, int]] = None,
1837
+ label: Optional[Union[Var[Union[int, str]], int, str]] = None,
1970
1838
  is_front: Optional[Union[Var[bool], bool]] = None,
1971
1839
  style: Optional[Style] = None,
1972
1840
  key: Optional[Any] = None,
@@ -1974,50 +1842,40 @@ class ReferenceDot(Reference):
1974
1842
  class_name: Optional[Any] = None,
1975
1843
  autofocus: Optional[bool] = None,
1976
1844
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
1977
- on_blur: Optional[
1978
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1979
- ] = None,
1980
- on_click: Optional[
1981
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1982
- ] = None,
1845
+ on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1846
+ on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1983
1847
  on_context_menu: Optional[
1984
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1848
+ Union[EventHandler, EventSpec, list, Callable, Var]
1985
1849
  ] = None,
1986
1850
  on_double_click: Optional[
1987
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1988
- ] = None,
1989
- on_focus: Optional[
1990
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1991
- ] = None,
1992
- on_mount: Optional[
1993
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1851
+ Union[EventHandler, EventSpec, list, Callable, Var]
1994
1852
  ] = None,
1853
+ on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1854
+ on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1995
1855
  on_mouse_down: Optional[
1996
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1856
+ Union[EventHandler, EventSpec, list, Callable, Var]
1997
1857
  ] = None,
1998
1858
  on_mouse_enter: Optional[
1999
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1859
+ Union[EventHandler, EventSpec, list, Callable, Var]
2000
1860
  ] = None,
2001
1861
  on_mouse_leave: Optional[
2002
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1862
+ Union[EventHandler, EventSpec, list, Callable, Var]
2003
1863
  ] = None,
2004
1864
  on_mouse_move: Optional[
2005
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1865
+ Union[EventHandler, EventSpec, list, Callable, Var]
2006
1866
  ] = None,
2007
1867
  on_mouse_out: Optional[
2008
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1868
+ Union[EventHandler, EventSpec, list, Callable, Var]
2009
1869
  ] = None,
2010
1870
  on_mouse_over: Optional[
2011
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1871
+ Union[EventHandler, EventSpec, list, Callable, Var]
2012
1872
  ] = None,
2013
1873
  on_mouse_up: Optional[
2014
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2015
- ] = None,
2016
- on_scroll: Optional[
2017
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1874
+ Union[EventHandler, EventSpec, list, Callable, Var]
2018
1875
  ] = None,
1876
+ on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
2019
1877
  on_unmount: Optional[
2020
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1878
+ Union[EventHandler, EventSpec, list, Callable, Var]
2021
1879
  ] = None,
2022
1880
  **props,
2023
1881
  ) -> "ReferenceDot":
@@ -2054,19 +1912,19 @@ class ReferenceArea(Recharts):
2054
1912
  def create( # type: ignore
2055
1913
  cls,
2056
1914
  *children,
2057
- stroke: Optional[Union[Var[Union[Color, str]], str, Color]] = None,
2058
- fill: Optional[Union[Var[Union[Color, str]], str, Color]] = None,
1915
+ stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
1916
+ fill: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
2059
1917
  fill_opacity: Optional[Union[Var[float], float]] = None,
2060
- x_axis_id: Optional[Union[Var[Union[int, str]], str, int]] = None,
2061
- y_axis_id: Optional[Union[Var[Union[int, str]], str, int]] = None,
2062
- x1: Optional[Union[Var[Union[int, str]], str, int]] = None,
2063
- x2: Optional[Union[Var[Union[int, str]], str, int]] = None,
2064
- y1: Optional[Union[Var[Union[int, str]], str, int]] = None,
2065
- y2: Optional[Union[Var[Union[int, str]], str, int]] = None,
1918
+ x_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
1919
+ y_axis_id: Optional[Union[Var[Union[int, str]], int, str]] = None,
1920
+ x1: Optional[Union[Var[Union[int, str]], int, str]] = None,
1921
+ x2: Optional[Union[Var[Union[int, str]], int, str]] = None,
1922
+ y1: Optional[Union[Var[Union[int, str]], int, str]] = None,
1923
+ y2: Optional[Union[Var[Union[int, str]], int, str]] = None,
2066
1924
  if_overflow: Optional[
2067
1925
  Union[
2068
- Var[Literal["discard", "hidden", "visible", "extendDomain"]],
2069
- Literal["discard", "hidden", "visible", "extendDomain"],
1926
+ Literal["discard", "extendDomain", "hidden", "visible"],
1927
+ Var[Literal["discard", "extendDomain", "hidden", "visible"]],
2070
1928
  ]
2071
1929
  ] = None,
2072
1930
  is_front: Optional[Union[Var[bool], bool]] = None,
@@ -2076,50 +1934,40 @@ class ReferenceArea(Recharts):
2076
1934
  class_name: Optional[Any] = None,
2077
1935
  autofocus: Optional[bool] = None,
2078
1936
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
2079
- on_blur: Optional[
2080
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2081
- ] = None,
2082
- on_click: Optional[
2083
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2084
- ] = None,
1937
+ on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1938
+ on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
2085
1939
  on_context_menu: Optional[
2086
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1940
+ Union[EventHandler, EventSpec, list, Callable, Var]
2087
1941
  ] = None,
2088
1942
  on_double_click: Optional[
2089
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2090
- ] = None,
2091
- on_focus: Optional[
2092
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2093
- ] = None,
2094
- on_mount: Optional[
2095
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1943
+ Union[EventHandler, EventSpec, list, Callable, Var]
2096
1944
  ] = None,
1945
+ on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
1946
+ on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
2097
1947
  on_mouse_down: Optional[
2098
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1948
+ Union[EventHandler, EventSpec, list, Callable, Var]
2099
1949
  ] = None,
2100
1950
  on_mouse_enter: Optional[
2101
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1951
+ Union[EventHandler, EventSpec, list, Callable, Var]
2102
1952
  ] = None,
2103
1953
  on_mouse_leave: Optional[
2104
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1954
+ Union[EventHandler, EventSpec, list, Callable, Var]
2105
1955
  ] = None,
2106
1956
  on_mouse_move: Optional[
2107
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1957
+ Union[EventHandler, EventSpec, list, Callable, Var]
2108
1958
  ] = None,
2109
1959
  on_mouse_out: Optional[
2110
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1960
+ Union[EventHandler, EventSpec, list, Callable, Var]
2111
1961
  ] = None,
2112
1962
  on_mouse_over: Optional[
2113
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1963
+ Union[EventHandler, EventSpec, list, Callable, Var]
2114
1964
  ] = None,
2115
1965
  on_mouse_up: Optional[
2116
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2117
- ] = None,
2118
- on_scroll: Optional[
2119
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1966
+ Union[EventHandler, EventSpec, list, Callable, Var]
2120
1967
  ] = None,
1968
+ on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
2121
1969
  on_unmount: Optional[
2122
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
1970
+ Union[EventHandler, EventSpec, list, Callable, Var]
2123
1971
  ] = None,
2124
1972
  **props,
2125
1973
  ) -> "ReferenceArea":
@@ -2167,50 +2015,40 @@ class Grid(Recharts):
2167
2015
  class_name: Optional[Any] = None,
2168
2016
  autofocus: Optional[bool] = None,
2169
2017
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
2170
- on_blur: Optional[
2171
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2172
- ] = None,
2173
- on_click: Optional[
2174
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2175
- ] = None,
2018
+ on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
2019
+ on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
2176
2020
  on_context_menu: Optional[
2177
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2021
+ Union[EventHandler, EventSpec, list, Callable, Var]
2178
2022
  ] = None,
2179
2023
  on_double_click: Optional[
2180
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2181
- ] = None,
2182
- on_focus: Optional[
2183
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2184
- ] = None,
2185
- on_mount: Optional[
2186
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2024
+ Union[EventHandler, EventSpec, list, Callable, Var]
2187
2025
  ] = None,
2026
+ on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
2027
+ on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
2188
2028
  on_mouse_down: Optional[
2189
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2029
+ Union[EventHandler, EventSpec, list, Callable, Var]
2190
2030
  ] = None,
2191
2031
  on_mouse_enter: Optional[
2192
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2032
+ Union[EventHandler, EventSpec, list, Callable, Var]
2193
2033
  ] = None,
2194
2034
  on_mouse_leave: Optional[
2195
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2035
+ Union[EventHandler, EventSpec, list, Callable, Var]
2196
2036
  ] = None,
2197
2037
  on_mouse_move: Optional[
2198
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2038
+ Union[EventHandler, EventSpec, list, Callable, Var]
2199
2039
  ] = None,
2200
2040
  on_mouse_out: Optional[
2201
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2041
+ Union[EventHandler, EventSpec, list, Callable, Var]
2202
2042
  ] = None,
2203
2043
  on_mouse_over: Optional[
2204
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2044
+ Union[EventHandler, EventSpec, list, Callable, Var]
2205
2045
  ] = None,
2206
2046
  on_mouse_up: Optional[
2207
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2208
- ] = None,
2209
- on_scroll: Optional[
2210
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2047
+ Union[EventHandler, EventSpec, list, Callable, Var]
2211
2048
  ] = None,
2049
+ on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
2212
2050
  on_unmount: Optional[
2213
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2051
+ Union[EventHandler, EventSpec, list, Callable, Var]
2214
2052
  ] = None,
2215
2053
  **props,
2216
2054
  ) -> "Grid":
@@ -2244,15 +2082,15 @@ class CartesianGrid(Grid):
2244
2082
  horizontal: Optional[Union[Var[bool], bool]] = None,
2245
2083
  vertical: Optional[Union[Var[bool], bool]] = None,
2246
2084
  vertical_points: Optional[
2247
- Union[Var[List[Union[int, str]]], List[Union[int, str]]]
2085
+ Union[List[Union[int, str]], Var[List[Union[int, str]]]]
2248
2086
  ] = None,
2249
2087
  horizontal_points: Optional[
2250
- Union[Var[List[Union[int, str]]], List[Union[int, str]]]
2088
+ Union[List[Union[int, str]], Var[List[Union[int, str]]]]
2251
2089
  ] = None,
2252
- fill: Optional[Union[Var[Union[Color, str]], str, Color]] = None,
2090
+ fill: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
2253
2091
  fill_opacity: Optional[Union[Var[float], float]] = None,
2254
2092
  stroke_dasharray: Optional[Union[Var[str], str]] = None,
2255
- stroke: Optional[Union[Var[Union[Color, str]], str, Color]] = None,
2093
+ stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
2256
2094
  x: Optional[Union[Var[int], int]] = None,
2257
2095
  y: Optional[Union[Var[int], int]] = None,
2258
2096
  width: Optional[Union[Var[int], int]] = None,
@@ -2263,50 +2101,40 @@ class CartesianGrid(Grid):
2263
2101
  class_name: Optional[Any] = None,
2264
2102
  autofocus: Optional[bool] = None,
2265
2103
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
2266
- on_blur: Optional[
2267
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2268
- ] = None,
2269
- on_click: Optional[
2270
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2271
- ] = None,
2104
+ on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
2105
+ on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
2272
2106
  on_context_menu: Optional[
2273
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2107
+ Union[EventHandler, EventSpec, list, Callable, Var]
2274
2108
  ] = None,
2275
2109
  on_double_click: Optional[
2276
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2277
- ] = None,
2278
- on_focus: Optional[
2279
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2280
- ] = None,
2281
- on_mount: Optional[
2282
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2110
+ Union[EventHandler, EventSpec, list, Callable, Var]
2283
2111
  ] = None,
2112
+ on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
2113
+ on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
2284
2114
  on_mouse_down: Optional[
2285
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2115
+ Union[EventHandler, EventSpec, list, Callable, Var]
2286
2116
  ] = None,
2287
2117
  on_mouse_enter: Optional[
2288
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2118
+ Union[EventHandler, EventSpec, list, Callable, Var]
2289
2119
  ] = None,
2290
2120
  on_mouse_leave: Optional[
2291
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2121
+ Union[EventHandler, EventSpec, list, Callable, Var]
2292
2122
  ] = None,
2293
2123
  on_mouse_move: Optional[
2294
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2124
+ Union[EventHandler, EventSpec, list, Callable, Var]
2295
2125
  ] = None,
2296
2126
  on_mouse_out: Optional[
2297
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2127
+ Union[EventHandler, EventSpec, list, Callable, Var]
2298
2128
  ] = None,
2299
2129
  on_mouse_over: Optional[
2300
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2130
+ Union[EventHandler, EventSpec, list, Callable, Var]
2301
2131
  ] = None,
2302
2132
  on_mouse_up: Optional[
2303
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2304
- ] = None,
2305
- on_scroll: Optional[
2306
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2133
+ Union[EventHandler, EventSpec, list, Callable, Var]
2307
2134
  ] = None,
2135
+ on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
2308
2136
  on_unmount: Optional[
2309
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2137
+ Union[EventHandler, EventSpec, list, Callable, Var]
2310
2138
  ] = None,
2311
2139
  **props,
2312
2140
  ) -> "CartesianGrid":
@@ -2347,8 +2175,8 @@ class CartesianAxis(Grid):
2347
2175
  *children,
2348
2176
  orientation: Optional[
2349
2177
  Union[
2350
- Var[Literal["top", "bottom", "left", "right"]],
2351
- Literal["top", "bottom", "left", "right"],
2178
+ Literal["bottom", "left", "right", "top"],
2179
+ Var[Literal["bottom", "left", "right", "top"]],
2352
2180
  ]
2353
2181
  ] = None,
2354
2182
  axis_line: Optional[Union[Var[bool], bool]] = None,
@@ -2356,8 +2184,8 @@ class CartesianAxis(Grid):
2356
2184
  tick_size: Optional[Union[Var[int], int]] = None,
2357
2185
  interval: Optional[
2358
2186
  Union[
2359
- Var[Literal["preserveStart", "preserveEnd", "preserveStartEnd"]],
2360
- Literal["preserveStart", "preserveEnd", "preserveStartEnd"],
2187
+ Literal["preserveEnd", "preserveStart", "preserveStartEnd"],
2188
+ Var[Literal["preserveEnd", "preserveStart", "preserveStartEnd"]],
2361
2189
  ]
2362
2190
  ] = None,
2363
2191
  ticks: Optional[Union[Var[bool], bool]] = None,
@@ -2374,50 +2202,40 @@ class CartesianAxis(Grid):
2374
2202
  class_name: Optional[Any] = None,
2375
2203
  autofocus: Optional[bool] = None,
2376
2204
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
2377
- on_blur: Optional[
2378
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2379
- ] = None,
2380
- on_click: Optional[
2381
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2382
- ] = None,
2205
+ on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
2206
+ on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
2383
2207
  on_context_menu: Optional[
2384
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2208
+ Union[EventHandler, EventSpec, list, Callable, Var]
2385
2209
  ] = None,
2386
2210
  on_double_click: Optional[
2387
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2388
- ] = None,
2389
- on_focus: Optional[
2390
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2391
- ] = None,
2392
- on_mount: Optional[
2393
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2211
+ Union[EventHandler, EventSpec, list, Callable, Var]
2394
2212
  ] = None,
2213
+ on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
2214
+ on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
2395
2215
  on_mouse_down: Optional[
2396
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2216
+ Union[EventHandler, EventSpec, list, Callable, Var]
2397
2217
  ] = None,
2398
2218
  on_mouse_enter: Optional[
2399
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2219
+ Union[EventHandler, EventSpec, list, Callable, Var]
2400
2220
  ] = None,
2401
2221
  on_mouse_leave: Optional[
2402
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2222
+ Union[EventHandler, EventSpec, list, Callable, Var]
2403
2223
  ] = None,
2404
2224
  on_mouse_move: Optional[
2405
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2225
+ Union[EventHandler, EventSpec, list, Callable, Var]
2406
2226
  ] = None,
2407
2227
  on_mouse_out: Optional[
2408
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2228
+ Union[EventHandler, EventSpec, list, Callable, Var]
2409
2229
  ] = None,
2410
2230
  on_mouse_over: Optional[
2411
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2231
+ Union[EventHandler, EventSpec, list, Callable, Var]
2412
2232
  ] = None,
2413
2233
  on_mouse_up: Optional[
2414
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2415
- ] = None,
2416
- on_scroll: Optional[
2417
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2234
+ Union[EventHandler, EventSpec, list, Callable, Var]
2418
2235
  ] = None,
2236
+ on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
2419
2237
  on_unmount: Optional[
2420
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
2238
+ Union[EventHandler, EventSpec, list, Callable, Var]
2421
2239
  ] = None,
2422
2240
  **props,
2423
2241
  ) -> "CartesianAxis":