progress.pyi 10 KB

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