398 lines
16 KiB
Python
398 lines
16 KiB
Python
"""Stub file for reflex/components/chakra/forms/slider.py"""
|
|
|
|
# ------------------- DO NOT EDIT ----------------------
|
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
# ------------------------------------------------------
|
|
from typing import Any, Callable, Dict, Literal, Optional, Union, overload
|
|
|
|
from reflex.components.chakra import ChakraComponent
|
|
from reflex.event import EventHandler, EventSpec
|
|
from reflex.style import Style
|
|
from reflex.vars import Var
|
|
|
|
LiteralLayout = Literal["horizontal", "vertical"]
|
|
|
|
class Slider(ChakraComponent):
|
|
@overload
|
|
@classmethod
|
|
def create( # type: ignore
|
|
cls,
|
|
*children,
|
|
value: Optional[Union[Var[int], int]] = None,
|
|
color_scheme: Optional[Union[Var[str], str]] = None,
|
|
default_value: Optional[Union[Var[int], int]] = None,
|
|
direction: Optional[
|
|
Union[Var[Literal["ltr", "rtl"]], Literal["ltr", "rtl"]]
|
|
] = None,
|
|
focus_thumb_on_change: Optional[Union[Var[bool], bool]] = None,
|
|
is_disabled: Optional[Union[Var[bool], bool]] = None,
|
|
is_read_only: Optional[Union[Var[bool], bool]] = None,
|
|
is_reversed: Optional[Union[Var[bool], bool]] = None,
|
|
min_: Optional[Union[Var[int], int]] = None,
|
|
max_: Optional[Union[Var[int], int]] = None,
|
|
step: Optional[Union[Var[int], int]] = None,
|
|
min_steps_between_thumbs: Optional[Union[Var[int], int]] = None,
|
|
orientation: Optional[
|
|
Union[
|
|
Var[Literal["horizontal", "vertical"]],
|
|
Literal["horizontal", "vertical"],
|
|
]
|
|
] = None,
|
|
min_h: Optional[Union[Var[str], str]] = None,
|
|
min_w: Optional[Union[Var[str], str]] = None,
|
|
max_h: Optional[Union[Var[str], str]] = None,
|
|
max_w: Optional[Union[Var[str], str]] = None,
|
|
name: Optional[Union[Var[str], str]] = None,
|
|
style: Optional[Style] = None,
|
|
key: Optional[Any] = None,
|
|
id: Optional[Any] = None,
|
|
class_name: Optional[Any] = None,
|
|
autofocus: Optional[bool] = None,
|
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
on_change: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
on_change_end: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_change_start: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
on_context_menu: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_double_click: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
on_mouse_down: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_mouse_enter: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_mouse_leave: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_mouse_move: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_mouse_out: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_mouse_over: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_mouse_up: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
on_unmount: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
**props,
|
|
) -> "Slider":
|
|
"""Create a slider component.
|
|
|
|
If no children are provided, a default slider will be created.
|
|
|
|
Args:
|
|
*children: The children of the component.
|
|
value: State var to bind the input.
|
|
color_scheme: The color scheme.
|
|
default_value: The placeholder text.
|
|
direction: The writing mode ("ltr" | "rtl")
|
|
focus_thumb_on_change: If false, the slider handle will not capture focus when value changes.
|
|
is_disabled: If true, the slider will be disabled
|
|
is_read_only: If true, the slider will be in `read-only` state.
|
|
is_reversed: If true, the value will be incremented or decremented in reverse.
|
|
min_: The minimum value of the slider.
|
|
max_: The maximum value of the slider.
|
|
step: The step in which increments/decrements have to be made
|
|
min_steps_between_thumbs: The minimum distance between slider thumbs. Useful for preventing the thumbs from being too close together.
|
|
orientation: Oreintation of the slider vertical | horizontal.
|
|
min_h: Minimum height of the slider.
|
|
min_w: Minimum width of the slider.
|
|
max_h: Maximum height of the slider.
|
|
max_w: Maximum width of the slider.
|
|
name: The name of the form field
|
|
style: The style of the component.
|
|
key: A unique key for the component.
|
|
id: The id for the component.
|
|
class_name: The class name for the component.
|
|
autofocus: Whether the component should take the focus once the page is loaded
|
|
custom_attrs: custom attribute
|
|
**props: The properties of the component.
|
|
|
|
Returns:
|
|
The slider component.
|
|
"""
|
|
...
|
|
|
|
class SliderTrack(ChakraComponent):
|
|
@overload
|
|
@classmethod
|
|
def create( # type: ignore
|
|
cls,
|
|
*children,
|
|
style: Optional[Style] = None,
|
|
key: Optional[Any] = None,
|
|
id: Optional[Any] = None,
|
|
class_name: Optional[Any] = None,
|
|
autofocus: Optional[bool] = None,
|
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
on_context_menu: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_double_click: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
on_mouse_down: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_mouse_enter: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_mouse_leave: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_mouse_move: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_mouse_out: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_mouse_over: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_mouse_up: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
on_unmount: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
**props,
|
|
) -> "SliderTrack":
|
|
"""Create the component.
|
|
|
|
Args:
|
|
*children: The children of the component.
|
|
style: The style of the component.
|
|
key: A unique key for the component.
|
|
id: The id for the component.
|
|
class_name: The class name for the component.
|
|
autofocus: Whether the component should take the focus once the page is loaded
|
|
custom_attrs: custom attribute
|
|
**props: The props of the component.
|
|
|
|
Returns:
|
|
The component.
|
|
"""
|
|
...
|
|
|
|
class SliderFilledTrack(ChakraComponent):
|
|
@overload
|
|
@classmethod
|
|
def create( # type: ignore
|
|
cls,
|
|
*children,
|
|
style: Optional[Style] = None,
|
|
key: Optional[Any] = None,
|
|
id: Optional[Any] = None,
|
|
class_name: Optional[Any] = None,
|
|
autofocus: Optional[bool] = None,
|
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
on_context_menu: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_double_click: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
on_mouse_down: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_mouse_enter: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_mouse_leave: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_mouse_move: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_mouse_out: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_mouse_over: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_mouse_up: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
on_unmount: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
**props,
|
|
) -> "SliderFilledTrack":
|
|
"""Create the component.
|
|
|
|
Args:
|
|
*children: The children of the component.
|
|
style: The style of the component.
|
|
key: A unique key for the component.
|
|
id: The id for the component.
|
|
class_name: The class name for the component.
|
|
autofocus: Whether the component should take the focus once the page is loaded
|
|
custom_attrs: custom attribute
|
|
**props: The props of the component.
|
|
|
|
Returns:
|
|
The component.
|
|
"""
|
|
...
|
|
|
|
class SliderThumb(ChakraComponent):
|
|
@overload
|
|
@classmethod
|
|
def create( # type: ignore
|
|
cls,
|
|
*children,
|
|
box_size: Optional[Union[Var[str], str]] = None,
|
|
style: Optional[Style] = None,
|
|
key: Optional[Any] = None,
|
|
id: Optional[Any] = None,
|
|
class_name: Optional[Any] = None,
|
|
autofocus: Optional[bool] = None,
|
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
on_context_menu: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_double_click: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
on_mouse_down: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_mouse_enter: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_mouse_leave: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_mouse_move: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_mouse_out: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_mouse_over: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_mouse_up: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
on_unmount: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
**props,
|
|
) -> "SliderThumb":
|
|
"""Create the component.
|
|
|
|
Args:
|
|
*children: The children of the component.
|
|
box_size: The size of the thumb.
|
|
style: The style of the component.
|
|
key: A unique key for the component.
|
|
id: The id for the component.
|
|
class_name: The class name for the component.
|
|
autofocus: Whether the component should take the focus once the page is loaded
|
|
custom_attrs: custom attribute
|
|
**props: The props of the component.
|
|
|
|
Returns:
|
|
The component.
|
|
"""
|
|
...
|
|
|
|
class SliderMark(ChakraComponent):
|
|
@overload
|
|
@classmethod
|
|
def create( # type: ignore
|
|
cls,
|
|
*children,
|
|
style: Optional[Style] = None,
|
|
key: Optional[Any] = None,
|
|
id: Optional[Any] = None,
|
|
class_name: Optional[Any] = None,
|
|
autofocus: Optional[bool] = None,
|
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
on_context_menu: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_double_click: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
on_mouse_down: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_mouse_enter: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_mouse_leave: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_mouse_move: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_mouse_out: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_mouse_over: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_mouse_up: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
on_unmount: Optional[
|
|
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
] = None,
|
|
**props,
|
|
) -> "SliderMark":
|
|
"""Create the component.
|
|
|
|
Args:
|
|
*children: The children of the component.
|
|
style: The style of the component.
|
|
key: A unique key for the component.
|
|
id: The id for the component.
|
|
class_name: The class name for the component.
|
|
autofocus: Whether the component should take the focus once the page is loaded
|
|
custom_attrs: custom attribute
|
|
**props: The props of the component.
|
|
|
|
Returns:
|
|
The component.
|
|
"""
|
|
...
|