progress.pyi 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. """Stub file for reflex/components/radix/themes/components/progress.py"""
  2. # ------------------- DO NOT EDIT ----------------------
  3. # This file was generated by `reflex/utils/pyi_generator.py`!
  4. # ------------------------------------------------------
  5. from typing import Any, Literal, Mapping, Optional, Sequence, overload
  6. from reflex.components.core.breakpoints import Breakpoints
  7. from reflex.event import EventType
  8. from reflex.vars.base import Var
  9. from ..base import RadixThemesComponent
  10. class Progress(RadixThemesComponent):
  11. @overload
  12. @classmethod
  13. def create( # type: ignore
  14. cls,
  15. *children,
  16. value: Var[int] | int | None = None,
  17. max: Var[int] | int | None = None,
  18. size: Breakpoints[str, Literal["1", "2", "3"]]
  19. | Literal["1", "2", "3"]
  20. | Var[Breakpoints[str, Literal["1", "2", "3"]] | Literal["1", "2", "3"]]
  21. | None = None,
  22. variant: Literal["classic", "soft", "surface"]
  23. | Var[Literal["classic", "soft", "surface"]]
  24. | None = None,
  25. color_scheme: Literal[
  26. "amber",
  27. "blue",
  28. "bronze",
  29. "brown",
  30. "crimson",
  31. "cyan",
  32. "gold",
  33. "grass",
  34. "gray",
  35. "green",
  36. "indigo",
  37. "iris",
  38. "jade",
  39. "lime",
  40. "mint",
  41. "orange",
  42. "pink",
  43. "plum",
  44. "purple",
  45. "red",
  46. "ruby",
  47. "sky",
  48. "teal",
  49. "tomato",
  50. "violet",
  51. "yellow",
  52. ]
  53. | Var[
  54. Literal[
  55. "amber",
  56. "blue",
  57. "bronze",
  58. "brown",
  59. "crimson",
  60. "cyan",
  61. "gold",
  62. "grass",
  63. "gray",
  64. "green",
  65. "indigo",
  66. "iris",
  67. "jade",
  68. "lime",
  69. "mint",
  70. "orange",
  71. "pink",
  72. "plum",
  73. "purple",
  74. "red",
  75. "ruby",
  76. "sky",
  77. "teal",
  78. "tomato",
  79. "violet",
  80. "yellow",
  81. ]
  82. ]
  83. | None = None,
  84. high_contrast: Var[bool] | bool | None = None,
  85. radius: Literal["full", "large", "medium", "none", "small"]
  86. | Var[Literal["full", "large", "medium", "none", "small"]]
  87. | None = None,
  88. duration: Var[str] | str | None = None,
  89. fill_color: Var[str] | str | None = None,
  90. style: Sequence[Mapping[str, Any]]
  91. | Mapping[str, Any]
  92. | Var[Mapping[str, Any]]
  93. | Breakpoints
  94. | None = None,
  95. key: Any | None = None,
  96. id: Any | None = None,
  97. class_name: Any | None = None,
  98. autofocus: bool | None = None,
  99. custom_attrs: dict[str, Var | Any] | None = None,
  100. on_blur: Optional[EventType[()]] = None,
  101. on_click: Optional[EventType[()]] = None,
  102. on_context_menu: Optional[EventType[()]] = None,
  103. on_double_click: Optional[EventType[()]] = None,
  104. on_focus: Optional[EventType[()]] = None,
  105. on_mount: Optional[EventType[()]] = None,
  106. on_mouse_down: Optional[EventType[()]] = None,
  107. on_mouse_enter: Optional[EventType[()]] = None,
  108. on_mouse_leave: Optional[EventType[()]] = None,
  109. on_mouse_move: Optional[EventType[()]] = None,
  110. on_mouse_out: Optional[EventType[()]] = None,
  111. on_mouse_over: Optional[EventType[()]] = None,
  112. on_mouse_up: Optional[EventType[()]] = None,
  113. on_scroll: Optional[EventType[()]] = None,
  114. on_unmount: Optional[EventType[()]] = None,
  115. **props,
  116. ) -> "Progress":
  117. """Create a Progress component.
  118. Args:
  119. *children: The children of the component.
  120. value: The value of the progress bar: 0 to max (default 100)
  121. max: The maximum progress value.
  122. size: The size of the progress bar: "1" | "2" | "3"
  123. variant: The variant of the progress bar: "classic" | "surface" | "soft"
  124. color_scheme: The color theme of the progress bar
  125. high_contrast: Whether to render the progress bar with higher contrast color against background
  126. radius: Override theme radius for progress bar: "none" | "small" | "medium" | "large" | "full"
  127. duration: The duration of the progress bar animation. Once the duration times out, the progress bar will start an indeterminate animation.
  128. fill_color: The color of the progress bar fill animation.
  129. style: The style of the component.
  130. key: A unique key for the component.
  131. id: The id for the component.
  132. class_name: The class name for the component.
  133. autofocus: Whether the component should take the focus once the page is loaded
  134. custom_attrs: custom attribute
  135. **props: The properties of the component.
  136. Returns:
  137. The Progress Component.
  138. """
  139. ...
  140. progress = Progress.create