|
@@ -3,53 +3,169 @@
|
|
# This file was generated by `scripts/pyi_generator.py`!
|
|
# This file was generated by `scripts/pyi_generator.py`!
|
|
# ------------------------------------------------------
|
|
# ------------------------------------------------------
|
|
|
|
|
|
-from typing import Union, overload, List, Optional
|
|
|
|
-from reflex.components.libs.chakra import ChakraComponent
|
|
|
|
|
|
+from typing import Union, overload, Optional, List
|
|
from reflex.components.component import Component
|
|
from reflex.components.component import Component
|
|
|
|
+from reflex.components.libs.chakra import ChakraComponent
|
|
from reflex.vars import Var, BaseVar, ComputedVar
|
|
from reflex.vars import Var, BaseVar, ComputedVar
|
|
-from reflex.event import EventChain
|
|
|
|
|
|
+from reflex.event import EventHandler, EventChain, EventSpec
|
|
|
|
|
|
class Table(ChakraComponent):
|
|
class Table(ChakraComponent):
|
|
@overload
|
|
@overload
|
|
@classmethod
|
|
@classmethod
|
|
- def create(cls, *children, caption, headers, rows, footers, color_scheme: Optional[Union[Var[str], str]] = None, variant: Optional[Union[Var[str], str]] = None, size: Optional[Union[Var[str], str]] = None, placement: Optional[Union[Var[str], str]] = None, **props) -> "Table": ... # type: ignore
|
|
|
|
|
|
+ def create(cls, *children, caption, headers, rows, footers, color_scheme: Optional[Union[Var[str], str]] = None, variant: Optional[Union[Var[str], str]] = None, size: Optional[Union[Var[str], str]] = None, placement: Optional[Union[Var[str], str]] = None, on_blur: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_click: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_context_menu: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_double_click: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_focus: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mount: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_down: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_enter: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_leave: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_move: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_out: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_over: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_up: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_scroll: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_unmount: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, **props) -> "Table": # type: ignore
|
|
|
|
+ """Create a table component.
|
|
|
|
+
|
|
|
|
+ Args:
|
|
|
|
+ children: The children of the component.
|
|
|
|
+ caption: The caption of the table component.
|
|
|
|
+ headers: The headers of the table component.
|
|
|
|
+ rows: The rows of the table component.
|
|
|
|
+ footers: The footers of the table component.
|
|
|
|
+ props: The properties of the component.
|
|
|
|
+
|
|
|
|
+ Returns:
|
|
|
|
+ The table component.
|
|
|
|
+ """
|
|
|
|
+ ...
|
|
|
|
|
|
class Thead(ChakraComponent):
|
|
class Thead(ChakraComponent):
|
|
@overload
|
|
@overload
|
|
@classmethod
|
|
@classmethod
|
|
- def create(cls, *children, headers, invalid_children: Optional[List[str]] = None, **props) -> "Thead": ... # type: ignore
|
|
|
|
|
|
+ def create(cls, *children, headers, invalid_children: Optional[List[str]] = None, on_blur: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_click: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_context_menu: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_double_click: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_focus: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mount: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_down: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_enter: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_leave: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_move: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_out: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_over: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_up: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_scroll: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_unmount: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, **props) -> "Thead": # type: ignore
|
|
|
|
+ """Create a table header component.
|
|
|
|
+
|
|
|
|
+ Args:
|
|
|
|
+ children: The children of the component.
|
|
|
|
+ props: The properties of the component.
|
|
|
|
+ headers (list, optional): List of headers. Defaults to None.
|
|
|
|
+
|
|
|
|
+ Returns:
|
|
|
|
+ The table header component.
|
|
|
|
+ """
|
|
|
|
+ ...
|
|
|
|
|
|
class Tbody(ChakraComponent):
|
|
class Tbody(ChakraComponent):
|
|
@overload
|
|
@overload
|
|
@classmethod
|
|
@classmethod
|
|
- def create(cls, *children, rows, invalid_children: Optional[List[str]] = None, **props) -> "Tbody": ... # type: ignore
|
|
|
|
|
|
+ def create(cls, *children, rows, invalid_children: Optional[List[str]] = None, on_blur: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_click: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_context_menu: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_double_click: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_focus: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mount: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_down: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_enter: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_leave: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_move: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_out: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_over: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_up: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_scroll: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_unmount: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, **props) -> "Tbody": # type: ignore
|
|
|
|
+ """Create a table body component.
|
|
|
|
+
|
|
|
|
+ Args:
|
|
|
|
+ children: The children of the component.
|
|
|
|
+ props: The properties of the component.
|
|
|
|
+ rows (list[list], optional): The rows of the table body. Defaults to None.
|
|
|
|
+
|
|
|
|
+ Returns:
|
|
|
|
+ Component: _description_
|
|
|
|
+ """
|
|
|
|
+ ...
|
|
|
|
|
|
class Tfoot(ChakraComponent):
|
|
class Tfoot(ChakraComponent):
|
|
@overload
|
|
@overload
|
|
@classmethod
|
|
@classmethod
|
|
- def create(cls, *children, footers, invalid_children: Optional[List[str]] = None, **props) -> "Tfoot": ... # type: ignore
|
|
|
|
|
|
+ def create(cls, *children, footers, invalid_children: Optional[List[str]] = None, on_blur: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_click: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_context_menu: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_double_click: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_focus: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mount: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_down: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_enter: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_leave: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_move: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_out: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_over: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_up: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_scroll: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_unmount: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, **props) -> "Tfoot": # type: ignore
|
|
|
|
+ """Create a table footer component.
|
|
|
|
+
|
|
|
|
+ Args:
|
|
|
|
+ children: The children of the component.
|
|
|
|
+ props: The properties of the component.
|
|
|
|
+ footers (list, optional): List of footers. Defaults to None.
|
|
|
|
+
|
|
|
|
+ Returns:
|
|
|
|
+ The table footer component.
|
|
|
|
+ """
|
|
|
|
+ ...
|
|
|
|
|
|
class Tr(ChakraComponent):
|
|
class Tr(ChakraComponent):
|
|
@overload
|
|
@overload
|
|
@classmethod
|
|
@classmethod
|
|
- def create(cls, *children, cell_type: Optional[str] = None, cells, invalid_children: Optional[List[str]] = None, **props) -> "Tr": ... # type: ignore
|
|
|
|
|
|
+ def create(cls, *children, cell_type: Optional[str] = None, cells, invalid_children: Optional[List[str]] = None, on_blur: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_click: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_context_menu: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_double_click: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_focus: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mount: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_down: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_enter: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_leave: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_move: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_out: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_over: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_up: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_scroll: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_unmount: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, **props) -> "Tr": # type: ignore
|
|
|
|
+ """Create a table row component.
|
|
|
|
+
|
|
|
|
+ Args:
|
|
|
|
+ children: The children of the component.
|
|
|
|
+ props: The properties of the component.
|
|
|
|
+ cell_type: the type of cells in this table row. "header" or "data". Defaults to None.
|
|
|
|
+ cells: The cells value to add in the table row. Defaults to None.
|
|
|
|
+
|
|
|
|
+ Returns:
|
|
|
|
+ The table row component
|
|
|
|
+ """
|
|
|
|
+ ...
|
|
|
|
|
|
class Th(ChakraComponent):
|
|
class Th(ChakraComponent):
|
|
@overload
|
|
@overload
|
|
@classmethod
|
|
@classmethod
|
|
- def create(cls, *children, invalid_children: Optional[List[str]] = None, is_numeric: Optional[Union[Var[bool], bool]] = None, **props) -> "Th": ... # type: ignore
|
|
|
|
|
|
+ def create(cls, *children, invalid_children: Optional[List[str]] = None, is_numeric: Optional[Union[Var[bool], bool]] = None, on_blur: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_click: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_context_menu: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_double_click: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_focus: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mount: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_down: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_enter: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_leave: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_move: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_out: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_over: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_up: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_scroll: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_unmount: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, **props) -> "Th": # type: ignore
|
|
|
|
+ """Create the component.
|
|
|
|
+
|
|
|
|
+ Args:
|
|
|
|
+ *children: The children of the component.
|
|
|
|
+ invalid_children: invalid children components
|
|
|
|
+ is_numeric: Aligns the cell content to the right.
|
|
|
|
+ **props: The props of the component.
|
|
|
|
+
|
|
|
|
+ Returns:
|
|
|
|
+ The component.
|
|
|
|
+
|
|
|
|
+ Raises:
|
|
|
|
+ TypeError: If an invalid child is passed.
|
|
|
|
+ """
|
|
|
|
+ ...
|
|
|
|
|
|
class Td(ChakraComponent):
|
|
class Td(ChakraComponent):
|
|
@overload
|
|
@overload
|
|
@classmethod
|
|
@classmethod
|
|
- def create(cls, *children, invalid_children: Optional[List[str]] = None, is_numeric: Optional[Union[Var[bool], bool]] = None, **props) -> "Td": ... # type: ignore
|
|
|
|
|
|
+ def create(cls, *children, invalid_children: Optional[List[str]] = None, is_numeric: Optional[Union[Var[bool], bool]] = None, on_blur: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_click: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_context_menu: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_double_click: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_focus: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mount: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_down: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_enter: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_leave: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_move: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_out: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_over: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_up: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_scroll: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_unmount: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, **props) -> "Td": # type: ignore
|
|
|
|
+ """Create the component.
|
|
|
|
+
|
|
|
|
+ Args:
|
|
|
|
+ *children: The children of the component.
|
|
|
|
+ invalid_children: invalid children components
|
|
|
|
+ is_numeric: Aligns the cell content to the right.
|
|
|
|
+ **props: The props of the component.
|
|
|
|
+
|
|
|
|
+ Returns:
|
|
|
|
+ The component.
|
|
|
|
+
|
|
|
|
+ Raises:
|
|
|
|
+ TypeError: If an invalid child is passed.
|
|
|
|
+ """
|
|
|
|
+ ...
|
|
|
|
|
|
class TableCaption(ChakraComponent):
|
|
class TableCaption(ChakraComponent):
|
|
@overload
|
|
@overload
|
|
@classmethod
|
|
@classmethod
|
|
- def create(cls, *children, placement: Optional[Union[Var[str], str]] = None, **props) -> "TableCaption": ... # type: ignore
|
|
|
|
|
|
+ def create(cls, *children, placement: Optional[Union[Var[str], str]] = None, on_blur: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_click: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_context_menu: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_double_click: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_focus: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mount: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_down: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_enter: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_leave: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_move: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_out: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_over: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_up: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_scroll: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_unmount: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, **props) -> "TableCaption": # type: ignore
|
|
|
|
+ """Create the component.
|
|
|
|
+
|
|
|
|
+ Args:
|
|
|
|
+ *children: The children of the component.
|
|
|
|
+ placement: The placement of the table caption. This sets the `caption-side` CSS attribute.
|
|
|
|
+ **props: The props of the component.
|
|
|
|
+
|
|
|
|
+ Returns:
|
|
|
|
+ The component.
|
|
|
|
+
|
|
|
|
+ Raises:
|
|
|
|
+ TypeError: If an invalid child is passed.
|
|
|
|
+ """
|
|
|
|
+ ...
|
|
|
|
|
|
class TableContainer(ChakraComponent):
|
|
class TableContainer(ChakraComponent):
|
|
@overload
|
|
@overload
|
|
@classmethod
|
|
@classmethod
|
|
- def create(cls, *children, **props) -> "TableContainer": ... # type: ignore
|
|
|
|
|
|
+ def create(cls, *children, on_blur: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_click: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_context_menu: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_double_click: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_focus: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mount: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_down: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_enter: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_leave: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_move: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_out: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_over: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_up: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_scroll: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_unmount: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, **props) -> "TableContainer": # type: ignore
|
|
|
|
+ """Create the component.
|
|
|
|
+
|
|
|
|
+ Args:
|
|
|
|
+ *children: The children of the component.
|
|
|
|
+ **props: The props of the component.
|
|
|
|
+
|
|
|
|
+ Returns:
|
|
|
|
+ The component.
|
|
|
|
+
|
|
|
|
+ Raises:
|
|
|
|
+ TypeError: If an invalid child is passed.
|
|
|
|
+ """
|
|
|
|
+ ...
|