reflex 0.7.1a4__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 +46 -49
  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.1a4.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.1a4.dist-info → reflex-0.7.2.dist-info}/WHEEL +1 -1
  225. reflex-0.7.1a4.dist-info/RECORD +0 -405
  226. {reflex-0.7.1a4.dist-info → reflex-0.7.2.dist-info}/LICENSE +0 -0
  227. {reflex-0.7.1a4.dist-info → reflex-0.7.2.dist-info}/entry_points.txt +0 -0
@@ -3,7 +3,7 @@
3
3
  # ------------------- DO NOT EDIT ----------------------
4
4
  # This file was generated by `reflex/utils/pyi_generator.py`!
5
5
  # ------------------------------------------------------
6
- from typing import Any, Dict, Literal, Optional, Union, overload
6
+ from typing import Any, Literal, Optional, overload
7
7
 
8
8
  from reflex.base import Base
9
9
  from reflex.components.component import Component, ComponentNamespace
@@ -335,8 +335,8 @@ class Position(NoExtrasAllowedProps):
335
335
  character: int
336
336
 
337
337
  class ShikiDecorations(NoExtrasAllowedProps):
338
- start: Union[int, Position]
339
- end: Union[int, Position]
338
+ start: int | Position
339
+ end: int | Position
340
340
  tag_name: str
341
341
  properties: dict[str, Any]
342
342
  always_wrap: bool
@@ -344,12 +344,12 @@ class ShikiDecorations(NoExtrasAllowedProps):
344
344
  class ShikiBaseTransformers(Base):
345
345
  library: str
346
346
  fns: list[FunctionStringVar]
347
- style: Optional[Style]
347
+ style: Style | None
348
348
 
349
349
  class ShikiJsTransformer(ShikiBaseTransformers):
350
350
  library: str
351
351
  fns: list[FunctionStringVar]
352
- style: Optional[Style]
352
+ style: Style | None
353
353
 
354
354
  class ShikiCodeBlock(Component, MarkdownComponentMap):
355
355
  @overload
@@ -357,577 +357,563 @@ class ShikiCodeBlock(Component, MarkdownComponentMap):
357
357
  def create( # type: ignore
358
358
  cls,
359
359
  *children,
360
- language: Optional[
361
- Union[
362
- Literal[
363
- "abap",
364
- "actionscript-3",
365
- "ada",
366
- "angular-html",
367
- "angular-ts",
368
- "apache",
369
- "apex",
370
- "apl",
371
- "applescript",
372
- "ara",
373
- "asciidoc",
374
- "asm",
375
- "astro",
376
- "awk",
377
- "ballerina",
378
- "bat",
379
- "beancount",
380
- "berry",
381
- "bibtex",
382
- "bicep",
383
- "blade",
384
- "c",
385
- "cadence",
386
- "clarity",
387
- "clojure",
388
- "cmake",
389
- "cobol",
390
- "codeowners",
391
- "codeql",
392
- "coffee",
393
- "common-lisp",
394
- "coq",
395
- "cpp",
396
- "crystal",
397
- "csharp",
398
- "css",
399
- "csv",
400
- "cue",
401
- "cypher",
402
- "d",
403
- "dart",
404
- "dax",
405
- "desktop",
406
- "diff",
407
- "docker",
408
- "dotenv",
409
- "dream-maker",
410
- "edge",
411
- "elixir",
412
- "elm",
413
- "emacs-lisp",
414
- "erb",
415
- "erlang",
416
- "fennel",
417
- "fish",
418
- "fluent",
419
- "fortran-fixed-form",
420
- "fortran-free-form",
421
- "fsharp",
422
- "gdresource",
423
- "gdscript",
424
- "gdshader",
425
- "genie",
426
- "gherkin",
427
- "git-commit",
428
- "git-rebase",
429
- "gleam",
430
- "glimmer-js",
431
- "glimmer-ts",
432
- "glsl",
433
- "gnuplot",
434
- "go",
435
- "graphql",
436
- "groovy",
437
- "hack",
438
- "haml",
439
- "handlebars",
440
- "haskell",
441
- "haxe",
442
- "hcl",
443
- "hjson",
444
- "hlsl",
445
- "html",
446
- "html-derivative",
447
- "http",
448
- "hxml",
449
- "hy",
450
- "imba",
451
- "ini",
452
- "java",
453
- "javascript",
454
- "jinja",
455
- "jison",
456
- "json",
457
- "json5",
458
- "jsonc",
459
- "jsonl",
460
- "jsonnet",
461
- "jssm",
462
- "jsx",
463
- "julia",
464
- "kotlin",
465
- "kusto",
466
- "latex",
467
- "lean",
468
- "less",
469
- "liquid",
470
- "log",
471
- "logo",
472
- "lua",
473
- "luau",
474
- "make",
475
- "markdown",
476
- "marko",
477
- "matlab",
478
- "mdc",
479
- "mdx",
480
- "mermaid",
481
- "mojo",
482
- "move",
483
- "narrat",
484
- "nextflow",
485
- "nginx",
486
- "nim",
487
- "nix",
488
- "nushell",
489
- "objective-c",
490
- "objective-cpp",
491
- "ocaml",
492
- "pascal",
493
- "perl",
494
- "php",
495
- "plain",
496
- "plsql",
497
- "po",
498
- "postcss",
499
- "powerquery",
500
- "powershell",
501
- "prisma",
502
- "prolog",
503
- "proto",
504
- "pug",
505
- "puppet",
506
- "purescript",
507
- "python",
508
- "qml",
509
- "qmldir",
510
- "qss",
511
- "r",
512
- "racket",
513
- "raku",
514
- "razor",
515
- "reg",
516
- "regexp",
517
- "rel",
518
- "riscv",
519
- "rst",
520
- "ruby",
521
- "rust",
522
- "sas",
523
- "sass",
524
- "scala",
525
- "scheme",
526
- "scss",
527
- "shaderlab",
528
- "shellscript",
529
- "shellsession",
530
- "smalltalk",
531
- "solidity",
532
- "soy",
533
- "sparql",
534
- "splunk",
535
- "sql",
536
- "ssh-config",
537
- "stata",
538
- "stylus",
539
- "svelte",
540
- "swift",
541
- "system-verilog",
542
- "systemd",
543
- "tasl",
544
- "tcl",
545
- "templ",
546
- "terraform",
547
- "tex",
548
- "toml",
549
- "ts-tags",
550
- "tsv",
551
- "tsx",
552
- "turtle",
553
- "twig",
554
- "typescript",
555
- "typespec",
556
- "typst",
557
- "v",
558
- "vala",
559
- "vb",
560
- "verilog",
561
- "vhdl",
562
- "viml",
563
- "vue",
564
- "vue-html",
565
- "vyper",
566
- "wasm",
567
- "wenyan",
568
- "wgsl",
569
- "wikitext",
570
- "wolfram",
571
- "xml",
572
- "xsl",
573
- "yaml",
574
- "zenscript",
575
- "zig",
576
- ],
577
- Var[
578
- Literal[
579
- "abap",
580
- "actionscript-3",
581
- "ada",
582
- "angular-html",
583
- "angular-ts",
584
- "apache",
585
- "apex",
586
- "apl",
587
- "applescript",
588
- "ara",
589
- "asciidoc",
590
- "asm",
591
- "astro",
592
- "awk",
593
- "ballerina",
594
- "bat",
595
- "beancount",
596
- "berry",
597
- "bibtex",
598
- "bicep",
599
- "blade",
600
- "c",
601
- "cadence",
602
- "clarity",
603
- "clojure",
604
- "cmake",
605
- "cobol",
606
- "codeowners",
607
- "codeql",
608
- "coffee",
609
- "common-lisp",
610
- "coq",
611
- "cpp",
612
- "crystal",
613
- "csharp",
614
- "css",
615
- "csv",
616
- "cue",
617
- "cypher",
618
- "d",
619
- "dart",
620
- "dax",
621
- "desktop",
622
- "diff",
623
- "docker",
624
- "dotenv",
625
- "dream-maker",
626
- "edge",
627
- "elixir",
628
- "elm",
629
- "emacs-lisp",
630
- "erb",
631
- "erlang",
632
- "fennel",
633
- "fish",
634
- "fluent",
635
- "fortran-fixed-form",
636
- "fortran-free-form",
637
- "fsharp",
638
- "gdresource",
639
- "gdscript",
640
- "gdshader",
641
- "genie",
642
- "gherkin",
643
- "git-commit",
644
- "git-rebase",
645
- "gleam",
646
- "glimmer-js",
647
- "glimmer-ts",
648
- "glsl",
649
- "gnuplot",
650
- "go",
651
- "graphql",
652
- "groovy",
653
- "hack",
654
- "haml",
655
- "handlebars",
656
- "haskell",
657
- "haxe",
658
- "hcl",
659
- "hjson",
660
- "hlsl",
661
- "html",
662
- "html-derivative",
663
- "http",
664
- "hxml",
665
- "hy",
666
- "imba",
667
- "ini",
668
- "java",
669
- "javascript",
670
- "jinja",
671
- "jison",
672
- "json",
673
- "json5",
674
- "jsonc",
675
- "jsonl",
676
- "jsonnet",
677
- "jssm",
678
- "jsx",
679
- "julia",
680
- "kotlin",
681
- "kusto",
682
- "latex",
683
- "lean",
684
- "less",
685
- "liquid",
686
- "log",
687
- "logo",
688
- "lua",
689
- "luau",
690
- "make",
691
- "markdown",
692
- "marko",
693
- "matlab",
694
- "mdc",
695
- "mdx",
696
- "mermaid",
697
- "mojo",
698
- "move",
699
- "narrat",
700
- "nextflow",
701
- "nginx",
702
- "nim",
703
- "nix",
704
- "nushell",
705
- "objective-c",
706
- "objective-cpp",
707
- "ocaml",
708
- "pascal",
709
- "perl",
710
- "php",
711
- "plain",
712
- "plsql",
713
- "po",
714
- "postcss",
715
- "powerquery",
716
- "powershell",
717
- "prisma",
718
- "prolog",
719
- "proto",
720
- "pug",
721
- "puppet",
722
- "purescript",
723
- "python",
724
- "qml",
725
- "qmldir",
726
- "qss",
727
- "r",
728
- "racket",
729
- "raku",
730
- "razor",
731
- "reg",
732
- "regexp",
733
- "rel",
734
- "riscv",
735
- "rst",
736
- "ruby",
737
- "rust",
738
- "sas",
739
- "sass",
740
- "scala",
741
- "scheme",
742
- "scss",
743
- "shaderlab",
744
- "shellscript",
745
- "shellsession",
746
- "smalltalk",
747
- "solidity",
748
- "soy",
749
- "sparql",
750
- "splunk",
751
- "sql",
752
- "ssh-config",
753
- "stata",
754
- "stylus",
755
- "svelte",
756
- "swift",
757
- "system-verilog",
758
- "systemd",
759
- "tasl",
760
- "tcl",
761
- "templ",
762
- "terraform",
763
- "tex",
764
- "toml",
765
- "ts-tags",
766
- "tsv",
767
- "tsx",
768
- "turtle",
769
- "twig",
770
- "typescript",
771
- "typespec",
772
- "typst",
773
- "v",
774
- "vala",
775
- "vb",
776
- "verilog",
777
- "vhdl",
778
- "viml",
779
- "vue",
780
- "vue-html",
781
- "vyper",
782
- "wasm",
783
- "wenyan",
784
- "wgsl",
785
- "wikitext",
786
- "wolfram",
787
- "xml",
788
- "xsl",
789
- "yaml",
790
- "zenscript",
791
- "zig",
792
- ]
793
- ],
360
+ language: Literal[
361
+ "abap",
362
+ "actionscript-3",
363
+ "ada",
364
+ "angular-html",
365
+ "angular-ts",
366
+ "apache",
367
+ "apex",
368
+ "apl",
369
+ "applescript",
370
+ "ara",
371
+ "asciidoc",
372
+ "asm",
373
+ "astro",
374
+ "awk",
375
+ "ballerina",
376
+ "bat",
377
+ "beancount",
378
+ "berry",
379
+ "bibtex",
380
+ "bicep",
381
+ "blade",
382
+ "c",
383
+ "cadence",
384
+ "clarity",
385
+ "clojure",
386
+ "cmake",
387
+ "cobol",
388
+ "codeowners",
389
+ "codeql",
390
+ "coffee",
391
+ "common-lisp",
392
+ "coq",
393
+ "cpp",
394
+ "crystal",
395
+ "csharp",
396
+ "css",
397
+ "csv",
398
+ "cue",
399
+ "cypher",
400
+ "d",
401
+ "dart",
402
+ "dax",
403
+ "desktop",
404
+ "diff",
405
+ "docker",
406
+ "dotenv",
407
+ "dream-maker",
408
+ "edge",
409
+ "elixir",
410
+ "elm",
411
+ "emacs-lisp",
412
+ "erb",
413
+ "erlang",
414
+ "fennel",
415
+ "fish",
416
+ "fluent",
417
+ "fortran-fixed-form",
418
+ "fortran-free-form",
419
+ "fsharp",
420
+ "gdresource",
421
+ "gdscript",
422
+ "gdshader",
423
+ "genie",
424
+ "gherkin",
425
+ "git-commit",
426
+ "git-rebase",
427
+ "gleam",
428
+ "glimmer-js",
429
+ "glimmer-ts",
430
+ "glsl",
431
+ "gnuplot",
432
+ "go",
433
+ "graphql",
434
+ "groovy",
435
+ "hack",
436
+ "haml",
437
+ "handlebars",
438
+ "haskell",
439
+ "haxe",
440
+ "hcl",
441
+ "hjson",
442
+ "hlsl",
443
+ "html",
444
+ "html-derivative",
445
+ "http",
446
+ "hxml",
447
+ "hy",
448
+ "imba",
449
+ "ini",
450
+ "java",
451
+ "javascript",
452
+ "jinja",
453
+ "jison",
454
+ "json",
455
+ "json5",
456
+ "jsonc",
457
+ "jsonl",
458
+ "jsonnet",
459
+ "jssm",
460
+ "jsx",
461
+ "julia",
462
+ "kotlin",
463
+ "kusto",
464
+ "latex",
465
+ "lean",
466
+ "less",
467
+ "liquid",
468
+ "log",
469
+ "logo",
470
+ "lua",
471
+ "luau",
472
+ "make",
473
+ "markdown",
474
+ "marko",
475
+ "matlab",
476
+ "mdc",
477
+ "mdx",
478
+ "mermaid",
479
+ "mojo",
480
+ "move",
481
+ "narrat",
482
+ "nextflow",
483
+ "nginx",
484
+ "nim",
485
+ "nix",
486
+ "nushell",
487
+ "objective-c",
488
+ "objective-cpp",
489
+ "ocaml",
490
+ "pascal",
491
+ "perl",
492
+ "php",
493
+ "plain",
494
+ "plsql",
495
+ "po",
496
+ "postcss",
497
+ "powerquery",
498
+ "powershell",
499
+ "prisma",
500
+ "prolog",
501
+ "proto",
502
+ "pug",
503
+ "puppet",
504
+ "purescript",
505
+ "python",
506
+ "qml",
507
+ "qmldir",
508
+ "qss",
509
+ "r",
510
+ "racket",
511
+ "raku",
512
+ "razor",
513
+ "reg",
514
+ "regexp",
515
+ "rel",
516
+ "riscv",
517
+ "rst",
518
+ "ruby",
519
+ "rust",
520
+ "sas",
521
+ "sass",
522
+ "scala",
523
+ "scheme",
524
+ "scss",
525
+ "shaderlab",
526
+ "shellscript",
527
+ "shellsession",
528
+ "smalltalk",
529
+ "solidity",
530
+ "soy",
531
+ "sparql",
532
+ "splunk",
533
+ "sql",
534
+ "ssh-config",
535
+ "stata",
536
+ "stylus",
537
+ "svelte",
538
+ "swift",
539
+ "system-verilog",
540
+ "systemd",
541
+ "tasl",
542
+ "tcl",
543
+ "templ",
544
+ "terraform",
545
+ "tex",
546
+ "toml",
547
+ "ts-tags",
548
+ "tsv",
549
+ "tsx",
550
+ "turtle",
551
+ "twig",
552
+ "typescript",
553
+ "typespec",
554
+ "typst",
555
+ "v",
556
+ "vala",
557
+ "vb",
558
+ "verilog",
559
+ "vhdl",
560
+ "viml",
561
+ "vue",
562
+ "vue-html",
563
+ "vyper",
564
+ "wasm",
565
+ "wenyan",
566
+ "wgsl",
567
+ "wikitext",
568
+ "wolfram",
569
+ "xml",
570
+ "xsl",
571
+ "yaml",
572
+ "zenscript",
573
+ "zig",
574
+ ]
575
+ | Var[
576
+ Literal[
577
+ "abap",
578
+ "actionscript-3",
579
+ "ada",
580
+ "angular-html",
581
+ "angular-ts",
582
+ "apache",
583
+ "apex",
584
+ "apl",
585
+ "applescript",
586
+ "ara",
587
+ "asciidoc",
588
+ "asm",
589
+ "astro",
590
+ "awk",
591
+ "ballerina",
592
+ "bat",
593
+ "beancount",
594
+ "berry",
595
+ "bibtex",
596
+ "bicep",
597
+ "blade",
598
+ "c",
599
+ "cadence",
600
+ "clarity",
601
+ "clojure",
602
+ "cmake",
603
+ "cobol",
604
+ "codeowners",
605
+ "codeql",
606
+ "coffee",
607
+ "common-lisp",
608
+ "coq",
609
+ "cpp",
610
+ "crystal",
611
+ "csharp",
612
+ "css",
613
+ "csv",
614
+ "cue",
615
+ "cypher",
616
+ "d",
617
+ "dart",
618
+ "dax",
619
+ "desktop",
620
+ "diff",
621
+ "docker",
622
+ "dotenv",
623
+ "dream-maker",
624
+ "edge",
625
+ "elixir",
626
+ "elm",
627
+ "emacs-lisp",
628
+ "erb",
629
+ "erlang",
630
+ "fennel",
631
+ "fish",
632
+ "fluent",
633
+ "fortran-fixed-form",
634
+ "fortran-free-form",
635
+ "fsharp",
636
+ "gdresource",
637
+ "gdscript",
638
+ "gdshader",
639
+ "genie",
640
+ "gherkin",
641
+ "git-commit",
642
+ "git-rebase",
643
+ "gleam",
644
+ "glimmer-js",
645
+ "glimmer-ts",
646
+ "glsl",
647
+ "gnuplot",
648
+ "go",
649
+ "graphql",
650
+ "groovy",
651
+ "hack",
652
+ "haml",
653
+ "handlebars",
654
+ "haskell",
655
+ "haxe",
656
+ "hcl",
657
+ "hjson",
658
+ "hlsl",
659
+ "html",
660
+ "html-derivative",
661
+ "http",
662
+ "hxml",
663
+ "hy",
664
+ "imba",
665
+ "ini",
666
+ "java",
667
+ "javascript",
668
+ "jinja",
669
+ "jison",
670
+ "json",
671
+ "json5",
672
+ "jsonc",
673
+ "jsonl",
674
+ "jsonnet",
675
+ "jssm",
676
+ "jsx",
677
+ "julia",
678
+ "kotlin",
679
+ "kusto",
680
+ "latex",
681
+ "lean",
682
+ "less",
683
+ "liquid",
684
+ "log",
685
+ "logo",
686
+ "lua",
687
+ "luau",
688
+ "make",
689
+ "markdown",
690
+ "marko",
691
+ "matlab",
692
+ "mdc",
693
+ "mdx",
694
+ "mermaid",
695
+ "mojo",
696
+ "move",
697
+ "narrat",
698
+ "nextflow",
699
+ "nginx",
700
+ "nim",
701
+ "nix",
702
+ "nushell",
703
+ "objective-c",
704
+ "objective-cpp",
705
+ "ocaml",
706
+ "pascal",
707
+ "perl",
708
+ "php",
709
+ "plain",
710
+ "plsql",
711
+ "po",
712
+ "postcss",
713
+ "powerquery",
714
+ "powershell",
715
+ "prisma",
716
+ "prolog",
717
+ "proto",
718
+ "pug",
719
+ "puppet",
720
+ "purescript",
721
+ "python",
722
+ "qml",
723
+ "qmldir",
724
+ "qss",
725
+ "r",
726
+ "racket",
727
+ "raku",
728
+ "razor",
729
+ "reg",
730
+ "regexp",
731
+ "rel",
732
+ "riscv",
733
+ "rst",
734
+ "ruby",
735
+ "rust",
736
+ "sas",
737
+ "sass",
738
+ "scala",
739
+ "scheme",
740
+ "scss",
741
+ "shaderlab",
742
+ "shellscript",
743
+ "shellsession",
744
+ "smalltalk",
745
+ "solidity",
746
+ "soy",
747
+ "sparql",
748
+ "splunk",
749
+ "sql",
750
+ "ssh-config",
751
+ "stata",
752
+ "stylus",
753
+ "svelte",
754
+ "swift",
755
+ "system-verilog",
756
+ "systemd",
757
+ "tasl",
758
+ "tcl",
759
+ "templ",
760
+ "terraform",
761
+ "tex",
762
+ "toml",
763
+ "ts-tags",
764
+ "tsv",
765
+ "tsx",
766
+ "turtle",
767
+ "twig",
768
+ "typescript",
769
+ "typespec",
770
+ "typst",
771
+ "v",
772
+ "vala",
773
+ "vb",
774
+ "verilog",
775
+ "vhdl",
776
+ "viml",
777
+ "vue",
778
+ "vue-html",
779
+ "vyper",
780
+ "wasm",
781
+ "wenyan",
782
+ "wgsl",
783
+ "wikitext",
784
+ "wolfram",
785
+ "xml",
786
+ "xsl",
787
+ "yaml",
788
+ "zenscript",
789
+ "zig",
794
790
  ]
795
- ] = None,
796
- theme: Optional[
797
- Union[
798
- Literal[
799
- "andromeeda",
800
- "aurora-x",
801
- "ayu-dark",
802
- "catppuccin-frappe",
803
- "catppuccin-latte",
804
- "catppuccin-macchiato",
805
- "catppuccin-mocha",
806
- "dark-plus",
807
- "dracula",
808
- "dracula-soft",
809
- "everforest-dark",
810
- "everforest-light",
811
- "github-dark",
812
- "github-dark-default",
813
- "github-dark-dimmed",
814
- "github-dark-high-contrast",
815
- "github-light",
816
- "github-light-default",
817
- "github-light-high-contrast",
818
- "houston",
819
- "laserwave",
820
- "light-plus",
821
- "material-theme",
822
- "material-theme-darker",
823
- "material-theme-lighter",
824
- "material-theme-ocean",
825
- "material-theme-palenight",
826
- "min-dark",
827
- "min-light",
828
- "monokai",
829
- "night-owl",
830
- "nord",
831
- "one-dark-pro",
832
- "one-light",
833
- "plastic",
834
- "poimandres",
835
- "red",
836
- "rose-pine",
837
- "rose-pine-dawn",
838
- "rose-pine-moon",
839
- "slack-dark",
840
- "slack-ochin",
841
- "snazzy-light",
842
- "solarized-dark",
843
- "solarized-light",
844
- "synthwave-84",
845
- "tokyo-night",
846
- "vesper",
847
- "vitesse-black",
848
- "vitesse-dark",
849
- "vitesse-light",
850
- ],
851
- Var[
852
- Literal[
853
- "andromeeda",
854
- "aurora-x",
855
- "ayu-dark",
856
- "catppuccin-frappe",
857
- "catppuccin-latte",
858
- "catppuccin-macchiato",
859
- "catppuccin-mocha",
860
- "dark-plus",
861
- "dracula",
862
- "dracula-soft",
863
- "everforest-dark",
864
- "everforest-light",
865
- "github-dark",
866
- "github-dark-default",
867
- "github-dark-dimmed",
868
- "github-dark-high-contrast",
869
- "github-light",
870
- "github-light-default",
871
- "github-light-high-contrast",
872
- "houston",
873
- "laserwave",
874
- "light-plus",
875
- "material-theme",
876
- "material-theme-darker",
877
- "material-theme-lighter",
878
- "material-theme-ocean",
879
- "material-theme-palenight",
880
- "min-dark",
881
- "min-light",
882
- "monokai",
883
- "night-owl",
884
- "nord",
885
- "one-dark-pro",
886
- "one-light",
887
- "plastic",
888
- "poimandres",
889
- "red",
890
- "rose-pine",
891
- "rose-pine-dawn",
892
- "rose-pine-moon",
893
- "slack-dark",
894
- "slack-ochin",
895
- "snazzy-light",
896
- "solarized-dark",
897
- "solarized-light",
898
- "synthwave-84",
899
- "tokyo-night",
900
- "vesper",
901
- "vitesse-black",
902
- "vitesse-dark",
903
- "vitesse-light",
904
- ]
905
- ],
791
+ ]
792
+ | None = None,
793
+ theme: Literal[
794
+ "andromeeda",
795
+ "aurora-x",
796
+ "ayu-dark",
797
+ "catppuccin-frappe",
798
+ "catppuccin-latte",
799
+ "catppuccin-macchiato",
800
+ "catppuccin-mocha",
801
+ "dark-plus",
802
+ "dracula",
803
+ "dracula-soft",
804
+ "everforest-dark",
805
+ "everforest-light",
806
+ "github-dark",
807
+ "github-dark-default",
808
+ "github-dark-dimmed",
809
+ "github-dark-high-contrast",
810
+ "github-light",
811
+ "github-light-default",
812
+ "github-light-high-contrast",
813
+ "houston",
814
+ "laserwave",
815
+ "light-plus",
816
+ "material-theme",
817
+ "material-theme-darker",
818
+ "material-theme-lighter",
819
+ "material-theme-ocean",
820
+ "material-theme-palenight",
821
+ "min-dark",
822
+ "min-light",
823
+ "monokai",
824
+ "night-owl",
825
+ "nord",
826
+ "one-dark-pro",
827
+ "one-light",
828
+ "plastic",
829
+ "poimandres",
830
+ "red",
831
+ "rose-pine",
832
+ "rose-pine-dawn",
833
+ "rose-pine-moon",
834
+ "slack-dark",
835
+ "slack-ochin",
836
+ "snazzy-light",
837
+ "solarized-dark",
838
+ "solarized-light",
839
+ "synthwave-84",
840
+ "tokyo-night",
841
+ "vesper",
842
+ "vitesse-black",
843
+ "vitesse-dark",
844
+ "vitesse-light",
845
+ ]
846
+ | Var[
847
+ Literal[
848
+ "andromeeda",
849
+ "aurora-x",
850
+ "ayu-dark",
851
+ "catppuccin-frappe",
852
+ "catppuccin-latte",
853
+ "catppuccin-macchiato",
854
+ "catppuccin-mocha",
855
+ "dark-plus",
856
+ "dracula",
857
+ "dracula-soft",
858
+ "everforest-dark",
859
+ "everforest-light",
860
+ "github-dark",
861
+ "github-dark-default",
862
+ "github-dark-dimmed",
863
+ "github-dark-high-contrast",
864
+ "github-light",
865
+ "github-light-default",
866
+ "github-light-high-contrast",
867
+ "houston",
868
+ "laserwave",
869
+ "light-plus",
870
+ "material-theme",
871
+ "material-theme-darker",
872
+ "material-theme-lighter",
873
+ "material-theme-ocean",
874
+ "material-theme-palenight",
875
+ "min-dark",
876
+ "min-light",
877
+ "monokai",
878
+ "night-owl",
879
+ "nord",
880
+ "one-dark-pro",
881
+ "one-light",
882
+ "plastic",
883
+ "poimandres",
884
+ "red",
885
+ "rose-pine",
886
+ "rose-pine-dawn",
887
+ "rose-pine-moon",
888
+ "slack-dark",
889
+ "slack-ochin",
890
+ "snazzy-light",
891
+ "solarized-dark",
892
+ "solarized-light",
893
+ "synthwave-84",
894
+ "tokyo-night",
895
+ "vesper",
896
+ "vitesse-black",
897
+ "vitesse-dark",
898
+ "vitesse-light",
906
899
  ]
907
- ] = None,
908
- themes: Optional[
909
- Union[
910
- Var[Union[dict[str, str], list[dict[str, Any]]]],
911
- dict[str, str],
912
- list[dict[str, Any]],
913
- ]
914
- ] = None,
915
- code: Optional[Union[Var[str], str]] = None,
916
- transformers: Optional[
917
- Union[
918
- Var[list[Union[ShikiBaseTransformers, dict[str, Any]]]],
919
- list[Union[ShikiBaseTransformers, dict[str, Any]]],
920
- ]
921
- ] = None,
922
- decorations: Optional[
923
- Union[Var[list[ShikiDecorations]], list[ShikiDecorations]]
924
- ] = None,
925
- style: Optional[Style] = None,
926
- key: Optional[Any] = None,
927
- id: Optional[Any] = None,
928
- class_name: Optional[Any] = None,
929
- autofocus: Optional[bool] = None,
930
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
900
+ ]
901
+ | None = None,
902
+ themes: Var[dict[str, str] | list[dict[str, Any]]]
903
+ | dict[str, str]
904
+ | list[dict[str, Any]]
905
+ | None = None,
906
+ code: Var[str] | str | None = None,
907
+ transformers: Var[list[ShikiBaseTransformers | dict[str, Any]]]
908
+ | list[ShikiBaseTransformers | dict[str, Any]]
909
+ | None = None,
910
+ decorations: Var[list[ShikiDecorations]] | list[ShikiDecorations] | None = None,
911
+ style: Style | None = None,
912
+ key: Any | None = None,
913
+ id: Any | None = None,
914
+ class_name: Any | None = None,
915
+ autofocus: bool | None = None,
916
+ custom_attrs: dict[str, Var | Any] | None = None,
931
917
  on_blur: Optional[EventType[()]] = None,
932
918
  on_click: Optional[EventType[()]] = None,
933
919
  on_context_menu: Optional[EventType[()]] = None,
@@ -980,581 +966,567 @@ class ShikiHighLevelCodeBlock(ShikiCodeBlock):
980
966
  def create( # type: ignore
981
967
  cls,
982
968
  *children,
983
- use_transformers: Optional[Union[Var[bool], bool]] = None,
984
- show_line_numbers: Optional[Union[Var[bool], bool]] = None,
985
- can_copy: Optional[bool] = None,
986
- copy_button: Optional[Union[Component, bool]] = None,
987
- language: Optional[
988
- Union[
989
- Literal[
990
- "abap",
991
- "actionscript-3",
992
- "ada",
993
- "angular-html",
994
- "angular-ts",
995
- "apache",
996
- "apex",
997
- "apl",
998
- "applescript",
999
- "ara",
1000
- "asciidoc",
1001
- "asm",
1002
- "astro",
1003
- "awk",
1004
- "ballerina",
1005
- "bat",
1006
- "beancount",
1007
- "berry",
1008
- "bibtex",
1009
- "bicep",
1010
- "blade",
1011
- "c",
1012
- "cadence",
1013
- "clarity",
1014
- "clojure",
1015
- "cmake",
1016
- "cobol",
1017
- "codeowners",
1018
- "codeql",
1019
- "coffee",
1020
- "common-lisp",
1021
- "coq",
1022
- "cpp",
1023
- "crystal",
1024
- "csharp",
1025
- "css",
1026
- "csv",
1027
- "cue",
1028
- "cypher",
1029
- "d",
1030
- "dart",
1031
- "dax",
1032
- "desktop",
1033
- "diff",
1034
- "docker",
1035
- "dotenv",
1036
- "dream-maker",
1037
- "edge",
1038
- "elixir",
1039
- "elm",
1040
- "emacs-lisp",
1041
- "erb",
1042
- "erlang",
1043
- "fennel",
1044
- "fish",
1045
- "fluent",
1046
- "fortran-fixed-form",
1047
- "fortran-free-form",
1048
- "fsharp",
1049
- "gdresource",
1050
- "gdscript",
1051
- "gdshader",
1052
- "genie",
1053
- "gherkin",
1054
- "git-commit",
1055
- "git-rebase",
1056
- "gleam",
1057
- "glimmer-js",
1058
- "glimmer-ts",
1059
- "glsl",
1060
- "gnuplot",
1061
- "go",
1062
- "graphql",
1063
- "groovy",
1064
- "hack",
1065
- "haml",
1066
- "handlebars",
1067
- "haskell",
1068
- "haxe",
1069
- "hcl",
1070
- "hjson",
1071
- "hlsl",
1072
- "html",
1073
- "html-derivative",
1074
- "http",
1075
- "hxml",
1076
- "hy",
1077
- "imba",
1078
- "ini",
1079
- "java",
1080
- "javascript",
1081
- "jinja",
1082
- "jison",
1083
- "json",
1084
- "json5",
1085
- "jsonc",
1086
- "jsonl",
1087
- "jsonnet",
1088
- "jssm",
1089
- "jsx",
1090
- "julia",
1091
- "kotlin",
1092
- "kusto",
1093
- "latex",
1094
- "lean",
1095
- "less",
1096
- "liquid",
1097
- "log",
1098
- "logo",
1099
- "lua",
1100
- "luau",
1101
- "make",
1102
- "markdown",
1103
- "marko",
1104
- "matlab",
1105
- "mdc",
1106
- "mdx",
1107
- "mermaid",
1108
- "mojo",
1109
- "move",
1110
- "narrat",
1111
- "nextflow",
1112
- "nginx",
1113
- "nim",
1114
- "nix",
1115
- "nushell",
1116
- "objective-c",
1117
- "objective-cpp",
1118
- "ocaml",
1119
- "pascal",
1120
- "perl",
1121
- "php",
1122
- "plain",
1123
- "plsql",
1124
- "po",
1125
- "postcss",
1126
- "powerquery",
1127
- "powershell",
1128
- "prisma",
1129
- "prolog",
1130
- "proto",
1131
- "pug",
1132
- "puppet",
1133
- "purescript",
1134
- "python",
1135
- "qml",
1136
- "qmldir",
1137
- "qss",
1138
- "r",
1139
- "racket",
1140
- "raku",
1141
- "razor",
1142
- "reg",
1143
- "regexp",
1144
- "rel",
1145
- "riscv",
1146
- "rst",
1147
- "ruby",
1148
- "rust",
1149
- "sas",
1150
- "sass",
1151
- "scala",
1152
- "scheme",
1153
- "scss",
1154
- "shaderlab",
1155
- "shellscript",
1156
- "shellsession",
1157
- "smalltalk",
1158
- "solidity",
1159
- "soy",
1160
- "sparql",
1161
- "splunk",
1162
- "sql",
1163
- "ssh-config",
1164
- "stata",
1165
- "stylus",
1166
- "svelte",
1167
- "swift",
1168
- "system-verilog",
1169
- "systemd",
1170
- "tasl",
1171
- "tcl",
1172
- "templ",
1173
- "terraform",
1174
- "tex",
1175
- "toml",
1176
- "ts-tags",
1177
- "tsv",
1178
- "tsx",
1179
- "turtle",
1180
- "twig",
1181
- "typescript",
1182
- "typespec",
1183
- "typst",
1184
- "v",
1185
- "vala",
1186
- "vb",
1187
- "verilog",
1188
- "vhdl",
1189
- "viml",
1190
- "vue",
1191
- "vue-html",
1192
- "vyper",
1193
- "wasm",
1194
- "wenyan",
1195
- "wgsl",
1196
- "wikitext",
1197
- "wolfram",
1198
- "xml",
1199
- "xsl",
1200
- "yaml",
1201
- "zenscript",
1202
- "zig",
1203
- ],
1204
- Var[
1205
- Literal[
1206
- "abap",
1207
- "actionscript-3",
1208
- "ada",
1209
- "angular-html",
1210
- "angular-ts",
1211
- "apache",
1212
- "apex",
1213
- "apl",
1214
- "applescript",
1215
- "ara",
1216
- "asciidoc",
1217
- "asm",
1218
- "astro",
1219
- "awk",
1220
- "ballerina",
1221
- "bat",
1222
- "beancount",
1223
- "berry",
1224
- "bibtex",
1225
- "bicep",
1226
- "blade",
1227
- "c",
1228
- "cadence",
1229
- "clarity",
1230
- "clojure",
1231
- "cmake",
1232
- "cobol",
1233
- "codeowners",
1234
- "codeql",
1235
- "coffee",
1236
- "common-lisp",
1237
- "coq",
1238
- "cpp",
1239
- "crystal",
1240
- "csharp",
1241
- "css",
1242
- "csv",
1243
- "cue",
1244
- "cypher",
1245
- "d",
1246
- "dart",
1247
- "dax",
1248
- "desktop",
1249
- "diff",
1250
- "docker",
1251
- "dotenv",
1252
- "dream-maker",
1253
- "edge",
1254
- "elixir",
1255
- "elm",
1256
- "emacs-lisp",
1257
- "erb",
1258
- "erlang",
1259
- "fennel",
1260
- "fish",
1261
- "fluent",
1262
- "fortran-fixed-form",
1263
- "fortran-free-form",
1264
- "fsharp",
1265
- "gdresource",
1266
- "gdscript",
1267
- "gdshader",
1268
- "genie",
1269
- "gherkin",
1270
- "git-commit",
1271
- "git-rebase",
1272
- "gleam",
1273
- "glimmer-js",
1274
- "glimmer-ts",
1275
- "glsl",
1276
- "gnuplot",
1277
- "go",
1278
- "graphql",
1279
- "groovy",
1280
- "hack",
1281
- "haml",
1282
- "handlebars",
1283
- "haskell",
1284
- "haxe",
1285
- "hcl",
1286
- "hjson",
1287
- "hlsl",
1288
- "html",
1289
- "html-derivative",
1290
- "http",
1291
- "hxml",
1292
- "hy",
1293
- "imba",
1294
- "ini",
1295
- "java",
1296
- "javascript",
1297
- "jinja",
1298
- "jison",
1299
- "json",
1300
- "json5",
1301
- "jsonc",
1302
- "jsonl",
1303
- "jsonnet",
1304
- "jssm",
1305
- "jsx",
1306
- "julia",
1307
- "kotlin",
1308
- "kusto",
1309
- "latex",
1310
- "lean",
1311
- "less",
1312
- "liquid",
1313
- "log",
1314
- "logo",
1315
- "lua",
1316
- "luau",
1317
- "make",
1318
- "markdown",
1319
- "marko",
1320
- "matlab",
1321
- "mdc",
1322
- "mdx",
1323
- "mermaid",
1324
- "mojo",
1325
- "move",
1326
- "narrat",
1327
- "nextflow",
1328
- "nginx",
1329
- "nim",
1330
- "nix",
1331
- "nushell",
1332
- "objective-c",
1333
- "objective-cpp",
1334
- "ocaml",
1335
- "pascal",
1336
- "perl",
1337
- "php",
1338
- "plain",
1339
- "plsql",
1340
- "po",
1341
- "postcss",
1342
- "powerquery",
1343
- "powershell",
1344
- "prisma",
1345
- "prolog",
1346
- "proto",
1347
- "pug",
1348
- "puppet",
1349
- "purescript",
1350
- "python",
1351
- "qml",
1352
- "qmldir",
1353
- "qss",
1354
- "r",
1355
- "racket",
1356
- "raku",
1357
- "razor",
1358
- "reg",
1359
- "regexp",
1360
- "rel",
1361
- "riscv",
1362
- "rst",
1363
- "ruby",
1364
- "rust",
1365
- "sas",
1366
- "sass",
1367
- "scala",
1368
- "scheme",
1369
- "scss",
1370
- "shaderlab",
1371
- "shellscript",
1372
- "shellsession",
1373
- "smalltalk",
1374
- "solidity",
1375
- "soy",
1376
- "sparql",
1377
- "splunk",
1378
- "sql",
1379
- "ssh-config",
1380
- "stata",
1381
- "stylus",
1382
- "svelte",
1383
- "swift",
1384
- "system-verilog",
1385
- "systemd",
1386
- "tasl",
1387
- "tcl",
1388
- "templ",
1389
- "terraform",
1390
- "tex",
1391
- "toml",
1392
- "ts-tags",
1393
- "tsv",
1394
- "tsx",
1395
- "turtle",
1396
- "twig",
1397
- "typescript",
1398
- "typespec",
1399
- "typst",
1400
- "v",
1401
- "vala",
1402
- "vb",
1403
- "verilog",
1404
- "vhdl",
1405
- "viml",
1406
- "vue",
1407
- "vue-html",
1408
- "vyper",
1409
- "wasm",
1410
- "wenyan",
1411
- "wgsl",
1412
- "wikitext",
1413
- "wolfram",
1414
- "xml",
1415
- "xsl",
1416
- "yaml",
1417
- "zenscript",
1418
- "zig",
1419
- ]
1420
- ],
1421
- ]
1422
- ] = None,
1423
- theme: Optional[
1424
- Union[
1425
- Literal[
1426
- "andromeeda",
1427
- "aurora-x",
1428
- "ayu-dark",
1429
- "catppuccin-frappe",
1430
- "catppuccin-latte",
1431
- "catppuccin-macchiato",
1432
- "catppuccin-mocha",
1433
- "dark-plus",
1434
- "dracula",
1435
- "dracula-soft",
1436
- "everforest-dark",
1437
- "everforest-light",
1438
- "github-dark",
1439
- "github-dark-default",
1440
- "github-dark-dimmed",
1441
- "github-dark-high-contrast",
1442
- "github-light",
1443
- "github-light-default",
1444
- "github-light-high-contrast",
1445
- "houston",
1446
- "laserwave",
1447
- "light-plus",
1448
- "material-theme",
1449
- "material-theme-darker",
1450
- "material-theme-lighter",
1451
- "material-theme-ocean",
1452
- "material-theme-palenight",
1453
- "min-dark",
1454
- "min-light",
1455
- "monokai",
1456
- "night-owl",
1457
- "nord",
1458
- "one-dark-pro",
1459
- "one-light",
1460
- "plastic",
1461
- "poimandres",
1462
- "red",
1463
- "rose-pine",
1464
- "rose-pine-dawn",
1465
- "rose-pine-moon",
1466
- "slack-dark",
1467
- "slack-ochin",
1468
- "snazzy-light",
1469
- "solarized-dark",
1470
- "solarized-light",
1471
- "synthwave-84",
1472
- "tokyo-night",
1473
- "vesper",
1474
- "vitesse-black",
1475
- "vitesse-dark",
1476
- "vitesse-light",
1477
- ],
1478
- Var[
1479
- Literal[
1480
- "andromeeda",
1481
- "aurora-x",
1482
- "ayu-dark",
1483
- "catppuccin-frappe",
1484
- "catppuccin-latte",
1485
- "catppuccin-macchiato",
1486
- "catppuccin-mocha",
1487
- "dark-plus",
1488
- "dracula",
1489
- "dracula-soft",
1490
- "everforest-dark",
1491
- "everforest-light",
1492
- "github-dark",
1493
- "github-dark-default",
1494
- "github-dark-dimmed",
1495
- "github-dark-high-contrast",
1496
- "github-light",
1497
- "github-light-default",
1498
- "github-light-high-contrast",
1499
- "houston",
1500
- "laserwave",
1501
- "light-plus",
1502
- "material-theme",
1503
- "material-theme-darker",
1504
- "material-theme-lighter",
1505
- "material-theme-ocean",
1506
- "material-theme-palenight",
1507
- "min-dark",
1508
- "min-light",
1509
- "monokai",
1510
- "night-owl",
1511
- "nord",
1512
- "one-dark-pro",
1513
- "one-light",
1514
- "plastic",
1515
- "poimandres",
1516
- "red",
1517
- "rose-pine",
1518
- "rose-pine-dawn",
1519
- "rose-pine-moon",
1520
- "slack-dark",
1521
- "slack-ochin",
1522
- "snazzy-light",
1523
- "solarized-dark",
1524
- "solarized-light",
1525
- "synthwave-84",
1526
- "tokyo-night",
1527
- "vesper",
1528
- "vitesse-black",
1529
- "vitesse-dark",
1530
- "vitesse-light",
1531
- ]
1532
- ],
969
+ use_transformers: Var[bool] | bool | None = None,
970
+ show_line_numbers: Var[bool] | bool | None = None,
971
+ can_copy: bool | None = None,
972
+ copy_button: Component | bool | None = None,
973
+ language: Literal[
974
+ "abap",
975
+ "actionscript-3",
976
+ "ada",
977
+ "angular-html",
978
+ "angular-ts",
979
+ "apache",
980
+ "apex",
981
+ "apl",
982
+ "applescript",
983
+ "ara",
984
+ "asciidoc",
985
+ "asm",
986
+ "astro",
987
+ "awk",
988
+ "ballerina",
989
+ "bat",
990
+ "beancount",
991
+ "berry",
992
+ "bibtex",
993
+ "bicep",
994
+ "blade",
995
+ "c",
996
+ "cadence",
997
+ "clarity",
998
+ "clojure",
999
+ "cmake",
1000
+ "cobol",
1001
+ "codeowners",
1002
+ "codeql",
1003
+ "coffee",
1004
+ "common-lisp",
1005
+ "coq",
1006
+ "cpp",
1007
+ "crystal",
1008
+ "csharp",
1009
+ "css",
1010
+ "csv",
1011
+ "cue",
1012
+ "cypher",
1013
+ "d",
1014
+ "dart",
1015
+ "dax",
1016
+ "desktop",
1017
+ "diff",
1018
+ "docker",
1019
+ "dotenv",
1020
+ "dream-maker",
1021
+ "edge",
1022
+ "elixir",
1023
+ "elm",
1024
+ "emacs-lisp",
1025
+ "erb",
1026
+ "erlang",
1027
+ "fennel",
1028
+ "fish",
1029
+ "fluent",
1030
+ "fortran-fixed-form",
1031
+ "fortran-free-form",
1032
+ "fsharp",
1033
+ "gdresource",
1034
+ "gdscript",
1035
+ "gdshader",
1036
+ "genie",
1037
+ "gherkin",
1038
+ "git-commit",
1039
+ "git-rebase",
1040
+ "gleam",
1041
+ "glimmer-js",
1042
+ "glimmer-ts",
1043
+ "glsl",
1044
+ "gnuplot",
1045
+ "go",
1046
+ "graphql",
1047
+ "groovy",
1048
+ "hack",
1049
+ "haml",
1050
+ "handlebars",
1051
+ "haskell",
1052
+ "haxe",
1053
+ "hcl",
1054
+ "hjson",
1055
+ "hlsl",
1056
+ "html",
1057
+ "html-derivative",
1058
+ "http",
1059
+ "hxml",
1060
+ "hy",
1061
+ "imba",
1062
+ "ini",
1063
+ "java",
1064
+ "javascript",
1065
+ "jinja",
1066
+ "jison",
1067
+ "json",
1068
+ "json5",
1069
+ "jsonc",
1070
+ "jsonl",
1071
+ "jsonnet",
1072
+ "jssm",
1073
+ "jsx",
1074
+ "julia",
1075
+ "kotlin",
1076
+ "kusto",
1077
+ "latex",
1078
+ "lean",
1079
+ "less",
1080
+ "liquid",
1081
+ "log",
1082
+ "logo",
1083
+ "lua",
1084
+ "luau",
1085
+ "make",
1086
+ "markdown",
1087
+ "marko",
1088
+ "matlab",
1089
+ "mdc",
1090
+ "mdx",
1091
+ "mermaid",
1092
+ "mojo",
1093
+ "move",
1094
+ "narrat",
1095
+ "nextflow",
1096
+ "nginx",
1097
+ "nim",
1098
+ "nix",
1099
+ "nushell",
1100
+ "objective-c",
1101
+ "objective-cpp",
1102
+ "ocaml",
1103
+ "pascal",
1104
+ "perl",
1105
+ "php",
1106
+ "plain",
1107
+ "plsql",
1108
+ "po",
1109
+ "postcss",
1110
+ "powerquery",
1111
+ "powershell",
1112
+ "prisma",
1113
+ "prolog",
1114
+ "proto",
1115
+ "pug",
1116
+ "puppet",
1117
+ "purescript",
1118
+ "python",
1119
+ "qml",
1120
+ "qmldir",
1121
+ "qss",
1122
+ "r",
1123
+ "racket",
1124
+ "raku",
1125
+ "razor",
1126
+ "reg",
1127
+ "regexp",
1128
+ "rel",
1129
+ "riscv",
1130
+ "rst",
1131
+ "ruby",
1132
+ "rust",
1133
+ "sas",
1134
+ "sass",
1135
+ "scala",
1136
+ "scheme",
1137
+ "scss",
1138
+ "shaderlab",
1139
+ "shellscript",
1140
+ "shellsession",
1141
+ "smalltalk",
1142
+ "solidity",
1143
+ "soy",
1144
+ "sparql",
1145
+ "splunk",
1146
+ "sql",
1147
+ "ssh-config",
1148
+ "stata",
1149
+ "stylus",
1150
+ "svelte",
1151
+ "swift",
1152
+ "system-verilog",
1153
+ "systemd",
1154
+ "tasl",
1155
+ "tcl",
1156
+ "templ",
1157
+ "terraform",
1158
+ "tex",
1159
+ "toml",
1160
+ "ts-tags",
1161
+ "tsv",
1162
+ "tsx",
1163
+ "turtle",
1164
+ "twig",
1165
+ "typescript",
1166
+ "typespec",
1167
+ "typst",
1168
+ "v",
1169
+ "vala",
1170
+ "vb",
1171
+ "verilog",
1172
+ "vhdl",
1173
+ "viml",
1174
+ "vue",
1175
+ "vue-html",
1176
+ "vyper",
1177
+ "wasm",
1178
+ "wenyan",
1179
+ "wgsl",
1180
+ "wikitext",
1181
+ "wolfram",
1182
+ "xml",
1183
+ "xsl",
1184
+ "yaml",
1185
+ "zenscript",
1186
+ "zig",
1187
+ ]
1188
+ | Var[
1189
+ Literal[
1190
+ "abap",
1191
+ "actionscript-3",
1192
+ "ada",
1193
+ "angular-html",
1194
+ "angular-ts",
1195
+ "apache",
1196
+ "apex",
1197
+ "apl",
1198
+ "applescript",
1199
+ "ara",
1200
+ "asciidoc",
1201
+ "asm",
1202
+ "astro",
1203
+ "awk",
1204
+ "ballerina",
1205
+ "bat",
1206
+ "beancount",
1207
+ "berry",
1208
+ "bibtex",
1209
+ "bicep",
1210
+ "blade",
1211
+ "c",
1212
+ "cadence",
1213
+ "clarity",
1214
+ "clojure",
1215
+ "cmake",
1216
+ "cobol",
1217
+ "codeowners",
1218
+ "codeql",
1219
+ "coffee",
1220
+ "common-lisp",
1221
+ "coq",
1222
+ "cpp",
1223
+ "crystal",
1224
+ "csharp",
1225
+ "css",
1226
+ "csv",
1227
+ "cue",
1228
+ "cypher",
1229
+ "d",
1230
+ "dart",
1231
+ "dax",
1232
+ "desktop",
1233
+ "diff",
1234
+ "docker",
1235
+ "dotenv",
1236
+ "dream-maker",
1237
+ "edge",
1238
+ "elixir",
1239
+ "elm",
1240
+ "emacs-lisp",
1241
+ "erb",
1242
+ "erlang",
1243
+ "fennel",
1244
+ "fish",
1245
+ "fluent",
1246
+ "fortran-fixed-form",
1247
+ "fortran-free-form",
1248
+ "fsharp",
1249
+ "gdresource",
1250
+ "gdscript",
1251
+ "gdshader",
1252
+ "genie",
1253
+ "gherkin",
1254
+ "git-commit",
1255
+ "git-rebase",
1256
+ "gleam",
1257
+ "glimmer-js",
1258
+ "glimmer-ts",
1259
+ "glsl",
1260
+ "gnuplot",
1261
+ "go",
1262
+ "graphql",
1263
+ "groovy",
1264
+ "hack",
1265
+ "haml",
1266
+ "handlebars",
1267
+ "haskell",
1268
+ "haxe",
1269
+ "hcl",
1270
+ "hjson",
1271
+ "hlsl",
1272
+ "html",
1273
+ "html-derivative",
1274
+ "http",
1275
+ "hxml",
1276
+ "hy",
1277
+ "imba",
1278
+ "ini",
1279
+ "java",
1280
+ "javascript",
1281
+ "jinja",
1282
+ "jison",
1283
+ "json",
1284
+ "json5",
1285
+ "jsonc",
1286
+ "jsonl",
1287
+ "jsonnet",
1288
+ "jssm",
1289
+ "jsx",
1290
+ "julia",
1291
+ "kotlin",
1292
+ "kusto",
1293
+ "latex",
1294
+ "lean",
1295
+ "less",
1296
+ "liquid",
1297
+ "log",
1298
+ "logo",
1299
+ "lua",
1300
+ "luau",
1301
+ "make",
1302
+ "markdown",
1303
+ "marko",
1304
+ "matlab",
1305
+ "mdc",
1306
+ "mdx",
1307
+ "mermaid",
1308
+ "mojo",
1309
+ "move",
1310
+ "narrat",
1311
+ "nextflow",
1312
+ "nginx",
1313
+ "nim",
1314
+ "nix",
1315
+ "nushell",
1316
+ "objective-c",
1317
+ "objective-cpp",
1318
+ "ocaml",
1319
+ "pascal",
1320
+ "perl",
1321
+ "php",
1322
+ "plain",
1323
+ "plsql",
1324
+ "po",
1325
+ "postcss",
1326
+ "powerquery",
1327
+ "powershell",
1328
+ "prisma",
1329
+ "prolog",
1330
+ "proto",
1331
+ "pug",
1332
+ "puppet",
1333
+ "purescript",
1334
+ "python",
1335
+ "qml",
1336
+ "qmldir",
1337
+ "qss",
1338
+ "r",
1339
+ "racket",
1340
+ "raku",
1341
+ "razor",
1342
+ "reg",
1343
+ "regexp",
1344
+ "rel",
1345
+ "riscv",
1346
+ "rst",
1347
+ "ruby",
1348
+ "rust",
1349
+ "sas",
1350
+ "sass",
1351
+ "scala",
1352
+ "scheme",
1353
+ "scss",
1354
+ "shaderlab",
1355
+ "shellscript",
1356
+ "shellsession",
1357
+ "smalltalk",
1358
+ "solidity",
1359
+ "soy",
1360
+ "sparql",
1361
+ "splunk",
1362
+ "sql",
1363
+ "ssh-config",
1364
+ "stata",
1365
+ "stylus",
1366
+ "svelte",
1367
+ "swift",
1368
+ "system-verilog",
1369
+ "systemd",
1370
+ "tasl",
1371
+ "tcl",
1372
+ "templ",
1373
+ "terraform",
1374
+ "tex",
1375
+ "toml",
1376
+ "ts-tags",
1377
+ "tsv",
1378
+ "tsx",
1379
+ "turtle",
1380
+ "twig",
1381
+ "typescript",
1382
+ "typespec",
1383
+ "typst",
1384
+ "v",
1385
+ "vala",
1386
+ "vb",
1387
+ "verilog",
1388
+ "vhdl",
1389
+ "viml",
1390
+ "vue",
1391
+ "vue-html",
1392
+ "vyper",
1393
+ "wasm",
1394
+ "wenyan",
1395
+ "wgsl",
1396
+ "wikitext",
1397
+ "wolfram",
1398
+ "xml",
1399
+ "xsl",
1400
+ "yaml",
1401
+ "zenscript",
1402
+ "zig",
1533
1403
  ]
1534
- ] = None,
1535
- themes: Optional[
1536
- Union[
1537
- Var[Union[dict[str, str], list[dict[str, Any]]]],
1538
- dict[str, str],
1539
- list[dict[str, Any]],
1404
+ ]
1405
+ | None = None,
1406
+ theme: Literal[
1407
+ "andromeeda",
1408
+ "aurora-x",
1409
+ "ayu-dark",
1410
+ "catppuccin-frappe",
1411
+ "catppuccin-latte",
1412
+ "catppuccin-macchiato",
1413
+ "catppuccin-mocha",
1414
+ "dark-plus",
1415
+ "dracula",
1416
+ "dracula-soft",
1417
+ "everforest-dark",
1418
+ "everforest-light",
1419
+ "github-dark",
1420
+ "github-dark-default",
1421
+ "github-dark-dimmed",
1422
+ "github-dark-high-contrast",
1423
+ "github-light",
1424
+ "github-light-default",
1425
+ "github-light-high-contrast",
1426
+ "houston",
1427
+ "laserwave",
1428
+ "light-plus",
1429
+ "material-theme",
1430
+ "material-theme-darker",
1431
+ "material-theme-lighter",
1432
+ "material-theme-ocean",
1433
+ "material-theme-palenight",
1434
+ "min-dark",
1435
+ "min-light",
1436
+ "monokai",
1437
+ "night-owl",
1438
+ "nord",
1439
+ "one-dark-pro",
1440
+ "one-light",
1441
+ "plastic",
1442
+ "poimandres",
1443
+ "red",
1444
+ "rose-pine",
1445
+ "rose-pine-dawn",
1446
+ "rose-pine-moon",
1447
+ "slack-dark",
1448
+ "slack-ochin",
1449
+ "snazzy-light",
1450
+ "solarized-dark",
1451
+ "solarized-light",
1452
+ "synthwave-84",
1453
+ "tokyo-night",
1454
+ "vesper",
1455
+ "vitesse-black",
1456
+ "vitesse-dark",
1457
+ "vitesse-light",
1458
+ ]
1459
+ | Var[
1460
+ Literal[
1461
+ "andromeeda",
1462
+ "aurora-x",
1463
+ "ayu-dark",
1464
+ "catppuccin-frappe",
1465
+ "catppuccin-latte",
1466
+ "catppuccin-macchiato",
1467
+ "catppuccin-mocha",
1468
+ "dark-plus",
1469
+ "dracula",
1470
+ "dracula-soft",
1471
+ "everforest-dark",
1472
+ "everforest-light",
1473
+ "github-dark",
1474
+ "github-dark-default",
1475
+ "github-dark-dimmed",
1476
+ "github-dark-high-contrast",
1477
+ "github-light",
1478
+ "github-light-default",
1479
+ "github-light-high-contrast",
1480
+ "houston",
1481
+ "laserwave",
1482
+ "light-plus",
1483
+ "material-theme",
1484
+ "material-theme-darker",
1485
+ "material-theme-lighter",
1486
+ "material-theme-ocean",
1487
+ "material-theme-palenight",
1488
+ "min-dark",
1489
+ "min-light",
1490
+ "monokai",
1491
+ "night-owl",
1492
+ "nord",
1493
+ "one-dark-pro",
1494
+ "one-light",
1495
+ "plastic",
1496
+ "poimandres",
1497
+ "red",
1498
+ "rose-pine",
1499
+ "rose-pine-dawn",
1500
+ "rose-pine-moon",
1501
+ "slack-dark",
1502
+ "slack-ochin",
1503
+ "snazzy-light",
1504
+ "solarized-dark",
1505
+ "solarized-light",
1506
+ "synthwave-84",
1507
+ "tokyo-night",
1508
+ "vesper",
1509
+ "vitesse-black",
1510
+ "vitesse-dark",
1511
+ "vitesse-light",
1540
1512
  ]
1541
- ] = None,
1542
- code: Optional[Union[Var[str], str]] = None,
1543
- transformers: Optional[
1544
- Union[
1545
- Var[list[Union[ShikiBaseTransformers, dict[str, Any]]]],
1546
- list[Union[ShikiBaseTransformers, dict[str, Any]]],
1547
- ]
1548
- ] = None,
1549
- decorations: Optional[
1550
- Union[Var[list[ShikiDecorations]], list[ShikiDecorations]]
1551
- ] = None,
1552
- style: Optional[Style] = None,
1553
- key: Optional[Any] = None,
1554
- id: Optional[Any] = None,
1555
- class_name: Optional[Any] = None,
1556
- autofocus: Optional[bool] = None,
1557
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
1513
+ ]
1514
+ | None = None,
1515
+ themes: Var[dict[str, str] | list[dict[str, Any]]]
1516
+ | dict[str, str]
1517
+ | list[dict[str, Any]]
1518
+ | None = None,
1519
+ code: Var[str] | str | None = None,
1520
+ transformers: Var[list[ShikiBaseTransformers | dict[str, Any]]]
1521
+ | list[ShikiBaseTransformers | dict[str, Any]]
1522
+ | None = None,
1523
+ decorations: Var[list[ShikiDecorations]] | list[ShikiDecorations] | None = None,
1524
+ style: Style | None = None,
1525
+ key: Any | None = None,
1526
+ id: Any | None = None,
1527
+ class_name: Any | None = None,
1528
+ autofocus: bool | None = None,
1529
+ custom_attrs: dict[str, Var | Any] | None = None,
1558
1530
  on_blur: Optional[EventType[()]] = None,
1559
1531
  on_click: Optional[EventType[()]] = None,
1560
1532
  on_context_menu: Optional[EventType[()]] = None,
@@ -1610,581 +1582,567 @@ class CodeblockNamespace(ComponentNamespace):
1610
1582
  @staticmethod
1611
1583
  def __call__(
1612
1584
  *children,
1613
- use_transformers: Optional[Union[Var[bool], bool]] = None,
1614
- show_line_numbers: Optional[Union[Var[bool], bool]] = None,
1615
- can_copy: Optional[bool] = None,
1616
- copy_button: Optional[Union[Component, bool]] = None,
1617
- language: Optional[
1618
- Union[
1619
- Literal[
1620
- "abap",
1621
- "actionscript-3",
1622
- "ada",
1623
- "angular-html",
1624
- "angular-ts",
1625
- "apache",
1626
- "apex",
1627
- "apl",
1628
- "applescript",
1629
- "ara",
1630
- "asciidoc",
1631
- "asm",
1632
- "astro",
1633
- "awk",
1634
- "ballerina",
1635
- "bat",
1636
- "beancount",
1637
- "berry",
1638
- "bibtex",
1639
- "bicep",
1640
- "blade",
1641
- "c",
1642
- "cadence",
1643
- "clarity",
1644
- "clojure",
1645
- "cmake",
1646
- "cobol",
1647
- "codeowners",
1648
- "codeql",
1649
- "coffee",
1650
- "common-lisp",
1651
- "coq",
1652
- "cpp",
1653
- "crystal",
1654
- "csharp",
1655
- "css",
1656
- "csv",
1657
- "cue",
1658
- "cypher",
1659
- "d",
1660
- "dart",
1661
- "dax",
1662
- "desktop",
1663
- "diff",
1664
- "docker",
1665
- "dotenv",
1666
- "dream-maker",
1667
- "edge",
1668
- "elixir",
1669
- "elm",
1670
- "emacs-lisp",
1671
- "erb",
1672
- "erlang",
1673
- "fennel",
1674
- "fish",
1675
- "fluent",
1676
- "fortran-fixed-form",
1677
- "fortran-free-form",
1678
- "fsharp",
1679
- "gdresource",
1680
- "gdscript",
1681
- "gdshader",
1682
- "genie",
1683
- "gherkin",
1684
- "git-commit",
1685
- "git-rebase",
1686
- "gleam",
1687
- "glimmer-js",
1688
- "glimmer-ts",
1689
- "glsl",
1690
- "gnuplot",
1691
- "go",
1692
- "graphql",
1693
- "groovy",
1694
- "hack",
1695
- "haml",
1696
- "handlebars",
1697
- "haskell",
1698
- "haxe",
1699
- "hcl",
1700
- "hjson",
1701
- "hlsl",
1702
- "html",
1703
- "html-derivative",
1704
- "http",
1705
- "hxml",
1706
- "hy",
1707
- "imba",
1708
- "ini",
1709
- "java",
1710
- "javascript",
1711
- "jinja",
1712
- "jison",
1713
- "json",
1714
- "json5",
1715
- "jsonc",
1716
- "jsonl",
1717
- "jsonnet",
1718
- "jssm",
1719
- "jsx",
1720
- "julia",
1721
- "kotlin",
1722
- "kusto",
1723
- "latex",
1724
- "lean",
1725
- "less",
1726
- "liquid",
1727
- "log",
1728
- "logo",
1729
- "lua",
1730
- "luau",
1731
- "make",
1732
- "markdown",
1733
- "marko",
1734
- "matlab",
1735
- "mdc",
1736
- "mdx",
1737
- "mermaid",
1738
- "mojo",
1739
- "move",
1740
- "narrat",
1741
- "nextflow",
1742
- "nginx",
1743
- "nim",
1744
- "nix",
1745
- "nushell",
1746
- "objective-c",
1747
- "objective-cpp",
1748
- "ocaml",
1749
- "pascal",
1750
- "perl",
1751
- "php",
1752
- "plain",
1753
- "plsql",
1754
- "po",
1755
- "postcss",
1756
- "powerquery",
1757
- "powershell",
1758
- "prisma",
1759
- "prolog",
1760
- "proto",
1761
- "pug",
1762
- "puppet",
1763
- "purescript",
1764
- "python",
1765
- "qml",
1766
- "qmldir",
1767
- "qss",
1768
- "r",
1769
- "racket",
1770
- "raku",
1771
- "razor",
1772
- "reg",
1773
- "regexp",
1774
- "rel",
1775
- "riscv",
1776
- "rst",
1777
- "ruby",
1778
- "rust",
1779
- "sas",
1780
- "sass",
1781
- "scala",
1782
- "scheme",
1783
- "scss",
1784
- "shaderlab",
1785
- "shellscript",
1786
- "shellsession",
1787
- "smalltalk",
1788
- "solidity",
1789
- "soy",
1790
- "sparql",
1791
- "splunk",
1792
- "sql",
1793
- "ssh-config",
1794
- "stata",
1795
- "stylus",
1796
- "svelte",
1797
- "swift",
1798
- "system-verilog",
1799
- "systemd",
1800
- "tasl",
1801
- "tcl",
1802
- "templ",
1803
- "terraform",
1804
- "tex",
1805
- "toml",
1806
- "ts-tags",
1807
- "tsv",
1808
- "tsx",
1809
- "turtle",
1810
- "twig",
1811
- "typescript",
1812
- "typespec",
1813
- "typst",
1814
- "v",
1815
- "vala",
1816
- "vb",
1817
- "verilog",
1818
- "vhdl",
1819
- "viml",
1820
- "vue",
1821
- "vue-html",
1822
- "vyper",
1823
- "wasm",
1824
- "wenyan",
1825
- "wgsl",
1826
- "wikitext",
1827
- "wolfram",
1828
- "xml",
1829
- "xsl",
1830
- "yaml",
1831
- "zenscript",
1832
- "zig",
1833
- ],
1834
- Var[
1835
- Literal[
1836
- "abap",
1837
- "actionscript-3",
1838
- "ada",
1839
- "angular-html",
1840
- "angular-ts",
1841
- "apache",
1842
- "apex",
1843
- "apl",
1844
- "applescript",
1845
- "ara",
1846
- "asciidoc",
1847
- "asm",
1848
- "astro",
1849
- "awk",
1850
- "ballerina",
1851
- "bat",
1852
- "beancount",
1853
- "berry",
1854
- "bibtex",
1855
- "bicep",
1856
- "blade",
1857
- "c",
1858
- "cadence",
1859
- "clarity",
1860
- "clojure",
1861
- "cmake",
1862
- "cobol",
1863
- "codeowners",
1864
- "codeql",
1865
- "coffee",
1866
- "common-lisp",
1867
- "coq",
1868
- "cpp",
1869
- "crystal",
1870
- "csharp",
1871
- "css",
1872
- "csv",
1873
- "cue",
1874
- "cypher",
1875
- "d",
1876
- "dart",
1877
- "dax",
1878
- "desktop",
1879
- "diff",
1880
- "docker",
1881
- "dotenv",
1882
- "dream-maker",
1883
- "edge",
1884
- "elixir",
1885
- "elm",
1886
- "emacs-lisp",
1887
- "erb",
1888
- "erlang",
1889
- "fennel",
1890
- "fish",
1891
- "fluent",
1892
- "fortran-fixed-form",
1893
- "fortran-free-form",
1894
- "fsharp",
1895
- "gdresource",
1896
- "gdscript",
1897
- "gdshader",
1898
- "genie",
1899
- "gherkin",
1900
- "git-commit",
1901
- "git-rebase",
1902
- "gleam",
1903
- "glimmer-js",
1904
- "glimmer-ts",
1905
- "glsl",
1906
- "gnuplot",
1907
- "go",
1908
- "graphql",
1909
- "groovy",
1910
- "hack",
1911
- "haml",
1912
- "handlebars",
1913
- "haskell",
1914
- "haxe",
1915
- "hcl",
1916
- "hjson",
1917
- "hlsl",
1918
- "html",
1919
- "html-derivative",
1920
- "http",
1921
- "hxml",
1922
- "hy",
1923
- "imba",
1924
- "ini",
1925
- "java",
1926
- "javascript",
1927
- "jinja",
1928
- "jison",
1929
- "json",
1930
- "json5",
1931
- "jsonc",
1932
- "jsonl",
1933
- "jsonnet",
1934
- "jssm",
1935
- "jsx",
1936
- "julia",
1937
- "kotlin",
1938
- "kusto",
1939
- "latex",
1940
- "lean",
1941
- "less",
1942
- "liquid",
1943
- "log",
1944
- "logo",
1945
- "lua",
1946
- "luau",
1947
- "make",
1948
- "markdown",
1949
- "marko",
1950
- "matlab",
1951
- "mdc",
1952
- "mdx",
1953
- "mermaid",
1954
- "mojo",
1955
- "move",
1956
- "narrat",
1957
- "nextflow",
1958
- "nginx",
1959
- "nim",
1960
- "nix",
1961
- "nushell",
1962
- "objective-c",
1963
- "objective-cpp",
1964
- "ocaml",
1965
- "pascal",
1966
- "perl",
1967
- "php",
1968
- "plain",
1969
- "plsql",
1970
- "po",
1971
- "postcss",
1972
- "powerquery",
1973
- "powershell",
1974
- "prisma",
1975
- "prolog",
1976
- "proto",
1977
- "pug",
1978
- "puppet",
1979
- "purescript",
1980
- "python",
1981
- "qml",
1982
- "qmldir",
1983
- "qss",
1984
- "r",
1985
- "racket",
1986
- "raku",
1987
- "razor",
1988
- "reg",
1989
- "regexp",
1990
- "rel",
1991
- "riscv",
1992
- "rst",
1993
- "ruby",
1994
- "rust",
1995
- "sas",
1996
- "sass",
1997
- "scala",
1998
- "scheme",
1999
- "scss",
2000
- "shaderlab",
2001
- "shellscript",
2002
- "shellsession",
2003
- "smalltalk",
2004
- "solidity",
2005
- "soy",
2006
- "sparql",
2007
- "splunk",
2008
- "sql",
2009
- "ssh-config",
2010
- "stata",
2011
- "stylus",
2012
- "svelte",
2013
- "swift",
2014
- "system-verilog",
2015
- "systemd",
2016
- "tasl",
2017
- "tcl",
2018
- "templ",
2019
- "terraform",
2020
- "tex",
2021
- "toml",
2022
- "ts-tags",
2023
- "tsv",
2024
- "tsx",
2025
- "turtle",
2026
- "twig",
2027
- "typescript",
2028
- "typespec",
2029
- "typst",
2030
- "v",
2031
- "vala",
2032
- "vb",
2033
- "verilog",
2034
- "vhdl",
2035
- "viml",
2036
- "vue",
2037
- "vue-html",
2038
- "vyper",
2039
- "wasm",
2040
- "wenyan",
2041
- "wgsl",
2042
- "wikitext",
2043
- "wolfram",
2044
- "xml",
2045
- "xsl",
2046
- "yaml",
2047
- "zenscript",
2048
- "zig",
2049
- ]
2050
- ],
2051
- ]
2052
- ] = None,
2053
- theme: Optional[
2054
- Union[
2055
- Literal[
2056
- "andromeeda",
2057
- "aurora-x",
2058
- "ayu-dark",
2059
- "catppuccin-frappe",
2060
- "catppuccin-latte",
2061
- "catppuccin-macchiato",
2062
- "catppuccin-mocha",
2063
- "dark-plus",
2064
- "dracula",
2065
- "dracula-soft",
2066
- "everforest-dark",
2067
- "everforest-light",
2068
- "github-dark",
2069
- "github-dark-default",
2070
- "github-dark-dimmed",
2071
- "github-dark-high-contrast",
2072
- "github-light",
2073
- "github-light-default",
2074
- "github-light-high-contrast",
2075
- "houston",
2076
- "laserwave",
2077
- "light-plus",
2078
- "material-theme",
2079
- "material-theme-darker",
2080
- "material-theme-lighter",
2081
- "material-theme-ocean",
2082
- "material-theme-palenight",
2083
- "min-dark",
2084
- "min-light",
2085
- "monokai",
2086
- "night-owl",
2087
- "nord",
2088
- "one-dark-pro",
2089
- "one-light",
2090
- "plastic",
2091
- "poimandres",
2092
- "red",
2093
- "rose-pine",
2094
- "rose-pine-dawn",
2095
- "rose-pine-moon",
2096
- "slack-dark",
2097
- "slack-ochin",
2098
- "snazzy-light",
2099
- "solarized-dark",
2100
- "solarized-light",
2101
- "synthwave-84",
2102
- "tokyo-night",
2103
- "vesper",
2104
- "vitesse-black",
2105
- "vitesse-dark",
2106
- "vitesse-light",
2107
- ],
2108
- Var[
2109
- Literal[
2110
- "andromeeda",
2111
- "aurora-x",
2112
- "ayu-dark",
2113
- "catppuccin-frappe",
2114
- "catppuccin-latte",
2115
- "catppuccin-macchiato",
2116
- "catppuccin-mocha",
2117
- "dark-plus",
2118
- "dracula",
2119
- "dracula-soft",
2120
- "everforest-dark",
2121
- "everforest-light",
2122
- "github-dark",
2123
- "github-dark-default",
2124
- "github-dark-dimmed",
2125
- "github-dark-high-contrast",
2126
- "github-light",
2127
- "github-light-default",
2128
- "github-light-high-contrast",
2129
- "houston",
2130
- "laserwave",
2131
- "light-plus",
2132
- "material-theme",
2133
- "material-theme-darker",
2134
- "material-theme-lighter",
2135
- "material-theme-ocean",
2136
- "material-theme-palenight",
2137
- "min-dark",
2138
- "min-light",
2139
- "monokai",
2140
- "night-owl",
2141
- "nord",
2142
- "one-dark-pro",
2143
- "one-light",
2144
- "plastic",
2145
- "poimandres",
2146
- "red",
2147
- "rose-pine",
2148
- "rose-pine-dawn",
2149
- "rose-pine-moon",
2150
- "slack-dark",
2151
- "slack-ochin",
2152
- "snazzy-light",
2153
- "solarized-dark",
2154
- "solarized-light",
2155
- "synthwave-84",
2156
- "tokyo-night",
2157
- "vesper",
2158
- "vitesse-black",
2159
- "vitesse-dark",
2160
- "vitesse-light",
2161
- ]
2162
- ],
2163
- ]
2164
- ] = None,
2165
- themes: Optional[
2166
- Union[
2167
- Var[Union[dict[str, str], list[dict[str, Any]]]],
2168
- dict[str, str],
2169
- list[dict[str, Any]],
1585
+ use_transformers: Var[bool] | bool | None = None,
1586
+ show_line_numbers: Var[bool] | bool | None = None,
1587
+ can_copy: bool | None = None,
1588
+ copy_button: Component | bool | None = None,
1589
+ language: Literal[
1590
+ "abap",
1591
+ "actionscript-3",
1592
+ "ada",
1593
+ "angular-html",
1594
+ "angular-ts",
1595
+ "apache",
1596
+ "apex",
1597
+ "apl",
1598
+ "applescript",
1599
+ "ara",
1600
+ "asciidoc",
1601
+ "asm",
1602
+ "astro",
1603
+ "awk",
1604
+ "ballerina",
1605
+ "bat",
1606
+ "beancount",
1607
+ "berry",
1608
+ "bibtex",
1609
+ "bicep",
1610
+ "blade",
1611
+ "c",
1612
+ "cadence",
1613
+ "clarity",
1614
+ "clojure",
1615
+ "cmake",
1616
+ "cobol",
1617
+ "codeowners",
1618
+ "codeql",
1619
+ "coffee",
1620
+ "common-lisp",
1621
+ "coq",
1622
+ "cpp",
1623
+ "crystal",
1624
+ "csharp",
1625
+ "css",
1626
+ "csv",
1627
+ "cue",
1628
+ "cypher",
1629
+ "d",
1630
+ "dart",
1631
+ "dax",
1632
+ "desktop",
1633
+ "diff",
1634
+ "docker",
1635
+ "dotenv",
1636
+ "dream-maker",
1637
+ "edge",
1638
+ "elixir",
1639
+ "elm",
1640
+ "emacs-lisp",
1641
+ "erb",
1642
+ "erlang",
1643
+ "fennel",
1644
+ "fish",
1645
+ "fluent",
1646
+ "fortran-fixed-form",
1647
+ "fortran-free-form",
1648
+ "fsharp",
1649
+ "gdresource",
1650
+ "gdscript",
1651
+ "gdshader",
1652
+ "genie",
1653
+ "gherkin",
1654
+ "git-commit",
1655
+ "git-rebase",
1656
+ "gleam",
1657
+ "glimmer-js",
1658
+ "glimmer-ts",
1659
+ "glsl",
1660
+ "gnuplot",
1661
+ "go",
1662
+ "graphql",
1663
+ "groovy",
1664
+ "hack",
1665
+ "haml",
1666
+ "handlebars",
1667
+ "haskell",
1668
+ "haxe",
1669
+ "hcl",
1670
+ "hjson",
1671
+ "hlsl",
1672
+ "html",
1673
+ "html-derivative",
1674
+ "http",
1675
+ "hxml",
1676
+ "hy",
1677
+ "imba",
1678
+ "ini",
1679
+ "java",
1680
+ "javascript",
1681
+ "jinja",
1682
+ "jison",
1683
+ "json",
1684
+ "json5",
1685
+ "jsonc",
1686
+ "jsonl",
1687
+ "jsonnet",
1688
+ "jssm",
1689
+ "jsx",
1690
+ "julia",
1691
+ "kotlin",
1692
+ "kusto",
1693
+ "latex",
1694
+ "lean",
1695
+ "less",
1696
+ "liquid",
1697
+ "log",
1698
+ "logo",
1699
+ "lua",
1700
+ "luau",
1701
+ "make",
1702
+ "markdown",
1703
+ "marko",
1704
+ "matlab",
1705
+ "mdc",
1706
+ "mdx",
1707
+ "mermaid",
1708
+ "mojo",
1709
+ "move",
1710
+ "narrat",
1711
+ "nextflow",
1712
+ "nginx",
1713
+ "nim",
1714
+ "nix",
1715
+ "nushell",
1716
+ "objective-c",
1717
+ "objective-cpp",
1718
+ "ocaml",
1719
+ "pascal",
1720
+ "perl",
1721
+ "php",
1722
+ "plain",
1723
+ "plsql",
1724
+ "po",
1725
+ "postcss",
1726
+ "powerquery",
1727
+ "powershell",
1728
+ "prisma",
1729
+ "prolog",
1730
+ "proto",
1731
+ "pug",
1732
+ "puppet",
1733
+ "purescript",
1734
+ "python",
1735
+ "qml",
1736
+ "qmldir",
1737
+ "qss",
1738
+ "r",
1739
+ "racket",
1740
+ "raku",
1741
+ "razor",
1742
+ "reg",
1743
+ "regexp",
1744
+ "rel",
1745
+ "riscv",
1746
+ "rst",
1747
+ "ruby",
1748
+ "rust",
1749
+ "sas",
1750
+ "sass",
1751
+ "scala",
1752
+ "scheme",
1753
+ "scss",
1754
+ "shaderlab",
1755
+ "shellscript",
1756
+ "shellsession",
1757
+ "smalltalk",
1758
+ "solidity",
1759
+ "soy",
1760
+ "sparql",
1761
+ "splunk",
1762
+ "sql",
1763
+ "ssh-config",
1764
+ "stata",
1765
+ "stylus",
1766
+ "svelte",
1767
+ "swift",
1768
+ "system-verilog",
1769
+ "systemd",
1770
+ "tasl",
1771
+ "tcl",
1772
+ "templ",
1773
+ "terraform",
1774
+ "tex",
1775
+ "toml",
1776
+ "ts-tags",
1777
+ "tsv",
1778
+ "tsx",
1779
+ "turtle",
1780
+ "twig",
1781
+ "typescript",
1782
+ "typespec",
1783
+ "typst",
1784
+ "v",
1785
+ "vala",
1786
+ "vb",
1787
+ "verilog",
1788
+ "vhdl",
1789
+ "viml",
1790
+ "vue",
1791
+ "vue-html",
1792
+ "vyper",
1793
+ "wasm",
1794
+ "wenyan",
1795
+ "wgsl",
1796
+ "wikitext",
1797
+ "wolfram",
1798
+ "xml",
1799
+ "xsl",
1800
+ "yaml",
1801
+ "zenscript",
1802
+ "zig",
1803
+ ]
1804
+ | Var[
1805
+ Literal[
1806
+ "abap",
1807
+ "actionscript-3",
1808
+ "ada",
1809
+ "angular-html",
1810
+ "angular-ts",
1811
+ "apache",
1812
+ "apex",
1813
+ "apl",
1814
+ "applescript",
1815
+ "ara",
1816
+ "asciidoc",
1817
+ "asm",
1818
+ "astro",
1819
+ "awk",
1820
+ "ballerina",
1821
+ "bat",
1822
+ "beancount",
1823
+ "berry",
1824
+ "bibtex",
1825
+ "bicep",
1826
+ "blade",
1827
+ "c",
1828
+ "cadence",
1829
+ "clarity",
1830
+ "clojure",
1831
+ "cmake",
1832
+ "cobol",
1833
+ "codeowners",
1834
+ "codeql",
1835
+ "coffee",
1836
+ "common-lisp",
1837
+ "coq",
1838
+ "cpp",
1839
+ "crystal",
1840
+ "csharp",
1841
+ "css",
1842
+ "csv",
1843
+ "cue",
1844
+ "cypher",
1845
+ "d",
1846
+ "dart",
1847
+ "dax",
1848
+ "desktop",
1849
+ "diff",
1850
+ "docker",
1851
+ "dotenv",
1852
+ "dream-maker",
1853
+ "edge",
1854
+ "elixir",
1855
+ "elm",
1856
+ "emacs-lisp",
1857
+ "erb",
1858
+ "erlang",
1859
+ "fennel",
1860
+ "fish",
1861
+ "fluent",
1862
+ "fortran-fixed-form",
1863
+ "fortran-free-form",
1864
+ "fsharp",
1865
+ "gdresource",
1866
+ "gdscript",
1867
+ "gdshader",
1868
+ "genie",
1869
+ "gherkin",
1870
+ "git-commit",
1871
+ "git-rebase",
1872
+ "gleam",
1873
+ "glimmer-js",
1874
+ "glimmer-ts",
1875
+ "glsl",
1876
+ "gnuplot",
1877
+ "go",
1878
+ "graphql",
1879
+ "groovy",
1880
+ "hack",
1881
+ "haml",
1882
+ "handlebars",
1883
+ "haskell",
1884
+ "haxe",
1885
+ "hcl",
1886
+ "hjson",
1887
+ "hlsl",
1888
+ "html",
1889
+ "html-derivative",
1890
+ "http",
1891
+ "hxml",
1892
+ "hy",
1893
+ "imba",
1894
+ "ini",
1895
+ "java",
1896
+ "javascript",
1897
+ "jinja",
1898
+ "jison",
1899
+ "json",
1900
+ "json5",
1901
+ "jsonc",
1902
+ "jsonl",
1903
+ "jsonnet",
1904
+ "jssm",
1905
+ "jsx",
1906
+ "julia",
1907
+ "kotlin",
1908
+ "kusto",
1909
+ "latex",
1910
+ "lean",
1911
+ "less",
1912
+ "liquid",
1913
+ "log",
1914
+ "logo",
1915
+ "lua",
1916
+ "luau",
1917
+ "make",
1918
+ "markdown",
1919
+ "marko",
1920
+ "matlab",
1921
+ "mdc",
1922
+ "mdx",
1923
+ "mermaid",
1924
+ "mojo",
1925
+ "move",
1926
+ "narrat",
1927
+ "nextflow",
1928
+ "nginx",
1929
+ "nim",
1930
+ "nix",
1931
+ "nushell",
1932
+ "objective-c",
1933
+ "objective-cpp",
1934
+ "ocaml",
1935
+ "pascal",
1936
+ "perl",
1937
+ "php",
1938
+ "plain",
1939
+ "plsql",
1940
+ "po",
1941
+ "postcss",
1942
+ "powerquery",
1943
+ "powershell",
1944
+ "prisma",
1945
+ "prolog",
1946
+ "proto",
1947
+ "pug",
1948
+ "puppet",
1949
+ "purescript",
1950
+ "python",
1951
+ "qml",
1952
+ "qmldir",
1953
+ "qss",
1954
+ "r",
1955
+ "racket",
1956
+ "raku",
1957
+ "razor",
1958
+ "reg",
1959
+ "regexp",
1960
+ "rel",
1961
+ "riscv",
1962
+ "rst",
1963
+ "ruby",
1964
+ "rust",
1965
+ "sas",
1966
+ "sass",
1967
+ "scala",
1968
+ "scheme",
1969
+ "scss",
1970
+ "shaderlab",
1971
+ "shellscript",
1972
+ "shellsession",
1973
+ "smalltalk",
1974
+ "solidity",
1975
+ "soy",
1976
+ "sparql",
1977
+ "splunk",
1978
+ "sql",
1979
+ "ssh-config",
1980
+ "stata",
1981
+ "stylus",
1982
+ "svelte",
1983
+ "swift",
1984
+ "system-verilog",
1985
+ "systemd",
1986
+ "tasl",
1987
+ "tcl",
1988
+ "templ",
1989
+ "terraform",
1990
+ "tex",
1991
+ "toml",
1992
+ "ts-tags",
1993
+ "tsv",
1994
+ "tsx",
1995
+ "turtle",
1996
+ "twig",
1997
+ "typescript",
1998
+ "typespec",
1999
+ "typst",
2000
+ "v",
2001
+ "vala",
2002
+ "vb",
2003
+ "verilog",
2004
+ "vhdl",
2005
+ "viml",
2006
+ "vue",
2007
+ "vue-html",
2008
+ "vyper",
2009
+ "wasm",
2010
+ "wenyan",
2011
+ "wgsl",
2012
+ "wikitext",
2013
+ "wolfram",
2014
+ "xml",
2015
+ "xsl",
2016
+ "yaml",
2017
+ "zenscript",
2018
+ "zig",
2170
2019
  ]
2171
- ] = None,
2172
- code: Optional[Union[Var[str], str]] = None,
2173
- transformers: Optional[
2174
- Union[
2175
- Var[list[Union[ShikiBaseTransformers, dict[str, Any]]]],
2176
- list[Union[ShikiBaseTransformers, dict[str, Any]]],
2020
+ ]
2021
+ | None = None,
2022
+ theme: Literal[
2023
+ "andromeeda",
2024
+ "aurora-x",
2025
+ "ayu-dark",
2026
+ "catppuccin-frappe",
2027
+ "catppuccin-latte",
2028
+ "catppuccin-macchiato",
2029
+ "catppuccin-mocha",
2030
+ "dark-plus",
2031
+ "dracula",
2032
+ "dracula-soft",
2033
+ "everforest-dark",
2034
+ "everforest-light",
2035
+ "github-dark",
2036
+ "github-dark-default",
2037
+ "github-dark-dimmed",
2038
+ "github-dark-high-contrast",
2039
+ "github-light",
2040
+ "github-light-default",
2041
+ "github-light-high-contrast",
2042
+ "houston",
2043
+ "laserwave",
2044
+ "light-plus",
2045
+ "material-theme",
2046
+ "material-theme-darker",
2047
+ "material-theme-lighter",
2048
+ "material-theme-ocean",
2049
+ "material-theme-palenight",
2050
+ "min-dark",
2051
+ "min-light",
2052
+ "monokai",
2053
+ "night-owl",
2054
+ "nord",
2055
+ "one-dark-pro",
2056
+ "one-light",
2057
+ "plastic",
2058
+ "poimandres",
2059
+ "red",
2060
+ "rose-pine",
2061
+ "rose-pine-dawn",
2062
+ "rose-pine-moon",
2063
+ "slack-dark",
2064
+ "slack-ochin",
2065
+ "snazzy-light",
2066
+ "solarized-dark",
2067
+ "solarized-light",
2068
+ "synthwave-84",
2069
+ "tokyo-night",
2070
+ "vesper",
2071
+ "vitesse-black",
2072
+ "vitesse-dark",
2073
+ "vitesse-light",
2074
+ ]
2075
+ | Var[
2076
+ Literal[
2077
+ "andromeeda",
2078
+ "aurora-x",
2079
+ "ayu-dark",
2080
+ "catppuccin-frappe",
2081
+ "catppuccin-latte",
2082
+ "catppuccin-macchiato",
2083
+ "catppuccin-mocha",
2084
+ "dark-plus",
2085
+ "dracula",
2086
+ "dracula-soft",
2087
+ "everforest-dark",
2088
+ "everforest-light",
2089
+ "github-dark",
2090
+ "github-dark-default",
2091
+ "github-dark-dimmed",
2092
+ "github-dark-high-contrast",
2093
+ "github-light",
2094
+ "github-light-default",
2095
+ "github-light-high-contrast",
2096
+ "houston",
2097
+ "laserwave",
2098
+ "light-plus",
2099
+ "material-theme",
2100
+ "material-theme-darker",
2101
+ "material-theme-lighter",
2102
+ "material-theme-ocean",
2103
+ "material-theme-palenight",
2104
+ "min-dark",
2105
+ "min-light",
2106
+ "monokai",
2107
+ "night-owl",
2108
+ "nord",
2109
+ "one-dark-pro",
2110
+ "one-light",
2111
+ "plastic",
2112
+ "poimandres",
2113
+ "red",
2114
+ "rose-pine",
2115
+ "rose-pine-dawn",
2116
+ "rose-pine-moon",
2117
+ "slack-dark",
2118
+ "slack-ochin",
2119
+ "snazzy-light",
2120
+ "solarized-dark",
2121
+ "solarized-light",
2122
+ "synthwave-84",
2123
+ "tokyo-night",
2124
+ "vesper",
2125
+ "vitesse-black",
2126
+ "vitesse-dark",
2127
+ "vitesse-light",
2177
2128
  ]
2178
- ] = None,
2179
- decorations: Optional[
2180
- Union[Var[list[ShikiDecorations]], list[ShikiDecorations]]
2181
- ] = None,
2182
- style: Optional[Style] = None,
2183
- key: Optional[Any] = None,
2184
- id: Optional[Any] = None,
2185
- class_name: Optional[Any] = None,
2186
- autofocus: Optional[bool] = None,
2187
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
2129
+ ]
2130
+ | None = None,
2131
+ themes: Var[dict[str, str] | list[dict[str, Any]]]
2132
+ | dict[str, str]
2133
+ | list[dict[str, Any]]
2134
+ | None = None,
2135
+ code: Var[str] | str | None = None,
2136
+ transformers: Var[list[ShikiBaseTransformers | dict[str, Any]]]
2137
+ | list[ShikiBaseTransformers | dict[str, Any]]
2138
+ | None = None,
2139
+ decorations: Var[list[ShikiDecorations]] | list[ShikiDecorations] | None = None,
2140
+ style: Style | None = None,
2141
+ key: Any | None = None,
2142
+ id: Any | None = None,
2143
+ class_name: Any | None = None,
2144
+ autofocus: bool | None = None,
2145
+ custom_attrs: dict[str, Var | Any] | None = None,
2188
2146
  on_blur: Optional[EventType[()]] = None,
2189
2147
  on_click: Optional[EventType[()]] = None,
2190
2148
  on_context_menu: Optional[EventType[()]] = None,