rangeslider.pyi 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368
  1. """Stub file for reflex/components/chakra/forms/rangeslider.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 Any, List, Optional, Union
  10. from reflex.components.chakra import ChakraComponent, LiteralChakraDirection
  11. from reflex.components.component import Component
  12. from reflex.constants import EventTriggers
  13. from reflex.utils import format
  14. from reflex.vars import Var
  15. class RangeSlider(ChakraComponent):
  16. def get_event_triggers(self) -> dict[str, Union[Var, Any]]: ...
  17. def get_ref(self): ...
  18. @overload
  19. @classmethod
  20. def create( # type: ignore
  21. cls,
  22. *children,
  23. value: Optional[Union[Var[List[int]], List[int]]] = None,
  24. default_value: Optional[Union[Var[List[int]], List[int]]] = None,
  25. direction: Optional[
  26. Union[Var[Literal["ltr", "rtl"]], Literal["ltr", "rtl"]]
  27. ] = None,
  28. focus_thumb_on_change: Optional[Union[Var[bool], bool]] = None,
  29. is_disabled: Optional[Union[Var[bool], bool]] = None,
  30. is_read_only: Optional[Union[Var[bool], bool]] = None,
  31. is_reversed: Optional[Union[Var[bool], bool]] = None,
  32. min_: Optional[Union[Var[int], int]] = None,
  33. max_: Optional[Union[Var[int], int]] = None,
  34. min_steps_between_thumbs: Optional[Union[Var[int], int]] = None,
  35. name: Optional[Union[Var[str], str]] = None,
  36. style: Optional[Style] = None,
  37. key: Optional[Any] = None,
  38. id: Optional[Any] = None,
  39. class_name: Optional[Any] = None,
  40. autofocus: Optional[bool] = None,
  41. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  42. on_blur: Optional[
  43. Union[EventHandler, EventSpec, list, function, BaseVar]
  44. ] = None,
  45. on_change: Optional[
  46. Union[EventHandler, EventSpec, list, function, BaseVar]
  47. ] = None,
  48. on_change_end: Optional[
  49. Union[EventHandler, EventSpec, list, function, BaseVar]
  50. ] = None,
  51. on_change_start: Optional[
  52. Union[EventHandler, EventSpec, list, function, BaseVar]
  53. ] = None,
  54. on_click: Optional[
  55. Union[EventHandler, EventSpec, list, function, BaseVar]
  56. ] = None,
  57. on_context_menu: Optional[
  58. Union[EventHandler, EventSpec, list, function, BaseVar]
  59. ] = None,
  60. on_double_click: Optional[
  61. Union[EventHandler, EventSpec, list, function, BaseVar]
  62. ] = None,
  63. on_focus: Optional[
  64. Union[EventHandler, EventSpec, list, function, BaseVar]
  65. ] = None,
  66. on_mount: Optional[
  67. Union[EventHandler, EventSpec, list, function, BaseVar]
  68. ] = None,
  69. on_mouse_down: Optional[
  70. Union[EventHandler, EventSpec, list, function, BaseVar]
  71. ] = None,
  72. on_mouse_enter: Optional[
  73. Union[EventHandler, EventSpec, list, function, BaseVar]
  74. ] = None,
  75. on_mouse_leave: Optional[
  76. Union[EventHandler, EventSpec, list, function, BaseVar]
  77. ] = None,
  78. on_mouse_move: Optional[
  79. Union[EventHandler, EventSpec, list, function, BaseVar]
  80. ] = None,
  81. on_mouse_out: Optional[
  82. Union[EventHandler, EventSpec, list, function, BaseVar]
  83. ] = None,
  84. on_mouse_over: Optional[
  85. Union[EventHandler, EventSpec, list, function, BaseVar]
  86. ] = None,
  87. on_mouse_up: Optional[
  88. Union[EventHandler, EventSpec, list, function, BaseVar]
  89. ] = None,
  90. on_scroll: Optional[
  91. Union[EventHandler, EventSpec, list, function, BaseVar]
  92. ] = None,
  93. on_unmount: Optional[
  94. Union[EventHandler, EventSpec, list, function, BaseVar]
  95. ] = None,
  96. **props
  97. ) -> "RangeSlider":
  98. """Create a RangeSlider component.
  99. If no children are provided, a default RangeSlider will be created.
  100. Args:
  101. *children: The children of the component.
  102. value: State var to bind the the input.
  103. default_value: The default values.
  104. direction: The writing mode ("ltr" | "rtl")
  105. focus_thumb_on_change: If false, the slider handle will not capture focus when value changes.
  106. is_disabled: If true, the slider will be disabled
  107. is_read_only: If true, the slider will be in `read-only` state.
  108. is_reversed: If true, the value will be incremented or decremented in reverse.
  109. min_: The minimum value of the slider.
  110. max_: The maximum value of the slider.
  111. min_steps_between_thumbs: The minimum distance between slider thumbs. Useful for preventing the thumbs from being too close together.
  112. name: The name of the form field
  113. style: The style of the component.
  114. key: A unique key for the component.
  115. id: The id for the component.
  116. class_name: The class name for the component.
  117. autofocus: Whether the component should take the focus once the page is loaded
  118. custom_attrs: custom attribute
  119. **props: The properties of the component.
  120. Returns:
  121. The RangeSlider component.
  122. """
  123. ...
  124. class RangeSliderTrack(ChakraComponent):
  125. @overload
  126. @classmethod
  127. def create( # type: ignore
  128. cls,
  129. *children,
  130. style: Optional[Style] = None,
  131. key: Optional[Any] = None,
  132. id: Optional[Any] = None,
  133. class_name: Optional[Any] = None,
  134. autofocus: Optional[bool] = None,
  135. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  136. on_blur: Optional[
  137. Union[EventHandler, EventSpec, list, function, BaseVar]
  138. ] = None,
  139. on_click: Optional[
  140. Union[EventHandler, EventSpec, list, function, BaseVar]
  141. ] = None,
  142. on_context_menu: Optional[
  143. Union[EventHandler, EventSpec, list, function, BaseVar]
  144. ] = None,
  145. on_double_click: Optional[
  146. Union[EventHandler, EventSpec, list, function, BaseVar]
  147. ] = None,
  148. on_focus: Optional[
  149. Union[EventHandler, EventSpec, list, function, BaseVar]
  150. ] = None,
  151. on_mount: Optional[
  152. Union[EventHandler, EventSpec, list, function, BaseVar]
  153. ] = None,
  154. on_mouse_down: Optional[
  155. Union[EventHandler, EventSpec, list, function, BaseVar]
  156. ] = None,
  157. on_mouse_enter: Optional[
  158. Union[EventHandler, EventSpec, list, function, BaseVar]
  159. ] = None,
  160. on_mouse_leave: Optional[
  161. Union[EventHandler, EventSpec, list, function, BaseVar]
  162. ] = None,
  163. on_mouse_move: Optional[
  164. Union[EventHandler, EventSpec, list, function, BaseVar]
  165. ] = None,
  166. on_mouse_out: Optional[
  167. Union[EventHandler, EventSpec, list, function, BaseVar]
  168. ] = None,
  169. on_mouse_over: Optional[
  170. Union[EventHandler, EventSpec, list, function, BaseVar]
  171. ] = None,
  172. on_mouse_up: Optional[
  173. Union[EventHandler, EventSpec, list, function, BaseVar]
  174. ] = None,
  175. on_scroll: Optional[
  176. Union[EventHandler, EventSpec, list, function, BaseVar]
  177. ] = None,
  178. on_unmount: Optional[
  179. Union[EventHandler, EventSpec, list, function, BaseVar]
  180. ] = None,
  181. **props
  182. ) -> "RangeSliderTrack":
  183. """Create the component.
  184. Args:
  185. *children: The children of the component.
  186. style: The style of the component.
  187. key: A unique key for the component.
  188. id: The id for the component.
  189. class_name: The class name for the component.
  190. autofocus: Whether the component should take the focus once the page is loaded
  191. custom_attrs: custom attribute
  192. **props: The props of the component.
  193. Returns:
  194. The component.
  195. Raises:
  196. TypeError: If an invalid child is passed.
  197. """
  198. ...
  199. class RangeSliderFilledTrack(ChakraComponent):
  200. @overload
  201. @classmethod
  202. def create( # type: ignore
  203. cls,
  204. *children,
  205. style: Optional[Style] = None,
  206. key: Optional[Any] = None,
  207. id: Optional[Any] = None,
  208. class_name: Optional[Any] = None,
  209. autofocus: Optional[bool] = None,
  210. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  211. on_blur: Optional[
  212. Union[EventHandler, EventSpec, list, function, BaseVar]
  213. ] = None,
  214. on_click: Optional[
  215. Union[EventHandler, EventSpec, list, function, BaseVar]
  216. ] = None,
  217. on_context_menu: Optional[
  218. Union[EventHandler, EventSpec, list, function, BaseVar]
  219. ] = None,
  220. on_double_click: Optional[
  221. Union[EventHandler, EventSpec, list, function, BaseVar]
  222. ] = None,
  223. on_focus: Optional[
  224. Union[EventHandler, EventSpec, list, function, BaseVar]
  225. ] = None,
  226. on_mount: Optional[
  227. Union[EventHandler, EventSpec, list, function, BaseVar]
  228. ] = None,
  229. on_mouse_down: Optional[
  230. Union[EventHandler, EventSpec, list, function, BaseVar]
  231. ] = None,
  232. on_mouse_enter: Optional[
  233. Union[EventHandler, EventSpec, list, function, BaseVar]
  234. ] = None,
  235. on_mouse_leave: Optional[
  236. Union[EventHandler, EventSpec, list, function, BaseVar]
  237. ] = None,
  238. on_mouse_move: Optional[
  239. Union[EventHandler, EventSpec, list, function, BaseVar]
  240. ] = None,
  241. on_mouse_out: Optional[
  242. Union[EventHandler, EventSpec, list, function, BaseVar]
  243. ] = None,
  244. on_mouse_over: Optional[
  245. Union[EventHandler, EventSpec, list, function, BaseVar]
  246. ] = None,
  247. on_mouse_up: Optional[
  248. Union[EventHandler, EventSpec, list, function, BaseVar]
  249. ] = None,
  250. on_scroll: Optional[
  251. Union[EventHandler, EventSpec, list, function, BaseVar]
  252. ] = None,
  253. on_unmount: Optional[
  254. Union[EventHandler, EventSpec, list, function, BaseVar]
  255. ] = None,
  256. **props
  257. ) -> "RangeSliderFilledTrack":
  258. """Create the component.
  259. Args:
  260. *children: The children of the component.
  261. style: The style of the component.
  262. key: A unique key for the component.
  263. id: The id for the component.
  264. class_name: The class name for the component.
  265. autofocus: Whether the component should take the focus once the page is loaded
  266. custom_attrs: custom attribute
  267. **props: The props of the component.
  268. Returns:
  269. The component.
  270. Raises:
  271. TypeError: If an invalid child is passed.
  272. """
  273. ...
  274. class RangeSliderThumb(ChakraComponent):
  275. def get_ref(self): ...
  276. @overload
  277. @classmethod
  278. def create( # type: ignore
  279. cls,
  280. *children,
  281. index: Optional[Union[Var[int], int]] = None,
  282. style: Optional[Style] = None,
  283. key: Optional[Any] = None,
  284. id: Optional[Any] = None,
  285. class_name: Optional[Any] = None,
  286. autofocus: Optional[bool] = None,
  287. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  288. on_blur: Optional[
  289. Union[EventHandler, EventSpec, list, function, BaseVar]
  290. ] = None,
  291. on_click: Optional[
  292. Union[EventHandler, EventSpec, list, function, BaseVar]
  293. ] = None,
  294. on_context_menu: Optional[
  295. Union[EventHandler, EventSpec, list, function, BaseVar]
  296. ] = None,
  297. on_double_click: Optional[
  298. Union[EventHandler, EventSpec, list, function, BaseVar]
  299. ] = None,
  300. on_focus: Optional[
  301. Union[EventHandler, EventSpec, list, function, BaseVar]
  302. ] = None,
  303. on_mount: Optional[
  304. Union[EventHandler, EventSpec, list, function, BaseVar]
  305. ] = None,
  306. on_mouse_down: Optional[
  307. Union[EventHandler, EventSpec, list, function, BaseVar]
  308. ] = None,
  309. on_mouse_enter: Optional[
  310. Union[EventHandler, EventSpec, list, function, BaseVar]
  311. ] = None,
  312. on_mouse_leave: Optional[
  313. Union[EventHandler, EventSpec, list, function, BaseVar]
  314. ] = None,
  315. on_mouse_move: Optional[
  316. Union[EventHandler, EventSpec, list, function, BaseVar]
  317. ] = None,
  318. on_mouse_out: Optional[
  319. Union[EventHandler, EventSpec, list, function, BaseVar]
  320. ] = None,
  321. on_mouse_over: Optional[
  322. Union[EventHandler, EventSpec, list, function, BaseVar]
  323. ] = None,
  324. on_mouse_up: Optional[
  325. Union[EventHandler, EventSpec, list, function, BaseVar]
  326. ] = None,
  327. on_scroll: Optional[
  328. Union[EventHandler, EventSpec, list, function, BaseVar]
  329. ] = None,
  330. on_unmount: Optional[
  331. Union[EventHandler, EventSpec, list, function, BaseVar]
  332. ] = None,
  333. **props
  334. ) -> "RangeSliderThumb":
  335. """Create the component.
  336. Args:
  337. *children: The children of the component.
  338. index: The position of the thumb.
  339. style: The style of the component.
  340. key: A unique key for the component.
  341. id: The id for the component.
  342. class_name: The class name for the component.
  343. autofocus: Whether the component should take the focus once the page is loaded
  344. custom_attrs: custom attribute
  345. **props: The props of the component.
  346. Returns:
  347. The component.
  348. Raises:
  349. TypeError: If an invalid child is passed.
  350. """
  351. ...