time_picker.pyi 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. """Stub file for reflex/components/chakra/forms/time_picker.py"""
  2. # ------------------- DO NOT EDIT ----------------------
  3. # This file was generated by `reflex/utils/pyi_generator.py`!
  4. # ------------------------------------------------------
  5. from typing import Any, Callable, Dict, Literal, Optional, Union, overload
  6. from reflex.components.chakra.forms.input import Input
  7. from reflex.event import EventHandler, EventSpec
  8. from reflex.style import Style
  9. from reflex.vars import BaseVar, Var
  10. class TimePicker(Input):
  11. @overload
  12. @classmethod
  13. def create( # type: ignore
  14. cls,
  15. *children,
  16. type_: Optional[Union[Var[str], str]] = None,
  17. value: Optional[Union[Var[str], str]] = None,
  18. default_value: Optional[Union[Var[str], str]] = None,
  19. placeholder: Optional[Union[Var[str], str]] = None,
  20. error_border_color: Optional[Union[Var[str], str]] = None,
  21. focus_border_color: Optional[Union[Var[str], str]] = None,
  22. is_disabled: Optional[Union[Var[bool], bool]] = None,
  23. is_invalid: Optional[Union[Var[bool], bool]] = None,
  24. is_read_only: Optional[Union[Var[bool], bool]] = None,
  25. is_required: Optional[Union[Var[bool], bool]] = None,
  26. variant: Optional[
  27. Union[
  28. Var[Literal["outline", "filled", "flushed", "unstyled"]],
  29. Literal["outline", "filled", "flushed", "unstyled"],
  30. ]
  31. ] = None,
  32. size: Optional[
  33. Union[Var[Literal["sm", "md", "lg", "xs"]], Literal["sm", "md", "lg", "xs"]]
  34. ] = 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, Callable, BaseVar]
  44. ] = None,
  45. on_change: Optional[
  46. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  47. ] = None,
  48. on_click: Optional[
  49. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  50. ] = None,
  51. on_context_menu: Optional[
  52. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  53. ] = None,
  54. on_double_click: Optional[
  55. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  56. ] = None,
  57. on_focus: Optional[
  58. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  59. ] = None,
  60. on_key_down: Optional[
  61. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  62. ] = None,
  63. on_key_up: Optional[
  64. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  65. ] = None,
  66. on_mount: Optional[
  67. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  68. ] = None,
  69. on_mouse_down: Optional[
  70. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  71. ] = None,
  72. on_mouse_enter: Optional[
  73. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  74. ] = None,
  75. on_mouse_leave: Optional[
  76. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  77. ] = None,
  78. on_mouse_move: Optional[
  79. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  80. ] = None,
  81. on_mouse_out: Optional[
  82. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  83. ] = None,
  84. on_mouse_over: Optional[
  85. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  86. ] = None,
  87. on_mouse_up: Optional[
  88. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  89. ] = None,
  90. on_scroll: Optional[
  91. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  92. ] = None,
  93. on_unmount: Optional[
  94. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  95. ] = None,
  96. **props,
  97. ) -> "TimePicker":
  98. """Create an Input component.
  99. Args:
  100. *children: The children of the component.
  101. type_: The type of input.
  102. value: State var to bind the input.
  103. default_value: The default value of the input.
  104. placeholder: The placeholder text.
  105. error_border_color: The border color when the input is invalid.
  106. focus_border_color: The border color when the input is focused.
  107. is_disabled: If true, the form control will be disabled. This has 2 side effects - The FormLabel will have `data-disabled` attribute - The form element (e.g, Input) will be disabled
  108. is_invalid: If true, the form control will be invalid. This has 2 side effects - The FormLabel and FormErrorIcon will have `data-invalid` set to true - The form element (e.g, Input) will have `aria-invalid` set to true
  109. is_read_only: If true, the form control will be readonly.
  110. is_required: If true, the form control will be required. This has 2 side effects - The FormLabel will show a required indicator - The form element (e.g, Input) will have `aria-required` set to true
  111. variant: "outline" | "filled" | "flushed" | "unstyled"
  112. size: "lg" | "md" | "sm" | "xs"
  113. name: The name of the form field
  114. style: The style of the component.
  115. key: A unique key for the component.
  116. id: The id for the component.
  117. class_name: The class name for the component.
  118. autofocus: Whether the component should take the focus once the page is loaded
  119. custom_attrs: custom attribute
  120. **props: The properties of the component.
  121. Returns:
  122. The component.
  123. """
  124. ...