1
0

recharts.pyi 7.0 KB

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