skeleton.pyi 11 KB

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