reflex 0.6.2.post1__py3-none-any.whl → 0.6.3a1__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 (177) hide show
  1. reflex/__init__.py +3 -2
  2. reflex/__init__.pyi +3 -1
  3. reflex/components/base/app_wrap.pyi +17 -37
  4. reflex/components/base/body.pyi +17 -37
  5. reflex/components/base/document.pyi +77 -177
  6. reflex/components/base/error_boundary.pyi +18 -38
  7. reflex/components/base/fragment.pyi +17 -37
  8. reflex/components/base/head.pyi +32 -72
  9. reflex/components/base/link.pyi +32 -72
  10. reflex/components/base/meta.pyi +62 -142
  11. reflex/components/base/script.py +4 -4
  12. reflex/components/base/script.pyi +20 -40
  13. reflex/components/component.py +12 -2
  14. reflex/components/core/banner.pyi +77 -177
  15. reflex/components/core/client_side_routing.pyi +32 -72
  16. reflex/components/core/clipboard.py +3 -3
  17. reflex/components/core/clipboard.pyi +18 -38
  18. reflex/components/core/debounce.py +2 -2
  19. reflex/components/core/debounce.pyi +18 -38
  20. reflex/components/core/html.pyi +17 -37
  21. reflex/components/core/upload.py +4 -5
  22. reflex/components/core/upload.pyi +65 -145
  23. reflex/components/datadisplay/code.pyi +32 -72
  24. reflex/components/datadisplay/dataeditor.py +13 -13
  25. reflex/components/datadisplay/dataeditor.pyi +33 -83
  26. reflex/components/dynamic.py +6 -7
  27. reflex/components/el/__init__.pyi +1 -0
  28. reflex/components/el/element.pyi +17 -37
  29. reflex/components/el/elements/base.pyi +17 -37
  30. reflex/components/el/elements/forms.py +29 -14
  31. reflex/components/el/elements/forms.pyi +222 -504
  32. reflex/components/el/elements/inline.pyi +422 -982
  33. reflex/components/el/elements/media.pyi +377 -877
  34. reflex/components/el/elements/metadata.pyi +92 -212
  35. reflex/components/el/elements/other.pyi +107 -247
  36. reflex/components/el/elements/scripts.pyi +47 -107
  37. reflex/components/el/elements/sectioning.pyi +227 -527
  38. reflex/components/el/elements/tables.pyi +152 -352
  39. reflex/components/el/elements/typography.pyi +227 -527
  40. reflex/components/gridjs/datatable.py +2 -2
  41. reflex/components/gridjs/datatable.pyi +32 -72
  42. reflex/components/lucide/icon.pyi +32 -72
  43. reflex/components/markdown/markdown.pyi +16 -36
  44. reflex/components/moment/moment.py +2 -2
  45. reflex/components/moment/moment.pyi +18 -38
  46. reflex/components/next/base.pyi +17 -37
  47. reflex/components/next/image.py +3 -3
  48. reflex/components/next/image.pyi +19 -39
  49. reflex/components/next/link.pyi +17 -37
  50. reflex/components/next/video.pyi +17 -37
  51. reflex/components/plotly/plotly.py +1 -1
  52. reflex/components/plotly/plotly.pyi +35 -87
  53. reflex/components/radix/primitives/accordion.py +14 -2
  54. reflex/components/radix/primitives/accordion.pyi +110 -250
  55. reflex/components/radix/primitives/base.pyi +32 -72
  56. reflex/components/radix/primitives/drawer.py +30 -12
  57. reflex/components/radix/primitives/drawer.pyi +159 -373
  58. reflex/components/radix/primitives/form.py +3 -3
  59. reflex/components/radix/primitives/form.pyi +158 -364
  60. reflex/components/radix/primitives/progress.pyi +77 -177
  61. reflex/components/radix/primitives/slider.py +17 -3
  62. reflex/components/radix/primitives/slider.pyi +81 -183
  63. reflex/components/radix/themes/base.pyi +107 -247
  64. reflex/components/radix/themes/color_mode.pyi +48 -117
  65. reflex/components/radix/themes/components/alert_dialog.py +5 -5
  66. reflex/components/radix/themes/components/alert_dialog.pyi +111 -259
  67. reflex/components/radix/themes/components/aspect_ratio.pyi +17 -37
  68. reflex/components/radix/themes/components/avatar.pyi +17 -37
  69. reflex/components/radix/themes/components/badge.pyi +17 -37
  70. reflex/components/radix/themes/components/button.pyi +17 -37
  71. reflex/components/radix/themes/components/callout.pyi +77 -177
  72. reflex/components/radix/themes/components/card.pyi +17 -37
  73. reflex/components/radix/themes/components/checkbox.py +3 -3
  74. reflex/components/radix/themes/components/checkbox.pyi +50 -110
  75. reflex/components/radix/themes/components/checkbox_cards.pyi +32 -72
  76. reflex/components/radix/themes/components/checkbox_group.pyi +32 -72
  77. reflex/components/radix/themes/components/context_menu.py +11 -11
  78. reflex/components/radix/themes/components/context_menu.pyi +132 -312
  79. reflex/components/radix/themes/components/data_list.pyi +62 -142
  80. reflex/components/radix/themes/components/dialog.py +7 -7
  81. reflex/components/radix/themes/components/dialog.pyi +114 -268
  82. reflex/components/radix/themes/components/dropdown_menu.py +13 -13
  83. reflex/components/radix/themes/components/dropdown_menu.pyi +134 -316
  84. reflex/components/radix/themes/components/hover_card.py +2 -2
  85. reflex/components/radix/themes/components/hover_card.pyi +64 -148
  86. reflex/components/radix/themes/components/icon_button.pyi +17 -37
  87. reflex/components/radix/themes/components/inset.pyi +17 -37
  88. reflex/components/radix/themes/components/popover.py +8 -8
  89. reflex/components/radix/themes/components/popover.pyi +69 -163
  90. reflex/components/radix/themes/components/progress.pyi +17 -37
  91. reflex/components/radix/themes/components/radio.pyi +17 -37
  92. reflex/components/radix/themes/components/radio_cards.py +2 -2
  93. reflex/components/radix/themes/components/radio_cards.pyi +33 -75
  94. reflex/components/radix/themes/components/radio_group.py +4 -4
  95. reflex/components/radix/themes/components/radio_group.pyi +63 -143
  96. reflex/components/radix/themes/components/scroll_area.pyi +17 -37
  97. reflex/components/radix/themes/components/segmented_control.py +14 -2
  98. reflex/components/radix/themes/components/segmented_control.pyi +35 -73
  99. reflex/components/radix/themes/components/select.py +6 -5
  100. reflex/components/radix/themes/components/select.pyi +146 -338
  101. reflex/components/radix/themes/components/separator.pyi +17 -37
  102. reflex/components/radix/themes/components/skeleton.pyi +17 -37
  103. reflex/components/radix/themes/components/slider.py +19 -3
  104. reflex/components/radix/themes/components/slider.pyi +23 -41
  105. reflex/components/radix/themes/components/spinner.pyi +17 -37
  106. reflex/components/radix/themes/components/switch.py +2 -2
  107. reflex/components/radix/themes/components/switch.pyi +18 -38
  108. reflex/components/radix/themes/components/table.pyi +107 -247
  109. reflex/components/radix/themes/components/tabs.py +2 -2
  110. reflex/components/radix/themes/components/tabs.pyi +79 -179
  111. reflex/components/radix/themes/components/text_area.py +0 -16
  112. reflex/components/radix/themes/components/text_area.pyi +20 -42
  113. reflex/components/radix/themes/components/text_field.py +6 -6
  114. reflex/components/radix/themes/components/text_field.pyi +53 -117
  115. reflex/components/radix/themes/components/tooltip.py +4 -4
  116. reflex/components/radix/themes/components/tooltip.pyi +20 -46
  117. reflex/components/radix/themes/layout/base.pyi +17 -37
  118. reflex/components/radix/themes/layout/box.pyi +17 -37
  119. reflex/components/radix/themes/layout/center.pyi +17 -37
  120. reflex/components/radix/themes/layout/container.pyi +17 -37
  121. reflex/components/radix/themes/layout/flex.pyi +17 -37
  122. reflex/components/radix/themes/layout/grid.pyi +17 -37
  123. reflex/components/radix/themes/layout/list.pyi +77 -177
  124. reflex/components/radix/themes/layout/section.pyi +17 -37
  125. reflex/components/radix/themes/layout/spacer.pyi +17 -37
  126. reflex/components/radix/themes/layout/stack.pyi +47 -107
  127. reflex/components/radix/themes/typography/blockquote.pyi +17 -37
  128. reflex/components/radix/themes/typography/code.pyi +17 -37
  129. reflex/components/radix/themes/typography/heading.pyi +17 -37
  130. reflex/components/radix/themes/typography/link.pyi +17 -37
  131. reflex/components/radix/themes/typography/text.pyi +107 -247
  132. reflex/components/react_player/audio.pyi +33 -69
  133. reflex/components/react_player/react_player.py +17 -17
  134. reflex/components/react_player/react_player.pyi +33 -69
  135. reflex/components/react_player/video.pyi +33 -69
  136. reflex/components/recharts/cartesian.py +215 -185
  137. reflex/components/recharts/cartesian.pyi +623 -832
  138. reflex/components/recharts/charts.py +57 -54
  139. reflex/components/recharts/charts.pyi +213 -433
  140. reflex/components/recharts/general.py +27 -21
  141. reflex/components/recharts/general.pyi +94 -189
  142. reflex/components/recharts/polar.py +115 -77
  143. reflex/components/recharts/polar.pyi +219 -229
  144. reflex/components/recharts/recharts.py +5 -1
  145. reflex/components/recharts/recharts.pyi +37 -73
  146. reflex/components/sonner/toast.py +1 -1
  147. reflex/components/sonner/toast.pyi +17 -37
  148. reflex/components/suneditor/editor.pyi +26 -52
  149. reflex/components/tags/iter_tag.py +2 -2
  150. reflex/config.py +16 -0
  151. reflex/constants/__init__.py +2 -0
  152. reflex/constants/compiler.py +25 -0
  153. reflex/constants/installer.py +17 -16
  154. reflex/constants/state.py +11 -0
  155. reflex/constants/style.py +1 -1
  156. reflex/event.py +237 -18
  157. reflex/experimental/layout.pyi +78 -180
  158. reflex/istate/dynamic.py +3 -0
  159. reflex/state.py +195 -118
  160. reflex/testing.py +8 -5
  161. reflex/utils/compat.py +1 -3
  162. reflex/utils/exceptions.py +8 -0
  163. reflex/utils/path_ops.py +2 -2
  164. reflex/utils/prerequisites.py +2 -2
  165. reflex/utils/pyi_generator.py +44 -4
  166. reflex/utils/registry.py +17 -3
  167. reflex/utils/telemetry.py +1 -3
  168. reflex/utils/types.py +60 -16
  169. reflex/vars/__init__.py +2 -0
  170. reflex/vars/base.py +127 -72
  171. reflex/vars/object.py +5 -1
  172. reflex/vars/sequence.py +10 -1
  173. {reflex-0.6.2.post1.dist-info → reflex-0.6.3a1.dist-info}/METADATA +3 -3
  174. {reflex-0.6.2.post1.dist-info → reflex-0.6.3a1.dist-info}/RECORD +177 -175
  175. {reflex-0.6.2.post1.dist-info → reflex-0.6.3a1.dist-info}/LICENSE +0 -0
  176. {reflex-0.6.2.post1.dist-info → reflex-0.6.3a1.dist-info}/WHEEL +0 -0
  177. {reflex-0.6.2.post1.dist-info → reflex-0.6.3a1.dist-info}/entry_points.txt +0 -0
@@ -6,7 +6,7 @@ from typing import Any, Dict, List, Union
6
6
 
7
7
  from reflex.components.component import MemoizationLeaf
8
8
  from reflex.constants.colors import Color
9
- from reflex.event import EventHandler
9
+ from reflex.event import EventHandler, empty_event
10
10
  from reflex.vars.base import LiteralVar, Var
11
11
 
12
12
  from .recharts import (
@@ -30,21 +30,24 @@ class ResponsiveContainer(Recharts, MemoizationLeaf):
30
30
  # The aspect ratio of the container. The final aspect ratio of the SVG element will be (width / height) * aspect. Number
31
31
  aspect: Var[int]
32
32
 
33
- # The width of chart container. Can be a number or string
33
+ # The width of chart container. Can be a number or string. Default: "100%"
34
34
  width: Var[Union[int, str]]
35
35
 
36
- # The height of chart container. Number
36
+ # The height of chart container. Can be a number or string. Default: "100%"
37
37
  height: Var[Union[int, str]]
38
38
 
39
- # The minimum width of chart container.
39
+ # The minimum width of chart container. Number
40
40
  min_width: Var[int]
41
41
 
42
42
  # The minimum height of chart container. Number
43
43
  min_height: Var[int]
44
44
 
45
- # If specified a positive number, debounced function will be used to handle the resize event.
45
+ # If specified a positive number, debounced function will be used to handle the resize event. Default: 0
46
46
  debounce: Var[int]
47
47
 
48
+ # If specified provides a callback providing the updated chart width and height values.
49
+ on_resize: EventHandler[empty_event]
50
+
48
51
  # Valid children components
49
52
  _valid_children: List[str] = [
50
53
  "AreaChart",
@@ -73,21 +76,24 @@ class Legend(Recharts):
73
76
  # The height of legend container. Number
74
77
  height: Var[int]
75
78
 
76
- # The layout of legend items. 'horizontal' | 'vertical'
79
+ # The layout of legend items. 'horizontal' | 'vertical'. Default: "horizontal"
77
80
  layout: Var[LiteralLayout]
78
81
 
79
- # The alignment of legend items in 'horizontal' direction, which can be 'left', 'center', 'right'.
82
+ # The alignment of legend items in 'horizontal' direction, which can be 'left', 'center', 'right'. Default: "center"
80
83
  align: Var[LiteralLegendAlign]
81
84
 
82
- # The alignment of legend items in 'vertical' direction, which can be 'top', 'middle', 'bottom'.
85
+ # The alignment of legend items in 'vertical' direction, which can be 'top', 'middle', 'bottom'. Default: "bottom"
83
86
  vertical_align: Var[LiteralVerticalAlign]
84
87
 
85
- # The size of icon in each legend item.
88
+ # The size of icon in each legend item. Default: 14
86
89
  icon_size: Var[int]
87
90
 
88
91
  # The type of icon in each legend item. 'line' | 'plainline' | 'square' | 'rect' | 'circle' | 'cross' | 'diamond' | 'star' | 'triangle' | 'wye'
89
92
  icon_type: Var[LiteralIconType]
90
93
 
94
+ # The source data of the content to be displayed in the legend, usually calculated internally. Default: []
95
+ payload: Var[List[Dict[str, Any]]]
96
+
91
97
  # The width of chart container, usually calculated internally.
92
98
  chart_width: Var[int]
93
99
 
@@ -98,28 +104,28 @@ class Legend(Recharts):
98
104
  margin: Var[Dict[str, Any]]
99
105
 
100
106
  # The customized event handler of click on the items in this group
101
- on_click: EventHandler[lambda: []]
107
+ on_click: EventHandler[empty_event]
102
108
 
103
109
  # The customized event handler of mousedown on the items in this group
104
- on_mouse_down: EventHandler[lambda: []]
110
+ on_mouse_down: EventHandler[empty_event]
105
111
 
106
112
  # The customized event handler of mouseup on the items in this group
107
- on_mouse_up: EventHandler[lambda: []]
113
+ on_mouse_up: EventHandler[empty_event]
108
114
 
109
115
  # The customized event handler of mousemove on the items in this group
110
- on_mouse_move: EventHandler[lambda: []]
116
+ on_mouse_move: EventHandler[empty_event]
111
117
 
112
118
  # The customized event handler of mouseover on the items in this group
113
- on_mouse_over: EventHandler[lambda: []]
119
+ on_mouse_over: EventHandler[empty_event]
114
120
 
115
121
  # The customized event handler of mouseout on the items in this group
116
- on_mouse_out: EventHandler[lambda: []]
122
+ on_mouse_out: EventHandler[empty_event]
117
123
 
118
124
  # The customized event handler of mouseenter on the items in this group
119
- on_mouse_enter: EventHandler[lambda: []]
125
+ on_mouse_enter: EventHandler[empty_event]
120
126
 
121
127
  # The customized event handler of mouseleave on the items in this group
122
- on_mouse_leave: EventHandler[lambda: []]
128
+ on_mouse_leave: EventHandler[empty_event]
123
129
 
124
130
 
125
131
  class GraphingTooltip(Recharts):
@@ -224,16 +230,16 @@ class LabelList(Recharts):
224
230
  # The key of a group of label values in data.
225
231
  data_key: Var[Union[str, int]]
226
232
 
227
- # The position of each label relative to it view box"Top" | "left" | "right" | "bottom" | "inside" | "outside" | "insideLeft" | "insideRight" | "insideTop" | "insideBottom" | "insideTopLeft" | "insideBottomLeft" | "insideTopRight" | "insideBottomRight" | "insideStart" | "insideEnd" | "end" | "center"
233
+ # The position of each label relative to it view box. "Top" | "left" | "right" | "bottom" | "inside" | "outside" | "insideLeft" | "insideRight" | "insideTop" | "insideBottom" | "insideTopLeft" | "insideBottomLeft" | "insideTopRight" | "insideBottomRight" | "insideStart" | "insideEnd" | "end" | "center"
228
234
  position: Var[LiteralPosition]
229
235
 
230
- # The offset to the specified "position"
236
+ # The offset to the specified "position". Default: 5
231
237
  offset: Var[int]
232
238
 
233
- # The fill color of each label
239
+ # The fill color of each label. Default: rx.color("gray", 10)
234
240
  fill: Var[Union[str, Color]] = LiteralVar.create(Color("gray", 10))
235
241
 
236
- # The stroke color of each label
242
+ # The stroke color of each label. Default: "none"
237
243
  stroke: Var[Union[str, Color]] = LiteralVar.create("none")
238
244
 
239
245
 
@@ -3,11 +3,11 @@
3
3
  # ------------------- DO NOT EDIT ----------------------
4
4
  # This file was generated by `reflex/utils/pyi_generator.py`!
5
5
  # ------------------------------------------------------
6
- from typing import Any, Callable, Dict, Literal, Optional, Union, overload
6
+ from typing import Any, Dict, List, Literal, Optional, Union, overload
7
7
 
8
8
  from reflex.components.component import MemoizationLeaf
9
9
  from reflex.constants.colors import Color
10
- from reflex.event import EventHandler, EventSpec
10
+ from reflex.event import EventType
11
11
  from reflex.style import Style
12
12
  from reflex.vars.base import Var
13
13
 
@@ -33,41 +33,22 @@ class ResponsiveContainer(Recharts, MemoizationLeaf):
33
33
  class_name: Optional[Any] = None,
34
34
  autofocus: Optional[bool] = None,
35
35
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
36
- on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
37
- on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
38
- on_context_menu: Optional[
39
- Union[EventHandler, EventSpec, list, Callable, Var]
40
- ] = None,
41
- on_double_click: Optional[
42
- Union[EventHandler, EventSpec, list, Callable, Var]
43
- ] = None,
44
- on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
45
- on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
46
- on_mouse_down: Optional[
47
- Union[EventHandler, EventSpec, list, Callable, Var]
48
- ] = None,
49
- on_mouse_enter: Optional[
50
- Union[EventHandler, EventSpec, list, Callable, Var]
51
- ] = None,
52
- on_mouse_leave: Optional[
53
- Union[EventHandler, EventSpec, list, Callable, Var]
54
- ] = None,
55
- on_mouse_move: Optional[
56
- Union[EventHandler, EventSpec, list, Callable, Var]
57
- ] = None,
58
- on_mouse_out: Optional[
59
- Union[EventHandler, EventSpec, list, Callable, Var]
60
- ] = None,
61
- on_mouse_over: Optional[
62
- Union[EventHandler, EventSpec, list, Callable, Var]
63
- ] = None,
64
- on_mouse_up: Optional[
65
- Union[EventHandler, EventSpec, list, Callable, Var]
66
- ] = None,
67
- on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
68
- on_unmount: Optional[
69
- Union[EventHandler, EventSpec, list, Callable, Var]
70
- ] = None,
36
+ on_blur: Optional[EventType[[]]] = None,
37
+ on_click: Optional[EventType[[]]] = None,
38
+ on_context_menu: Optional[EventType[[]]] = None,
39
+ on_double_click: Optional[EventType[[]]] = None,
40
+ on_focus: Optional[EventType[[]]] = None,
41
+ on_mount: Optional[EventType[[]]] = None,
42
+ on_mouse_down: Optional[EventType[[]]] = None,
43
+ on_mouse_enter: Optional[EventType[[]]] = None,
44
+ on_mouse_leave: Optional[EventType[[]]] = None,
45
+ on_mouse_move: Optional[EventType[[]]] = None,
46
+ on_mouse_out: Optional[EventType[[]]] = None,
47
+ on_mouse_over: Optional[EventType[[]]] = None,
48
+ on_mouse_up: Optional[EventType[[]]] = None,
49
+ on_resize: Optional[EventType[[]]] = None,
50
+ on_scroll: Optional[EventType[[]]] = None,
51
+ on_unmount: Optional[EventType[[]]] = None,
71
52
  **props,
72
53
  ) -> "ResponsiveContainer":
73
54
  """Create a new memoization leaf component.
@@ -75,11 +56,11 @@ class ResponsiveContainer(Recharts, MemoizationLeaf):
75
56
  Args:
76
57
  *children: The children of the component.
77
58
  aspect: The aspect ratio of the container. The final aspect ratio of the SVG element will be (width / height) * aspect. Number
78
- width: The width of chart container. Can be a number or string
79
- height: The height of chart container. Number
80
- min_width: The minimum width of chart container.
59
+ width: The width of chart container. Can be a number or string. Default: "100%"
60
+ height: The height of chart container. Can be a number or string. Default: "100%"
61
+ min_width: The minimum width of chart container. Number
81
62
  min_height: The minimum height of chart container. Number
82
- debounce: If specified a positive number, debounced function will be used to handle the resize event.
63
+ debounce: If specified a positive number, debounced function will be used to handle the resize event. Default: 0
83
64
  style: The style of the component.
84
65
  key: A unique key for the component.
85
66
  id: The id for the component.
@@ -150,6 +131,9 @@ class Legend(Recharts):
150
131
  ],
151
132
  ]
152
133
  ] = None,
134
+ payload: Optional[
135
+ Union[List[Dict[str, Any]], Var[List[Dict[str, Any]]]]
136
+ ] = None,
153
137
  chart_width: Optional[Union[Var[int], int]] = None,
154
138
  chart_height: Optional[Union[Var[int], int]] = None,
155
139
  margin: Optional[Union[Dict[str, Any], Var[Dict[str, Any]]]] = None,
@@ -159,41 +143,21 @@ class Legend(Recharts):
159
143
  class_name: Optional[Any] = None,
160
144
  autofocus: Optional[bool] = None,
161
145
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
162
- on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
163
- on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
164
- on_context_menu: Optional[
165
- Union[EventHandler, EventSpec, list, Callable, Var]
166
- ] = None,
167
- on_double_click: Optional[
168
- Union[EventHandler, EventSpec, list, Callable, Var]
169
- ] = None,
170
- on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
171
- on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
172
- on_mouse_down: Optional[
173
- Union[EventHandler, EventSpec, list, Callable, Var]
174
- ] = None,
175
- on_mouse_enter: Optional[
176
- Union[EventHandler, EventSpec, list, Callable, Var]
177
- ] = None,
178
- on_mouse_leave: Optional[
179
- Union[EventHandler, EventSpec, list, Callable, Var]
180
- ] = None,
181
- on_mouse_move: Optional[
182
- Union[EventHandler, EventSpec, list, Callable, Var]
183
- ] = None,
184
- on_mouse_out: Optional[
185
- Union[EventHandler, EventSpec, list, Callable, Var]
186
- ] = None,
187
- on_mouse_over: Optional[
188
- Union[EventHandler, EventSpec, list, Callable, Var]
189
- ] = None,
190
- on_mouse_up: Optional[
191
- Union[EventHandler, EventSpec, list, Callable, Var]
192
- ] = None,
193
- on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
194
- on_unmount: Optional[
195
- Union[EventHandler, EventSpec, list, Callable, Var]
196
- ] = None,
146
+ on_blur: Optional[EventType[[]]] = None,
147
+ on_click: Optional[EventType[[]]] = None,
148
+ on_context_menu: Optional[EventType[[]]] = None,
149
+ on_double_click: Optional[EventType[[]]] = None,
150
+ on_focus: Optional[EventType[[]]] = None,
151
+ on_mount: Optional[EventType[[]]] = None,
152
+ on_mouse_down: Optional[EventType[[]]] = None,
153
+ on_mouse_enter: Optional[EventType[[]]] = None,
154
+ on_mouse_leave: Optional[EventType[[]]] = None,
155
+ on_mouse_move: Optional[EventType[[]]] = None,
156
+ on_mouse_out: Optional[EventType[[]]] = None,
157
+ on_mouse_over: Optional[EventType[[]]] = None,
158
+ on_mouse_up: Optional[EventType[[]]] = None,
159
+ on_scroll: Optional[EventType[[]]] = None,
160
+ on_unmount: Optional[EventType[[]]] = None,
197
161
  **props,
198
162
  ) -> "Legend":
199
163
  """Create the component.
@@ -202,11 +166,12 @@ class Legend(Recharts):
202
166
  *children: The children of the component.
203
167
  width: The width of legend container. Number
204
168
  height: The height of legend container. Number
205
- layout: The layout of legend items. 'horizontal' | 'vertical'
206
- align: The alignment of legend items in 'horizontal' direction, which can be 'left', 'center', 'right'.
207
- vertical_align: The alignment of legend items in 'vertical' direction, which can be 'top', 'middle', 'bottom'.
208
- icon_size: The size of icon in each legend item.
169
+ layout: The layout of legend items. 'horizontal' | 'vertical'. Default: "horizontal"
170
+ align: The alignment of legend items in 'horizontal' direction, which can be 'left', 'center', 'right'. Default: "center"
171
+ vertical_align: The alignment of legend items in 'vertical' direction, which can be 'top', 'middle', 'bottom'. Default: "bottom"
172
+ icon_size: The size of icon in each legend item. Default: 14
209
173
  icon_type: The type of icon in each legend item. 'line' | 'plainline' | 'square' | 'rect' | 'circle' | 'cross' | 'diamond' | 'star' | 'triangle' | 'wye'
174
+ payload: The source data of the content to be displayed in the legend, usually calculated internally. Default: []
210
175
  chart_width: The width of chart container, usually calculated internally.
211
176
  chart_height: The height of chart container, usually calculated internally.
212
177
  margin: The margin of chart container, usually calculated internally.
@@ -260,41 +225,21 @@ class GraphingTooltip(Recharts):
260
225
  class_name: Optional[Any] = None,
261
226
  autofocus: Optional[bool] = None,
262
227
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
263
- on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
264
- on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
265
- on_context_menu: Optional[
266
- Union[EventHandler, EventSpec, list, Callable, Var]
267
- ] = None,
268
- on_double_click: Optional[
269
- Union[EventHandler, EventSpec, list, Callable, Var]
270
- ] = None,
271
- on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
272
- on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
273
- on_mouse_down: Optional[
274
- Union[EventHandler, EventSpec, list, Callable, Var]
275
- ] = None,
276
- on_mouse_enter: Optional[
277
- Union[EventHandler, EventSpec, list, Callable, Var]
278
- ] = None,
279
- on_mouse_leave: Optional[
280
- Union[EventHandler, EventSpec, list, Callable, Var]
281
- ] = None,
282
- on_mouse_move: Optional[
283
- Union[EventHandler, EventSpec, list, Callable, Var]
284
- ] = None,
285
- on_mouse_out: Optional[
286
- Union[EventHandler, EventSpec, list, Callable, Var]
287
- ] = None,
288
- on_mouse_over: Optional[
289
- Union[EventHandler, EventSpec, list, Callable, Var]
290
- ] = None,
291
- on_mouse_up: Optional[
292
- Union[EventHandler, EventSpec, list, Callable, Var]
293
- ] = None,
294
- on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
295
- on_unmount: Optional[
296
- Union[EventHandler, EventSpec, list, Callable, Var]
297
- ] = None,
228
+ on_blur: Optional[EventType[[]]] = None,
229
+ on_click: Optional[EventType[[]]] = None,
230
+ on_context_menu: Optional[EventType[[]]] = None,
231
+ on_double_click: Optional[EventType[[]]] = None,
232
+ on_focus: Optional[EventType[[]]] = None,
233
+ on_mount: Optional[EventType[[]]] = None,
234
+ on_mouse_down: Optional[EventType[[]]] = None,
235
+ on_mouse_enter: Optional[EventType[[]]] = None,
236
+ on_mouse_leave: Optional[EventType[[]]] = None,
237
+ on_mouse_move: Optional[EventType[[]]] = None,
238
+ on_mouse_out: Optional[EventType[[]]] = None,
239
+ on_mouse_over: Optional[EventType[[]]] = None,
240
+ on_mouse_up: Optional[EventType[[]]] = None,
241
+ on_scroll: Optional[EventType[[]]] = None,
242
+ on_unmount: Optional[EventType[[]]] = None,
298
243
  **props,
299
244
  ) -> "GraphingTooltip":
300
245
  """Create the component.
@@ -391,41 +336,21 @@ class Label(Recharts):
391
336
  class_name: Optional[Any] = None,
392
337
  autofocus: Optional[bool] = None,
393
338
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
394
- on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
395
- on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
396
- on_context_menu: Optional[
397
- Union[EventHandler, EventSpec, list, Callable, Var]
398
- ] = None,
399
- on_double_click: Optional[
400
- Union[EventHandler, EventSpec, list, Callable, Var]
401
- ] = None,
402
- on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
403
- on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
404
- on_mouse_down: Optional[
405
- Union[EventHandler, EventSpec, list, Callable, Var]
406
- ] = None,
407
- on_mouse_enter: Optional[
408
- Union[EventHandler, EventSpec, list, Callable, Var]
409
- ] = None,
410
- on_mouse_leave: Optional[
411
- Union[EventHandler, EventSpec, list, Callable, Var]
412
- ] = None,
413
- on_mouse_move: Optional[
414
- Union[EventHandler, EventSpec, list, Callable, Var]
415
- ] = None,
416
- on_mouse_out: Optional[
417
- Union[EventHandler, EventSpec, list, Callable, Var]
418
- ] = None,
419
- on_mouse_over: Optional[
420
- Union[EventHandler, EventSpec, list, Callable, Var]
421
- ] = None,
422
- on_mouse_up: Optional[
423
- Union[EventHandler, EventSpec, list, Callable, Var]
424
- ] = None,
425
- on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
426
- on_unmount: Optional[
427
- Union[EventHandler, EventSpec, list, Callable, Var]
428
- ] = None,
339
+ on_blur: Optional[EventType[[]]] = None,
340
+ on_click: Optional[EventType[[]]] = None,
341
+ on_context_menu: Optional[EventType[[]]] = None,
342
+ on_double_click: Optional[EventType[[]]] = None,
343
+ on_focus: Optional[EventType[[]]] = None,
344
+ on_mount: Optional[EventType[[]]] = None,
345
+ on_mouse_down: Optional[EventType[[]]] = None,
346
+ on_mouse_enter: Optional[EventType[[]]] = None,
347
+ on_mouse_leave: Optional[EventType[[]]] = None,
348
+ on_mouse_move: Optional[EventType[[]]] = None,
349
+ on_mouse_out: Optional[EventType[[]]] = None,
350
+ on_mouse_over: Optional[EventType[[]]] = None,
351
+ on_mouse_up: Optional[EventType[[]]] = None,
352
+ on_scroll: Optional[EventType[[]]] = None,
353
+ on_unmount: Optional[EventType[[]]] = None,
429
354
  **props,
430
355
  ) -> "Label":
431
356
  """Create the component.
@@ -511,41 +436,21 @@ class LabelList(Recharts):
511
436
  class_name: Optional[Any] = None,
512
437
  autofocus: Optional[bool] = None,
513
438
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
514
- on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
515
- on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
516
- on_context_menu: Optional[
517
- Union[EventHandler, EventSpec, list, Callable, Var]
518
- ] = None,
519
- on_double_click: Optional[
520
- Union[EventHandler, EventSpec, list, Callable, Var]
521
- ] = None,
522
- on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
523
- on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
524
- on_mouse_down: Optional[
525
- Union[EventHandler, EventSpec, list, Callable, Var]
526
- ] = None,
527
- on_mouse_enter: Optional[
528
- Union[EventHandler, EventSpec, list, Callable, Var]
529
- ] = None,
530
- on_mouse_leave: Optional[
531
- Union[EventHandler, EventSpec, list, Callable, Var]
532
- ] = None,
533
- on_mouse_move: Optional[
534
- Union[EventHandler, EventSpec, list, Callable, Var]
535
- ] = None,
536
- on_mouse_out: Optional[
537
- Union[EventHandler, EventSpec, list, Callable, Var]
538
- ] = None,
539
- on_mouse_over: Optional[
540
- Union[EventHandler, EventSpec, list, Callable, Var]
541
- ] = None,
542
- on_mouse_up: Optional[
543
- Union[EventHandler, EventSpec, list, Callable, Var]
544
- ] = None,
545
- on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
546
- on_unmount: Optional[
547
- Union[EventHandler, EventSpec, list, Callable, Var]
548
- ] = None,
439
+ on_blur: Optional[EventType[[]]] = None,
440
+ on_click: Optional[EventType[[]]] = None,
441
+ on_context_menu: Optional[EventType[[]]] = None,
442
+ on_double_click: Optional[EventType[[]]] = None,
443
+ on_focus: Optional[EventType[[]]] = None,
444
+ on_mount: Optional[EventType[[]]] = None,
445
+ on_mouse_down: Optional[EventType[[]]] = None,
446
+ on_mouse_enter: Optional[EventType[[]]] = None,
447
+ on_mouse_leave: Optional[EventType[[]]] = None,
448
+ on_mouse_move: Optional[EventType[[]]] = None,
449
+ on_mouse_out: Optional[EventType[[]]] = None,
450
+ on_mouse_over: Optional[EventType[[]]] = None,
451
+ on_mouse_up: Optional[EventType[[]]] = None,
452
+ on_scroll: Optional[EventType[[]]] = None,
453
+ on_unmount: Optional[EventType[[]]] = None,
549
454
  **props,
550
455
  ) -> "LabelList":
551
456
  """Create the component.
@@ -553,10 +458,10 @@ class LabelList(Recharts):
553
458
  Args:
554
459
  *children: The children of the component.
555
460
  data_key: The key of a group of label values in data.
556
- position: The position of each label relative to it view box"Top" | "left" | "right" | "bottom" | "inside" | "outside" | "insideLeft" | "insideRight" | "insideTop" | "insideBottom" | "insideTopLeft" | "insideBottomLeft" | "insideTopRight" | "insideBottomRight" | "insideStart" | "insideEnd" | "end" | "center"
557
- offset: The offset to the specified "position"
558
- fill: The fill color of each label
559
- stroke: The stroke color of each label
461
+ position: The position of each label relative to it view box. "Top" | "left" | "right" | "bottom" | "inside" | "outside" | "insideLeft" | "insideRight" | "insideTop" | "insideBottom" | "insideTopLeft" | "insideBottomLeft" | "insideTopRight" | "insideBottomRight" | "insideStart" | "insideEnd" | "end" | "center"
462
+ offset: The offset to the specified "position". Default: 5
463
+ fill: The fill color of each label. Default: rx.color("gray", 10)
464
+ stroke: The stroke color of each label. Default: "none"
560
465
  style: The style of the component.
561
466
  key: A unique key for the component.
562
467
  id: The id for the component.