-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Component.library str type annotation
- Loading branch information
1 parent
f44d0ed
commit 16b7bae
Showing
29 changed files
with
33 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
class ChakraComponent(Component): | ||
"""A component that wraps a Chakra component.""" | ||
|
||
library = "@chakra-ui/[email protected]" | ||
library: str = "@chakra-ui/[email protected]" | ||
lib_dependencies: List[str] = [ | ||
"@chakra-ui/[email protected]", | ||
"[email protected]", | ||
|
@@ -92,7 +92,7 @@ def _get_app_wrap_components() -> dict[tuple[int, str], Component]: | |
class ChakraColorModeProvider(Component): | ||
"""Next-themes integration for chakra colorModeProvider.""" | ||
|
||
library = "/components/reflex/chakra_color_mode_provider.js" | ||
library: str = "/components/reflex/chakra_color_mode_provider.js" | ||
tag: str = "ChakraColorModeProvider" | ||
is_default: bool = True | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ class IconButton(Text): | |
"""A button with an icon.""" | ||
|
||
tag: str = "IconButton" | ||
library = "@chakra-ui/[email protected]" | ||
library: str = "@chakra-ui/[email protected]" | ||
|
||
# The type of button. | ||
type: Optional[Var[str]] = None | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,7 +46,7 @@ class Select(Component): | |
Props added by chakra-react-select are marked with "[chakra]". | ||
""" | ||
|
||
library = "[email protected]" | ||
library: str = "[email protected]" | ||
tag: str = "Select" | ||
alias = "MultiSelect" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
class ChakraIconComponent(ChakraComponent): | ||
"""A component that wraps a Chakra icon component.""" | ||
|
||
library = "@chakra-ui/[email protected]" | ||
library: str = "@chakra-ui/[email protected]" | ||
|
||
|
||
class Icon(ChakraIconComponent): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ class DebounceInput(Component): | |
is experiencing high latency. | ||
""" | ||
|
||
library = "[email protected]" | ||
library: str = "[email protected]" | ||
tag: str = "DebounceInput" | ||
|
||
# Minimum input characters before triggering the on_change event | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -164,7 +164,7 @@ class UploadFilesProvider(Component): | |
class Upload(MemoizationLeaf): | ||
"""A file upload component.""" | ||
|
||
library = "[email protected]" | ||
library: str = "[email protected]" | ||
|
||
tag: str = "ReactDropzone" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -348,7 +348,7 @@ | |
class CodeBlock(Component): | ||
"""A code block.""" | ||
|
||
library = "[email protected]" | ||
library: str = "[email protected]" | ||
|
||
tag: str = "PrismAsyncLight" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
class Gridjs(Component): | ||
"""A component that wraps a nivo bar component.""" | ||
|
||
library = "[email protected]" | ||
library: str = "[email protected]" | ||
|
||
lib_dependencies: List[str] = ["[email protected]"] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
class LucideIconComponent(Component): | ||
"""Lucide Icon Component.""" | ||
|
||
library = "[email protected]" | ||
library: str = "[email protected]" | ||
|
||
|
||
class Icon(LucideIconComponent): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,7 +75,7 @@ def get_base_component_map() -> dict[str, Callable]: | |
class Markdown(Component): | ||
"""A markdown component.""" | ||
|
||
library = "[email protected]" | ||
library: str = "[email protected]" | ||
|
||
tag: str = "ReactMarkdown" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
class PlotlyLib(NoSSRComponent): | ||
"""A component that wraps a plotly lib.""" | ||
|
||
library = "[email protected]" | ||
library: str = "[email protected]" | ||
|
||
lib_dependencies: List[str] = ["[email protected]"] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ class ReactPlayer(NoSSRComponent): | |
reference: https://github.com/cookpete/react-player. | ||
""" | ||
|
||
library = "[email protected]" | ||
library: str = "[email protected]" | ||
|
||
tag: str = "ReactPlayer" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,13 +7,13 @@ | |
class Recharts(Component): | ||
"""A component that wraps a recharts lib.""" | ||
|
||
library = "[email protected]" | ||
library: str = "[email protected]" | ||
|
||
|
||
class RechartsCharts(NoSSRComponent, MemoizationLeaf): | ||
"""A component that wraps a recharts lib.""" | ||
|
||
library = "[email protected]" | ||
library: str = "[email protected]" | ||
|
||
|
||
LiteralAnimationEasing = Literal["ease", "ease-in", "ease-out", "ease-in-out", "linear"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters