progress.pyi 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. """Stub file for reflex/components/feedback/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 typing import Union
  10. from reflex.components.libs.chakra import ChakraComponent
  11. from reflex.vars import Var
  12. class Progress(ChakraComponent):
  13. @overload
  14. @classmethod
  15. def create( # type: ignore
  16. cls,
  17. *children,
  18. has_stripe: Optional[Union[Var[bool], bool]] = None,
  19. is_animated: Optional[Union[Var[bool], bool]] = None,
  20. is_indeterminate: Optional[Union[Var[bool], bool]] = None,
  21. max_: Optional[Union[Var[int], int]] = None,
  22. min_: Optional[Union[Var[int], int]] = None,
  23. value: Optional[Union[Var[Union[int, float]], Union[int, float]]] = None,
  24. color_scheme: Optional[Union[Var[str], str]] = None,
  25. style: Optional[Style] = None,
  26. key: Optional[Any] = None,
  27. id: Optional[Any] = None,
  28. class_name: Optional[Any] = None,
  29. autofocus: Optional[bool] = None,
  30. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  31. on_blur: Optional[
  32. Union[EventHandler, EventSpec, list, function, BaseVar]
  33. ] = None,
  34. on_click: Optional[
  35. Union[EventHandler, EventSpec, list, function, BaseVar]
  36. ] = None,
  37. on_context_menu: Optional[
  38. Union[EventHandler, EventSpec, list, function, BaseVar]
  39. ] = None,
  40. on_double_click: Optional[
  41. Union[EventHandler, EventSpec, list, function, BaseVar]
  42. ] = None,
  43. on_focus: Optional[
  44. Union[EventHandler, EventSpec, list, function, BaseVar]
  45. ] = None,
  46. on_mount: Optional[
  47. Union[EventHandler, EventSpec, list, function, BaseVar]
  48. ] = None,
  49. on_mouse_down: Optional[
  50. Union[EventHandler, EventSpec, list, function, BaseVar]
  51. ] = None,
  52. on_mouse_enter: Optional[
  53. Union[EventHandler, EventSpec, list, function, BaseVar]
  54. ] = None,
  55. on_mouse_leave: Optional[
  56. Union[EventHandler, EventSpec, list, function, BaseVar]
  57. ] = None,
  58. on_mouse_move: Optional[
  59. Union[EventHandler, EventSpec, list, function, BaseVar]
  60. ] = None,
  61. on_mouse_out: Optional[
  62. Union[EventHandler, EventSpec, list, function, BaseVar]
  63. ] = None,
  64. on_mouse_over: Optional[
  65. Union[EventHandler, EventSpec, list, function, BaseVar]
  66. ] = None,
  67. on_mouse_up: Optional[
  68. Union[EventHandler, EventSpec, list, function, BaseVar]
  69. ] = None,
  70. on_scroll: Optional[
  71. Union[EventHandler, EventSpec, list, function, BaseVar]
  72. ] = None,
  73. on_unmount: Optional[
  74. Union[EventHandler, EventSpec, list, function, BaseVar]
  75. ] = None,
  76. **props
  77. ) -> "Progress":
  78. """Create the component.
  79. Args:
  80. *children: The children of the component.
  81. has_stripe: If true, the progress bar will show stripe
  82. is_animated: If true, and has_stripe is true, the stripes will be animated
  83. is_indeterminate: If true, the progress will be indeterminate and the value prop will be ignored
  84. max_: The maximum value of the progress
  85. min_: The minimum value of the progress
  86. value: The value of the progress indicator. If undefined the progress bar will be in indeterminate state
  87. color_scheme: The color scheme of the progress bar.
  88. style: The style of the component.
  89. key: A unique key for the component.
  90. id: The id for the component.
  91. class_name: The class name for the component.
  92. autofocus: Whether the component should take the focus once the page is loaded
  93. custom_attrs: custom attribute
  94. **props: The props of the component.
  95. Returns:
  96. The component.
  97. Raises:
  98. TypeError: If an invalid child is passed.
  99. """
  100. ...