progress.pyi 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. """Stub file for reflex/components/radix/primitives/progress.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 types import SimpleNamespace
  10. from typing import Optional
  11. from reflex.components.component import Component
  12. from reflex.components.radix.primitives.accordion import DEFAULT_ANIMATION_DURATION
  13. from reflex.components.radix.primitives.base import RadixPrimitiveComponentWithClassName
  14. from reflex.style import Style
  15. from reflex.vars import Var
  16. class ProgressComponent(RadixPrimitiveComponentWithClassName):
  17. @overload
  18. @classmethod
  19. def create( # type: ignore
  20. cls,
  21. *children,
  22. as_child: Optional[Union[Var[bool], bool]] = None,
  23. style: Optional[Style] = None,
  24. key: Optional[Any] = None,
  25. id: Optional[Any] = None,
  26. class_name: Optional[Any] = None,
  27. autofocus: Optional[bool] = None,
  28. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  29. on_blur: Optional[
  30. Union[EventHandler, EventSpec, list, function, BaseVar]
  31. ] = None,
  32. on_click: Optional[
  33. Union[EventHandler, EventSpec, list, function, BaseVar]
  34. ] = None,
  35. on_context_menu: Optional[
  36. Union[EventHandler, EventSpec, list, function, BaseVar]
  37. ] = None,
  38. on_double_click: Optional[
  39. Union[EventHandler, EventSpec, list, function, BaseVar]
  40. ] = None,
  41. on_focus: Optional[
  42. Union[EventHandler, EventSpec, list, function, BaseVar]
  43. ] = None,
  44. on_mount: Optional[
  45. Union[EventHandler, EventSpec, list, function, BaseVar]
  46. ] = None,
  47. on_mouse_down: Optional[
  48. Union[EventHandler, EventSpec, list, function, BaseVar]
  49. ] = None,
  50. on_mouse_enter: Optional[
  51. Union[EventHandler, EventSpec, list, function, BaseVar]
  52. ] = None,
  53. on_mouse_leave: Optional[
  54. Union[EventHandler, EventSpec, list, function, BaseVar]
  55. ] = None,
  56. on_mouse_move: Optional[
  57. Union[EventHandler, EventSpec, list, function, BaseVar]
  58. ] = None,
  59. on_mouse_out: Optional[
  60. Union[EventHandler, EventSpec, list, function, BaseVar]
  61. ] = None,
  62. on_mouse_over: Optional[
  63. Union[EventHandler, EventSpec, list, function, BaseVar]
  64. ] = None,
  65. on_mouse_up: Optional[
  66. Union[EventHandler, EventSpec, list, function, BaseVar]
  67. ] = None,
  68. on_scroll: Optional[
  69. Union[EventHandler, EventSpec, list, function, BaseVar]
  70. ] = None,
  71. on_unmount: Optional[
  72. Union[EventHandler, EventSpec, list, function, BaseVar]
  73. ] = None,
  74. **props
  75. ) -> "ProgressComponent":
  76. """Create the component.
  77. Args:
  78. *children: The children of the component.
  79. as_child: Change the default rendered element for the one passed as a child.
  80. style: The style of the component.
  81. key: A unique key for the component.
  82. id: The id for the component.
  83. class_name: The class name for the component.
  84. autofocus: Whether the component should take the focus once the page is loaded
  85. custom_attrs: custom attribute
  86. **props: The props of the component.
  87. Returns:
  88. The component.
  89. Raises:
  90. TypeError: If an invalid child is passed.
  91. """
  92. ...
  93. class ProgressRoot(ProgressComponent):
  94. @overload
  95. @classmethod
  96. def create( # type: ignore
  97. cls,
  98. *children,
  99. value: Optional[Union[Var[Optional[int]], Optional[int]]] = None,
  100. max: Optional[Union[Var[int], int]] = None,
  101. as_child: Optional[Union[Var[bool], bool]] = None,
  102. style: Optional[Style] = None,
  103. key: Optional[Any] = None,
  104. id: Optional[Any] = None,
  105. class_name: Optional[Any] = None,
  106. autofocus: Optional[bool] = None,
  107. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  108. on_blur: Optional[
  109. Union[EventHandler, EventSpec, list, function, BaseVar]
  110. ] = None,
  111. on_click: Optional[
  112. Union[EventHandler, EventSpec, list, function, BaseVar]
  113. ] = None,
  114. on_context_menu: Optional[
  115. Union[EventHandler, EventSpec, list, function, BaseVar]
  116. ] = None,
  117. on_double_click: Optional[
  118. Union[EventHandler, EventSpec, list, function, BaseVar]
  119. ] = None,
  120. on_focus: Optional[
  121. Union[EventHandler, EventSpec, list, function, BaseVar]
  122. ] = None,
  123. on_mount: Optional[
  124. Union[EventHandler, EventSpec, list, function, BaseVar]
  125. ] = None,
  126. on_mouse_down: Optional[
  127. Union[EventHandler, EventSpec, list, function, BaseVar]
  128. ] = None,
  129. on_mouse_enter: Optional[
  130. Union[EventHandler, EventSpec, list, function, BaseVar]
  131. ] = None,
  132. on_mouse_leave: Optional[
  133. Union[EventHandler, EventSpec, list, function, BaseVar]
  134. ] = None,
  135. on_mouse_move: Optional[
  136. Union[EventHandler, EventSpec, list, function, BaseVar]
  137. ] = None,
  138. on_mouse_out: Optional[
  139. Union[EventHandler, EventSpec, list, function, BaseVar]
  140. ] = None,
  141. on_mouse_over: Optional[
  142. Union[EventHandler, EventSpec, list, function, BaseVar]
  143. ] = None,
  144. on_mouse_up: Optional[
  145. Union[EventHandler, EventSpec, list, function, BaseVar]
  146. ] = None,
  147. on_scroll: Optional[
  148. Union[EventHandler, EventSpec, list, function, BaseVar]
  149. ] = None,
  150. on_unmount: Optional[
  151. Union[EventHandler, EventSpec, list, function, BaseVar]
  152. ] = None,
  153. **props
  154. ) -> "ProgressRoot":
  155. """Create the component.
  156. Args:
  157. *children: The children of the component.
  158. value: The current progress value.
  159. max: The maximum progress value.
  160. as_child: Change the default rendered element for the one passed as a child.
  161. style: The style of the component.
  162. key: A unique key for the component.
  163. id: The id for the component.
  164. class_name: The class name for the component.
  165. autofocus: Whether the component should take the focus once the page is loaded
  166. custom_attrs: custom attribute
  167. **props: The props of the component.
  168. Returns:
  169. The component.
  170. Raises:
  171. TypeError: If an invalid child is passed.
  172. """
  173. ...
  174. class ProgressIndicator(ProgressComponent):
  175. @overload
  176. @classmethod
  177. def create( # type: ignore
  178. cls,
  179. *children,
  180. value: Optional[Union[Var[Optional[int]], Optional[int]]] = None,
  181. max: Optional[Union[Var[Optional[int]], Optional[int]]] = None,
  182. as_child: Optional[Union[Var[bool], bool]] = None,
  183. style: Optional[Style] = None,
  184. key: Optional[Any] = None,
  185. id: Optional[Any] = None,
  186. class_name: Optional[Any] = None,
  187. autofocus: Optional[bool] = None,
  188. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  189. on_blur: Optional[
  190. Union[EventHandler, EventSpec, list, function, BaseVar]
  191. ] = None,
  192. on_click: Optional[
  193. Union[EventHandler, EventSpec, list, function, BaseVar]
  194. ] = None,
  195. on_context_menu: Optional[
  196. Union[EventHandler, EventSpec, list, function, BaseVar]
  197. ] = None,
  198. on_double_click: Optional[
  199. Union[EventHandler, EventSpec, list, function, BaseVar]
  200. ] = None,
  201. on_focus: Optional[
  202. Union[EventHandler, EventSpec, list, function, BaseVar]
  203. ] = None,
  204. on_mount: Optional[
  205. Union[EventHandler, EventSpec, list, function, BaseVar]
  206. ] = None,
  207. on_mouse_down: Optional[
  208. Union[EventHandler, EventSpec, list, function, BaseVar]
  209. ] = None,
  210. on_mouse_enter: Optional[
  211. Union[EventHandler, EventSpec, list, function, BaseVar]
  212. ] = None,
  213. on_mouse_leave: Optional[
  214. Union[EventHandler, EventSpec, list, function, BaseVar]
  215. ] = None,
  216. on_mouse_move: Optional[
  217. Union[EventHandler, EventSpec, list, function, BaseVar]
  218. ] = None,
  219. on_mouse_out: Optional[
  220. Union[EventHandler, EventSpec, list, function, BaseVar]
  221. ] = None,
  222. on_mouse_over: Optional[
  223. Union[EventHandler, EventSpec, list, function, BaseVar]
  224. ] = None,
  225. on_mouse_up: Optional[
  226. Union[EventHandler, EventSpec, list, function, BaseVar]
  227. ] = None,
  228. on_scroll: Optional[
  229. Union[EventHandler, EventSpec, list, function, BaseVar]
  230. ] = None,
  231. on_unmount: Optional[
  232. Union[EventHandler, EventSpec, list, function, BaseVar]
  233. ] = None,
  234. **props
  235. ) -> "ProgressIndicator":
  236. """Create the component.
  237. Args:
  238. *children: The children of the component.
  239. value: The current progress value.
  240. max: The maximum progress value.
  241. as_child: Change the default rendered element for the one passed as a child.
  242. style: The style of the component.
  243. key: A unique key for the component.
  244. id: The id for the component.
  245. class_name: The class name for the component.
  246. autofocus: Whether the component should take the focus once the page is loaded
  247. custom_attrs: custom attribute
  248. **props: The props of the component.
  249. Returns:
  250. The component.
  251. Raises:
  252. TypeError: If an invalid child is passed.
  253. """
  254. ...
  255. class Progress(SimpleNamespace):
  256. root = staticmethod(ProgressRoot.create)
  257. indicator = staticmethod(ProgressIndicator.create)
  258. @staticmethod
  259. def __call__(width: Optional[str] = "100%", **props) -> Component: ...
  260. progress = Progress()