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