circularprogress.pyi 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. """Stub file for reflex/components/chakra/feedback/circularprogress.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 typing import Union
  10. from reflex.components.chakra import ChakraComponent
  11. from reflex.components.component import Component
  12. from reflex.vars import Var
  13. class CircularProgress(ChakraComponent):
  14. @overload
  15. @classmethod
  16. def create( # type: ignore
  17. cls,
  18. *children,
  19. label=None,
  20. cap_is_round: Optional[Union[Var[bool], bool]] = None,
  21. is_indeterminate: Optional[Union[Var[bool], bool]] = None,
  22. max_: Optional[Union[Var[int], int]] = None,
  23. min_: Optional[Union[Var[int], int]] = None,
  24. thickness: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
  25. track_color: Optional[Union[Var[str], str]] = None,
  26. value: Optional[Union[Var[int], int]] = None,
  27. value_text: Optional[Union[Var[str], str]] = None,
  28. color: Optional[Union[Var[str], str]] = None,
  29. size: Optional[Union[Var[str], str]] = None,
  30. style: Optional[Style] = None,
  31. key: Optional[Any] = None,
  32. id: Optional[Any] = None,
  33. class_name: Optional[Any] = None,
  34. autofocus: Optional[bool] = None,
  35. _rename_props: Optional[Dict[str, str]] = None,
  36. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  37. on_blur: Optional[
  38. Union[EventHandler, EventSpec, list, function, BaseVar]
  39. ] = None,
  40. on_click: Optional[
  41. Union[EventHandler, EventSpec, list, function, BaseVar]
  42. ] = None,
  43. on_context_menu: Optional[
  44. Union[EventHandler, EventSpec, list, function, BaseVar]
  45. ] = None,
  46. on_double_click: Optional[
  47. Union[EventHandler, EventSpec, list, function, BaseVar]
  48. ] = None,
  49. on_focus: Optional[
  50. Union[EventHandler, EventSpec, list, function, BaseVar]
  51. ] = None,
  52. on_mount: Optional[
  53. Union[EventHandler, EventSpec, list, function, BaseVar]
  54. ] = None,
  55. on_mouse_down: Optional[
  56. Union[EventHandler, EventSpec, list, function, BaseVar]
  57. ] = None,
  58. on_mouse_enter: Optional[
  59. Union[EventHandler, EventSpec, list, function, BaseVar]
  60. ] = None,
  61. on_mouse_leave: Optional[
  62. Union[EventHandler, EventSpec, list, function, BaseVar]
  63. ] = None,
  64. on_mouse_move: Optional[
  65. Union[EventHandler, EventSpec, list, function, BaseVar]
  66. ] = None,
  67. on_mouse_out: Optional[
  68. Union[EventHandler, EventSpec, list, function, BaseVar]
  69. ] = None,
  70. on_mouse_over: Optional[
  71. Union[EventHandler, EventSpec, list, function, BaseVar]
  72. ] = None,
  73. on_mouse_up: Optional[
  74. Union[EventHandler, EventSpec, list, function, BaseVar]
  75. ] = None,
  76. on_scroll: Optional[
  77. Union[EventHandler, EventSpec, list, function, BaseVar]
  78. ] = None,
  79. on_unmount: Optional[
  80. Union[EventHandler, EventSpec, list, function, BaseVar]
  81. ] = None,
  82. **props
  83. ) -> "CircularProgress":
  84. """Create a circular progress component.
  85. Args:
  86. *children: the children of the component.
  87. label: A label to add in the circular progress. Defaults to None.
  88. cap_is_round: If true, the cap of the progress indicator will be rounded.
  89. is_indeterminate: If true, the progress will be indeterminate and the value prop will be ignored
  90. max_: Maximum value defining 100% progress made (must be higher than 'min')
  91. min_: Minimum value defining 'no progress' (must be lower than 'max')
  92. thickness: This defines the stroke width of the svg circle.
  93. track_color: The color name of the progress track. Use a color key in the theme object
  94. value: Current progress (must be between min/max).
  95. value_text: The desired valueText to use in place of the value.
  96. color: The color name of the progress bar
  97. size: The size of the circular progress
  98. style: The style of the component.
  99. key: A unique key for the component.
  100. id: The id for the component.
  101. class_name: The class name for the component.
  102. autofocus: Whether the component should take the focus once the page is loaded
  103. _rename_props: props to change the name of
  104. custom_attrs: custom attribute
  105. **props: the props of the component.
  106. Returns:
  107. The circular progress component.
  108. """
  109. ...
  110. class CircularProgressLabel(ChakraComponent):
  111. @overload
  112. @classmethod
  113. def create( # type: ignore
  114. cls,
  115. *children,
  116. style: Optional[Style] = None,
  117. key: Optional[Any] = None,
  118. id: Optional[Any] = None,
  119. class_name: Optional[Any] = None,
  120. autofocus: Optional[bool] = None,
  121. _rename_props: Optional[Dict[str, str]] = None,
  122. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  123. on_blur: Optional[
  124. Union[EventHandler, EventSpec, list, function, BaseVar]
  125. ] = None,
  126. on_click: Optional[
  127. Union[EventHandler, EventSpec, list, function, BaseVar]
  128. ] = None,
  129. on_context_menu: Optional[
  130. Union[EventHandler, EventSpec, list, function, BaseVar]
  131. ] = None,
  132. on_double_click: Optional[
  133. Union[EventHandler, EventSpec, list, function, BaseVar]
  134. ] = None,
  135. on_focus: Optional[
  136. Union[EventHandler, EventSpec, list, function, BaseVar]
  137. ] = None,
  138. on_mount: Optional[
  139. Union[EventHandler, EventSpec, list, function, BaseVar]
  140. ] = None,
  141. on_mouse_down: Optional[
  142. Union[EventHandler, EventSpec, list, function, BaseVar]
  143. ] = None,
  144. on_mouse_enter: Optional[
  145. Union[EventHandler, EventSpec, list, function, BaseVar]
  146. ] = None,
  147. on_mouse_leave: Optional[
  148. Union[EventHandler, EventSpec, list, function, BaseVar]
  149. ] = None,
  150. on_mouse_move: Optional[
  151. Union[EventHandler, EventSpec, list, function, BaseVar]
  152. ] = None,
  153. on_mouse_out: Optional[
  154. Union[EventHandler, EventSpec, list, function, BaseVar]
  155. ] = None,
  156. on_mouse_over: Optional[
  157. Union[EventHandler, EventSpec, list, function, BaseVar]
  158. ] = None,
  159. on_mouse_up: Optional[
  160. Union[EventHandler, EventSpec, list, function, BaseVar]
  161. ] = None,
  162. on_scroll: Optional[
  163. Union[EventHandler, EventSpec, list, function, BaseVar]
  164. ] = None,
  165. on_unmount: Optional[
  166. Union[EventHandler, EventSpec, list, function, BaseVar]
  167. ] = None,
  168. **props
  169. ) -> "CircularProgressLabel":
  170. """Create the component.
  171. Args:
  172. *children: The children of the component.
  173. style: The style of the component.
  174. key: A unique key for the component.
  175. id: The id for the component.
  176. class_name: The class name for the component.
  177. autofocus: Whether the component should take the focus once the page is loaded
  178. _rename_props: props to change the name of
  179. custom_attrs: custom attribute
  180. **props: The props of the component.
  181. Returns:
  182. The component.
  183. Raises:
  184. TypeError: If an invalid child is passed.
  185. """
  186. ...