recharts.pyi 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. """Stub file for reflex/components/recharts/recharts.py"""
  2. # ------------------- DO NOT EDIT ----------------------
  3. # This file was generated by `scripts/pyi_generator.py`!
  4. # ------------------------------------------------------
  5. from typing import Any, Dict, Literal, Optional, Union, overload
  6. from reflex.vars import Var, BaseVar, ComputedVar
  7. from reflex.event import EventChain, EventHandler, EventSpec
  8. from reflex.style import Style
  9. from typing import Literal
  10. from reflex.components.component import Component, MemoizationLeaf, NoSSRComponent
  11. class Recharts(Component):
  12. @overload
  13. @classmethod
  14. def create( # type: ignore
  15. cls,
  16. *children,
  17. style: Optional[Style] = None,
  18. key: Optional[Any] = None,
  19. id: Optional[Any] = None,
  20. class_name: Optional[Any] = None,
  21. autofocus: Optional[bool] = None,
  22. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  23. on_blur: Optional[
  24. Union[EventHandler, EventSpec, list, function, BaseVar]
  25. ] = None,
  26. on_click: Optional[
  27. Union[EventHandler, EventSpec, list, function, BaseVar]
  28. ] = None,
  29. on_context_menu: Optional[
  30. Union[EventHandler, EventSpec, list, function, BaseVar]
  31. ] = None,
  32. on_double_click: Optional[
  33. Union[EventHandler, EventSpec, list, function, BaseVar]
  34. ] = None,
  35. on_focus: Optional[
  36. Union[EventHandler, EventSpec, list, function, BaseVar]
  37. ] = None,
  38. on_mount: Optional[
  39. Union[EventHandler, EventSpec, list, function, BaseVar]
  40. ] = None,
  41. on_mouse_down: Optional[
  42. Union[EventHandler, EventSpec, list, function, BaseVar]
  43. ] = None,
  44. on_mouse_enter: Optional[
  45. Union[EventHandler, EventSpec, list, function, BaseVar]
  46. ] = None,
  47. on_mouse_leave: Optional[
  48. Union[EventHandler, EventSpec, list, function, BaseVar]
  49. ] = None,
  50. on_mouse_move: Optional[
  51. Union[EventHandler, EventSpec, list, function, BaseVar]
  52. ] = None,
  53. on_mouse_out: Optional[
  54. Union[EventHandler, EventSpec, list, function, BaseVar]
  55. ] = None,
  56. on_mouse_over: Optional[
  57. Union[EventHandler, EventSpec, list, function, BaseVar]
  58. ] = None,
  59. on_mouse_up: Optional[
  60. Union[EventHandler, EventSpec, list, function, BaseVar]
  61. ] = None,
  62. on_scroll: Optional[
  63. Union[EventHandler, EventSpec, list, function, BaseVar]
  64. ] = None,
  65. on_unmount: Optional[
  66. Union[EventHandler, EventSpec, list, function, BaseVar]
  67. ] = None,
  68. **props
  69. ) -> "Recharts":
  70. """Create the component.
  71. Args:
  72. *children: The children of the component.
  73. style: The style of the component.
  74. key: A unique key for the component.
  75. id: The id for the component.
  76. class_name: The class name for the component.
  77. autofocus: Whether the component should take the focus once the page is loaded
  78. custom_attrs: custom attribute
  79. **props: The props of the component.
  80. Returns:
  81. The component.
  82. Raises:
  83. TypeError: If an invalid child is passed.
  84. """
  85. ...
  86. class RechartsCharts(NoSSRComponent, MemoizationLeaf):
  87. @overload
  88. @classmethod
  89. def create( # type: ignore
  90. cls,
  91. *children,
  92. style: Optional[Style] = None,
  93. key: Optional[Any] = None,
  94. id: Optional[Any] = None,
  95. class_name: Optional[Any] = None,
  96. autofocus: Optional[bool] = None,
  97. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  98. on_blur: Optional[
  99. Union[EventHandler, EventSpec, list, function, BaseVar]
  100. ] = None,
  101. on_click: Optional[
  102. Union[EventHandler, EventSpec, list, function, BaseVar]
  103. ] = None,
  104. on_context_menu: Optional[
  105. Union[EventHandler, EventSpec, list, function, BaseVar]
  106. ] = None,
  107. on_double_click: Optional[
  108. Union[EventHandler, EventSpec, list, function, BaseVar]
  109. ] = None,
  110. on_focus: Optional[
  111. Union[EventHandler, EventSpec, list, function, BaseVar]
  112. ] = None,
  113. on_mount: Optional[
  114. Union[EventHandler, EventSpec, list, function, BaseVar]
  115. ] = None,
  116. on_mouse_down: Optional[
  117. Union[EventHandler, EventSpec, list, function, BaseVar]
  118. ] = None,
  119. on_mouse_enter: Optional[
  120. Union[EventHandler, EventSpec, list, function, BaseVar]
  121. ] = None,
  122. on_mouse_leave: Optional[
  123. Union[EventHandler, EventSpec, list, function, BaseVar]
  124. ] = None,
  125. on_mouse_move: Optional[
  126. Union[EventHandler, EventSpec, list, function, BaseVar]
  127. ] = None,
  128. on_mouse_out: Optional[
  129. Union[EventHandler, EventSpec, list, function, BaseVar]
  130. ] = None,
  131. on_mouse_over: Optional[
  132. Union[EventHandler, EventSpec, list, function, BaseVar]
  133. ] = None,
  134. on_mouse_up: Optional[
  135. Union[EventHandler, EventSpec, list, function, BaseVar]
  136. ] = None,
  137. on_scroll: Optional[
  138. Union[EventHandler, EventSpec, list, function, BaseVar]
  139. ] = None,
  140. on_unmount: Optional[
  141. Union[EventHandler, EventSpec, list, function, BaseVar]
  142. ] = None,
  143. **props
  144. ) -> "RechartsCharts":
  145. """Create a new memoization leaf component.
  146. Args:
  147. *children: The children of the component.
  148. style: The style of the component.
  149. key: A unique key for the component.
  150. id: The id for the component.
  151. class_name: The class name for the component.
  152. autofocus: Whether the component should take the focus once the page is loaded
  153. custom_attrs: custom attribute
  154. **props: The props of the component.
  155. Returns:
  156. The memoization leaf
  157. """
  158. ...
  159. LiteralAnimationEasing = Literal["ease", "ease-in", "ease-out", "ease-in-out", "linear"]
  160. LiteralIfOverflow = Literal["discard", "hidden", "visible", "extendDomain"]
  161. LiteralShape = Literal[
  162. "square", "circle", "cross", "diamond", "star", "triangle", "wye"
  163. ]
  164. LiteralLineType = Literal["joint", "fitting"]
  165. LiteralOrientation = Literal["top", "bottom", "left", "right", "middle"]
  166. LiteralOrientationLeftRightMiddle = Literal["left", "right", "middle"]
  167. LiteralOrientationTopBottom = Literal["top", "bottom"]
  168. LiteralOrientationTopBottomLeftRight = Literal["top", "bottom", "left", "right"]
  169. LiteralScale = Literal[
  170. "auto",
  171. "linear",
  172. "pow",
  173. "sqrt",
  174. "log",
  175. "identity",
  176. "time",
  177. "band",
  178. "point",
  179. "ordinal",
  180. "quantile",
  181. "quantize",
  182. "utc",
  183. "sequential",
  184. "threshold",
  185. ]
  186. LiteralLayout = Literal["horizontal", "vertical"]
  187. LiteralPolarRadiusType = Literal["number", "category"]
  188. LiteralGridType = Literal["polygon", "circle"]
  189. LiteralPosition = Literal[
  190. "top",
  191. "left",
  192. "right",
  193. "bottom",
  194. "inside",
  195. "outside",
  196. "insideLeft",
  197. "insideRight",
  198. "insideTop",
  199. "insideBottom",
  200. "insideTopLeft",
  201. "insideBottomLeft",
  202. "insideTopRight",
  203. "insideBottomRight",
  204. "insideStart",
  205. "insideEnd",
  206. "end",
  207. "center",
  208. ]
  209. LiteralIconType = Literal[
  210. "line",
  211. "plainline",
  212. "square",
  213. "rect",
  214. "circle",
  215. "cross",
  216. "diamond",
  217. "star",
  218. "triangle",
  219. "wye",
  220. ]
  221. LiteralLegendType = [
  222. "line",
  223. "plainline",
  224. "square",
  225. "rect",
  226. "circle",
  227. "cross",
  228. "diamond",
  229. "star",
  230. "triangle",
  231. "wye",
  232. "none",
  233. ]
  234. LiteralLegendAlign = Literal["left", "center", "right"]
  235. LiteralVerticalAlign = Literal["top", "middle", "bottom"]
  236. LiteralStackOffset = Literal["expand", "none", "wiggle", "silhouette"]
  237. LiteralBarChartStackOffset = Literal["expand", "none", "wiggle", "silhouette", "sign"]
  238. LiteralComposedChartBaseValue = Literal["dataMin", "dataMax", "auto"]
  239. LiteralAxisType = Literal["number", "category"]
  240. LiteralAreaType = Literal[
  241. "basis",
  242. "basisClosed",
  243. "basisOpen",
  244. "bumpX",
  245. "bumpY",
  246. "bump",
  247. "linear",
  248. "linearClosed",
  249. "natural",
  250. "monotoneX",
  251. "monotoneY",
  252. "monotone",
  253. "step",
  254. "stepBefore",
  255. "stepAfter",
  256. ]
  257. LiteralDirection = Literal["x", "y", "both"]
  258. LiteralInterval = Literal["preserveStart", "preserveEnd", "preserveStartEnd"]
  259. LiteralSyncMethod = Literal["index", "value"]