diff --git a/reflex/components/base/body.pyi b/reflex/components/base/body.pyi index 32854fe07..acef7a9e0 100644 --- a/reflex/components/base/body.pyi +++ b/reflex/components/base/body.pyi @@ -3,7 +3,7 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional +from typing import Optional, Union, overload from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/base/document.pyi b/reflex/components/base/document.pyi index 7cba0356f..c876121e5 100644 --- a/reflex/components/base/document.pyi +++ b/reflex/components/base/document.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional -from reflex.components.component import Component +from typing import Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/base/head.pyi b/reflex/components/base/head.pyi index a20e3d9c1..f4b4d7671 100644 --- a/reflex/components/base/head.pyi +++ b/reflex/components/base/head.pyi @@ -3,7 +3,7 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional +from typing import Optional, Union, overload from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/base/link.pyi b/reflex/components/base/link.pyi index 2e3d2d224..75b95b1b9 100644 --- a/reflex/components/base/link.pyi +++ b/reflex/components/base/link.pyi @@ -3,7 +3,7 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional +from typing import Optional, Union, overload from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/base/meta.pyi b/reflex/components/base/meta.pyi index db0d460d4..c5fad8f8d 100644 --- a/reflex/components/base/meta.pyi +++ b/reflex/components/base/meta.pyi @@ -3,7 +3,7 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional +from typing import Optional, Union, overload from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/base/script.pyi b/reflex/components/base/script.pyi index 2ac6782d7..65cba3a59 100644 --- a/reflex/components/base/script.pyi +++ b/reflex/components/base/script.pyi @@ -3,7 +3,7 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional +from typing import Optional, Union, overload from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/datadisplay/badge.pyi b/reflex/components/datadisplay/badge.pyi index 3d567790f..975fa74dc 100644 --- a/reflex/components/datadisplay/badge.pyi +++ b/reflex/components/datadisplay/badge.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional -from reflex.components.component import Component +from typing import Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/datadisplay/code.pyi b/reflex/components/datadisplay/code.pyi index af0b45438..d0b129e9d 100644 --- a/reflex/components/datadisplay/code.pyi +++ b/reflex/components/datadisplay/code.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Optional, Union, overload, Dict -from reflex.components.component import Component +from typing import Dict, Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/datadisplay/datatable.pyi b/reflex/components/datadisplay/datatable.pyi index 25b973567..23d15fcc0 100644 --- a/reflex/components/datadisplay/datatable.pyi +++ b/reflex/components/datadisplay/datatable.pyi @@ -3,7 +3,7 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Any, Optional, Union, overload, Dict, List +from typing import Any, Dict, List, Optional, Union, overload from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/datadisplay/divider.pyi b/reflex/components/datadisplay/divider.pyi index 508845b2d..339bdc611 100644 --- a/reflex/components/datadisplay/divider.pyi +++ b/reflex/components/datadisplay/divider.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional -from reflex.components.component import Component +from typing import Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/datadisplay/keyboard_key.pyi b/reflex/components/datadisplay/keyboard_key.pyi index e56bcb655..3eda060f7 100644 --- a/reflex/components/datadisplay/keyboard_key.pyi +++ b/reflex/components/datadisplay/keyboard_key.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional -from reflex.components.component import Component +from typing import Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/datadisplay/list.py b/reflex/components/datadisplay/list.py index 0f2543350..9f6c05994 100644 --- a/reflex/components/datadisplay/list.py +++ b/reflex/components/datadisplay/list.py @@ -25,9 +25,9 @@ class List(ChakraComponent): """Create a list component. Args: - children: The children of the component. + *children: The children of the component. items: A list of items to add to the list. - props: The properties of the component. + **props: The properties of the component. Returns: The list component. diff --git a/reflex/components/datadisplay/list.pyi b/reflex/components/datadisplay/list.pyi index 5c81ddbaa..81d880b85 100644 --- a/reflex/components/datadisplay/list.pyi +++ b/reflex/components/datadisplay/list.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional -from reflex.components.component import Component +from typing import Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec @@ -16,9 +16,12 @@ class List(ChakraComponent): """Create a list component. Args: - children: The children of the component. + *children: The children of the component. + spacing: The space between each list item + style_position: Shorthand prop for listStylePosition + style_type: Shorthand prop for listStyleType items: A list of items to add to the list. - props: The properties of the component. + **props: The properties of the component. Returns: The list component. @@ -50,9 +53,9 @@ class OrderedList(List): """Create a list component. Args: - children: The children of the component. + *children: The children of the component. items: A list of items to add to the list. - props: The properties of the component. + **props: The properties of the component. Returns: The list component. @@ -66,9 +69,9 @@ class UnorderedList(List): """Create a list component. Args: - children: The children of the component. + *children: The children of the component. items: A list of items to add to the list. - props: The properties of the component. + **props: The properties of the component. Returns: The list component. diff --git a/reflex/components/datadisplay/stat.py b/reflex/components/datadisplay/stat.py index bfee7c06c..814a313c4 100644 --- a/reflex/components/datadisplay/stat.py +++ b/reflex/components/datadisplay/stat.py @@ -17,12 +17,12 @@ class Stat(ChakraComponent): """Create a stat component. Args: - children: The children of the component. + *children: The children of the component. label: A label for the stat component. number: The value of the stat component. help_text: A text added to the stat component. arrow_type: The type of the arrow ("increase", "decrease", None) - props: The properties of the component. + **props: The properties of the component. Returns: The stat component. diff --git a/reflex/components/datadisplay/stat.pyi b/reflex/components/datadisplay/stat.pyi index fcfe629fa..8a310f3c5 100644 --- a/reflex/components/datadisplay/stat.pyi +++ b/reflex/components/datadisplay/stat.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional -from reflex.components.component import Component +from typing import Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec @@ -16,12 +16,12 @@ class Stat(ChakraComponent): """Create a stat component. Args: - children: The children of the component. + *children: The children of the component. label: A label for the stat component. number: The value of the stat component. help_text: A text added to the stat component. arrow_type: The type of the arrow ("increase", "decrease", None) - props: The properties of the component. + **props: The properties of the component. Returns: The stat component. diff --git a/reflex/components/datadisplay/table.py b/reflex/components/datadisplay/table.py index 731dfb57c..facc5e9f1 100644 --- a/reflex/components/datadisplay/table.py +++ b/reflex/components/datadisplay/table.py @@ -31,12 +31,12 @@ class Table(ChakraComponent): """Create a table component. Args: - children: The children of the component. + *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. + **props: The properties of the component. Returns: The table component. @@ -71,9 +71,9 @@ class Thead(ChakraComponent): """Create a table header component. Args: - children: The children of the component. - props: The properties of the component. + *children: The children of the component. headers (list, optional): List of headers. Defaults to None. + **props: The properties of the component. Returns: The table header component. @@ -96,9 +96,9 @@ class Tbody(ChakraComponent): """Create a table body component. Args: - children: The children of the component. - props: The properties of the component. + *children: The children of the component. rows (list[list], optional): The rows of the table body. Defaults to None. + **props: The properties of the component. Returns: Component: _description_ @@ -130,9 +130,9 @@ class Tfoot(ChakraComponent): """Create a table footer component. Args: - children: The children of the component. - props: The properties of the component. + *children: The children of the component. footers (list, optional): List of footers. Defaults to None. + **props: The properties of the component. Returns: The table footer component. @@ -155,10 +155,10 @@ class Tr(ChakraComponent): """Create a table row component. Args: - children: The children of the component. - props: The properties of the component. + *children: The children 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. + **props: The properties of the component. Returns: The table row component diff --git a/reflex/components/datadisplay/table.pyi b/reflex/components/datadisplay/table.pyi index b0300e069..8642cdacf 100644 --- a/reflex/components/datadisplay/table.pyi +++ b/reflex/components/datadisplay/table.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional, List -from reflex.components.component import Component +from typing import List, Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec @@ -16,12 +16,16 @@ class Table(ChakraComponent): """Create a table component. Args: - children: The children of the component. + *children: The children of the component. + color_scheme: The color scheme of the table + variant: The variant of the table style to use + size: The size of the table + placement: The placement of the table caption. 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. + **props: The properties of the component. Returns: The table component. @@ -35,9 +39,10 @@ class Thead(ChakraComponent): """Create a table header component. Args: - children: The children of the component. - props: The properties of the component. + *children: The children of the component. + invalid_children: invalid children components headers (list, optional): List of headers. Defaults to None. + **props: The properties of the component. Returns: The table header component. @@ -51,9 +56,10 @@ class Tbody(ChakraComponent): """Create a table body component. Args: - children: The children of the component. - props: The properties of the component. + *children: The children of the component. + invalid_children: invalid children components rows (list[list], optional): The rows of the table body. Defaults to None. + **props: The properties of the component. Returns: Component: _description_ @@ -67,9 +73,10 @@ class Tfoot(ChakraComponent): """Create a table footer component. Args: - children: The children of the component. - props: The properties of the component. + *children: The children of the component. + invalid_children: invalid children components footers (list, optional): List of footers. Defaults to None. + **props: The properties of the component. Returns: The table footer component. @@ -83,10 +90,11 @@ class Tr(ChakraComponent): """Create a table row component. Args: - children: The children of the component. - props: The properties of the component. + *children: The children of the component. + invalid_children: invalid children components 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. + **props: The properties of the component. Returns: The table row component diff --git a/reflex/components/datadisplay/tag.pyi b/reflex/components/datadisplay/tag.pyi index bed32666f..a6e8e4d6f 100644 --- a/reflex/components/datadisplay/tag.pyi +++ b/reflex/components/datadisplay/tag.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional -from reflex.components.component import Component +from typing import Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/disclosure/accordion.py b/reflex/components/disclosure/accordion.py index 3caec44a3..007aafc7d 100644 --- a/reflex/components/disclosure/accordion.py +++ b/reflex/components/disclosure/accordion.py @@ -40,12 +40,12 @@ class Accordion(ChakraComponent): """Create an accordion component. Args: - children: The children of the component. + *children: The children of the component. items: The items of the accordion component: list of tuples (label,panel) icon_pos: The position of the arrow icon of the accordion. "right", "left" or None allow_multiple: The allow_multiple property of the accordion. (True or False) allow_toggle: The allow_toggle property of the accordion. (True or False) - props: The properties of the component. + **props: The properties of the component. Returns: The accordion component diff --git a/reflex/components/disclosure/accordion.pyi b/reflex/components/disclosure/accordion.pyi index 2b6b272a3..685104fef 100644 --- a/reflex/components/disclosure/accordion.pyi +++ b/reflex/components/disclosure/accordion.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Optional, Union, overload, List -from reflex.components.component import Component +from typing import List, Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec @@ -16,12 +16,17 @@ class Accordion(ChakraComponent): """Create an accordion component. Args: - children: The children of the component. + *children: The children of the component. + allow_multiple: If true, multiple accordion items can be expanded at once. + allow_toggle: If true, any expanded accordion item can be collapsed again. + default_index: The initial index(es) of the expanded accordion item(s). + index: The index(es) of the expanded accordion item + reduce_motion: If true, height animation and transitions will be disabled. items: The items of the accordion component: list of tuples (label,panel) icon_pos: The position of the arrow icon of the accordion. "right", "left" or None allow_multiple: The allow_multiple property of the accordion. (True or False) allow_toggle: The allow_toggle property of the accordion. (True or False) - props: The properties of the component. + **props: The properties of the component. Returns: The accordion component diff --git a/reflex/components/disclosure/tabs.py b/reflex/components/disclosure/tabs.py index a6176e4d7..bb627bd40 100644 --- a/reflex/components/disclosure/tabs.py +++ b/reflex/components/disclosure/tabs.py @@ -43,9 +43,9 @@ class Tabs(ChakraComponent): """Create a tab component. Args: - children: The children of the component. + *children: The children of the component. items: The items for the tabs component, a list of tuple (label, panel) - props: The properties of the component. + **props: The properties of the component. Returns: The tab component diff --git a/reflex/components/disclosure/tabs.pyi b/reflex/components/disclosure/tabs.pyi index c6574a970..c013cda68 100644 --- a/reflex/components/disclosure/tabs.pyi +++ b/reflex/components/disclosure/tabs.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Optional, Union, overload, Tuple, List -from reflex.components.component import Component +from typing import List, Optional, Tuple, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec @@ -16,9 +16,17 @@ class Tabs(ChakraComponent): """Create a tab component. Args: - children: The children of the component. + *children: The children of the component. + align: The alignment of the tabs ("center" | "end" | "start"). + default_index: The initial index of the selected tab (in uncontrolled mode). + id_: The id of the tab. + is_fitted: If true, tabs will stretch to width of the tablist. + is_lazy: Performance booster. If true, rendering of the tab panel's will be deferred until it is selected. + is_manual: If true, the tabs will be manually activated and display its panel by pressing Space or Enter. If false, the tabs will be automatically activated and their panel is displayed when they receive focus. + orientation: The orientation of the tab list. + variant: "line" | "enclosed" | "enclosed-colored" | "soft-rounded" | "solid-rounded" | "unstyled" items: The items for the tabs component, a list of tuple (label, panel) - props: The properties of the component. + **props: The properties of the component. Returns: The tab component diff --git a/reflex/components/disclosure/transition.pyi b/reflex/components/disclosure/transition.pyi index 0eeb8d295..1d26e0d6c 100644 --- a/reflex/components/disclosure/transition.pyi +++ b/reflex/components/disclosure/transition.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional -from reflex.components.component import Component +from typing import Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/disclosure/visuallyhidden.pyi b/reflex/components/disclosure/visuallyhidden.pyi index 2fee95351..5b7b573a7 100644 --- a/reflex/components/disclosure/visuallyhidden.pyi +++ b/reflex/components/disclosure/visuallyhidden.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional -from reflex.components.component import Component +from typing import Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/feedback/alert.py b/reflex/components/feedback/alert.py index 4c445720b..2bb891d96 100644 --- a/reflex/components/feedback/alert.py +++ b/reflex/components/feedback/alert.py @@ -23,11 +23,11 @@ class Alert(ChakraComponent): """Create an alert component. Args: - children: The children of the component. + *children: The children of the component. icon: The icon of the alert. title: The title of the alert. desc: The description of the alert - props: The properties of the component. + **props: The properties of the component. Returns: The alert component. diff --git a/reflex/components/feedback/alert.pyi b/reflex/components/feedback/alert.pyi index 3c44579a2..66cf61124 100644 --- a/reflex/components/feedback/alert.pyi +++ b/reflex/components/feedback/alert.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional -from reflex.components.component import Component +from typing import Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec @@ -16,11 +16,13 @@ class Alert(ChakraComponent): """Create an alert component. Args: - children: The children of the component. + *children: The children of the component. + status: The status of the alert ("success" | "info" | "warning" | "error") + variant: "subtle" | "left-accent" | "top-accent" | "solid" icon: The icon of the alert. title: The title of the alert. desc: The description of the alert - props: The properties of the component. + **props: The properties of the component. Returns: The alert component. diff --git a/reflex/components/feedback/circularprogress.py b/reflex/components/feedback/circularprogress.py index 893f87876..fa060dc2a 100644 --- a/reflex/components/feedback/circularprogress.py +++ b/reflex/components/feedback/circularprogress.py @@ -42,9 +42,9 @@ class CircularProgress(ChakraComponent): """Create a circular progress component. Args: - children: the children of the component. + *children: the children of the component. label: A label to add in the circular progress. Defaults to None. - props: the props of the component. + **props: the props of the component. Returns: The circular progress component. diff --git a/reflex/components/feedback/circularprogress.pyi b/reflex/components/feedback/circularprogress.pyi index 74f9c1ac5..7ddf342fd 100644 --- a/reflex/components/feedback/circularprogress.pyi +++ b/reflex/components/feedback/circularprogress.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional -from reflex.components.component import Component +from typing import Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec @@ -16,9 +16,18 @@ class CircularProgress(ChakraComponent): """Create a circular progress component. Args: - children: the children of the component. + *children: the children of the component. + cap_is_round: If true, the cap of the progress indicator will be rounded. + is_indeterminate: If true, the progress will be indeterminate and the value prop will be ignored + max_: Maximum value defining 100% progress made (must be higher than 'min') + min_: Minimum value defining 'no progress' (must be lower than 'max') + thickness: This defines the stroke width of the svg circle. + track_color: The color name of the progress track. Use a color key in the theme object + value: Current progress (must be between min/max). + value_text: The desired valueText to use in place of the value. + color: The color name of the progress bar label: A label to add in the circular progress. Defaults to None. - props: the props of the component. + **props: the props of the component. Returns: The circular progress component. diff --git a/reflex/components/feedback/progress.pyi b/reflex/components/feedback/progress.pyi index b7c88c37d..46c791cd6 100644 --- a/reflex/components/feedback/progress.pyi +++ b/reflex/components/feedback/progress.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional -from reflex.components.component import Component +from typing import Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/feedback/skeleton.pyi b/reflex/components/feedback/skeleton.pyi index d5f98eee2..2e0f81c00 100644 --- a/reflex/components/feedback/skeleton.pyi +++ b/reflex/components/feedback/skeleton.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional -from reflex.components.component import Component +from typing import Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/feedback/spinner.pyi b/reflex/components/feedback/spinner.pyi index 46d6d93e3..b3bace614 100644 --- a/reflex/components/feedback/spinner.pyi +++ b/reflex/components/feedback/spinner.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional -from reflex.components.component import Component +from typing import Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/forms/button.pyi b/reflex/components/forms/button.pyi index 59ee14d52..3bab9d9d8 100644 --- a/reflex/components/forms/button.pyi +++ b/reflex/components/forms/button.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional, List -from reflex.components.component import Component +from typing import List, Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/forms/checkbox.pyi b/reflex/components/forms/checkbox.pyi index 2d06f89ef..d4e3070ba 100644 --- a/reflex/components/forms/checkbox.pyi +++ b/reflex/components/forms/checkbox.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Dict, Optional -from reflex.components.component import Component +from typing import Dict, Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/forms/colormodeswitch.pyi b/reflex/components/forms/colormodeswitch.pyi index 5a71a012b..bec4f09d9 100644 --- a/reflex/components/forms/colormodeswitch.pyi +++ b/reflex/components/forms/colormodeswitch.pyi @@ -3,12 +3,12 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Any, Optional -from reflex.components.media.icon import Icon -from reflex.components.component import Component -from reflex.components.forms.switch import Switch -from reflex.components.layout.cond import Cond +from typing import Any, Optional, Union, overload from reflex.components.forms.button import Button +from reflex.components.component import Component +from reflex.components.layout.cond import Cond +from reflex.components.media.icon import Icon +from reflex.components.forms.switch import Switch from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/forms/copytoclipboard.pyi b/reflex/components/forms/copytoclipboard.pyi index c45ebd8d2..64b9c7ed2 100644 --- a/reflex/components/forms/copytoclipboard.pyi +++ b/reflex/components/forms/copytoclipboard.pyi @@ -3,7 +3,7 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Set, Optional +from typing import Optional, Set, Union, overload from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/forms/date_picker.pyi b/reflex/components/forms/date_picker.pyi index 057673978..fbdc1b5c3 100644 --- a/reflex/components/forms/date_picker.pyi +++ b/reflex/components/forms/date_picker.pyi @@ -3,7 +3,7 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional +from typing import Optional, Union, overload from reflex.components.component import Component from reflex.components.forms.input import Input from reflex.vars import Var, BaseVar, ComputedVar @@ -16,8 +16,9 @@ class DatePicker(Input): """Create an Input component. Args: - children: The children of the component. - props: The properties of the component. + *children: The children of the component. + type_: The type of input. + **props: The properties of the component. Returns: The component. diff --git a/reflex/components/forms/date_time_picker.pyi b/reflex/components/forms/date_time_picker.pyi index fe33b9088..509fd2bf9 100644 --- a/reflex/components/forms/date_time_picker.pyi +++ b/reflex/components/forms/date_time_picker.pyi @@ -3,7 +3,7 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional +from typing import Optional, Union, overload from reflex.components.component import Component from reflex.components.forms.input import Input from reflex.vars import Var, BaseVar, ComputedVar @@ -16,8 +16,9 @@ class DateTimePicker(Input): """Create an Input component. Args: - children: The children of the component. - props: The properties of the component. + *children: The children of the component. + type_: The type of input. + **props: The properties of the component. Returns: The component. diff --git a/reflex/components/forms/debounce.pyi b/reflex/components/forms/debounce.pyi index 722280af2..7ffa5ac80 100644 --- a/reflex/components/forms/debounce.pyi +++ b/reflex/components/forms/debounce.pyi @@ -3,7 +3,7 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Any, Optional +from typing import Any, Optional, Union, overload from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/forms/editable.pyi b/reflex/components/forms/editable.pyi index 3f451329b..9fdf5f9a1 100644 --- a/reflex/components/forms/editable.pyi +++ b/reflex/components/forms/editable.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Dict, Optional -from reflex.components.component import Component +from typing import Dict, Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/forms/email.pyi b/reflex/components/forms/email.pyi index 6c9137092..ea665e892 100644 --- a/reflex/components/forms/email.pyi +++ b/reflex/components/forms/email.pyi @@ -3,7 +3,7 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional +from typing import Optional, Union, overload from reflex.components.component import Component from reflex.components.forms.input import Input from reflex.vars import Var, BaseVar, ComputedVar @@ -16,8 +16,9 @@ class Email(Input): """Create an Input component. Args: - children: The children of the component. - props: The properties of the component. + *children: The children of the component. + type_: The type of input. + **props: The properties of the component. Returns: The component. diff --git a/reflex/components/forms/form.py b/reflex/components/forms/form.py index 7fbf574e9..6de09850d 100644 --- a/reflex/components/forms/form.py +++ b/reflex/components/forms/form.py @@ -69,12 +69,12 @@ class FormControl(ChakraComponent): """Create a form control component. Args: - children: The children of the form control. + *children: The children of the form control. label: The label of the form control. input: The input of the form control. help_text: The help text of the form control. error_message: The error message of the form control. - props: The properties of the form control. + **props: The properties of the form control. Raises: AttributeError: raise an error if missing required kwargs. diff --git a/reflex/components/forms/form.pyi b/reflex/components/forms/form.pyi index 11099c0f8..c2d75606b 100644 --- a/reflex/components/forms/form.pyi +++ b/reflex/components/forms/form.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Dict, Optional -from reflex.components.component import Component +from typing import Dict, Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec @@ -35,12 +35,17 @@ class FormControl(ChakraComponent): """Create a form control component. Args: - children: The children of the form control. + *children: The children of the form control. + is_disabled: If true, the form control will be disabled. + is_invalid: If true, the form control will be invalid. + is_read_only: If true, the form control will be readonly + is_required: If true, the form control will be required. + label: The label text used to inform users as to what information is requested for a text field. label: The label of the form control. input: The input of the form control. help_text: The help text of the form control. error_message: The error message of the form control. - props: The properties of the form control. + **props: The properties of the form control. Raises: AttributeError: raise an error if missing required kwargs. diff --git a/reflex/components/forms/iconbutton.pyi b/reflex/components/forms/iconbutton.pyi index f70c32307..9d50c91fd 100644 --- a/reflex/components/forms/iconbutton.pyi +++ b/reflex/components/forms/iconbutton.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional -from reflex.components.typography.text import Text +from typing import Optional, Union, overload from reflex.components.component import Component +from reflex.components.typography.text import Text from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/forms/input.py b/reflex/components/forms/input.py index 0e8d308c3..6c9c8f421 100644 --- a/reflex/components/forms/input.py +++ b/reflex/components/forms/input.py @@ -75,8 +75,8 @@ class Input(ChakraComponent): """Create an Input component. Args: - children: The children of the component. - props: The properties of the component. + *children: The children of the component. + **props: The properties of the component. Returns: The component. diff --git a/reflex/components/forms/input.pyi b/reflex/components/forms/input.pyi index dc293a348..d1d4d656b 100644 --- a/reflex/components/forms/input.pyi +++ b/reflex/components/forms/input.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Dict, Optional -from reflex.components.component import Component +from typing import Dict, Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec @@ -16,8 +16,20 @@ class Input(ChakraComponent): """Create an Input component. Args: - children: The children of the component. - props: The properties of the component. + *children: The children of the component. + value: State var to bind the input. + default_value: The default value of the input. + placeholder: The placeholder text. + type_: The type of input. + error_border_color: The border color when the input is invalid. + focus_border_color: The border color when the input is focused. + 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 + 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 + is_read_only: If true, the form control will be readonly. + 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 + variant: "outline" | "filled" | "flushed" | "unstyled" + size: "lg" | "md" | "sm" | "xs" + **props: The properties of the component. Returns: The component. diff --git a/reflex/components/forms/numberinput.pyi b/reflex/components/forms/numberinput.pyi index b4301d97a..b9a1e0e9b 100644 --- a/reflex/components/forms/numberinput.pyi +++ b/reflex/components/forms/numberinput.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Dict, Optional -from reflex.components.component import Component +from typing import Dict, Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/forms/password.pyi b/reflex/components/forms/password.pyi index 8a62a80f6..d807334a1 100644 --- a/reflex/components/forms/password.pyi +++ b/reflex/components/forms/password.pyi @@ -3,7 +3,7 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional +from typing import Optional, Union, overload from reflex.components.component import Component from reflex.components.forms.input import Input from reflex.vars import Var, BaseVar, ComputedVar @@ -16,8 +16,9 @@ class Password(Input): """Create an Input component. Args: - children: The children of the component. - props: The properties of the component. + *children: The children of the component. + type_: The type of input. + **props: The properties of the component. Returns: The component. diff --git a/reflex/components/forms/pininput.pyi b/reflex/components/forms/pininput.pyi index c1c0ded52..8a21b8b63 100644 --- a/reflex/components/forms/pininput.pyi +++ b/reflex/components/forms/pininput.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Optional, Union, overload, Dict -from reflex.components.component import Component +from typing import Dict, Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/forms/radio.pyi b/reflex/components/forms/radio.pyi index 8b1435368..769f9e9d1 100644 --- a/reflex/components/forms/radio.pyi +++ b/reflex/components/forms/radio.pyi @@ -3,10 +3,10 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Any, Optional, Union, overload, Dict, List -from reflex.components.typography.text import Text -from reflex.components.component import Component +from typing import Any, Dict, List, Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component +from reflex.components.typography.text import Text from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/forms/rangeslider.py b/reflex/components/forms/rangeslider.py index c72c0f0ef..6efc8e36b 100644 --- a/reflex/components/forms/rangeslider.py +++ b/reflex/components/forms/rangeslider.py @@ -83,8 +83,8 @@ class RangeSlider(ChakraComponent): If no children are provided, a default RangeSlider will be created. Args: - children: The children of the component. - props: The properties of the component. + *children: The children of the component. + **props: The properties of the component. Returns: The RangeSlider component. diff --git a/reflex/components/forms/rangeslider.pyi b/reflex/components/forms/rangeslider.pyi index 6ece3ebce..8fd43f9e8 100644 --- a/reflex/components/forms/rangeslider.pyi +++ b/reflex/components/forms/rangeslider.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Optional, Union, overload, Dict, List -from reflex.components.component import Component +from typing import Dict, List, Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec @@ -18,8 +18,18 @@ class RangeSlider(ChakraComponent): If no children are provided, a default RangeSlider will be created. Args: - children: The children of the component. - props: The properties of the component. + *children: The children of the component. + value: State var to bind the the input. + default_value: The default values. + 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. + min_steps_between_thumbs: The minimum distance between slider thumbs. Useful for preventing the thumbs from being too close together. + **props: The properties of the component. Returns: The RangeSlider component. diff --git a/reflex/components/forms/select.pyi b/reflex/components/forms/select.pyi index f114155d2..97a7d35a5 100644 --- a/reflex/components/forms/select.pyi +++ b/reflex/components/forms/select.pyi @@ -3,10 +3,10 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Any, Optional, Union, overload, Dict, List -from reflex.components.typography.text import Text -from reflex.components.component import Component +from typing import Any, Dict, List, Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component +from reflex.components.typography.text import Text from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/forms/slider.py b/reflex/components/forms/slider.py index ed2cf2688..c2878e3b9 100644 --- a/reflex/components/forms/slider.py +++ b/reflex/components/forms/slider.py @@ -83,8 +83,8 @@ class Slider(ChakraComponent): If no children are provided, a default slider will be created. Args: - children: The children of the component. - props: The properties of the component. + *children: The children of the component. + **props: The properties of the component. Returns: The slider component. diff --git a/reflex/components/forms/slider.pyi b/reflex/components/forms/slider.pyi index 79ed2e377..f53ec6a87 100644 --- a/reflex/components/forms/slider.pyi +++ b/reflex/components/forms/slider.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Dict, Optional -from reflex.components.component import Component +from typing import Dict, Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec @@ -18,8 +18,25 @@ class Slider(ChakraComponent): If no children are provided, a default slider will be created. Args: - children: The children of the component. - props: The properties of the component. + *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. + **props: The properties of the component. Returns: The slider component. diff --git a/reflex/components/forms/switch.pyi b/reflex/components/forms/switch.pyi index bfbca06e9..ea153b3d5 100644 --- a/reflex/components/forms/switch.pyi +++ b/reflex/components/forms/switch.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Dict, Optional -from reflex.components.component import Component +from typing import Dict, Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/forms/textarea.py b/reflex/components/forms/textarea.py index 4aead21ab..d28dd82c4 100644 --- a/reflex/components/forms/textarea.py +++ b/reflex/components/forms/textarea.py @@ -62,8 +62,8 @@ class TextArea(ChakraComponent): """Create an Input component. Args: - children: The children of the component. - props: The properties of the component. + *children: The children of the component. + **props: The properties of the component. Returns: The component. diff --git a/reflex/components/forms/textarea.pyi b/reflex/components/forms/textarea.pyi index 89a0dff2b..0c4edc70f 100644 --- a/reflex/components/forms/textarea.pyi +++ b/reflex/components/forms/textarea.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Dict, Optional -from reflex.components.component import Component +from typing import Dict, Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec @@ -16,8 +16,18 @@ class TextArea(ChakraComponent): """Create an Input component. Args: - children: The children of the component. - props: The properties of the component. + *children: The children of the component. + value: State var to bind the input. + default_value: The default value of the textarea. + placeholder: The placeholder text. + error_border_color: The border color when the input is invalid. + focus_border_color: The border color when the input is focused. + is_disabled: If true, the form control will be disabled. + is_invalid: If true, the form control will be invalid. + is_read_only: If true, the form control will be read-only. + is_required: If true, the form control will be required. + variant: "outline" | "filled" | "flushed" | "unstyled" + **props: The properties of the component. Returns: The component. diff --git a/reflex/components/forms/upload.py b/reflex/components/forms/upload.py index 6cf4beb4f..d882ee304 100644 --- a/reflex/components/forms/upload.py +++ b/reflex/components/forms/upload.py @@ -63,8 +63,8 @@ class Upload(Component): """Create an upload component. Args: - children: The children of the component. - props: The properties of the component. + *children: The children of the component. + **props: The properties of the component. Returns: The upload component. diff --git a/reflex/components/forms/upload.pyi b/reflex/components/forms/upload.pyi index 605d0fcc3..ee0a872a3 100644 --- a/reflex/components/forms/upload.pyi +++ b/reflex/components/forms/upload.pyi @@ -3,7 +3,7 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Optional, Union, overload, Dict, List +from typing import Dict, List, Optional, Union, overload from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec @@ -19,11 +19,22 @@ class Upload(Component): def create(cls, *children, accept: Optional[Union[Var[Optional[Dict[str, List]]], Optional[Dict[str, List]]]] = None, disabled: Optional[Union[Var[bool], bool]] = None, max_files: Optional[Union[Var[int], int]] = None, max_size: Optional[Union[Var[int], int]] = None, min_size: Optional[Union[Var[int], int]] = None, multiple: Optional[Union[Var[bool], bool]] = None, no_click: Optional[Union[Var[bool], bool]] = None, no_drag: Optional[Union[Var[bool], bool]] = None, no_keyboard: 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_drop: 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) -> "Upload": # type: ignore """Create an upload component. - Args: - children: The children of the component. - props: The properties of the component. + Args: + *children: The children of the component. + accept: The list of accepted file types. This should be a dictionary of MIME types as keys and array of file formats as + values. + supported MIME types: https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types + disabled: Whether the dropzone is disabled. + max_files: The maximum number of files that can be uploaded. + max_size: The maximum file size (bytes) that can be uploaded. + min_size: The minimum file size (bytes) that can be uploaded. + multiple: Whether to allow multiple files to be uploaded. + no_click: Whether to disable click to upload. + no_drag: Whether to disable drag and drop. + no_keyboard: Whether to disable using the space/enter keys to upload. + **props: The properties of the component. - Returns: - The upload component. + Returns: + The upload component. """ ... diff --git a/reflex/components/graphing/plotly.pyi b/reflex/components/graphing/plotly.pyi index 792b1b50d..15009f610 100644 --- a/reflex/components/graphing/plotly.pyi +++ b/reflex/components/graphing/plotly.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Optional, Union, overload, Dict, List -from reflex.components.component import NoSSRComponent +from typing import Dict, List, Optional, Union, overload from reflex.components.component import Component +from reflex.components.component import NoSSRComponent from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/graphing/victory.pyi b/reflex/components/graphing/victory.pyi index b995211ed..e21df0b5e 100644 --- a/reflex/components/graphing/victory.pyi +++ b/reflex/components/graphing/victory.pyi @@ -3,7 +3,7 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Any, Optional, Dict, List +from typing import Any, Dict, List, Optional, Union, overload from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/layout/aspect_ratio.pyi b/reflex/components/layout/aspect_ratio.pyi index 0d35885b8..17d0c9a5a 100644 --- a/reflex/components/layout/aspect_ratio.pyi +++ b/reflex/components/layout/aspect_ratio.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional -from reflex.components.component import Component +from typing import Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/layout/box.pyi b/reflex/components/layout/box.pyi index 995843e1b..4ed8270a1 100644 --- a/reflex/components/layout/box.pyi +++ b/reflex/components/layout/box.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional -from reflex.components.component import Component +from typing import Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/layout/card.pyi b/reflex/components/layout/card.pyi index 07b20216b..43d80256b 100644 --- a/reflex/components/layout/card.pyi +++ b/reflex/components/layout/card.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional -from reflex.components.component import Component +from typing import Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/layout/center.pyi b/reflex/components/layout/center.pyi index 8b346e458..a2a031c17 100644 --- a/reflex/components/layout/center.pyi +++ b/reflex/components/layout/center.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional -from reflex.components.component import Component +from typing import Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/layout/container.pyi b/reflex/components/layout/container.pyi index 741610248..70a45250b 100644 --- a/reflex/components/layout/container.pyi +++ b/reflex/components/layout/container.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional -from reflex.components.component import Component +from typing import Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/layout/flex.pyi b/reflex/components/layout/flex.pyi index 21d6e79eb..ec442e03c 100644 --- a/reflex/components/layout/flex.pyi +++ b/reflex/components/layout/flex.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Optional, Union, overload, List -from reflex.components.component import Component +from typing import List, Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/layout/fragment.pyi b/reflex/components/layout/fragment.pyi index d6aeb4fc8..c318fdaa2 100644 --- a/reflex/components/layout/fragment.pyi +++ b/reflex/components/layout/fragment.pyi @@ -3,7 +3,7 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional +from typing import Optional, Union, overload from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/layout/grid.pyi b/reflex/components/layout/grid.pyi index 417f49cf6..6ae920790 100644 --- a/reflex/components/layout/grid.pyi +++ b/reflex/components/layout/grid.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional, List -from reflex.components.component import Component +from typing import List, Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/layout/html.pyi b/reflex/components/layout/html.pyi index ed47d9693..a6343f2f7 100644 --- a/reflex/components/layout/html.pyi +++ b/reflex/components/layout/html.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Any, Optional -from reflex.components.component import Component +from typing import Any, Optional, Union, overload from reflex.components.layout.box import Box +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/layout/spacer.pyi b/reflex/components/layout/spacer.pyi index 32a05cfc8..805a4f04c 100644 --- a/reflex/components/layout/spacer.pyi +++ b/reflex/components/layout/spacer.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional -from reflex.components.component import Component +from typing import Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/layout/stack.pyi b/reflex/components/layout/stack.pyi index b5a126cf3..7191a26f3 100644 --- a/reflex/components/layout/stack.pyi +++ b/reflex/components/layout/stack.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional -from reflex.components.component import Component +from typing import Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/layout/wrap.py b/reflex/components/layout/wrap.py index 78ade36dc..0a8d9864b 100644 --- a/reflex/components/layout/wrap.py +++ b/reflex/components/layout/wrap.py @@ -36,9 +36,9 @@ class Wrap(ChakraComponent): """Return a wrap component. Args: - children: The children of the component. + *children: The children of the component. items (list): The items of the wrap component. - props: The properties of the component. + **props: The properties of the component. Returns: The wrap component. diff --git a/reflex/components/layout/wrap.pyi b/reflex/components/layout/wrap.pyi index f6618051e..10ea7c45b 100644 --- a/reflex/components/layout/wrap.pyi +++ b/reflex/components/layout/wrap.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional -from reflex.components.component import Component +from typing import Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec @@ -16,9 +16,16 @@ class Wrap(ChakraComponent): """Return a wrap component. Args: - children: The children of the component. + *children: The children of the component. + align: How to align the items. + direction: The flex direction of the wrap. + justify: How to justify the items. + should_wrap_children: Whether to wrap children in `rx.wrap_item`. + spacing: The spacing between the items. + spacing_x: The horizontal spacing between the items. + spacing_y: The vertical spacing between the items. items (list): The items of the wrap component. - props: The properties of the component. + **props: The properties of the component. Returns: The wrap component. diff --git a/reflex/components/libs/chakra.pyi b/reflex/components/libs/chakra.pyi index 1f5e68a05..2d87cfdb9 100644 --- a/reflex/components/libs/chakra.pyi +++ b/reflex/components/libs/chakra.pyi @@ -3,7 +3,7 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional +from typing import Optional, Union, overload from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/libs/react_player.pyi b/reflex/components/libs/react_player.pyi index d0ab01a9a..782b207f6 100644 --- a/reflex/components/libs/react_player.pyi +++ b/reflex/components/libs/react_player.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional -from reflex.components.component import NoSSRComponent +from typing import Optional, Union, overload from reflex.components.component import Component +from reflex.components.component import NoSSRComponent from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/media/audio.pyi b/reflex/components/media/audio.pyi index e45f40b5e..c16c2be07 100644 --- a/reflex/components/media/audio.pyi +++ b/reflex/components/media/audio.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional -from reflex.components.libs.react_player import ReactPlayerComponent +from typing import Optional, Union, overload from reflex.components.component import Component +from reflex.components.libs.react_player import ReactPlayerComponent from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/media/avatar.pyi b/reflex/components/media/avatar.pyi index b85dc7e2f..629362425 100644 --- a/reflex/components/media/avatar.pyi +++ b/reflex/components/media/avatar.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Set, Optional -from reflex.components.component import Component +from typing import Optional, Set, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/media/icon.py b/reflex/components/media/icon.py index 48f198c5d..a1f0a876c 100644 --- a/reflex/components/media/icon.py +++ b/reflex/components/media/icon.py @@ -23,8 +23,8 @@ class Icon(ChakraIconComponent): Run some additional checks on Icon component. Args: - children: The positional arguments - props: The keyword arguments + *children: The positional arguments + **props: The keyword arguments Raises: AttributeError: The errors tied to bad usage of the Icon component. diff --git a/reflex/components/media/icon.pyi b/reflex/components/media/icon.pyi index 01c937d93..c7d959249 100644 --- a/reflex/components/media/icon.pyi +++ b/reflex/components/media/icon.pyi @@ -3,7 +3,7 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional, List +from typing import List, Optional, Union, overload from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec @@ -37,8 +37,8 @@ class Icon(ChakraIconComponent): Run some additional checks on Icon component. Args: - children: The positional arguments - props: The keyword arguments + *children: The positional arguments + **props: The keyword arguments Raises: AttributeError: The errors tied to bad usage of the Icon component. diff --git a/reflex/components/media/image.pyi b/reflex/components/media/image.pyi index 26f3e8d9d..965546381 100644 --- a/reflex/components/media/image.pyi +++ b/reflex/components/media/image.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Any, Optional, Union, overload, Set -from reflex.components.component import Component +from typing import Any, Optional, Set, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/media/video.pyi b/reflex/components/media/video.pyi index 5594231d0..fe4ce87cc 100644 --- a/reflex/components/media/video.pyi +++ b/reflex/components/media/video.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional -from reflex.components.libs.react_player import ReactPlayerComponent +from typing import Optional, Union, overload from reflex.components.component import Component +from reflex.components.libs.react_player import ReactPlayerComponent from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/navigation/breadcrumb.py b/reflex/components/navigation/breadcrumb.py index d0d8fdcde..21f8fb432 100644 --- a/reflex/components/navigation/breadcrumb.py +++ b/reflex/components/navigation/breadcrumb.py @@ -25,9 +25,9 @@ class Breadcrumb(ChakraComponent): If the kw-args `items` is provided and is a list, they will be added as children. Args: - children: The children of the component. + *children: The children of the component. items (list): The items of the breadcrumb: (label, link) - props: The properties of the component. + **props: The properties of the component. Returns: The breadcrumb component. @@ -70,10 +70,10 @@ class BreadcrumbItem(ChakraComponent): """Create a Breadcrumb Item component. Args: - children: The children of the component. + *children: The children of the component. label: The label used in the link. Defaults to None. href: The URL of the link. Defaults to None. - props: The properties of the component. + **props: The properties of the component. Returns: The BreadcrumbItem component diff --git a/reflex/components/navigation/breadcrumb.pyi b/reflex/components/navigation/breadcrumb.pyi index 4bee33065..c16f02824 100644 --- a/reflex/components/navigation/breadcrumb.pyi +++ b/reflex/components/navigation/breadcrumb.pyi @@ -3,10 +3,10 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional +from typing import Optional, Union, overload +from reflex.components.libs.chakra import ChakraComponent from reflex.components.component import Component from reflex.components.navigation.link import Link -from reflex.components.libs.chakra import ChakraComponent from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec @@ -19,9 +19,11 @@ class Breadcrumb(ChakraComponent): If the kw-args `items` is provided and is a list, they will be added as children. Args: - children: The children of the component. + *children: The children of the component. + separator: The visual separator between each breadcrumb item + separator_margin: The left and right margin applied to the separator items (list): The items of the breadcrumb: (label, link) - props: The properties of the component. + **props: The properties of the component. Returns: The breadcrumb component. @@ -35,10 +37,14 @@ class BreadcrumbItem(ChakraComponent): """Create a Breadcrumb Item component. Args: - children: The children of the component. + *children: The children of the component. + is_current_page: Is the current page of the breadcrumb. + is_last_child: Is the last child of the breadcrumb. + separator: The visual separator between each breadcrumb item + spacing: The left and right margin applied to the separator label: The label used in the link. Defaults to None. href: The URL of the link. Defaults to None. - props: The properties of the component. + **props: The properties of the component. Returns: The BreadcrumbItem component diff --git a/reflex/components/navigation/client_side_routing.pyi b/reflex/components/navigation/client_side_routing.pyi index 6e522e027..c197ba496 100644 --- a/reflex/components/navigation/client_side_routing.pyi +++ b/reflex/components/navigation/client_side_routing.pyi @@ -3,7 +3,7 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional +from typing import Optional, Union, overload from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/navigation/link.pyi b/reflex/components/navigation/link.pyi index d3492fdd3..15c66badf 100644 --- a/reflex/components/navigation/link.pyi +++ b/reflex/components/navigation/link.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional -from reflex.components.component import Component +from typing import Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/navigation/linkoverlay.pyi b/reflex/components/navigation/linkoverlay.pyi index 9731f6b20..3049c95ea 100644 --- a/reflex/components/navigation/linkoverlay.pyi +++ b/reflex/components/navigation/linkoverlay.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional -from reflex.components.component import Component +from typing import Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/navigation/nextlink.pyi b/reflex/components/navigation/nextlink.pyi index 4d4d0234a..3b31211b8 100644 --- a/reflex/components/navigation/nextlink.pyi +++ b/reflex/components/navigation/nextlink.pyi @@ -3,7 +3,7 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional +from typing import Optional, Union, overload from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/navigation/stepper.py b/reflex/components/navigation/stepper.py index ada1d6594..a56a08432 100644 --- a/reflex/components/navigation/stepper.py +++ b/reflex/components/navigation/stepper.py @@ -33,9 +33,9 @@ class Stepper(ChakraComponent): If the kw-args `items` is provided and is a list, they will be added as children. Args: - children: The children of the component. + *children: The children of the component. items (list): The child components for each step. - props: The properties of the component. + **props: The properties of the component. Returns: The stepper component. diff --git a/reflex/components/navigation/stepper.pyi b/reflex/components/navigation/stepper.pyi index 15957506b..e0ef9f536 100644 --- a/reflex/components/navigation/stepper.pyi +++ b/reflex/components/navigation/stepper.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Optional, Union, overload, Tuple, List -from reflex.components.component import Component +from typing import List, Optional, Tuple, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec @@ -15,15 +15,20 @@ class Stepper(ChakraComponent): def create(cls, *children, items: Optional[List[Tuple]] = None, colorScheme: Optional[Union[Var[str], str]] = None, index: Optional[Union[Var[int], int]] = None, size: 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) -> "Stepper": # type: ignore """Create a Stepper component. - If the kw-args `items` is provided and is a list, they will be added as children. + If the kw-args `items` is provided and is a list, they will be added as children. - Args: - children: The children of the component. - items (list): The child components for each step. - props: The properties of the component. + Args: + *children: The children of the component. + colorScheme: The color scheme to use for the stepper; default is blue. + index: Chakra provides a useSteps hook to control the stepper. + Instead, use an integer state value to set progress in the stepper. + The index of the current step. + size: The size of the steps in the stepper. + items (list): The child components for each step. + **props: The properties of the component. - Returns: - The stepper component. + Returns: + The stepper component. """ ... diff --git a/reflex/components/overlay/alertdialog.py b/reflex/components/overlay/alertdialog.py index 35ea77a13..ecf8d3c91 100644 --- a/reflex/components/overlay/alertdialog.py +++ b/reflex/components/overlay/alertdialog.py @@ -72,12 +72,12 @@ class AlertDialog(ChakraComponent): """Create an alert dialog component. Args: - children: The children of the alert dialog component. + *children: The children of the alert dialog component. header: The header of the alert dialog. body: The body of the alert dialog. footer: The footer of the alert dialog. close_button: The close button of the alert dialog. - props: The properties of the alert dialog component. + **props: The properties of the alert dialog component. Raises: AttributeError: if there is a conflict between the props used. diff --git a/reflex/components/overlay/alertdialog.pyi b/reflex/components/overlay/alertdialog.pyi index c758fce44..0b951c6e9 100644 --- a/reflex/components/overlay/alertdialog.pyi +++ b/reflex/components/overlay/alertdialog.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Set, Optional -from reflex.components.component import Component +from typing import Optional, Set, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec @@ -16,12 +16,25 @@ class AlertDialog(ChakraComponent): """Create an alert dialog component. Args: - children: The children of the alert dialog component. + *children: The children of the alert dialog component. + is_open: If true, the modal will be open. + least_destructive_ref: The least destructive element to focus when the dialog opens. + allow_pinch_zoom: Handle zoom/pinch gestures on iOS devices when scroll locking is enabled. Defaults to false. + auto_focus: If true, the modal will autofocus the first enabled and interactive element within the ModalContent + block_scroll_on_mount: If true, scrolling will be disabled on the body when the modal opens. + close_on_esc: If true, the modal will close when the Esc key is pressed + close_on_overlay_click: If true, the modal will close when the overlay is clicked + is_centered: If true, the modal will be centered on screen. + lock_focus_across_frames: Enables aggressive focus capturing within iframes. If true, keep focus in the lock, no matter where lock is active. If false, allows focus to move outside of iframe. + preserve_scroll_bar_gap: If true, a `padding-right` will be applied to the body element that's equal to the width of the scrollbar. This can help prevent some unpleasant flickering effect and content adjustment when the modal opens + return_focus_on_close: If true, the modal will return focus to the element that triggered it when it closes. + size: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "full" + use_inert: If true, the siblings of the modal will have `aria-hidden` set to true so that screen readers can only see the modal. This is commonly known as making the other elements **inert** header: The header of the alert dialog. body: The body of the alert dialog. footer: The footer of the alert dialog. close_button: The close button of the alert dialog. - props: The properties of the alert dialog component. + **props: The properties of the alert dialog component. Raises: AttributeError: if there is a conflict between the props used. diff --git a/reflex/components/overlay/banner.pyi b/reflex/components/overlay/banner.pyi index 3e6f851a5..afa00f8d8 100644 --- a/reflex/components/overlay/banner.pyi +++ b/reflex/components/overlay/banner.pyi @@ -3,7 +3,7 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional +from typing import Optional, Union, overload from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/overlay/drawer.py b/reflex/components/overlay/drawer.py index 549d0265a..8e55aa3f0 100644 --- a/reflex/components/overlay/drawer.py +++ b/reflex/components/overlay/drawer.py @@ -78,12 +78,12 @@ class Drawer(ChakraComponent): """Create a drawer component. Args: - children: The children of the drawer component. + *children: The children of the drawer component. header: The header of the drawer. body: The body of the drawer. footer: The footer of the drawer. close_button: The close button of the drawer. - props: The properties of the drawer component. + **props: The properties of the drawer component. Raises: AttributeError: error that occurs if conflicting props are passed diff --git a/reflex/components/overlay/drawer.pyi b/reflex/components/overlay/drawer.pyi index ea26d9c16..2cbd58274 100644 --- a/reflex/components/overlay/drawer.pyi +++ b/reflex/components/overlay/drawer.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Set, Optional -from reflex.components.component import Component +from typing import Optional, Set, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec @@ -16,12 +16,27 @@ class Drawer(ChakraComponent): """Create a drawer component. Args: - children: The children of the drawer component. + *children: The children of the drawer component. + is_open: If true, the modal will be open. + allow_pinch_zoom: Handle zoom/pinch gestures on iOS devices when scroll locking is enabled. Defaults to false. + auto_focus: If true, the modal will autofocus the first enabled and interactive element within the ModalContent + block_scroll_on_mount: If true, scrolling will be disabled on the body when the modal opens. + close_on_esc: If true, the modal will close when the Esc key is pressed + close_on_overlay_click: If true, the modal will close when the overlay is clicked + is_centered: If true, the modal will be centered on screen. + is_full_height: If true and drawer's placement is top or bottom, the drawer will occupy the viewport height (100vh) + lock_focus_across_frames: Enables aggressive focus capturing within iframes. - If true: keep focus in the lock, no matter where lock is active - If false: allows focus to move outside of iframe + placement: The placement of the drawer + preserve_scroll_bar_gap: If true, a `padding-right` will be applied to the body element that's equal to the width of the scrollbar. This can help prevent some unpleasant flickering effect and content adjustment when the modal opens + return_focus_on_close: If true, the modal will return focus to the element that triggered it when it closes. + size: "xs" | "sm" | "md" | "lg" | "xl" | "full" + use_inert: A11y: If true, the siblings of the modal will have `aria-hidden` set to true so that screen readers can only see the modal. This is commonly known as making the other elements **inert** + variant: Variant of drawer header: The header of the drawer. body: The body of the drawer. footer: The footer of the drawer. close_button: The close button of the drawer. - props: The properties of the drawer component. + **props: The properties of the drawer component. Raises: AttributeError: error that occurs if conflicting props are passed diff --git a/reflex/components/overlay/menu.py b/reflex/components/overlay/menu.py index f477b36cc..296a2578f 100644 --- a/reflex/components/overlay/menu.py +++ b/reflex/components/overlay/menu.py @@ -73,10 +73,10 @@ class Menu(ChakraComponent): """Create a menu component. Args: - children: The children of the component. + *children: The children of the component. button: the button that open the menu. items (list): The items of the menu. - props: The properties of the component. + **props: The properties of the component. Returns: The menu component. diff --git a/reflex/components/overlay/menu.pyi b/reflex/components/overlay/menu.pyi index 352368f9a..79e9ead5e 100644 --- a/reflex/components/overlay/menu.pyi +++ b/reflex/components/overlay/menu.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Optional, Union, overload, Set, List -from reflex.components.component import Component +from typing import List, Optional, Set, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec @@ -16,10 +16,26 @@ class Menu(ChakraComponent): """Create a menu component. Args: - children: The children of the component. + *children: The children of the component. + arrow_padding: The padding required to prevent the arrow from reaching the very edge of the popper. + auto_select: If true, the first enabled menu item will receive focus and be selected when the menu opens. + boundary: The boundary area for the popper. Used within the preventOverflow modifier + close_on_blur: If true, the menu will close when you click outside the menu list + close_on_select: If true, the menu will close when a menu item is clicked + default_is_open: If by default the menu is open. + direction: If rtl, popper placement positions will be flipped i.e. 'top-right' will become 'top-left' and vice-verse ("ltr" | "rtl") + flip: If true, the popper will change its placement and flip when it's about to overflow its boundary area. + gutter: The distance or margin between the reference and popper. It is used internally to create an offset modifier. NB: If you define offset prop, it'll override the gutter. + is_lazy: Performance 🚀: If true, the MenuItem rendering will be deferred until the menu is open. + lazy_behavior: Performance 🚀: The lazy behavior of menu's content when not visible. Only works when `isLazy={true}` - "unmount": The menu's content is always unmounted when not open. - "keepMounted": The menu's content initially unmounted, but stays mounted when menu is open. + is_open: Determines if the menu is open or not. + match_width: If true, the popper will match the width of the reference at all times. It's useful for autocomplete, `date-picker` and select patterns. + placement: The placement of the popper relative to its reference. + prevent_overflow: If true, will prevent the popper from being cut off and ensure it's visible within the boundary area. + strategy: The CSS positioning strategy to use. ("fixed" | "absolute") button: the button that open the menu. items (list): The items of the menu. - props: The properties of the component. + **props: The properties of the component. Returns: The menu component. diff --git a/reflex/components/overlay/modal.py b/reflex/components/overlay/modal.py index 031a15755..b1f5a3179 100644 --- a/reflex/components/overlay/modal.py +++ b/reflex/components/overlay/modal.py @@ -78,12 +78,12 @@ class Modal(ChakraComponent): """Create a modal component. Args: - children: The children of the component. + *children: The children of the component. header: The header of the modal. body: The body of the modal. footer: The footer of the modal. close_button: The close button of the modal. - props: The properties of the component. + **props: The properties of the component. Raises: AttributeError: error that occurs if conflicting props are passed diff --git a/reflex/components/overlay/modal.pyi b/reflex/components/overlay/modal.pyi index ac6c34977..57c1b1ad3 100644 --- a/reflex/components/overlay/modal.pyi +++ b/reflex/components/overlay/modal.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Optional, Union, overload, Set -from reflex.components.component import Component +from typing import Optional, Set, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec @@ -16,12 +16,25 @@ class Modal(ChakraComponent): """Create a modal component. Args: - children: The children of the component. + *children: The children of the component. + is_open: If true, the modal will be open. + allow_pinch_zoom: Handle zoom/pinch gestures on iOS devices when scroll locking is enabled. Defaults to false. + auto_focus: If true, the modal will autofocus the first enabled and interactive element within the ModalContent + block_scroll_on_mount: If true, scrolling will be disabled on the body when the modal opens. + close_on_esc: If true, the modal will close when the Esc key is pressed + close_on_overlay_click: If true, the modal will close when the overlay is clicked + is_centered: If true, the modal will be centered on screen. + lock_focus_across_frames: Enables aggressive focus capturing within iframes. - If true: keep focus in the lock, no matter where lock is active - If false: allows focus to move outside of iframe + motion_preset: The transition that should be used for the modal + preserve_scroll_bar_gap: If true, a `padding-right` will be applied to the body element that's equal to the width of the scrollbar. This can help prevent some unpleasant flickering effect and content adjustment when the modal opens + return_focus_on_close: If true, the modal will return focus to the element that triggered it when it closes. + size: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "full" + use_inert: A11y: If true, the siblings of the modal will have `aria-hidden` set to true so that screen readers can only see the modal. This is commonly known as making the other elements **inert** header: The header of the modal. body: The body of the modal. footer: The footer of the modal. close_button: The close button of the modal. - props: The properties of the component. + **props: The properties of the component. Raises: AttributeError: error that occurs if conflicting props are passed diff --git a/reflex/components/overlay/popover.py b/reflex/components/overlay/popover.py index 82afa9005..f1b500065 100644 --- a/reflex/components/overlay/popover.py +++ b/reflex/components/overlay/popover.py @@ -97,13 +97,13 @@ class Popover(ChakraComponent): """Create a popover component. Args: - children: The children of the component. + *children: The children of the component. trigger: The trigger that opens the popover. header: The header of the popover. body: The body of the popover. footer: The footer of the popover. use_close_button: Whether to add a close button on the popover. - props: The properties of the component. + **props: The properties of the component. Returns: The popover component. diff --git a/reflex/components/overlay/popover.pyi b/reflex/components/overlay/popover.pyi index 357a28f09..95868b144 100644 --- a/reflex/components/overlay/popover.pyi +++ b/reflex/components/overlay/popover.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Set, Optional -from reflex.components.component import Component +from typing import Optional, Set, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec @@ -16,13 +16,34 @@ class Popover(ChakraComponent): """Create a popover component. Args: - children: The children of the component. + *children: The children of the component. + arrow_padding: The padding required to prevent the arrow from reaching the very edge of the popper. + arrow_shadow_color: The `box-shadow` of the popover arrow + arrow_size: The size of the popover arrow + auto_focus: If true, focus will be transferred to the first interactive element when the popover opens + boundary: The boundary area for the popper. Used within the preventOverflow modifier + close_on_blur: If true, the popover will close when you blur out it by clicking outside or tabbing out + close_on_esc: If true, the popover will close when you hit the Esc key + default_is_open: If true, the popover will be initially opened. + direction: Theme direction ltr or rtl. Popper's placement will be set accordingly + flip: If true, the popper will change its placement and flip when it's about to overflow its boundary area. + gutter: The distance or margin between the reference and popper. It is used internally to create an offset modifier. NB: If you define offset prop, it'll override the gutter. + id_: The html id attribute of the popover. If not provided, we generate a unique id. This id is also used to auto-generate the `aria-labelledby` and `aria-describedby` attributes that points to the PopoverHeader and PopoverBody + is_lazy: Performance 🚀: If true, the PopoverContent rendering will be deferred until the popover is open. + lazy_behavior: Performance 🚀: The lazy behavior of popover's content when not visible. Only works when `isLazy={true}` - "unmount": The popover's content is always unmounted when not open. - "keepMounted": The popover's content initially unmounted, but stays mounted when popover is open. + is_open: If true, the popover will be opened in controlled mode. + match_width: If true, the popper will match the width of the reference at all times. It's useful for autocomplete, `date-picker` and select patterns. + placement: The placement of the popover. It's used internally by Popper.js. + prevent_overflow: If true, will prevent the popper from being cut off and ensure it's visible within the boundary area. + return_focus_on_close: If true, focus will be returned to the element that triggers the popover when it closes + strategy: The CSS positioning strategy to use. ("fixed" | "absolute") + trigger: The interaction that triggers the popover. hover - means the popover will open when you hover with mouse or focus with keyboard on the popover trigger click - means the popover will open on click or press Enter to Space on keyboard ("click" | "hover") trigger: The trigger that opens the popover. header: The header of the popover. body: The body of the popover. footer: The footer of the popover. use_close_button: Whether to add a close button on the popover. - props: The properties of the component. + **props: The properties of the component. Returns: The popover component. diff --git a/reflex/components/overlay/tooltip.pyi b/reflex/components/overlay/tooltip.pyi index 9f3a47634..acf5a05d8 100644 --- a/reflex/components/overlay/tooltip.pyi +++ b/reflex/components/overlay/tooltip.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Set, Optional -from reflex.components.component import Component +from typing import Optional, Set, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/typography/heading.pyi b/reflex/components/typography/heading.pyi index c253539c9..657fbfb0d 100644 --- a/reflex/components/typography/heading.pyi +++ b/reflex/components/typography/heading.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional -from reflex.components.component import Component +from typing import Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/typography/highlight.pyi b/reflex/components/typography/highlight.pyi index ba54fdc5d..497f37e28 100644 --- a/reflex/components/typography/highlight.pyi +++ b/reflex/components/typography/highlight.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Optional, Union, overload, Dict, List -from reflex.components.component import Component +from typing import Dict, List, Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/typography/markdown.py b/reflex/components/typography/markdown.py index cedebffb0..173571b36 100644 --- a/reflex/components/typography/markdown.py +++ b/reflex/components/typography/markdown.py @@ -81,8 +81,8 @@ class Markdown(Component): """Create a markdown component. Args: - children: The children of the component. - props: The properties of the component. + *children: The children of the component. + **props: The properties of the component. Returns: The markdown component. diff --git a/reflex/components/typography/markdown.pyi b/reflex/components/typography/markdown.pyi index d1467712a..374c5f49f 100644 --- a/reflex/components/typography/markdown.pyi +++ b/reflex/components/typography/markdown.pyi @@ -3,7 +3,7 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Optional, Union, overload, Callable, Dict, List +from typing import Callable, Dict, List, Optional, Union, overload from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec @@ -17,8 +17,10 @@ class Markdown(Component): """Create a markdown component. Args: - children: The children of the component. - props: The properties of the component. + *children: The children of the component. + lib_dependencies: + custom_styles: Custom defined styles for the markdown elements. + **props: The properties of the component. Returns: The markdown component. diff --git a/reflex/components/typography/span.pyi b/reflex/components/typography/span.pyi index 3bb555556..76b820ed7 100644 --- a/reflex/components/typography/span.pyi +++ b/reflex/components/typography/span.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional -from reflex.components.component import Component +from typing import Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/reflex/components/typography/text.pyi b/reflex/components/typography/text.pyi index 8f999f6c7..6ada60c59 100644 --- a/reflex/components/typography/text.pyi +++ b/reflex/components/typography/text.pyi @@ -3,9 +3,9 @@ # This file was generated by `scripts/pyi_generator.py`! # ------------------------------------------------------ -from typing import Union, overload, Optional -from reflex.components.component import Component +from typing import Optional, Union, overload from reflex.components.libs.chakra import ChakraComponent +from reflex.components.component import Component from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventHandler, EventChain, EventSpec diff --git a/scripts/pyi_generator.py b/scripts/pyi_generator.py index f43554149..c603abd0f 100644 --- a/scripts/pyi_generator.py +++ b/scripts/pyi_generator.py @@ -96,8 +96,9 @@ class PyiGenerator: typing_imports = self.default_typing_imports | _get_typing_import( self.current_module ) + bases = sorted(bases, key=lambda base: base.__name__) return [ - f"from typing import {','.join(typing_imports)}", + f"from typing import {','.join(sorted(typing_imports))}", *[f"from {base.__module__} import {base.__name__}" for base in bases], "from reflex.vars import Var, BaseVar, ComputedVar", "from reflex.event import EventHandler, EventChain, EventSpec",