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