reflex 0.7.1a3__py3-none-any.whl → 0.7.2__py3-none-any.whl

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.

Potentially problematic release.


This version of reflex might be problematic. Click here for more details.

Files changed (227) hide show
  1. reflex/.templates/jinja/web/utils/context.js.jinja2 +8 -8
  2. reflex/.templates/web/components/reflex/radix_themes_color_mode_provider.js +3 -3
  3. reflex/.templates/web/utils/state.js +18 -18
  4. reflex/admin.py +1 -2
  5. reflex/app.py +53 -50
  6. reflex/app_mixins/lifespan.py +2 -2
  7. reflex/app_mixins/middleware.py +1 -2
  8. reflex/assets.py +1 -2
  9. reflex/base.py +2 -2
  10. reflex/compiler/compiler.py +51 -16
  11. reflex/compiler/utils.py +4 -13
  12. reflex/components/base/app_wrap.pyi +7 -7
  13. reflex/components/base/bare.py +3 -3
  14. reflex/components/base/body.pyi +7 -7
  15. reflex/components/base/document.py +1 -3
  16. reflex/components/base/document.pyi +32 -32
  17. reflex/components/base/error_boundary.py +2 -4
  18. reflex/components/base/error_boundary.pyi +11 -13
  19. reflex/components/base/fragment.pyi +7 -7
  20. reflex/components/base/head.pyi +13 -13
  21. reflex/components/base/link.pyi +22 -22
  22. reflex/components/base/meta.py +5 -7
  23. reflex/components/base/meta.pyi +40 -40
  24. reflex/components/base/script.pyi +11 -14
  25. reflex/components/base/strict_mode.pyi +7 -7
  26. reflex/components/component.py +188 -113
  27. reflex/components/core/auto_scroll.py +8 -1
  28. reflex/components/core/auto_scroll.pyi +183 -210
  29. reflex/components/core/banner.py +2 -4
  30. reflex/components/core/banner.pyi +390 -444
  31. reflex/components/core/breakpoints.py +5 -5
  32. reflex/components/core/client_side_routing.pyi +14 -14
  33. reflex/components/core/clipboard.py +4 -4
  34. reflex/components/core/clipboard.pyi +12 -14
  35. reflex/components/core/cond.py +17 -25
  36. reflex/components/core/debounce.py +3 -3
  37. reflex/components/core/debounce.pyi +14 -14
  38. reflex/components/core/foreach.py +7 -2
  39. reflex/components/core/html.py +1 -3
  40. reflex/components/core/html.pyi +184 -213
  41. reflex/components/core/match.py +15 -19
  42. reflex/components/core/sticky.pyi +930 -1078
  43. reflex/components/core/upload.py +4 -4
  44. reflex/components/core/upload.pyi +62 -62
  45. reflex/components/datadisplay/code.py +6 -6
  46. reflex/components/datadisplay/code.pyi +1159 -1165
  47. reflex/components/datadisplay/dataeditor.py +49 -49
  48. reflex/components/datadisplay/dataeditor.pyi +95 -123
  49. reflex/components/datadisplay/logo.py +1 -3
  50. reflex/components/datadisplay/shiki_code_block.py +8 -10
  51. reflex/components/datadisplay/shiki_code_block.pyi +1678 -1720
  52. reflex/components/el/element.pyi +7 -7
  53. reflex/components/el/elements/base.pyi +183 -210
  54. reflex/components/el/elements/forms.py +24 -24
  55. reflex/components/el/elements/forms.pyi +2572 -2934
  56. reflex/components/el/elements/inline.py +4 -4
  57. reflex/components/el/elements/inline.pyi +5191 -5953
  58. reflex/components/el/elements/media.py +47 -47
  59. reflex/components/el/elements/media.pyi +4802 -5500
  60. reflex/components/el/elements/metadata.py +1 -3
  61. reflex/components/el/elements/metadata.pyi +782 -896
  62. reflex/components/el/elements/other.pyi +1278 -1467
  63. reflex/components/el/elements/scripts.pyi +580 -667
  64. reflex/components/el/elements/sectioning.pyi +2761 -3166
  65. reflex/components/el/elements/tables.pyi +1840 -2119
  66. reflex/components/el/elements/typography.pyi +2772 -3179
  67. reflex/components/gridjs/datatable.py +7 -7
  68. reflex/components/gridjs/datatable.pyi +19 -19
  69. reflex/components/lucide/icon.pyi +21 -21
  70. reflex/components/markdown/markdown.py +2 -2
  71. reflex/components/markdown/markdown.pyi +9 -9
  72. reflex/components/moment/moment.py +11 -12
  73. reflex/components/moment/moment.pyi +44 -47
  74. reflex/components/next/base.pyi +7 -7
  75. reflex/components/next/image.py +3 -3
  76. reflex/components/next/image.pyi +19 -21
  77. reflex/components/next/link.pyi +9 -9
  78. reflex/components/next/video.py +1 -3
  79. reflex/components/next/video.pyi +9 -9
  80. reflex/components/plotly/plotly.py +22 -45
  81. reflex/components/plotly/plotly.pyi +164 -164
  82. reflex/components/radix/primitives/accordion.py +14 -14
  83. reflex/components/radix/primitives/accordion.pyi +439 -487
  84. reflex/components/radix/primitives/base.py +1 -3
  85. reflex/components/radix/primitives/base.pyi +15 -15
  86. reflex/components/radix/primitives/drawer.py +3 -3
  87. reflex/components/radix/primitives/drawer.pyi +110 -116
  88. reflex/components/radix/primitives/form.py +1 -1
  89. reflex/components/radix/primitives/form.pyi +668 -752
  90. reflex/components/radix/primitives/progress.py +6 -6
  91. reflex/components/radix/primitives/progress.pyi +225 -243
  92. reflex/components/radix/primitives/slider.py +6 -6
  93. reflex/components/radix/primitives/slider.pyi +52 -55
  94. reflex/components/radix/themes/base.py +3 -6
  95. reflex/components/radix/themes/base.pyi +197 -303
  96. reflex/components/radix/themes/color_mode.py +5 -5
  97. reflex/components/radix/themes/color_mode.pyi +366 -436
  98. reflex/components/radix/themes/components/alert_dialog.pyi +229 -262
  99. reflex/components/radix/themes/components/aspect_ratio.py +1 -3
  100. reflex/components/radix/themes/components/aspect_ratio.pyi +8 -8
  101. reflex/components/radix/themes/components/avatar.pyi +79 -94
  102. reflex/components/radix/themes/components/badge.pyi +252 -295
  103. reflex/components/radix/themes/components/button.pyi +269 -314
  104. reflex/components/radix/themes/components/callout.py +2 -2
  105. reflex/components/radix/themes/components/callout.pyi +1116 -1290
  106. reflex/components/radix/themes/components/card.pyi +194 -229
  107. reflex/components/radix/themes/components/checkbox.pyi +243 -278
  108. reflex/components/radix/themes/components/checkbox_cards.py +3 -7
  109. reflex/components/radix/themes/components/checkbox_cards.pyi +101 -135
  110. reflex/components/radix/themes/components/checkbox_group.py +2 -2
  111. reflex/components/radix/themes/components/checkbox_group.pyi +83 -96
  112. reflex/components/radix/themes/components/context_menu.py +18 -15
  113. reflex/components/radix/themes/components/context_menu.pyi +408 -458
  114. reflex/components/radix/themes/components/data_list.pyi +122 -147
  115. reflex/components/radix/themes/components/dialog.pyi +231 -264
  116. reflex/components/radix/themes/components/dropdown_menu.py +16 -13
  117. reflex/components/radix/themes/components/dropdown_menu.pyi +223 -246
  118. reflex/components/radix/themes/components/hover_card.py +2 -2
  119. reflex/components/radix/themes/components/hover_card.pyi +237 -282
  120. reflex/components/radix/themes/components/icon_button.pyi +269 -314
  121. reflex/components/radix/themes/components/inset.py +8 -8
  122. reflex/components/radix/themes/components/inset.pyi +232 -292
  123. reflex/components/radix/themes/components/popover.py +2 -2
  124. reflex/components/radix/themes/components/popover.pyi +229 -271
  125. reflex/components/radix/themes/components/progress.pyi +80 -96
  126. reflex/components/radix/themes/components/radio.pyi +73 -86
  127. reflex/components/radix/themes/components/radio_cards.py +4 -8
  128. reflex/components/radix/themes/components/radio_cards.pyi +117 -154
  129. reflex/components/radix/themes/components/radio_group.py +3 -3
  130. reflex/components/radix/themes/components/radio_group.pyi +250 -291
  131. reflex/components/radix/themes/components/scroll_area.pyi +14 -20
  132. reflex/components/radix/themes/components/segmented_control.py +6 -6
  133. reflex/components/radix/themes/components/segmented_control.pyi +89 -108
  134. reflex/components/radix/themes/components/select.py +7 -7
  135. reflex/components/radix/themes/components/select.pyi +376 -444
  136. reflex/components/radix/themes/components/separator.pyi +79 -93
  137. reflex/components/radix/themes/components/skeleton.pyi +32 -26
  138. reflex/components/radix/themes/components/slider.py +8 -8
  139. reflex/components/radix/themes/components/slider.pyi +99 -122
  140. reflex/components/radix/themes/components/spinner.pyi +12 -19
  141. reflex/components/radix/themes/components/switch.pyi +84 -99
  142. reflex/components/radix/themes/components/table.py +9 -9
  143. reflex/components/radix/themes/components/table.pyi +1440 -1794
  144. reflex/components/radix/themes/components/tabs.py +4 -4
  145. reflex/components/radix/themes/components/tabs.pyi +120 -132
  146. reflex/components/radix/themes/components/text_area.pyi +281 -331
  147. reflex/components/radix/themes/components/text_field.py +2 -2
  148. reflex/components/radix/themes/components/text_field.pyi +639 -734
  149. reflex/components/radix/themes/components/tooltip.py +6 -6
  150. reflex/components/radix/themes/components/tooltip.pyi +34 -43
  151. reflex/components/radix/themes/layout/base.pyi +85 -182
  152. reflex/components/radix/themes/layout/box.pyi +183 -210
  153. reflex/components/radix/themes/layout/center.pyi +225 -286
  154. reflex/components/radix/themes/layout/container.pyi +191 -224
  155. reflex/components/radix/themes/layout/flex.py +2 -2
  156. reflex/components/radix/themes/layout/flex.pyi +225 -286
  157. reflex/components/radix/themes/layout/grid.py +2 -2
  158. reflex/components/radix/themes/layout/grid.pyi +245 -315
  159. reflex/components/radix/themes/layout/list.py +2 -2
  160. reflex/components/radix/themes/layout/list.pyi +712 -815
  161. reflex/components/radix/themes/layout/section.pyi +187 -221
  162. reflex/components/radix/themes/layout/spacer.pyi +225 -286
  163. reflex/components/radix/themes/layout/stack.pyi +625 -768
  164. reflex/components/radix/themes/typography/blockquote.pyi +257 -299
  165. reflex/components/radix/themes/typography/code.pyi +259 -304
  166. reflex/components/radix/themes/typography/heading.pyi +272 -324
  167. reflex/components/radix/themes/typography/link.pyi +302 -358
  168. reflex/components/radix/themes/typography/text.pyi +1669 -1945
  169. reflex/components/react_player/audio.pyi +20 -22
  170. reflex/components/react_player/react_player.pyi +19 -19
  171. reflex/components/react_player/video.pyi +20 -22
  172. reflex/components/recharts/cartesian.py +100 -97
  173. reflex/components/recharts/cartesian.pyi +891 -1007
  174. reflex/components/recharts/charts.py +42 -42
  175. reflex/components/recharts/charts.pyi +212 -249
  176. reflex/components/recharts/general.py +22 -21
  177. reflex/components/recharts/general.pyi +198 -223
  178. reflex/components/recharts/polar.py +42 -45
  179. reflex/components/recharts/polar.pyi +254 -288
  180. reflex/components/recharts/recharts.pyi +13 -13
  181. reflex/components/sonner/toast.py +20 -20
  182. reflex/components/sonner/toast.pyi +58 -61
  183. reflex/components/suneditor/editor.py +9 -9
  184. reflex/components/suneditor/editor.pyi +78 -83
  185. reflex/components/tags/cond_tag.py +2 -2
  186. reflex/components/tags/iter_tag.py +10 -14
  187. reflex/components/tags/match_tag.py +2 -2
  188. reflex/components/tags/tag.py +10 -10
  189. reflex/config.py +36 -35
  190. reflex/constants/__init__.py +56 -53
  191. reflex/custom_components/custom_components.py +6 -7
  192. reflex/event.py +38 -42
  193. reflex/experimental/client_state.py +2 -4
  194. reflex/experimental/layout.py +2 -2
  195. reflex/experimental/layout.pyi +579 -663
  196. reflex/istate/data.py +4 -5
  197. reflex/middleware/hydrate_middleware.py +2 -2
  198. reflex/middleware/middleware.py +2 -2
  199. reflex/model.py +3 -5
  200. reflex/page.py +2 -2
  201. reflex/reflex.py +9 -10
  202. reflex/state.py +77 -49
  203. reflex/style.py +11 -5
  204. reflex/testing.py +21 -24
  205. reflex/utils/console.py +1 -1
  206. reflex/utils/decorator.py +26 -1
  207. reflex/utils/exec.py +6 -11
  208. reflex/utils/export.py +2 -3
  209. reflex/utils/format.py +4 -4
  210. reflex/utils/imports.py +12 -12
  211. reflex/utils/prerequisites.py +35 -84
  212. reflex/utils/processes.py +5 -5
  213. reflex/utils/pyi_generator.py +33 -22
  214. reflex/utils/serializers.py +60 -15
  215. reflex/utils/types.py +237 -56
  216. reflex/vars/base.py +122 -72
  217. reflex/vars/datetime.py +2 -2
  218. reflex/vars/function.py +52 -55
  219. reflex/vars/number.py +59 -5
  220. reflex/vars/object.py +57 -26
  221. reflex/vars/sequence.py +983 -958
  222. {reflex-0.7.1a3.dist-info → reflex-0.7.2.dist-info}/METADATA +3 -6
  223. reflex-0.7.2.dist-info/RECORD +405 -0
  224. {reflex-0.7.1a3.dist-info → reflex-0.7.2.dist-info}/WHEEL +1 -1
  225. reflex-0.7.1a3.dist-info/RECORD +0 -405
  226. {reflex-0.7.1a3.dist-info → reflex-0.7.2.dist-info}/LICENSE +0 -0
  227. {reflex-0.7.1a3.dist-info → reflex-0.7.2.dist-info}/entry_points.txt +0 -0
@@ -4,7 +4,7 @@
4
4
  # This file was generated by `reflex/utils/pyi_generator.py`!
5
5
  # ------------------------------------------------------
6
6
  import dataclasses
7
- from typing import Any, ClassVar, Dict, Literal, Optional, Union, overload
7
+ from typing import Any, ClassVar, Literal, Optional, overload
8
8
 
9
9
  from reflex.components.component import Component, ComponentNamespace
10
10
  from reflex.components.markdown.markdown import MarkdownComponentMap
@@ -355,589 +355,586 @@ class CodeBlock(Component, MarkdownComponentMap):
355
355
  def create( # type: ignore
356
356
  cls,
357
357
  *children,
358
- theme: Optional[Union[Theme, Var[Union[Theme, str]], str]] = None,
359
- language: Optional[
360
- Union[
361
- Literal[
362
- "abap",
363
- "abnf",
364
- "actionscript",
365
- "ada",
366
- "agda",
367
- "al",
368
- "antlr4",
369
- "apacheconf",
370
- "apex",
371
- "apl",
372
- "applescript",
373
- "aql",
374
- "arduino",
375
- "arff",
376
- "asciidoc",
377
- "asm6502",
378
- "asmatmel",
379
- "aspnet",
380
- "autohotkey",
381
- "autoit",
382
- "avisynth",
383
- "avro-idl",
384
- "bash",
385
- "basic",
386
- "batch",
387
- "bbcode",
388
- "bicep",
389
- "birb",
390
- "bison",
391
- "bnf",
392
- "brainfuck",
393
- "brightscript",
394
- "bro",
395
- "bsl",
396
- "c",
397
- "cfscript",
398
- "chaiscript",
399
- "cil",
400
- "clike",
401
- "clojure",
402
- "cmake",
403
- "cobol",
404
- "coffeescript",
405
- "concurnas",
406
- "coq",
407
- "core",
408
- "cpp",
409
- "crystal",
410
- "csharp",
411
- "cshtml",
412
- "csp",
413
- "css",
414
- "css-extras",
415
- "csv",
416
- "cypher",
417
- "d",
418
- "dart",
419
- "dataweave",
420
- "dax",
421
- "dhall",
422
- "diff",
423
- "django",
424
- "dns-zone-file",
425
- "docker",
426
- "dot",
427
- "ebnf",
428
- "editorconfig",
429
- "eiffel",
430
- "ejs",
431
- "elixir",
432
- "elm",
433
- "erb",
434
- "erlang",
435
- "etlua",
436
- "excel-formula",
437
- "factor",
438
- "false",
439
- "firestore-security-rules",
440
- "flow",
441
- "fortran",
442
- "fsharp",
443
- "ftl",
444
- "gap",
445
- "gcode",
446
- "gdscript",
447
- "gedcom",
448
- "gherkin",
449
- "git",
450
- "glsl",
451
- "gml",
452
- "gn",
453
- "go",
454
- "go-module",
455
- "graphql",
456
- "groovy",
457
- "haml",
458
- "handlebars",
459
- "haskell",
460
- "haxe",
461
- "hcl",
462
- "hlsl",
463
- "hoon",
464
- "hpkp",
465
- "hsts",
466
- "http",
467
- "ichigojam",
468
- "icon",
469
- "icu-message-format",
470
- "idris",
471
- "iecst",
472
- "ignore",
473
- "index",
474
- "inform7",
475
- "ini",
476
- "io",
477
- "j",
478
- "java",
479
- "javadoc",
480
- "javadoclike",
481
- "javascript",
482
- "javastacktrace",
483
- "jexl",
484
- "jolie",
485
- "jq",
486
- "js-extras",
487
- "js-templates",
488
- "jsdoc",
489
- "json",
490
- "json5",
491
- "jsonp",
492
- "jsstacktrace",
493
- "jsx",
494
- "julia",
495
- "keepalived",
496
- "keyman",
497
- "kotlin",
498
- "kumir",
499
- "kusto",
500
- "latex",
501
- "latte",
502
- "less",
503
- "lilypond",
504
- "liquid",
505
- "lisp",
506
- "livescript",
507
- "llvm",
508
- "log",
509
- "lolcode",
510
- "lua",
511
- "magma",
512
- "makefile",
513
- "markdown",
514
- "markup",
515
- "markup-templating",
516
- "matlab",
517
- "maxscript",
518
- "mel",
519
- "mermaid",
520
- "mizar",
521
- "mongodb",
522
- "monkey",
523
- "moonscript",
524
- "n1ql",
525
- "n4js",
526
- "nand2tetris-hdl",
527
- "naniscript",
528
- "nasm",
529
- "neon",
530
- "nevod",
531
- "nginx",
532
- "nim",
533
- "nix",
534
- "nsis",
535
- "objectivec",
536
- "ocaml",
537
- "opencl",
538
- "openqasm",
539
- "oz",
540
- "parigp",
541
- "parser",
542
- "pascal",
543
- "pascaligo",
544
- "pcaxis",
545
- "peoplecode",
546
- "perl",
547
- "php",
548
- "php-extras",
549
- "phpdoc",
550
- "plsql",
551
- "powerquery",
552
- "powershell",
553
- "processing",
554
- "prolog",
555
- "promql",
556
- "properties",
557
- "protobuf",
558
- "psl",
559
- "pug",
560
- "puppet",
561
- "pure",
562
- "purebasic",
563
- "purescript",
564
- "python",
565
- "q",
566
- "qml",
567
- "qore",
568
- "qsharp",
569
- "r",
570
- "racket",
571
- "reason",
572
- "regex",
573
- "rego",
574
- "renpy",
575
- "rest",
576
- "rip",
577
- "roboconf",
578
- "robotframework",
579
- "ruby",
580
- "rust",
581
- "sas",
582
- "sass",
583
- "scala",
584
- "scheme",
585
- "scss",
586
- "shell-session",
587
- "smali",
588
- "smalltalk",
589
- "smarty",
590
- "sml",
591
- "solidity",
592
- "solution-file",
593
- "soy",
594
- "sparql",
595
- "splunk-spl",
596
- "sqf",
597
- "sql",
598
- "squirrel",
599
- "stan",
600
- "stylus",
601
- "swift",
602
- "systemd",
603
- "t4-cs",
604
- "t4-templating",
605
- "t4-vb",
606
- "tap",
607
- "tcl",
608
- "textile",
609
- "toml",
610
- "tremor",
611
- "tsx",
612
- "tt2",
613
- "turtle",
614
- "twig",
615
- "typescript",
616
- "typoscript",
617
- "unrealscript",
618
- "uorazor",
619
- "uri",
620
- "v",
621
- "vala",
622
- "vbnet",
623
- "velocity",
624
- "verilog",
625
- "vhdl",
626
- "vim",
627
- "visual-basic",
628
- "warpscript",
629
- "wasm",
630
- "web-idl",
631
- "wiki",
632
- "wolfram",
633
- "wren",
634
- "xeora",
635
- "xml-doc",
636
- "xojo",
637
- "xquery",
638
- "yaml",
639
- "yang",
640
- "zig",
641
- ],
642
- Var[
643
- Literal[
644
- "abap",
645
- "abnf",
646
- "actionscript",
647
- "ada",
648
- "agda",
649
- "al",
650
- "antlr4",
651
- "apacheconf",
652
- "apex",
653
- "apl",
654
- "applescript",
655
- "aql",
656
- "arduino",
657
- "arff",
658
- "asciidoc",
659
- "asm6502",
660
- "asmatmel",
661
- "aspnet",
662
- "autohotkey",
663
- "autoit",
664
- "avisynth",
665
- "avro-idl",
666
- "bash",
667
- "basic",
668
- "batch",
669
- "bbcode",
670
- "bicep",
671
- "birb",
672
- "bison",
673
- "bnf",
674
- "brainfuck",
675
- "brightscript",
676
- "bro",
677
- "bsl",
678
- "c",
679
- "cfscript",
680
- "chaiscript",
681
- "cil",
682
- "clike",
683
- "clojure",
684
- "cmake",
685
- "cobol",
686
- "coffeescript",
687
- "concurnas",
688
- "coq",
689
- "core",
690
- "cpp",
691
- "crystal",
692
- "csharp",
693
- "cshtml",
694
- "csp",
695
- "css",
696
- "css-extras",
697
- "csv",
698
- "cypher",
699
- "d",
700
- "dart",
701
- "dataweave",
702
- "dax",
703
- "dhall",
704
- "diff",
705
- "django",
706
- "dns-zone-file",
707
- "docker",
708
- "dot",
709
- "ebnf",
710
- "editorconfig",
711
- "eiffel",
712
- "ejs",
713
- "elixir",
714
- "elm",
715
- "erb",
716
- "erlang",
717
- "etlua",
718
- "excel-formula",
719
- "factor",
720
- "false",
721
- "firestore-security-rules",
722
- "flow",
723
- "fortran",
724
- "fsharp",
725
- "ftl",
726
- "gap",
727
- "gcode",
728
- "gdscript",
729
- "gedcom",
730
- "gherkin",
731
- "git",
732
- "glsl",
733
- "gml",
734
- "gn",
735
- "go",
736
- "go-module",
737
- "graphql",
738
- "groovy",
739
- "haml",
740
- "handlebars",
741
- "haskell",
742
- "haxe",
743
- "hcl",
744
- "hlsl",
745
- "hoon",
746
- "hpkp",
747
- "hsts",
748
- "http",
749
- "ichigojam",
750
- "icon",
751
- "icu-message-format",
752
- "idris",
753
- "iecst",
754
- "ignore",
755
- "index",
756
- "inform7",
757
- "ini",
758
- "io",
759
- "j",
760
- "java",
761
- "javadoc",
762
- "javadoclike",
763
- "javascript",
764
- "javastacktrace",
765
- "jexl",
766
- "jolie",
767
- "jq",
768
- "js-extras",
769
- "js-templates",
770
- "jsdoc",
771
- "json",
772
- "json5",
773
- "jsonp",
774
- "jsstacktrace",
775
- "jsx",
776
- "julia",
777
- "keepalived",
778
- "keyman",
779
- "kotlin",
780
- "kumir",
781
- "kusto",
782
- "latex",
783
- "latte",
784
- "less",
785
- "lilypond",
786
- "liquid",
787
- "lisp",
788
- "livescript",
789
- "llvm",
790
- "log",
791
- "lolcode",
792
- "lua",
793
- "magma",
794
- "makefile",
795
- "markdown",
796
- "markup",
797
- "markup-templating",
798
- "matlab",
799
- "maxscript",
800
- "mel",
801
- "mermaid",
802
- "mizar",
803
- "mongodb",
804
- "monkey",
805
- "moonscript",
806
- "n1ql",
807
- "n4js",
808
- "nand2tetris-hdl",
809
- "naniscript",
810
- "nasm",
811
- "neon",
812
- "nevod",
813
- "nginx",
814
- "nim",
815
- "nix",
816
- "nsis",
817
- "objectivec",
818
- "ocaml",
819
- "opencl",
820
- "openqasm",
821
- "oz",
822
- "parigp",
823
- "parser",
824
- "pascal",
825
- "pascaligo",
826
- "pcaxis",
827
- "peoplecode",
828
- "perl",
829
- "php",
830
- "php-extras",
831
- "phpdoc",
832
- "plsql",
833
- "powerquery",
834
- "powershell",
835
- "processing",
836
- "prolog",
837
- "promql",
838
- "properties",
839
- "protobuf",
840
- "psl",
841
- "pug",
842
- "puppet",
843
- "pure",
844
- "purebasic",
845
- "purescript",
846
- "python",
847
- "q",
848
- "qml",
849
- "qore",
850
- "qsharp",
851
- "r",
852
- "racket",
853
- "reason",
854
- "regex",
855
- "rego",
856
- "renpy",
857
- "rest",
858
- "rip",
859
- "roboconf",
860
- "robotframework",
861
- "ruby",
862
- "rust",
863
- "sas",
864
- "sass",
865
- "scala",
866
- "scheme",
867
- "scss",
868
- "shell-session",
869
- "smali",
870
- "smalltalk",
871
- "smarty",
872
- "sml",
873
- "solidity",
874
- "solution-file",
875
- "soy",
876
- "sparql",
877
- "splunk-spl",
878
- "sqf",
879
- "sql",
880
- "squirrel",
881
- "stan",
882
- "stylus",
883
- "swift",
884
- "systemd",
885
- "t4-cs",
886
- "t4-templating",
887
- "t4-vb",
888
- "tap",
889
- "tcl",
890
- "textile",
891
- "toml",
892
- "tremor",
893
- "tsx",
894
- "tt2",
895
- "turtle",
896
- "twig",
897
- "typescript",
898
- "typoscript",
899
- "unrealscript",
900
- "uorazor",
901
- "uri",
902
- "v",
903
- "vala",
904
- "vbnet",
905
- "velocity",
906
- "verilog",
907
- "vhdl",
908
- "vim",
909
- "visual-basic",
910
- "warpscript",
911
- "wasm",
912
- "web-idl",
913
- "wiki",
914
- "wolfram",
915
- "wren",
916
- "xeora",
917
- "xml-doc",
918
- "xojo",
919
- "xquery",
920
- "yaml",
921
- "yang",
922
- "zig",
923
- ]
924
- ],
358
+ theme: Theme | Var[Theme | str] | str | None = None,
359
+ language: Literal[
360
+ "abap",
361
+ "abnf",
362
+ "actionscript",
363
+ "ada",
364
+ "agda",
365
+ "al",
366
+ "antlr4",
367
+ "apacheconf",
368
+ "apex",
369
+ "apl",
370
+ "applescript",
371
+ "aql",
372
+ "arduino",
373
+ "arff",
374
+ "asciidoc",
375
+ "asm6502",
376
+ "asmatmel",
377
+ "aspnet",
378
+ "autohotkey",
379
+ "autoit",
380
+ "avisynth",
381
+ "avro-idl",
382
+ "bash",
383
+ "basic",
384
+ "batch",
385
+ "bbcode",
386
+ "bicep",
387
+ "birb",
388
+ "bison",
389
+ "bnf",
390
+ "brainfuck",
391
+ "brightscript",
392
+ "bro",
393
+ "bsl",
394
+ "c",
395
+ "cfscript",
396
+ "chaiscript",
397
+ "cil",
398
+ "clike",
399
+ "clojure",
400
+ "cmake",
401
+ "cobol",
402
+ "coffeescript",
403
+ "concurnas",
404
+ "coq",
405
+ "core",
406
+ "cpp",
407
+ "crystal",
408
+ "csharp",
409
+ "cshtml",
410
+ "csp",
411
+ "css",
412
+ "css-extras",
413
+ "csv",
414
+ "cypher",
415
+ "d",
416
+ "dart",
417
+ "dataweave",
418
+ "dax",
419
+ "dhall",
420
+ "diff",
421
+ "django",
422
+ "dns-zone-file",
423
+ "docker",
424
+ "dot",
425
+ "ebnf",
426
+ "editorconfig",
427
+ "eiffel",
428
+ "ejs",
429
+ "elixir",
430
+ "elm",
431
+ "erb",
432
+ "erlang",
433
+ "etlua",
434
+ "excel-formula",
435
+ "factor",
436
+ "false",
437
+ "firestore-security-rules",
438
+ "flow",
439
+ "fortran",
440
+ "fsharp",
441
+ "ftl",
442
+ "gap",
443
+ "gcode",
444
+ "gdscript",
445
+ "gedcom",
446
+ "gherkin",
447
+ "git",
448
+ "glsl",
449
+ "gml",
450
+ "gn",
451
+ "go",
452
+ "go-module",
453
+ "graphql",
454
+ "groovy",
455
+ "haml",
456
+ "handlebars",
457
+ "haskell",
458
+ "haxe",
459
+ "hcl",
460
+ "hlsl",
461
+ "hoon",
462
+ "hpkp",
463
+ "hsts",
464
+ "http",
465
+ "ichigojam",
466
+ "icon",
467
+ "icu-message-format",
468
+ "idris",
469
+ "iecst",
470
+ "ignore",
471
+ "index",
472
+ "inform7",
473
+ "ini",
474
+ "io",
475
+ "j",
476
+ "java",
477
+ "javadoc",
478
+ "javadoclike",
479
+ "javascript",
480
+ "javastacktrace",
481
+ "jexl",
482
+ "jolie",
483
+ "jq",
484
+ "js-extras",
485
+ "js-templates",
486
+ "jsdoc",
487
+ "json",
488
+ "json5",
489
+ "jsonp",
490
+ "jsstacktrace",
491
+ "jsx",
492
+ "julia",
493
+ "keepalived",
494
+ "keyman",
495
+ "kotlin",
496
+ "kumir",
497
+ "kusto",
498
+ "latex",
499
+ "latte",
500
+ "less",
501
+ "lilypond",
502
+ "liquid",
503
+ "lisp",
504
+ "livescript",
505
+ "llvm",
506
+ "log",
507
+ "lolcode",
508
+ "lua",
509
+ "magma",
510
+ "makefile",
511
+ "markdown",
512
+ "markup",
513
+ "markup-templating",
514
+ "matlab",
515
+ "maxscript",
516
+ "mel",
517
+ "mermaid",
518
+ "mizar",
519
+ "mongodb",
520
+ "monkey",
521
+ "moonscript",
522
+ "n1ql",
523
+ "n4js",
524
+ "nand2tetris-hdl",
525
+ "naniscript",
526
+ "nasm",
527
+ "neon",
528
+ "nevod",
529
+ "nginx",
530
+ "nim",
531
+ "nix",
532
+ "nsis",
533
+ "objectivec",
534
+ "ocaml",
535
+ "opencl",
536
+ "openqasm",
537
+ "oz",
538
+ "parigp",
539
+ "parser",
540
+ "pascal",
541
+ "pascaligo",
542
+ "pcaxis",
543
+ "peoplecode",
544
+ "perl",
545
+ "php",
546
+ "php-extras",
547
+ "phpdoc",
548
+ "plsql",
549
+ "powerquery",
550
+ "powershell",
551
+ "processing",
552
+ "prolog",
553
+ "promql",
554
+ "properties",
555
+ "protobuf",
556
+ "psl",
557
+ "pug",
558
+ "puppet",
559
+ "pure",
560
+ "purebasic",
561
+ "purescript",
562
+ "python",
563
+ "q",
564
+ "qml",
565
+ "qore",
566
+ "qsharp",
567
+ "r",
568
+ "racket",
569
+ "reason",
570
+ "regex",
571
+ "rego",
572
+ "renpy",
573
+ "rest",
574
+ "rip",
575
+ "roboconf",
576
+ "robotframework",
577
+ "ruby",
578
+ "rust",
579
+ "sas",
580
+ "sass",
581
+ "scala",
582
+ "scheme",
583
+ "scss",
584
+ "shell-session",
585
+ "smali",
586
+ "smalltalk",
587
+ "smarty",
588
+ "sml",
589
+ "solidity",
590
+ "solution-file",
591
+ "soy",
592
+ "sparql",
593
+ "splunk-spl",
594
+ "sqf",
595
+ "sql",
596
+ "squirrel",
597
+ "stan",
598
+ "stylus",
599
+ "swift",
600
+ "systemd",
601
+ "t4-cs",
602
+ "t4-templating",
603
+ "t4-vb",
604
+ "tap",
605
+ "tcl",
606
+ "textile",
607
+ "toml",
608
+ "tremor",
609
+ "tsx",
610
+ "tt2",
611
+ "turtle",
612
+ "twig",
613
+ "typescript",
614
+ "typoscript",
615
+ "unrealscript",
616
+ "uorazor",
617
+ "uri",
618
+ "v",
619
+ "vala",
620
+ "vbnet",
621
+ "velocity",
622
+ "verilog",
623
+ "vhdl",
624
+ "vim",
625
+ "visual-basic",
626
+ "warpscript",
627
+ "wasm",
628
+ "web-idl",
629
+ "wiki",
630
+ "wolfram",
631
+ "wren",
632
+ "xeora",
633
+ "xml-doc",
634
+ "xojo",
635
+ "xquery",
636
+ "yaml",
637
+ "yang",
638
+ "zig",
639
+ ]
640
+ | Var[
641
+ Literal[
642
+ "abap",
643
+ "abnf",
644
+ "actionscript",
645
+ "ada",
646
+ "agda",
647
+ "al",
648
+ "antlr4",
649
+ "apacheconf",
650
+ "apex",
651
+ "apl",
652
+ "applescript",
653
+ "aql",
654
+ "arduino",
655
+ "arff",
656
+ "asciidoc",
657
+ "asm6502",
658
+ "asmatmel",
659
+ "aspnet",
660
+ "autohotkey",
661
+ "autoit",
662
+ "avisynth",
663
+ "avro-idl",
664
+ "bash",
665
+ "basic",
666
+ "batch",
667
+ "bbcode",
668
+ "bicep",
669
+ "birb",
670
+ "bison",
671
+ "bnf",
672
+ "brainfuck",
673
+ "brightscript",
674
+ "bro",
675
+ "bsl",
676
+ "c",
677
+ "cfscript",
678
+ "chaiscript",
679
+ "cil",
680
+ "clike",
681
+ "clojure",
682
+ "cmake",
683
+ "cobol",
684
+ "coffeescript",
685
+ "concurnas",
686
+ "coq",
687
+ "core",
688
+ "cpp",
689
+ "crystal",
690
+ "csharp",
691
+ "cshtml",
692
+ "csp",
693
+ "css",
694
+ "css-extras",
695
+ "csv",
696
+ "cypher",
697
+ "d",
698
+ "dart",
699
+ "dataweave",
700
+ "dax",
701
+ "dhall",
702
+ "diff",
703
+ "django",
704
+ "dns-zone-file",
705
+ "docker",
706
+ "dot",
707
+ "ebnf",
708
+ "editorconfig",
709
+ "eiffel",
710
+ "ejs",
711
+ "elixir",
712
+ "elm",
713
+ "erb",
714
+ "erlang",
715
+ "etlua",
716
+ "excel-formula",
717
+ "factor",
718
+ "false",
719
+ "firestore-security-rules",
720
+ "flow",
721
+ "fortran",
722
+ "fsharp",
723
+ "ftl",
724
+ "gap",
725
+ "gcode",
726
+ "gdscript",
727
+ "gedcom",
728
+ "gherkin",
729
+ "git",
730
+ "glsl",
731
+ "gml",
732
+ "gn",
733
+ "go",
734
+ "go-module",
735
+ "graphql",
736
+ "groovy",
737
+ "haml",
738
+ "handlebars",
739
+ "haskell",
740
+ "haxe",
741
+ "hcl",
742
+ "hlsl",
743
+ "hoon",
744
+ "hpkp",
745
+ "hsts",
746
+ "http",
747
+ "ichigojam",
748
+ "icon",
749
+ "icu-message-format",
750
+ "idris",
751
+ "iecst",
752
+ "ignore",
753
+ "index",
754
+ "inform7",
755
+ "ini",
756
+ "io",
757
+ "j",
758
+ "java",
759
+ "javadoc",
760
+ "javadoclike",
761
+ "javascript",
762
+ "javastacktrace",
763
+ "jexl",
764
+ "jolie",
765
+ "jq",
766
+ "js-extras",
767
+ "js-templates",
768
+ "jsdoc",
769
+ "json",
770
+ "json5",
771
+ "jsonp",
772
+ "jsstacktrace",
773
+ "jsx",
774
+ "julia",
775
+ "keepalived",
776
+ "keyman",
777
+ "kotlin",
778
+ "kumir",
779
+ "kusto",
780
+ "latex",
781
+ "latte",
782
+ "less",
783
+ "lilypond",
784
+ "liquid",
785
+ "lisp",
786
+ "livescript",
787
+ "llvm",
788
+ "log",
789
+ "lolcode",
790
+ "lua",
791
+ "magma",
792
+ "makefile",
793
+ "markdown",
794
+ "markup",
795
+ "markup-templating",
796
+ "matlab",
797
+ "maxscript",
798
+ "mel",
799
+ "mermaid",
800
+ "mizar",
801
+ "mongodb",
802
+ "monkey",
803
+ "moonscript",
804
+ "n1ql",
805
+ "n4js",
806
+ "nand2tetris-hdl",
807
+ "naniscript",
808
+ "nasm",
809
+ "neon",
810
+ "nevod",
811
+ "nginx",
812
+ "nim",
813
+ "nix",
814
+ "nsis",
815
+ "objectivec",
816
+ "ocaml",
817
+ "opencl",
818
+ "openqasm",
819
+ "oz",
820
+ "parigp",
821
+ "parser",
822
+ "pascal",
823
+ "pascaligo",
824
+ "pcaxis",
825
+ "peoplecode",
826
+ "perl",
827
+ "php",
828
+ "php-extras",
829
+ "phpdoc",
830
+ "plsql",
831
+ "powerquery",
832
+ "powershell",
833
+ "processing",
834
+ "prolog",
835
+ "promql",
836
+ "properties",
837
+ "protobuf",
838
+ "psl",
839
+ "pug",
840
+ "puppet",
841
+ "pure",
842
+ "purebasic",
843
+ "purescript",
844
+ "python",
845
+ "q",
846
+ "qml",
847
+ "qore",
848
+ "qsharp",
849
+ "r",
850
+ "racket",
851
+ "reason",
852
+ "regex",
853
+ "rego",
854
+ "renpy",
855
+ "rest",
856
+ "rip",
857
+ "roboconf",
858
+ "robotframework",
859
+ "ruby",
860
+ "rust",
861
+ "sas",
862
+ "sass",
863
+ "scala",
864
+ "scheme",
865
+ "scss",
866
+ "shell-session",
867
+ "smali",
868
+ "smalltalk",
869
+ "smarty",
870
+ "sml",
871
+ "solidity",
872
+ "solution-file",
873
+ "soy",
874
+ "sparql",
875
+ "splunk-spl",
876
+ "sqf",
877
+ "sql",
878
+ "squirrel",
879
+ "stan",
880
+ "stylus",
881
+ "swift",
882
+ "systemd",
883
+ "t4-cs",
884
+ "t4-templating",
885
+ "t4-vb",
886
+ "tap",
887
+ "tcl",
888
+ "textile",
889
+ "toml",
890
+ "tremor",
891
+ "tsx",
892
+ "tt2",
893
+ "turtle",
894
+ "twig",
895
+ "typescript",
896
+ "typoscript",
897
+ "unrealscript",
898
+ "uorazor",
899
+ "uri",
900
+ "v",
901
+ "vala",
902
+ "vbnet",
903
+ "velocity",
904
+ "verilog",
905
+ "vhdl",
906
+ "vim",
907
+ "visual-basic",
908
+ "warpscript",
909
+ "wasm",
910
+ "web-idl",
911
+ "wiki",
912
+ "wolfram",
913
+ "wren",
914
+ "xeora",
915
+ "xml-doc",
916
+ "xojo",
917
+ "xquery",
918
+ "yaml",
919
+ "yang",
920
+ "zig",
925
921
  ]
926
- ] = None,
927
- code: Optional[Union[Var[str], str]] = None,
928
- show_line_numbers: Optional[Union[Var[bool], bool]] = None,
929
- starting_line_number: Optional[Union[Var[int], int]] = None,
930
- wrap_long_lines: Optional[Union[Var[bool], bool]] = None,
931
- custom_style: Optional[Dict[str, Union[str, Var, Color]]] = None,
932
- code_tag_props: Optional[Union[Dict[str, str], Var[Dict[str, str]]]] = None,
933
- can_copy: Optional[bool] = None,
934
- copy_button: Optional[Union[Component, bool]] = None,
935
- style: Optional[Style] = None,
936
- key: Optional[Any] = None,
937
- id: Optional[Any] = None,
938
- class_name: Optional[Any] = None,
939
- autofocus: Optional[bool] = None,
940
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
922
+ ]
923
+ | None = None,
924
+ code: Var[str] | str | None = None,
925
+ show_line_numbers: Var[bool] | bool | None = None,
926
+ starting_line_number: Var[int] | int | None = None,
927
+ wrap_long_lines: Var[bool] | bool | None = None,
928
+ custom_style: dict[str, str | Var | Color] | None = None,
929
+ code_tag_props: Var[dict[str, str]] | dict[str, str] | None = None,
930
+ can_copy: bool | None = None,
931
+ copy_button: Component | bool | None = None,
932
+ style: Style | None = None,
933
+ key: Any | None = None,
934
+ id: Any | None = None,
935
+ class_name: Any | None = None,
936
+ autofocus: bool | None = None,
937
+ custom_attrs: dict[str, Var | Any] | None = None,
941
938
  on_blur: Optional[EventType[()]] = None,
942
939
  on_click: Optional[EventType[()]] = None,
943
940
  on_context_menu: Optional[EventType[()]] = None,
@@ -993,589 +990,586 @@ class CodeblockNamespace(ComponentNamespace):
993
990
  @staticmethod
994
991
  def __call__(
995
992
  *children,
996
- theme: Optional[Union[Theme, Var[Union[Theme, str]], str]] = None,
997
- language: Optional[
998
- Union[
999
- Literal[
1000
- "abap",
1001
- "abnf",
1002
- "actionscript",
1003
- "ada",
1004
- "agda",
1005
- "al",
1006
- "antlr4",
1007
- "apacheconf",
1008
- "apex",
1009
- "apl",
1010
- "applescript",
1011
- "aql",
1012
- "arduino",
1013
- "arff",
1014
- "asciidoc",
1015
- "asm6502",
1016
- "asmatmel",
1017
- "aspnet",
1018
- "autohotkey",
1019
- "autoit",
1020
- "avisynth",
1021
- "avro-idl",
1022
- "bash",
1023
- "basic",
1024
- "batch",
1025
- "bbcode",
1026
- "bicep",
1027
- "birb",
1028
- "bison",
1029
- "bnf",
1030
- "brainfuck",
1031
- "brightscript",
1032
- "bro",
1033
- "bsl",
1034
- "c",
1035
- "cfscript",
1036
- "chaiscript",
1037
- "cil",
1038
- "clike",
1039
- "clojure",
1040
- "cmake",
1041
- "cobol",
1042
- "coffeescript",
1043
- "concurnas",
1044
- "coq",
1045
- "core",
1046
- "cpp",
1047
- "crystal",
1048
- "csharp",
1049
- "cshtml",
1050
- "csp",
1051
- "css",
1052
- "css-extras",
1053
- "csv",
1054
- "cypher",
1055
- "d",
1056
- "dart",
1057
- "dataweave",
1058
- "dax",
1059
- "dhall",
1060
- "diff",
1061
- "django",
1062
- "dns-zone-file",
1063
- "docker",
1064
- "dot",
1065
- "ebnf",
1066
- "editorconfig",
1067
- "eiffel",
1068
- "ejs",
1069
- "elixir",
1070
- "elm",
1071
- "erb",
1072
- "erlang",
1073
- "etlua",
1074
- "excel-formula",
1075
- "factor",
1076
- "false",
1077
- "firestore-security-rules",
1078
- "flow",
1079
- "fortran",
1080
- "fsharp",
1081
- "ftl",
1082
- "gap",
1083
- "gcode",
1084
- "gdscript",
1085
- "gedcom",
1086
- "gherkin",
1087
- "git",
1088
- "glsl",
1089
- "gml",
1090
- "gn",
1091
- "go",
1092
- "go-module",
1093
- "graphql",
1094
- "groovy",
1095
- "haml",
1096
- "handlebars",
1097
- "haskell",
1098
- "haxe",
1099
- "hcl",
1100
- "hlsl",
1101
- "hoon",
1102
- "hpkp",
1103
- "hsts",
1104
- "http",
1105
- "ichigojam",
1106
- "icon",
1107
- "icu-message-format",
1108
- "idris",
1109
- "iecst",
1110
- "ignore",
1111
- "index",
1112
- "inform7",
1113
- "ini",
1114
- "io",
1115
- "j",
1116
- "java",
1117
- "javadoc",
1118
- "javadoclike",
1119
- "javascript",
1120
- "javastacktrace",
1121
- "jexl",
1122
- "jolie",
1123
- "jq",
1124
- "js-extras",
1125
- "js-templates",
1126
- "jsdoc",
1127
- "json",
1128
- "json5",
1129
- "jsonp",
1130
- "jsstacktrace",
1131
- "jsx",
1132
- "julia",
1133
- "keepalived",
1134
- "keyman",
1135
- "kotlin",
1136
- "kumir",
1137
- "kusto",
1138
- "latex",
1139
- "latte",
1140
- "less",
1141
- "lilypond",
1142
- "liquid",
1143
- "lisp",
1144
- "livescript",
1145
- "llvm",
1146
- "log",
1147
- "lolcode",
1148
- "lua",
1149
- "magma",
1150
- "makefile",
1151
- "markdown",
1152
- "markup",
1153
- "markup-templating",
1154
- "matlab",
1155
- "maxscript",
1156
- "mel",
1157
- "mermaid",
1158
- "mizar",
1159
- "mongodb",
1160
- "monkey",
1161
- "moonscript",
1162
- "n1ql",
1163
- "n4js",
1164
- "nand2tetris-hdl",
1165
- "naniscript",
1166
- "nasm",
1167
- "neon",
1168
- "nevod",
1169
- "nginx",
1170
- "nim",
1171
- "nix",
1172
- "nsis",
1173
- "objectivec",
1174
- "ocaml",
1175
- "opencl",
1176
- "openqasm",
1177
- "oz",
1178
- "parigp",
1179
- "parser",
1180
- "pascal",
1181
- "pascaligo",
1182
- "pcaxis",
1183
- "peoplecode",
1184
- "perl",
1185
- "php",
1186
- "php-extras",
1187
- "phpdoc",
1188
- "plsql",
1189
- "powerquery",
1190
- "powershell",
1191
- "processing",
1192
- "prolog",
1193
- "promql",
1194
- "properties",
1195
- "protobuf",
1196
- "psl",
1197
- "pug",
1198
- "puppet",
1199
- "pure",
1200
- "purebasic",
1201
- "purescript",
1202
- "python",
1203
- "q",
1204
- "qml",
1205
- "qore",
1206
- "qsharp",
1207
- "r",
1208
- "racket",
1209
- "reason",
1210
- "regex",
1211
- "rego",
1212
- "renpy",
1213
- "rest",
1214
- "rip",
1215
- "roboconf",
1216
- "robotframework",
1217
- "ruby",
1218
- "rust",
1219
- "sas",
1220
- "sass",
1221
- "scala",
1222
- "scheme",
1223
- "scss",
1224
- "shell-session",
1225
- "smali",
1226
- "smalltalk",
1227
- "smarty",
1228
- "sml",
1229
- "solidity",
1230
- "solution-file",
1231
- "soy",
1232
- "sparql",
1233
- "splunk-spl",
1234
- "sqf",
1235
- "sql",
1236
- "squirrel",
1237
- "stan",
1238
- "stylus",
1239
- "swift",
1240
- "systemd",
1241
- "t4-cs",
1242
- "t4-templating",
1243
- "t4-vb",
1244
- "tap",
1245
- "tcl",
1246
- "textile",
1247
- "toml",
1248
- "tremor",
1249
- "tsx",
1250
- "tt2",
1251
- "turtle",
1252
- "twig",
1253
- "typescript",
1254
- "typoscript",
1255
- "unrealscript",
1256
- "uorazor",
1257
- "uri",
1258
- "v",
1259
- "vala",
1260
- "vbnet",
1261
- "velocity",
1262
- "verilog",
1263
- "vhdl",
1264
- "vim",
1265
- "visual-basic",
1266
- "warpscript",
1267
- "wasm",
1268
- "web-idl",
1269
- "wiki",
1270
- "wolfram",
1271
- "wren",
1272
- "xeora",
1273
- "xml-doc",
1274
- "xojo",
1275
- "xquery",
1276
- "yaml",
1277
- "yang",
1278
- "zig",
1279
- ],
1280
- Var[
1281
- Literal[
1282
- "abap",
1283
- "abnf",
1284
- "actionscript",
1285
- "ada",
1286
- "agda",
1287
- "al",
1288
- "antlr4",
1289
- "apacheconf",
1290
- "apex",
1291
- "apl",
1292
- "applescript",
1293
- "aql",
1294
- "arduino",
1295
- "arff",
1296
- "asciidoc",
1297
- "asm6502",
1298
- "asmatmel",
1299
- "aspnet",
1300
- "autohotkey",
1301
- "autoit",
1302
- "avisynth",
1303
- "avro-idl",
1304
- "bash",
1305
- "basic",
1306
- "batch",
1307
- "bbcode",
1308
- "bicep",
1309
- "birb",
1310
- "bison",
1311
- "bnf",
1312
- "brainfuck",
1313
- "brightscript",
1314
- "bro",
1315
- "bsl",
1316
- "c",
1317
- "cfscript",
1318
- "chaiscript",
1319
- "cil",
1320
- "clike",
1321
- "clojure",
1322
- "cmake",
1323
- "cobol",
1324
- "coffeescript",
1325
- "concurnas",
1326
- "coq",
1327
- "core",
1328
- "cpp",
1329
- "crystal",
1330
- "csharp",
1331
- "cshtml",
1332
- "csp",
1333
- "css",
1334
- "css-extras",
1335
- "csv",
1336
- "cypher",
1337
- "d",
1338
- "dart",
1339
- "dataweave",
1340
- "dax",
1341
- "dhall",
1342
- "diff",
1343
- "django",
1344
- "dns-zone-file",
1345
- "docker",
1346
- "dot",
1347
- "ebnf",
1348
- "editorconfig",
1349
- "eiffel",
1350
- "ejs",
1351
- "elixir",
1352
- "elm",
1353
- "erb",
1354
- "erlang",
1355
- "etlua",
1356
- "excel-formula",
1357
- "factor",
1358
- "false",
1359
- "firestore-security-rules",
1360
- "flow",
1361
- "fortran",
1362
- "fsharp",
1363
- "ftl",
1364
- "gap",
1365
- "gcode",
1366
- "gdscript",
1367
- "gedcom",
1368
- "gherkin",
1369
- "git",
1370
- "glsl",
1371
- "gml",
1372
- "gn",
1373
- "go",
1374
- "go-module",
1375
- "graphql",
1376
- "groovy",
1377
- "haml",
1378
- "handlebars",
1379
- "haskell",
1380
- "haxe",
1381
- "hcl",
1382
- "hlsl",
1383
- "hoon",
1384
- "hpkp",
1385
- "hsts",
1386
- "http",
1387
- "ichigojam",
1388
- "icon",
1389
- "icu-message-format",
1390
- "idris",
1391
- "iecst",
1392
- "ignore",
1393
- "index",
1394
- "inform7",
1395
- "ini",
1396
- "io",
1397
- "j",
1398
- "java",
1399
- "javadoc",
1400
- "javadoclike",
1401
- "javascript",
1402
- "javastacktrace",
1403
- "jexl",
1404
- "jolie",
1405
- "jq",
1406
- "js-extras",
1407
- "js-templates",
1408
- "jsdoc",
1409
- "json",
1410
- "json5",
1411
- "jsonp",
1412
- "jsstacktrace",
1413
- "jsx",
1414
- "julia",
1415
- "keepalived",
1416
- "keyman",
1417
- "kotlin",
1418
- "kumir",
1419
- "kusto",
1420
- "latex",
1421
- "latte",
1422
- "less",
1423
- "lilypond",
1424
- "liquid",
1425
- "lisp",
1426
- "livescript",
1427
- "llvm",
1428
- "log",
1429
- "lolcode",
1430
- "lua",
1431
- "magma",
1432
- "makefile",
1433
- "markdown",
1434
- "markup",
1435
- "markup-templating",
1436
- "matlab",
1437
- "maxscript",
1438
- "mel",
1439
- "mermaid",
1440
- "mizar",
1441
- "mongodb",
1442
- "monkey",
1443
- "moonscript",
1444
- "n1ql",
1445
- "n4js",
1446
- "nand2tetris-hdl",
1447
- "naniscript",
1448
- "nasm",
1449
- "neon",
1450
- "nevod",
1451
- "nginx",
1452
- "nim",
1453
- "nix",
1454
- "nsis",
1455
- "objectivec",
1456
- "ocaml",
1457
- "opencl",
1458
- "openqasm",
1459
- "oz",
1460
- "parigp",
1461
- "parser",
1462
- "pascal",
1463
- "pascaligo",
1464
- "pcaxis",
1465
- "peoplecode",
1466
- "perl",
1467
- "php",
1468
- "php-extras",
1469
- "phpdoc",
1470
- "plsql",
1471
- "powerquery",
1472
- "powershell",
1473
- "processing",
1474
- "prolog",
1475
- "promql",
1476
- "properties",
1477
- "protobuf",
1478
- "psl",
1479
- "pug",
1480
- "puppet",
1481
- "pure",
1482
- "purebasic",
1483
- "purescript",
1484
- "python",
1485
- "q",
1486
- "qml",
1487
- "qore",
1488
- "qsharp",
1489
- "r",
1490
- "racket",
1491
- "reason",
1492
- "regex",
1493
- "rego",
1494
- "renpy",
1495
- "rest",
1496
- "rip",
1497
- "roboconf",
1498
- "robotframework",
1499
- "ruby",
1500
- "rust",
1501
- "sas",
1502
- "sass",
1503
- "scala",
1504
- "scheme",
1505
- "scss",
1506
- "shell-session",
1507
- "smali",
1508
- "smalltalk",
1509
- "smarty",
1510
- "sml",
1511
- "solidity",
1512
- "solution-file",
1513
- "soy",
1514
- "sparql",
1515
- "splunk-spl",
1516
- "sqf",
1517
- "sql",
1518
- "squirrel",
1519
- "stan",
1520
- "stylus",
1521
- "swift",
1522
- "systemd",
1523
- "t4-cs",
1524
- "t4-templating",
1525
- "t4-vb",
1526
- "tap",
1527
- "tcl",
1528
- "textile",
1529
- "toml",
1530
- "tremor",
1531
- "tsx",
1532
- "tt2",
1533
- "turtle",
1534
- "twig",
1535
- "typescript",
1536
- "typoscript",
1537
- "unrealscript",
1538
- "uorazor",
1539
- "uri",
1540
- "v",
1541
- "vala",
1542
- "vbnet",
1543
- "velocity",
1544
- "verilog",
1545
- "vhdl",
1546
- "vim",
1547
- "visual-basic",
1548
- "warpscript",
1549
- "wasm",
1550
- "web-idl",
1551
- "wiki",
1552
- "wolfram",
1553
- "wren",
1554
- "xeora",
1555
- "xml-doc",
1556
- "xojo",
1557
- "xquery",
1558
- "yaml",
1559
- "yang",
1560
- "zig",
1561
- ]
1562
- ],
993
+ theme: Theme | Var[Theme | str] | str | None = None,
994
+ language: Literal[
995
+ "abap",
996
+ "abnf",
997
+ "actionscript",
998
+ "ada",
999
+ "agda",
1000
+ "al",
1001
+ "antlr4",
1002
+ "apacheconf",
1003
+ "apex",
1004
+ "apl",
1005
+ "applescript",
1006
+ "aql",
1007
+ "arduino",
1008
+ "arff",
1009
+ "asciidoc",
1010
+ "asm6502",
1011
+ "asmatmel",
1012
+ "aspnet",
1013
+ "autohotkey",
1014
+ "autoit",
1015
+ "avisynth",
1016
+ "avro-idl",
1017
+ "bash",
1018
+ "basic",
1019
+ "batch",
1020
+ "bbcode",
1021
+ "bicep",
1022
+ "birb",
1023
+ "bison",
1024
+ "bnf",
1025
+ "brainfuck",
1026
+ "brightscript",
1027
+ "bro",
1028
+ "bsl",
1029
+ "c",
1030
+ "cfscript",
1031
+ "chaiscript",
1032
+ "cil",
1033
+ "clike",
1034
+ "clojure",
1035
+ "cmake",
1036
+ "cobol",
1037
+ "coffeescript",
1038
+ "concurnas",
1039
+ "coq",
1040
+ "core",
1041
+ "cpp",
1042
+ "crystal",
1043
+ "csharp",
1044
+ "cshtml",
1045
+ "csp",
1046
+ "css",
1047
+ "css-extras",
1048
+ "csv",
1049
+ "cypher",
1050
+ "d",
1051
+ "dart",
1052
+ "dataweave",
1053
+ "dax",
1054
+ "dhall",
1055
+ "diff",
1056
+ "django",
1057
+ "dns-zone-file",
1058
+ "docker",
1059
+ "dot",
1060
+ "ebnf",
1061
+ "editorconfig",
1062
+ "eiffel",
1063
+ "ejs",
1064
+ "elixir",
1065
+ "elm",
1066
+ "erb",
1067
+ "erlang",
1068
+ "etlua",
1069
+ "excel-formula",
1070
+ "factor",
1071
+ "false",
1072
+ "firestore-security-rules",
1073
+ "flow",
1074
+ "fortran",
1075
+ "fsharp",
1076
+ "ftl",
1077
+ "gap",
1078
+ "gcode",
1079
+ "gdscript",
1080
+ "gedcom",
1081
+ "gherkin",
1082
+ "git",
1083
+ "glsl",
1084
+ "gml",
1085
+ "gn",
1086
+ "go",
1087
+ "go-module",
1088
+ "graphql",
1089
+ "groovy",
1090
+ "haml",
1091
+ "handlebars",
1092
+ "haskell",
1093
+ "haxe",
1094
+ "hcl",
1095
+ "hlsl",
1096
+ "hoon",
1097
+ "hpkp",
1098
+ "hsts",
1099
+ "http",
1100
+ "ichigojam",
1101
+ "icon",
1102
+ "icu-message-format",
1103
+ "idris",
1104
+ "iecst",
1105
+ "ignore",
1106
+ "index",
1107
+ "inform7",
1108
+ "ini",
1109
+ "io",
1110
+ "j",
1111
+ "java",
1112
+ "javadoc",
1113
+ "javadoclike",
1114
+ "javascript",
1115
+ "javastacktrace",
1116
+ "jexl",
1117
+ "jolie",
1118
+ "jq",
1119
+ "js-extras",
1120
+ "js-templates",
1121
+ "jsdoc",
1122
+ "json",
1123
+ "json5",
1124
+ "jsonp",
1125
+ "jsstacktrace",
1126
+ "jsx",
1127
+ "julia",
1128
+ "keepalived",
1129
+ "keyman",
1130
+ "kotlin",
1131
+ "kumir",
1132
+ "kusto",
1133
+ "latex",
1134
+ "latte",
1135
+ "less",
1136
+ "lilypond",
1137
+ "liquid",
1138
+ "lisp",
1139
+ "livescript",
1140
+ "llvm",
1141
+ "log",
1142
+ "lolcode",
1143
+ "lua",
1144
+ "magma",
1145
+ "makefile",
1146
+ "markdown",
1147
+ "markup",
1148
+ "markup-templating",
1149
+ "matlab",
1150
+ "maxscript",
1151
+ "mel",
1152
+ "mermaid",
1153
+ "mizar",
1154
+ "mongodb",
1155
+ "monkey",
1156
+ "moonscript",
1157
+ "n1ql",
1158
+ "n4js",
1159
+ "nand2tetris-hdl",
1160
+ "naniscript",
1161
+ "nasm",
1162
+ "neon",
1163
+ "nevod",
1164
+ "nginx",
1165
+ "nim",
1166
+ "nix",
1167
+ "nsis",
1168
+ "objectivec",
1169
+ "ocaml",
1170
+ "opencl",
1171
+ "openqasm",
1172
+ "oz",
1173
+ "parigp",
1174
+ "parser",
1175
+ "pascal",
1176
+ "pascaligo",
1177
+ "pcaxis",
1178
+ "peoplecode",
1179
+ "perl",
1180
+ "php",
1181
+ "php-extras",
1182
+ "phpdoc",
1183
+ "plsql",
1184
+ "powerquery",
1185
+ "powershell",
1186
+ "processing",
1187
+ "prolog",
1188
+ "promql",
1189
+ "properties",
1190
+ "protobuf",
1191
+ "psl",
1192
+ "pug",
1193
+ "puppet",
1194
+ "pure",
1195
+ "purebasic",
1196
+ "purescript",
1197
+ "python",
1198
+ "q",
1199
+ "qml",
1200
+ "qore",
1201
+ "qsharp",
1202
+ "r",
1203
+ "racket",
1204
+ "reason",
1205
+ "regex",
1206
+ "rego",
1207
+ "renpy",
1208
+ "rest",
1209
+ "rip",
1210
+ "roboconf",
1211
+ "robotframework",
1212
+ "ruby",
1213
+ "rust",
1214
+ "sas",
1215
+ "sass",
1216
+ "scala",
1217
+ "scheme",
1218
+ "scss",
1219
+ "shell-session",
1220
+ "smali",
1221
+ "smalltalk",
1222
+ "smarty",
1223
+ "sml",
1224
+ "solidity",
1225
+ "solution-file",
1226
+ "soy",
1227
+ "sparql",
1228
+ "splunk-spl",
1229
+ "sqf",
1230
+ "sql",
1231
+ "squirrel",
1232
+ "stan",
1233
+ "stylus",
1234
+ "swift",
1235
+ "systemd",
1236
+ "t4-cs",
1237
+ "t4-templating",
1238
+ "t4-vb",
1239
+ "tap",
1240
+ "tcl",
1241
+ "textile",
1242
+ "toml",
1243
+ "tremor",
1244
+ "tsx",
1245
+ "tt2",
1246
+ "turtle",
1247
+ "twig",
1248
+ "typescript",
1249
+ "typoscript",
1250
+ "unrealscript",
1251
+ "uorazor",
1252
+ "uri",
1253
+ "v",
1254
+ "vala",
1255
+ "vbnet",
1256
+ "velocity",
1257
+ "verilog",
1258
+ "vhdl",
1259
+ "vim",
1260
+ "visual-basic",
1261
+ "warpscript",
1262
+ "wasm",
1263
+ "web-idl",
1264
+ "wiki",
1265
+ "wolfram",
1266
+ "wren",
1267
+ "xeora",
1268
+ "xml-doc",
1269
+ "xojo",
1270
+ "xquery",
1271
+ "yaml",
1272
+ "yang",
1273
+ "zig",
1274
+ ]
1275
+ | Var[
1276
+ Literal[
1277
+ "abap",
1278
+ "abnf",
1279
+ "actionscript",
1280
+ "ada",
1281
+ "agda",
1282
+ "al",
1283
+ "antlr4",
1284
+ "apacheconf",
1285
+ "apex",
1286
+ "apl",
1287
+ "applescript",
1288
+ "aql",
1289
+ "arduino",
1290
+ "arff",
1291
+ "asciidoc",
1292
+ "asm6502",
1293
+ "asmatmel",
1294
+ "aspnet",
1295
+ "autohotkey",
1296
+ "autoit",
1297
+ "avisynth",
1298
+ "avro-idl",
1299
+ "bash",
1300
+ "basic",
1301
+ "batch",
1302
+ "bbcode",
1303
+ "bicep",
1304
+ "birb",
1305
+ "bison",
1306
+ "bnf",
1307
+ "brainfuck",
1308
+ "brightscript",
1309
+ "bro",
1310
+ "bsl",
1311
+ "c",
1312
+ "cfscript",
1313
+ "chaiscript",
1314
+ "cil",
1315
+ "clike",
1316
+ "clojure",
1317
+ "cmake",
1318
+ "cobol",
1319
+ "coffeescript",
1320
+ "concurnas",
1321
+ "coq",
1322
+ "core",
1323
+ "cpp",
1324
+ "crystal",
1325
+ "csharp",
1326
+ "cshtml",
1327
+ "csp",
1328
+ "css",
1329
+ "css-extras",
1330
+ "csv",
1331
+ "cypher",
1332
+ "d",
1333
+ "dart",
1334
+ "dataweave",
1335
+ "dax",
1336
+ "dhall",
1337
+ "diff",
1338
+ "django",
1339
+ "dns-zone-file",
1340
+ "docker",
1341
+ "dot",
1342
+ "ebnf",
1343
+ "editorconfig",
1344
+ "eiffel",
1345
+ "ejs",
1346
+ "elixir",
1347
+ "elm",
1348
+ "erb",
1349
+ "erlang",
1350
+ "etlua",
1351
+ "excel-formula",
1352
+ "factor",
1353
+ "false",
1354
+ "firestore-security-rules",
1355
+ "flow",
1356
+ "fortran",
1357
+ "fsharp",
1358
+ "ftl",
1359
+ "gap",
1360
+ "gcode",
1361
+ "gdscript",
1362
+ "gedcom",
1363
+ "gherkin",
1364
+ "git",
1365
+ "glsl",
1366
+ "gml",
1367
+ "gn",
1368
+ "go",
1369
+ "go-module",
1370
+ "graphql",
1371
+ "groovy",
1372
+ "haml",
1373
+ "handlebars",
1374
+ "haskell",
1375
+ "haxe",
1376
+ "hcl",
1377
+ "hlsl",
1378
+ "hoon",
1379
+ "hpkp",
1380
+ "hsts",
1381
+ "http",
1382
+ "ichigojam",
1383
+ "icon",
1384
+ "icu-message-format",
1385
+ "idris",
1386
+ "iecst",
1387
+ "ignore",
1388
+ "index",
1389
+ "inform7",
1390
+ "ini",
1391
+ "io",
1392
+ "j",
1393
+ "java",
1394
+ "javadoc",
1395
+ "javadoclike",
1396
+ "javascript",
1397
+ "javastacktrace",
1398
+ "jexl",
1399
+ "jolie",
1400
+ "jq",
1401
+ "js-extras",
1402
+ "js-templates",
1403
+ "jsdoc",
1404
+ "json",
1405
+ "json5",
1406
+ "jsonp",
1407
+ "jsstacktrace",
1408
+ "jsx",
1409
+ "julia",
1410
+ "keepalived",
1411
+ "keyman",
1412
+ "kotlin",
1413
+ "kumir",
1414
+ "kusto",
1415
+ "latex",
1416
+ "latte",
1417
+ "less",
1418
+ "lilypond",
1419
+ "liquid",
1420
+ "lisp",
1421
+ "livescript",
1422
+ "llvm",
1423
+ "log",
1424
+ "lolcode",
1425
+ "lua",
1426
+ "magma",
1427
+ "makefile",
1428
+ "markdown",
1429
+ "markup",
1430
+ "markup-templating",
1431
+ "matlab",
1432
+ "maxscript",
1433
+ "mel",
1434
+ "mermaid",
1435
+ "mizar",
1436
+ "mongodb",
1437
+ "monkey",
1438
+ "moonscript",
1439
+ "n1ql",
1440
+ "n4js",
1441
+ "nand2tetris-hdl",
1442
+ "naniscript",
1443
+ "nasm",
1444
+ "neon",
1445
+ "nevod",
1446
+ "nginx",
1447
+ "nim",
1448
+ "nix",
1449
+ "nsis",
1450
+ "objectivec",
1451
+ "ocaml",
1452
+ "opencl",
1453
+ "openqasm",
1454
+ "oz",
1455
+ "parigp",
1456
+ "parser",
1457
+ "pascal",
1458
+ "pascaligo",
1459
+ "pcaxis",
1460
+ "peoplecode",
1461
+ "perl",
1462
+ "php",
1463
+ "php-extras",
1464
+ "phpdoc",
1465
+ "plsql",
1466
+ "powerquery",
1467
+ "powershell",
1468
+ "processing",
1469
+ "prolog",
1470
+ "promql",
1471
+ "properties",
1472
+ "protobuf",
1473
+ "psl",
1474
+ "pug",
1475
+ "puppet",
1476
+ "pure",
1477
+ "purebasic",
1478
+ "purescript",
1479
+ "python",
1480
+ "q",
1481
+ "qml",
1482
+ "qore",
1483
+ "qsharp",
1484
+ "r",
1485
+ "racket",
1486
+ "reason",
1487
+ "regex",
1488
+ "rego",
1489
+ "renpy",
1490
+ "rest",
1491
+ "rip",
1492
+ "roboconf",
1493
+ "robotframework",
1494
+ "ruby",
1495
+ "rust",
1496
+ "sas",
1497
+ "sass",
1498
+ "scala",
1499
+ "scheme",
1500
+ "scss",
1501
+ "shell-session",
1502
+ "smali",
1503
+ "smalltalk",
1504
+ "smarty",
1505
+ "sml",
1506
+ "solidity",
1507
+ "solution-file",
1508
+ "soy",
1509
+ "sparql",
1510
+ "splunk-spl",
1511
+ "sqf",
1512
+ "sql",
1513
+ "squirrel",
1514
+ "stan",
1515
+ "stylus",
1516
+ "swift",
1517
+ "systemd",
1518
+ "t4-cs",
1519
+ "t4-templating",
1520
+ "t4-vb",
1521
+ "tap",
1522
+ "tcl",
1523
+ "textile",
1524
+ "toml",
1525
+ "tremor",
1526
+ "tsx",
1527
+ "tt2",
1528
+ "turtle",
1529
+ "twig",
1530
+ "typescript",
1531
+ "typoscript",
1532
+ "unrealscript",
1533
+ "uorazor",
1534
+ "uri",
1535
+ "v",
1536
+ "vala",
1537
+ "vbnet",
1538
+ "velocity",
1539
+ "verilog",
1540
+ "vhdl",
1541
+ "vim",
1542
+ "visual-basic",
1543
+ "warpscript",
1544
+ "wasm",
1545
+ "web-idl",
1546
+ "wiki",
1547
+ "wolfram",
1548
+ "wren",
1549
+ "xeora",
1550
+ "xml-doc",
1551
+ "xojo",
1552
+ "xquery",
1553
+ "yaml",
1554
+ "yang",
1555
+ "zig",
1563
1556
  ]
1564
- ] = None,
1565
- code: Optional[Union[Var[str], str]] = None,
1566
- show_line_numbers: Optional[Union[Var[bool], bool]] = None,
1567
- starting_line_number: Optional[Union[Var[int], int]] = None,
1568
- wrap_long_lines: Optional[Union[Var[bool], bool]] = None,
1569
- custom_style: Optional[Dict[str, Union[str, Var, Color]]] = None,
1570
- code_tag_props: Optional[Union[Dict[str, str], Var[Dict[str, str]]]] = None,
1571
- can_copy: Optional[bool] = None,
1572
- copy_button: Optional[Union[Component, bool]] = None,
1573
- style: Optional[Style] = None,
1574
- key: Optional[Any] = None,
1575
- id: Optional[Any] = None,
1576
- class_name: Optional[Any] = None,
1577
- autofocus: Optional[bool] = None,
1578
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
1557
+ ]
1558
+ | None = None,
1559
+ code: Var[str] | str | None = None,
1560
+ show_line_numbers: Var[bool] | bool | None = None,
1561
+ starting_line_number: Var[int] | int | None = None,
1562
+ wrap_long_lines: Var[bool] | bool | None = None,
1563
+ custom_style: dict[str, str | Var | Color] | None = None,
1564
+ code_tag_props: Var[dict[str, str]] | dict[str, str] | None = None,
1565
+ can_copy: bool | None = None,
1566
+ copy_button: Component | bool | None = None,
1567
+ style: Style | None = None,
1568
+ key: Any | None = None,
1569
+ id: Any | None = None,
1570
+ class_name: Any | None = None,
1571
+ autofocus: bool | None = None,
1572
+ custom_attrs: dict[str, Var | Any] | None = None,
1579
1573
  on_blur: Optional[EventType[()]] = None,
1580
1574
  on_click: Optional[EventType[()]] = None,
1581
1575
  on_context_menu: Optional[EventType[()]] = None,