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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reflex-components-code
3
- Version: 0.9.1
3
+ Version: 0.9.2
4
4
  Summary: Reflex code display components.
5
5
  Author-email: Khaleel Al-Adhami <khaleel@reflex.dev>
6
6
  Maintainer-email: Khaleel Al-Adhami <khaleel@reflex.dev>
@@ -387,8 +387,9 @@ class CodeBlock(Component, MarkdownComponentMap):
387
387
 
388
388
  alias = "SyntaxHighlighter"
389
389
 
390
- theme: Var[Theme | str] = field(
391
- default=Theme.one_light, doc='The theme to use ("light" or "dark").'
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(
@@ -356,7 +356,7 @@ class CodeBlock(Component, MarkdownComponentMap):
356
356
  def create(
357
357
  cls,
358
358
  *children,
359
- theme: Theme | Var[Theme | str] | str | None = None,
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 ("light" or "dark").
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 | str] | str | None = None,
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 ("light" or "dark").
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.