date_picker.pyi 5.7 KB

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