recharts.pyi 7.0 KB

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