checkbox_group.pyi 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. """Stub file for reflex/components/radix/themes/components/checkbox_group.py"""
  2. # ------------------- DO NOT EDIT ----------------------
  3. # This file was generated by `reflex/utils/pyi_generator.py`!
  4. # ------------------------------------------------------
  5. from types import SimpleNamespace
  6. from typing import Any, Callable, Dict, List, Literal, Optional, Union, overload
  7. from reflex.components.core.breakpoints import Breakpoints
  8. from reflex.event import EventHandler, EventSpec
  9. from reflex.ivars.base import ImmutableVar
  10. from reflex.style import Style
  11. from reflex.vars import Var
  12. from ..base import RadixThemesComponent
  13. class CheckboxGroupRoot(RadixThemesComponent):
  14. @overload
  15. @classmethod
  16. def create( # type: ignore
  17. cls,
  18. *children,
  19. size: Optional[
  20. Union[
  21. Var[
  22. Union[
  23. Breakpoints[str, Literal["1", "2", "3"]], Literal["1", "2", "3"]
  24. ]
  25. ],
  26. Literal["1", "2", "3"],
  27. Breakpoints[str, Literal["1", "2", "3"]],
  28. ]
  29. ] = None,
  30. variant: Optional[
  31. Union[
  32. Var[Literal["classic", "surface", "soft"]],
  33. Literal["classic", "surface", "soft"],
  34. ]
  35. ] = None,
  36. color_scheme: Optional[
  37. Union[
  38. Var[
  39. Literal[
  40. "tomato",
  41. "red",
  42. "ruby",
  43. "crimson",
  44. "pink",
  45. "plum",
  46. "purple",
  47. "violet",
  48. "iris",
  49. "indigo",
  50. "blue",
  51. "cyan",
  52. "teal",
  53. "jade",
  54. "green",
  55. "grass",
  56. "brown",
  57. "orange",
  58. "sky",
  59. "mint",
  60. "lime",
  61. "yellow",
  62. "amber",
  63. "gold",
  64. "bronze",
  65. "gray",
  66. ]
  67. ],
  68. Literal[
  69. "tomato",
  70. "red",
  71. "ruby",
  72. "crimson",
  73. "pink",
  74. "plum",
  75. "purple",
  76. "violet",
  77. "iris",
  78. "indigo",
  79. "blue",
  80. "cyan",
  81. "teal",
  82. "jade",
  83. "green",
  84. "grass",
  85. "brown",
  86. "orange",
  87. "sky",
  88. "mint",
  89. "lime",
  90. "yellow",
  91. "amber",
  92. "gold",
  93. "bronze",
  94. "gray",
  95. ],
  96. ]
  97. ] = None,
  98. high_contrast: Optional[Union[Var[bool], bool]] = None,
  99. default_value: Optional[Union[Var[List[str]], List[str]]] = None,
  100. name: Optional[Union[Var[str], str]] = None,
  101. style: Optional[Style] = None,
  102. key: Optional[Any] = None,
  103. id: Optional[Any] = None,
  104. class_name: Optional[Any] = None,
  105. autofocus: Optional[bool] = None,
  106. custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
  107. on_blur: Optional[
  108. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  109. ] = None,
  110. on_click: Optional[
  111. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  112. ] = None,
  113. on_context_menu: Optional[
  114. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  115. ] = None,
  116. on_double_click: Optional[
  117. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  118. ] = None,
  119. on_focus: Optional[
  120. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  121. ] = None,
  122. on_mount: Optional[
  123. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  124. ] = None,
  125. on_mouse_down: Optional[
  126. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  127. ] = None,
  128. on_mouse_enter: Optional[
  129. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  130. ] = None,
  131. on_mouse_leave: Optional[
  132. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  133. ] = None,
  134. on_mouse_move: Optional[
  135. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  136. ] = None,
  137. on_mouse_out: Optional[
  138. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  139. ] = None,
  140. on_mouse_over: Optional[
  141. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  142. ] = None,
  143. on_mouse_up: Optional[
  144. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  145. ] = None,
  146. on_scroll: Optional[
  147. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  148. ] = None,
  149. on_unmount: Optional[
  150. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  151. ] = None,
  152. **props,
  153. ) -> "CheckboxGroupRoot":
  154. """Create a new component instance.
  155. Will prepend "RadixThemes" to the component tag to avoid conflicts with
  156. other UI libraries for common names, like Text and Button.
  157. Args:
  158. *children: Child components.
  159. size: Use the size prop to control the checkbox size.
  160. variant: Variant of button: "classic" | "surface" | "soft"
  161. color_scheme: Override theme color for button
  162. high_contrast: Uses a higher contrast color for the component.
  163. default_value: determines which checkboxes, if any, are checked by default.
  164. name: used to assign a name to the entire group of checkboxes
  165. style: The style of the component.
  166. key: A unique key for the component.
  167. id: The id for the component.
  168. class_name: The class name for the component.
  169. autofocus: Whether the component should take the focus once the page is loaded
  170. custom_attrs: custom attribute
  171. **props: Component properties.
  172. Returns:
  173. A new component instance.
  174. """
  175. ...
  176. class CheckboxGroupItem(RadixThemesComponent):
  177. @overload
  178. @classmethod
  179. def create( # type: ignore
  180. cls,
  181. *children,
  182. value: Optional[Union[Var[str], str]] = None,
  183. disabled: Optional[Union[Var[bool], bool]] = None,
  184. style: Optional[Style] = None,
  185. key: Optional[Any] = None,
  186. id: Optional[Any] = None,
  187. class_name: Optional[Any] = None,
  188. autofocus: Optional[bool] = None,
  189. custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
  190. on_blur: Optional[
  191. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  192. ] = None,
  193. on_click: Optional[
  194. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  195. ] = None,
  196. on_context_menu: Optional[
  197. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  198. ] = None,
  199. on_double_click: Optional[
  200. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  201. ] = None,
  202. on_focus: Optional[
  203. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  204. ] = None,
  205. on_mount: Optional[
  206. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  207. ] = None,
  208. on_mouse_down: Optional[
  209. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  210. ] = None,
  211. on_mouse_enter: Optional[
  212. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  213. ] = None,
  214. on_mouse_leave: Optional[
  215. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  216. ] = None,
  217. on_mouse_move: Optional[
  218. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  219. ] = None,
  220. on_mouse_out: Optional[
  221. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  222. ] = None,
  223. on_mouse_over: Optional[
  224. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  225. ] = None,
  226. on_mouse_up: Optional[
  227. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  228. ] = None,
  229. on_scroll: Optional[
  230. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  231. ] = None,
  232. on_unmount: Optional[
  233. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  234. ] = None,
  235. **props,
  236. ) -> "CheckboxGroupItem":
  237. """Create a new component instance.
  238. Will prepend "RadixThemes" to the component tag to avoid conflicts with
  239. other UI libraries for common names, like Text and Button.
  240. Args:
  241. *children: Child components.
  242. value: specifies the value associated with a particular checkbox option.
  243. disabled: Use the native disabled attribute to create a disabled checkbox.
  244. style: The style of the component.
  245. key: A unique key for the component.
  246. id: The id for the component.
  247. class_name: The class name for the component.
  248. autofocus: Whether the component should take the focus once the page is loaded
  249. custom_attrs: custom attribute
  250. **props: Component properties.
  251. Returns:
  252. A new component instance.
  253. """
  254. ...
  255. class CheckboxGroup(SimpleNamespace):
  256. root = staticmethod(CheckboxGroupRoot.create)
  257. item = staticmethod(CheckboxGroupItem.create)
  258. checkbox_group = CheckboxGroup()