circularprogress.pyi 7.5 KB

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