reflex-components-code 0.9.1__tar.gz → 0.9.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {reflex_components_code-0.9.1 → reflex_components_code-0.9.2}/PKG-INFO +1 -1
- {reflex_components_code-0.9.1 → reflex_components_code-0.9.2}/src/reflex_components_code/code.py +3 -2
- {reflex_components_code-0.9.1 → reflex_components_code-0.9.2}/src/reflex_components_code/code.pyi +4 -4
- {reflex_components_code-0.9.1 → reflex_components_code-0.9.2}/.gitignore +0 -0
- {reflex_components_code-0.9.1 → reflex_components_code-0.9.2}/README.md +0 -0
- {reflex_components_code-0.9.1 → reflex_components_code-0.9.2}/pyproject.toml +0 -0
- {reflex_components_code-0.9.1 → reflex_components_code-0.9.2}/src/reflex_components_code/__init__.py +0 -0
- {reflex_components_code-0.9.1 → reflex_components_code-0.9.2}/src/reflex_components_code/shiki_code_block.py +0 -0
- {reflex_components_code-0.9.1 → reflex_components_code-0.9.2}/src/reflex_components_code/shiki_code_block.pyi +0 -0
{reflex_components_code-0.9.1 → reflex_components_code-0.9.2}/src/reflex_components_code/code.py
RENAMED
|
@@ -387,8 +387,9 @@ class CodeBlock(Component, MarkdownComponentMap):
|
|
|
387
387
|
|
|
388
388
|
alias = "SyntaxHighlighter"
|
|
389
389
|
|
|
390
|
-
theme: Var[Theme
|
|
391
|
-
default=Theme.one_light,
|
|
390
|
+
theme: Var[Theme] = field(
|
|
391
|
+
default=Theme.one_light,
|
|
392
|
+
doc="The theme to use, accessed via rx.code_block.themes (e.g. rx.code_block.themes.one_dark).",
|
|
392
393
|
)
|
|
393
394
|
|
|
394
395
|
language: Var[LiteralCodeLanguage] = field(
|
{reflex_components_code-0.9.1 → reflex_components_code-0.9.2}/src/reflex_components_code/code.pyi
RENAMED
|
@@ -356,7 +356,7 @@ class CodeBlock(Component, MarkdownComponentMap):
|
|
|
356
356
|
def create(
|
|
357
357
|
cls,
|
|
358
358
|
*children,
|
|
359
|
-
theme: Theme | Var[Theme
|
|
359
|
+
theme: Theme | Var[Theme] | None = None,
|
|
360
360
|
language: Literal[
|
|
361
361
|
"abap",
|
|
362
362
|
"abnf",
|
|
@@ -964,7 +964,7 @@ class CodeBlock(Component, MarkdownComponentMap):
|
|
|
964
964
|
|
|
965
965
|
Args:
|
|
966
966
|
*children: The children of the component.
|
|
967
|
-
theme: The theme to use (
|
|
967
|
+
theme: The theme to use, accessed via rx.code_block.themes (e.g. rx.code_block.themes.one_dark).
|
|
968
968
|
language: The language to use.
|
|
969
969
|
code: The code to display.
|
|
970
970
|
show_line_numbers: If this is enabled line numbers will be shown next to the code block.
|
|
@@ -1010,7 +1010,7 @@ class CodeblockNamespace(ComponentNamespace):
|
|
|
1010
1010
|
@staticmethod
|
|
1011
1011
|
def __call__(
|
|
1012
1012
|
*children,
|
|
1013
|
-
theme: Theme | Var[Theme
|
|
1013
|
+
theme: Theme | Var[Theme] | None = None,
|
|
1014
1014
|
language: Literal[
|
|
1015
1015
|
"abap",
|
|
1016
1016
|
"abnf",
|
|
@@ -1618,7 +1618,7 @@ class CodeblockNamespace(ComponentNamespace):
|
|
|
1618
1618
|
|
|
1619
1619
|
Args:
|
|
1620
1620
|
*children: The children of the component.
|
|
1621
|
-
theme: The theme to use (
|
|
1621
|
+
theme: The theme to use, accessed via rx.code_block.themes (e.g. rx.code_block.themes.one_dark).
|
|
1622
1622
|
language: The language to use.
|
|
1623
1623
|
code: The code to display.
|
|
1624
1624
|
show_line_numbers: If this is enabled line numbers will be shown next to the code block.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{reflex_components_code-0.9.1 → reflex_components_code-0.9.2}/src/reflex_components_code/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|