reflex 0.6.0a1__py3-none-any.whl → 0.6.0a3__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.
- reflex/.templates/jinja/custom_components/pyproject.toml.jinja2 +2 -2
- reflex/.templates/jinja/web/pages/_app.js.jinja2 +1 -1
- reflex/.templates/jinja/web/pages/utils.js.jinja2 +2 -2
- reflex/__init__.py +8 -2
- reflex/__init__.pyi +2 -1
- reflex/app.py +10 -4
- reflex/base.py +1 -1
- reflex/compiler/compiler.py +2 -2
- reflex/compiler/utils.py +3 -3
- reflex/components/base/app_wrap.py +2 -2
- reflex/components/base/app_wrap.pyi +17 -27
- reflex/components/base/bare.py +4 -5
- reflex/components/base/body.pyi +17 -27
- reflex/components/base/document.pyi +81 -131
- reflex/components/base/error_boundary.py +6 -7
- reflex/components/base/error_boundary.pyi +20 -33
- reflex/components/base/fragment.pyi +17 -27
- reflex/components/base/head.pyi +33 -53
- reflex/components/base/link.py +1 -1
- reflex/components/base/link.pyi +33 -54
- reflex/components/base/meta.pyi +65 -105
- reflex/components/base/script.py +1 -2
- reflex/components/base/script.pyi +21 -38
- reflex/components/component.py +45 -47
- reflex/components/core/banner.py +23 -27
- reflex/components/core/banner.pyi +134 -171
- reflex/components/core/breakpoints.py +3 -1
- reflex/components/core/client_side_routing.py +2 -3
- reflex/components/core/client_side_routing.pyi +33 -54
- reflex/components/core/clipboard.py +2 -1
- reflex/components/core/clipboard.pyi +20 -33
- reflex/components/core/cond.py +5 -5
- reflex/components/core/debounce.py +5 -5
- reflex/components/core/debounce.pyi +20 -33
- reflex/components/core/foreach.py +3 -4
- reflex/components/core/html.py +1 -1
- reflex/components/core/html.pyi +35 -46
- reflex/components/core/match.py +17 -17
- reflex/components/core/upload.py +17 -23
- reflex/components/core/upload.pyi +78 -124
- reflex/components/datadisplay/code.py +9 -10
- reflex/components/datadisplay/code.pyi +302 -412
- reflex/components/datadisplay/dataeditor.py +8 -10
- reflex/components/datadisplay/dataeditor.pyi +40 -53
- reflex/components/el/element.pyi +17 -27
- reflex/components/el/elements/base.py +1 -1
- reflex/components/el/elements/base.pyi +34 -45
- reflex/components/el/elements/forms.py +16 -16
- reflex/components/el/elements/forms.pyi +554 -707
- reflex/components/el/elements/inline.py +1 -1
- reflex/components/el/elements/inline.pyi +937 -1218
- reflex/components/el/elements/media.py +1 -1
- reflex/components/el/elements/media.pyi +786 -997
- reflex/components/el/elements/metadata.py +3 -6
- reflex/components/el/elements/metadata.pyi +181 -242
- reflex/components/el/elements/other.py +1 -1
- reflex/components/el/elements/other.pyi +235 -306
- reflex/components/el/elements/scripts.py +1 -1
- reflex/components/el/elements/scripts.pyi +109 -140
- reflex/components/el/elements/sectioning.py +0 -2
- reflex/components/el/elements/sectioning.pyi +496 -647
- reflex/components/el/elements/tables.py +1 -1
- reflex/components/el/elements/tables.pyi +351 -452
- reflex/components/el/elements/typography.py +1 -1
- reflex/components/el/elements/typography.pyi +506 -657
- reflex/components/gridjs/datatable.py +6 -9
- reflex/components/gridjs/datatable.pyi +35 -56
- reflex/components/lucide/icon.py +1 -1
- reflex/components/lucide/icon.pyi +33 -54
- reflex/components/markdown/markdown.py +26 -31
- reflex/components/markdown/markdown.pyi +27 -37
- reflex/components/moment/moment.py +13 -12
- reflex/components/moment/moment.pyi +23 -35
- reflex/components/next/base.pyi +17 -27
- reflex/components/next/image.py +1 -1
- reflex/components/next/image.pyi +22 -37
- reflex/components/next/link.py +1 -1
- reflex/components/next/link.pyi +17 -28
- reflex/components/next/video.py +1 -1
- reflex/components/next/video.pyi +17 -28
- reflex/components/plotly/plotly.py +12 -13
- reflex/components/plotly/plotly.pyi +39 -54
- reflex/components/props.py +1 -1
- reflex/components/radix/__init__.pyi +1 -0
- reflex/components/radix/primitives/__init__.pyi +1 -0
- reflex/components/radix/primitives/accordion.py +4 -4
- reflex/components/radix/primitives/accordion.pyi +424 -495
- reflex/components/radix/primitives/base.py +1 -1
- reflex/components/radix/primitives/base.pyi +33 -54
- reflex/components/radix/primitives/drawer.py +1 -1
- reflex/components/radix/primitives/drawer.pyi +172 -273
- reflex/components/radix/primitives/form.py +1 -1
- reflex/components/radix/primitives/form.pyi +257 -364
- reflex/components/radix/primitives/progress.py +1 -1
- reflex/components/radix/primitives/progress.pyi +231 -282
- reflex/components/radix/primitives/slider.py +1 -1
- reflex/components/radix/primitives/slider.pyi +87 -138
- reflex/components/radix/themes/base.py +3 -24
- reflex/components/radix/themes/base.pyi +178 -250
- reflex/components/radix/themes/color_mode.py +5 -5
- reflex/components/radix/themes/color_mode.pyi +187 -220
- reflex/components/radix/themes/components/alert_dialog.py +1 -1
- reflex/components/radix/themes/components/alert_dialog.pyi +136 -207
- reflex/components/radix/themes/components/aspect_ratio.py +1 -1
- reflex/components/radix/themes/components/aspect_ratio.pyi +17 -28
- reflex/components/radix/themes/components/avatar.py +1 -1
- reflex/components/radix/themes/components/avatar.pyi +70 -81
- reflex/components/radix/themes/components/badge.py +1 -1
- reflex/components/radix/themes/components/badge.pyi +88 -99
- reflex/components/radix/themes/components/button.py +1 -1
- reflex/components/radix/themes/components/button.pyi +98 -109
- reflex/components/radix/themes/components/callout.py +1 -1
- reflex/components/radix/themes/components/callout.pyi +322 -373
- reflex/components/radix/themes/components/card.py +1 -1
- reflex/components/radix/themes/components/card.pyi +38 -49
- reflex/components/radix/themes/components/checkbox.py +1 -2
- reflex/components/radix/themes/components/checkbox.pyi +208 -245
- reflex/components/radix/themes/components/checkbox_cards.py +1 -1
- reflex/components/radix/themes/components/checkbox_cards.pyi +94 -115
- reflex/components/radix/themes/components/checkbox_group.py +1 -1
- reflex/components/radix/themes/components/checkbox_group.pyi +86 -107
- reflex/components/radix/themes/components/context_menu.py +1 -1
- reflex/components/radix/themes/components/context_menu.pyi +238 -319
- reflex/components/radix/themes/components/data_list.py +1 -1
- reflex/components/radix/themes/components/data_list.pyi +130 -171
- reflex/components/radix/themes/components/dialog.py +1 -1
- reflex/components/radix/themes/components/dialog.pyi +139 -210
- reflex/components/radix/themes/components/dropdown_menu.py +1 -1
- reflex/components/radix/themes/components/dropdown_menu.pyi +249 -332
- reflex/components/radix/themes/components/hover_card.py +1 -1
- reflex/components/radix/themes/components/hover_card.pyi +90 -131
- reflex/components/radix/themes/components/icon_button.py +2 -3
- reflex/components/radix/themes/components/icon_button.pyi +98 -109
- reflex/components/radix/themes/components/inset.py +1 -1
- reflex/components/radix/themes/components/inset.pyi +47 -58
- reflex/components/radix/themes/components/popover.py +1 -1
- reflex/components/radix/themes/components/popover.pyi +95 -136
- reflex/components/radix/themes/components/progress.py +1 -1
- reflex/components/radix/themes/components/progress.pyi +71 -82
- reflex/components/radix/themes/components/radio.py +1 -1
- reflex/components/radix/themes/components/radio.pyi +69 -80
- reflex/components/radix/themes/components/radio_cards.py +1 -1
- reflex/components/radix/themes/components/radio_cards.pyi +98 -119
- reflex/components/radix/themes/components/radio_group.py +8 -11
- reflex/components/radix/themes/components/radio_group.pyi +228 -271
- reflex/components/radix/themes/components/scroll_area.py +1 -1
- reflex/components/radix/themes/components/scroll_area.pyi +21 -32
- reflex/components/radix/themes/components/segmented_control.py +1 -1
- reflex/components/radix/themes/components/segmented_control.pyi +90 -113
- reflex/components/radix/themes/components/select.py +2 -3
- reflex/components/radix/themes/components/select.pyi +374 -471
- reflex/components/radix/themes/components/separator.py +1 -2
- reflex/components/radix/themes/components/separator.pyi +69 -80
- reflex/components/radix/themes/components/skeleton.py +1 -1
- reflex/components/radix/themes/components/skeleton.pyi +23 -34
- reflex/components/radix/themes/components/slider.py +2 -3
- reflex/components/radix/themes/components/slider.pyi +75 -88
- reflex/components/radix/themes/components/spinner.py +1 -1
- reflex/components/radix/themes/components/spinner.pyi +19 -30
- reflex/components/radix/themes/components/switch.py +1 -1
- reflex/components/radix/themes/components/switch.pyi +71 -84
- reflex/components/radix/themes/components/table.py +1 -1
- reflex/components/radix/themes/components/table.pyi +261 -332
- reflex/components/radix/themes/components/tabs.py +1 -1
- reflex/components/radix/themes/components/tabs.pyi +139 -194
- reflex/components/radix/themes/components/text_area.py +1 -1
- reflex/components/radix/themes/components/text_area.pyi +96 -111
- reflex/components/radix/themes/components/text_field.py +1 -1
- reflex/components/radix/themes/components/text_field.pyi +247 -286
- reflex/components/radix/themes/components/tooltip.py +1 -1
- reflex/components/radix/themes/components/tooltip.pyi +26 -37
- reflex/components/radix/themes/layout/__init__.pyi +1 -0
- reflex/components/radix/themes/layout/base.py +1 -1
- reflex/components/radix/themes/layout/base.pyi +56 -67
- reflex/components/radix/themes/layout/box.pyi +34 -45
- reflex/components/radix/themes/layout/center.pyi +56 -67
- reflex/components/radix/themes/layout/container.py +1 -2
- reflex/components/radix/themes/layout/container.pyi +36 -47
- reflex/components/radix/themes/layout/flex.py +1 -1
- reflex/components/radix/themes/layout/flex.pyi +56 -67
- reflex/components/radix/themes/layout/grid.py +1 -1
- reflex/components/radix/themes/layout/grid.pyi +64 -75
- reflex/components/radix/themes/layout/list.py +5 -6
- reflex/components/radix/themes/layout/list.pyi +193 -244
- reflex/components/radix/themes/layout/section.py +1 -2
- reflex/components/radix/themes/layout/section.pyi +36 -47
- reflex/components/radix/themes/layout/spacer.pyi +56 -67
- reflex/components/radix/themes/layout/stack.py +1 -1
- reflex/components/radix/themes/layout/stack.pyi +128 -159
- reflex/components/radix/themes/typography/blockquote.py +1 -1
- reflex/components/radix/themes/typography/blockquote.pyi +89 -100
- reflex/components/radix/themes/typography/code.py +1 -1
- reflex/components/radix/themes/typography/code.pyi +90 -101
- reflex/components/radix/themes/typography/heading.py +1 -1
- reflex/components/radix/themes/typography/heading.pyi +96 -107
- reflex/components/radix/themes/typography/link.py +1 -1
- reflex/components/radix/themes/typography/link.pyi +102 -113
- reflex/components/radix/themes/typography/text.py +1 -1
- reflex/components/radix/themes/typography/text.pyi +501 -572
- reflex/components/react_player/audio.pyi +33 -60
- reflex/components/react_player/react_player.py +1 -1
- reflex/components/react_player/react_player.pyi +33 -60
- reflex/components/react_player/video.pyi +33 -60
- reflex/components/recharts/cartesian.py +2 -3
- reflex/components/recharts/cartesian.pyi +678 -861
- reflex/components/recharts/charts.py +4 -5
- reflex/components/recharts/charts.pyi +252 -357
- reflex/components/recharts/general.py +1 -2
- reflex/components/recharts/general.pyi +180 -231
- reflex/components/recharts/polar.py +4 -5
- reflex/components/recharts/polar.pyi +144 -181
- reflex/components/recharts/recharts.pyi +33 -53
- reflex/components/sonner/toast.py +16 -17
- reflex/components/sonner/toast.pyi +36 -47
- reflex/components/suneditor/editor.py +2 -3
- reflex/components/suneditor/editor.pyi +55 -78
- reflex/components/tags/cond_tag.py +6 -4
- reflex/components/tags/iter_tag.py +28 -16
- reflex/components/tags/match_tag.py +6 -4
- reflex/components/tags/tag.py +40 -23
- reflex/custom_components/custom_components.py +3 -1
- reflex/event.py +115 -67
- reflex/experimental/client_state.py +18 -18
- reflex/experimental/hooks.py +16 -16
- reflex/experimental/layout.py +5 -5
- reflex/experimental/layout.pyi +136 -187
- reflex/middleware/hydrate_middleware.py +2 -0
- reflex/middleware/middleware.py +3 -3
- reflex/state.py +149 -82
- reflex/style.py +21 -22
- reflex/utils/exceptions.py +20 -0
- reflex/utils/format.py +54 -34
- reflex/utils/imports.py +16 -73
- reflex/utils/prerequisites.py +15 -8
- reflex/utils/pyi_generator.py +13 -8
- reflex/utils/serializers.py +12 -22
- reflex/utils/telemetry.py +3 -2
- reflex/utils/types.py +11 -6
- reflex/{ivars → vars}/__init__.py +6 -2
- reflex/{ivars → vars}/base.py +599 -216
- reflex/{ivars → vars}/function.py +15 -19
- reflex/{ivars → vars}/number.py +41 -20
- reflex/{ivars → vars}/object.py +28 -30
- reflex/{ivars → vars}/sequence.py +53 -42
- {reflex-0.6.0a1.dist-info → reflex-0.6.0a3.dist-info}/METADATA +4 -6
- reflex-0.6.0a3.dist-info/RECORD +382 -0
- reflex/.templates/web/components/reflex/chakra_color_mode_provider.js +0 -36
- reflex/vars.py +0 -501
- reflex-0.6.0a1.dist-info/RECORD +0 -384
- {reflex-0.6.0a1.dist-info → reflex-0.6.0a3.dist-info}/LICENSE +0 -0
- {reflex-0.6.0a1.dist-info → reflex-0.6.0a3.dist-info}/WHEEL +0 -0
- {reflex-0.6.0a1.dist-info → reflex-0.6.0a3.dist-info}/entry_points.txt +0 -0
|
@@ -8,10 +8,9 @@ from typing import Any, Callable, Dict, Literal, Optional, Union, overload
|
|
|
8
8
|
from reflex.components.component import Component
|
|
9
9
|
from reflex.constants.colors import Color
|
|
10
10
|
from reflex.event import EventHandler, EventSpec
|
|
11
|
-
from reflex.ivars.base import ImmutableVar
|
|
12
11
|
from reflex.style import Style
|
|
13
12
|
from reflex.utils.imports import ImportDict
|
|
14
|
-
from reflex.vars import Var
|
|
13
|
+
from reflex.vars.base import Var
|
|
15
14
|
|
|
16
15
|
LiteralCodeBlockTheme = Literal[
|
|
17
16
|
"a11y-dark",
|
|
@@ -353,391 +352,9 @@ class CodeBlock(Component):
|
|
|
353
352
|
*children,
|
|
354
353
|
can_copy: Optional[bool] = False,
|
|
355
354
|
copy_button: Optional[Union[Component, bool]] = None,
|
|
356
|
-
theme: Optional[
|
|
357
|
-
Union[
|
|
358
|
-
Var[
|
|
359
|
-
Literal[
|
|
360
|
-
"a11y-dark",
|
|
361
|
-
"atom-dark",
|
|
362
|
-
"cb",
|
|
363
|
-
"coldark-cold",
|
|
364
|
-
"coldark-dark",
|
|
365
|
-
"coy",
|
|
366
|
-
"coy-without-shadows",
|
|
367
|
-
"darcula",
|
|
368
|
-
"dark",
|
|
369
|
-
"dracula",
|
|
370
|
-
"duotone-dark",
|
|
371
|
-
"duotone-earth",
|
|
372
|
-
"duotone-forest",
|
|
373
|
-
"duotone-light",
|
|
374
|
-
"duotone-sea",
|
|
375
|
-
"duotone-space",
|
|
376
|
-
"funky",
|
|
377
|
-
"ghcolors",
|
|
378
|
-
"gruvbox-dark",
|
|
379
|
-
"gruvbox-light",
|
|
380
|
-
"holi-theme",
|
|
381
|
-
"hopscotch",
|
|
382
|
-
"light",
|
|
383
|
-
"lucario",
|
|
384
|
-
"material-dark",
|
|
385
|
-
"material-light",
|
|
386
|
-
"material-oceanic",
|
|
387
|
-
"night-owl",
|
|
388
|
-
"nord",
|
|
389
|
-
"okaidia",
|
|
390
|
-
"one-dark",
|
|
391
|
-
"one-light",
|
|
392
|
-
"pojoaque",
|
|
393
|
-
"prism",
|
|
394
|
-
"shades-of-purple",
|
|
395
|
-
"solarized-dark-atom",
|
|
396
|
-
"solarizedlight",
|
|
397
|
-
"synthwave84",
|
|
398
|
-
"tomorrow",
|
|
399
|
-
"twilight",
|
|
400
|
-
"vs",
|
|
401
|
-
"vs-dark",
|
|
402
|
-
"vsc-dark-plus",
|
|
403
|
-
"xonokai",
|
|
404
|
-
"z-touch",
|
|
405
|
-
]
|
|
406
|
-
],
|
|
407
|
-
Literal[
|
|
408
|
-
"a11y-dark",
|
|
409
|
-
"atom-dark",
|
|
410
|
-
"cb",
|
|
411
|
-
"coldark-cold",
|
|
412
|
-
"coldark-dark",
|
|
413
|
-
"coy",
|
|
414
|
-
"coy-without-shadows",
|
|
415
|
-
"darcula",
|
|
416
|
-
"dark",
|
|
417
|
-
"dracula",
|
|
418
|
-
"duotone-dark",
|
|
419
|
-
"duotone-earth",
|
|
420
|
-
"duotone-forest",
|
|
421
|
-
"duotone-light",
|
|
422
|
-
"duotone-sea",
|
|
423
|
-
"duotone-space",
|
|
424
|
-
"funky",
|
|
425
|
-
"ghcolors",
|
|
426
|
-
"gruvbox-dark",
|
|
427
|
-
"gruvbox-light",
|
|
428
|
-
"holi-theme",
|
|
429
|
-
"hopscotch",
|
|
430
|
-
"light",
|
|
431
|
-
"lucario",
|
|
432
|
-
"material-dark",
|
|
433
|
-
"material-light",
|
|
434
|
-
"material-oceanic",
|
|
435
|
-
"night-owl",
|
|
436
|
-
"nord",
|
|
437
|
-
"okaidia",
|
|
438
|
-
"one-dark",
|
|
439
|
-
"one-light",
|
|
440
|
-
"pojoaque",
|
|
441
|
-
"prism",
|
|
442
|
-
"shades-of-purple",
|
|
443
|
-
"solarized-dark-atom",
|
|
444
|
-
"solarizedlight",
|
|
445
|
-
"synthwave84",
|
|
446
|
-
"tomorrow",
|
|
447
|
-
"twilight",
|
|
448
|
-
"vs",
|
|
449
|
-
"vs-dark",
|
|
450
|
-
"vsc-dark-plus",
|
|
451
|
-
"xonokai",
|
|
452
|
-
"z-touch",
|
|
453
|
-
],
|
|
454
|
-
]
|
|
455
|
-
] = None,
|
|
355
|
+
theme: Optional[Union[Any, Var[Any]]] = None,
|
|
456
356
|
language: Optional[
|
|
457
357
|
Union[
|
|
458
|
-
Var[
|
|
459
|
-
Literal[
|
|
460
|
-
"abap",
|
|
461
|
-
"abnf",
|
|
462
|
-
"actionscript",
|
|
463
|
-
"ada",
|
|
464
|
-
"agda",
|
|
465
|
-
"al",
|
|
466
|
-
"antlr4",
|
|
467
|
-
"apacheconf",
|
|
468
|
-
"apex",
|
|
469
|
-
"apl",
|
|
470
|
-
"applescript",
|
|
471
|
-
"aql",
|
|
472
|
-
"arduino",
|
|
473
|
-
"arff",
|
|
474
|
-
"asciidoc",
|
|
475
|
-
"asm6502",
|
|
476
|
-
"asmatmel",
|
|
477
|
-
"aspnet",
|
|
478
|
-
"autohotkey",
|
|
479
|
-
"autoit",
|
|
480
|
-
"avisynth",
|
|
481
|
-
"avro-idl",
|
|
482
|
-
"bash",
|
|
483
|
-
"basic",
|
|
484
|
-
"batch",
|
|
485
|
-
"bbcode",
|
|
486
|
-
"bicep",
|
|
487
|
-
"birb",
|
|
488
|
-
"bison",
|
|
489
|
-
"bnf",
|
|
490
|
-
"brainfuck",
|
|
491
|
-
"brightscript",
|
|
492
|
-
"bro",
|
|
493
|
-
"bsl",
|
|
494
|
-
"c",
|
|
495
|
-
"cfscript",
|
|
496
|
-
"chaiscript",
|
|
497
|
-
"cil",
|
|
498
|
-
"clike",
|
|
499
|
-
"clojure",
|
|
500
|
-
"cmake",
|
|
501
|
-
"cobol",
|
|
502
|
-
"coffeescript",
|
|
503
|
-
"concurnas",
|
|
504
|
-
"coq",
|
|
505
|
-
"core",
|
|
506
|
-
"cpp",
|
|
507
|
-
"crystal",
|
|
508
|
-
"csharp",
|
|
509
|
-
"cshtml",
|
|
510
|
-
"csp",
|
|
511
|
-
"css",
|
|
512
|
-
"css-extras",
|
|
513
|
-
"csv",
|
|
514
|
-
"cypher",
|
|
515
|
-
"d",
|
|
516
|
-
"dart",
|
|
517
|
-
"dataweave",
|
|
518
|
-
"dax",
|
|
519
|
-
"dhall",
|
|
520
|
-
"diff",
|
|
521
|
-
"django",
|
|
522
|
-
"dns-zone-file",
|
|
523
|
-
"docker",
|
|
524
|
-
"dot",
|
|
525
|
-
"ebnf",
|
|
526
|
-
"editorconfig",
|
|
527
|
-
"eiffel",
|
|
528
|
-
"ejs",
|
|
529
|
-
"elixir",
|
|
530
|
-
"elm",
|
|
531
|
-
"erb",
|
|
532
|
-
"erlang",
|
|
533
|
-
"etlua",
|
|
534
|
-
"excel-formula",
|
|
535
|
-
"factor",
|
|
536
|
-
"false",
|
|
537
|
-
"firestore-security-rules",
|
|
538
|
-
"flow",
|
|
539
|
-
"fortran",
|
|
540
|
-
"fsharp",
|
|
541
|
-
"ftl",
|
|
542
|
-
"gap",
|
|
543
|
-
"gcode",
|
|
544
|
-
"gdscript",
|
|
545
|
-
"gedcom",
|
|
546
|
-
"gherkin",
|
|
547
|
-
"git",
|
|
548
|
-
"glsl",
|
|
549
|
-
"gml",
|
|
550
|
-
"gn",
|
|
551
|
-
"go",
|
|
552
|
-
"go-module",
|
|
553
|
-
"graphql",
|
|
554
|
-
"groovy",
|
|
555
|
-
"haml",
|
|
556
|
-
"handlebars",
|
|
557
|
-
"haskell",
|
|
558
|
-
"haxe",
|
|
559
|
-
"hcl",
|
|
560
|
-
"hlsl",
|
|
561
|
-
"hoon",
|
|
562
|
-
"hpkp",
|
|
563
|
-
"hsts",
|
|
564
|
-
"http",
|
|
565
|
-
"ichigojam",
|
|
566
|
-
"icon",
|
|
567
|
-
"icu-message-format",
|
|
568
|
-
"idris",
|
|
569
|
-
"iecst",
|
|
570
|
-
"ignore",
|
|
571
|
-
"index",
|
|
572
|
-
"inform7",
|
|
573
|
-
"ini",
|
|
574
|
-
"io",
|
|
575
|
-
"j",
|
|
576
|
-
"java",
|
|
577
|
-
"javadoc",
|
|
578
|
-
"javadoclike",
|
|
579
|
-
"javascript",
|
|
580
|
-
"javastacktrace",
|
|
581
|
-
"jexl",
|
|
582
|
-
"jolie",
|
|
583
|
-
"jq",
|
|
584
|
-
"js-extras",
|
|
585
|
-
"js-templates",
|
|
586
|
-
"jsdoc",
|
|
587
|
-
"json",
|
|
588
|
-
"json5",
|
|
589
|
-
"jsonp",
|
|
590
|
-
"jsstacktrace",
|
|
591
|
-
"jsx",
|
|
592
|
-
"julia",
|
|
593
|
-
"keepalived",
|
|
594
|
-
"keyman",
|
|
595
|
-
"kotlin",
|
|
596
|
-
"kumir",
|
|
597
|
-
"kusto",
|
|
598
|
-
"latex",
|
|
599
|
-
"latte",
|
|
600
|
-
"less",
|
|
601
|
-
"lilypond",
|
|
602
|
-
"liquid",
|
|
603
|
-
"lisp",
|
|
604
|
-
"livescript",
|
|
605
|
-
"llvm",
|
|
606
|
-
"log",
|
|
607
|
-
"lolcode",
|
|
608
|
-
"lua",
|
|
609
|
-
"magma",
|
|
610
|
-
"makefile",
|
|
611
|
-
"markdown",
|
|
612
|
-
"markup",
|
|
613
|
-
"markup-templating",
|
|
614
|
-
"matlab",
|
|
615
|
-
"maxscript",
|
|
616
|
-
"mel",
|
|
617
|
-
"mermaid",
|
|
618
|
-
"mizar",
|
|
619
|
-
"mongodb",
|
|
620
|
-
"monkey",
|
|
621
|
-
"moonscript",
|
|
622
|
-
"n1ql",
|
|
623
|
-
"n4js",
|
|
624
|
-
"nand2tetris-hdl",
|
|
625
|
-
"naniscript",
|
|
626
|
-
"nasm",
|
|
627
|
-
"neon",
|
|
628
|
-
"nevod",
|
|
629
|
-
"nginx",
|
|
630
|
-
"nim",
|
|
631
|
-
"nix",
|
|
632
|
-
"nsis",
|
|
633
|
-
"objectivec",
|
|
634
|
-
"ocaml",
|
|
635
|
-
"opencl",
|
|
636
|
-
"openqasm",
|
|
637
|
-
"oz",
|
|
638
|
-
"parigp",
|
|
639
|
-
"parser",
|
|
640
|
-
"pascal",
|
|
641
|
-
"pascaligo",
|
|
642
|
-
"pcaxis",
|
|
643
|
-
"peoplecode",
|
|
644
|
-
"perl",
|
|
645
|
-
"php",
|
|
646
|
-
"php-extras",
|
|
647
|
-
"phpdoc",
|
|
648
|
-
"plsql",
|
|
649
|
-
"powerquery",
|
|
650
|
-
"powershell",
|
|
651
|
-
"processing",
|
|
652
|
-
"prolog",
|
|
653
|
-
"promql",
|
|
654
|
-
"properties",
|
|
655
|
-
"protobuf",
|
|
656
|
-
"psl",
|
|
657
|
-
"pug",
|
|
658
|
-
"puppet",
|
|
659
|
-
"pure",
|
|
660
|
-
"purebasic",
|
|
661
|
-
"purescript",
|
|
662
|
-
"python",
|
|
663
|
-
"q",
|
|
664
|
-
"qml",
|
|
665
|
-
"qore",
|
|
666
|
-
"qsharp",
|
|
667
|
-
"r",
|
|
668
|
-
"racket",
|
|
669
|
-
"reason",
|
|
670
|
-
"regex",
|
|
671
|
-
"rego",
|
|
672
|
-
"renpy",
|
|
673
|
-
"rest",
|
|
674
|
-
"rip",
|
|
675
|
-
"roboconf",
|
|
676
|
-
"robotframework",
|
|
677
|
-
"ruby",
|
|
678
|
-
"rust",
|
|
679
|
-
"sas",
|
|
680
|
-
"sass",
|
|
681
|
-
"scala",
|
|
682
|
-
"scheme",
|
|
683
|
-
"scss",
|
|
684
|
-
"shell-session",
|
|
685
|
-
"smali",
|
|
686
|
-
"smalltalk",
|
|
687
|
-
"smarty",
|
|
688
|
-
"sml",
|
|
689
|
-
"solidity",
|
|
690
|
-
"solution-file",
|
|
691
|
-
"soy",
|
|
692
|
-
"sparql",
|
|
693
|
-
"splunk-spl",
|
|
694
|
-
"sqf",
|
|
695
|
-
"sql",
|
|
696
|
-
"squirrel",
|
|
697
|
-
"stan",
|
|
698
|
-
"stylus",
|
|
699
|
-
"swift",
|
|
700
|
-
"systemd",
|
|
701
|
-
"t4-cs",
|
|
702
|
-
"t4-templating",
|
|
703
|
-
"t4-vb",
|
|
704
|
-
"tap",
|
|
705
|
-
"tcl",
|
|
706
|
-
"textile",
|
|
707
|
-
"toml",
|
|
708
|
-
"tremor",
|
|
709
|
-
"tsx",
|
|
710
|
-
"tt2",
|
|
711
|
-
"turtle",
|
|
712
|
-
"twig",
|
|
713
|
-
"typescript",
|
|
714
|
-
"typoscript",
|
|
715
|
-
"unrealscript",
|
|
716
|
-
"uorazor",
|
|
717
|
-
"uri",
|
|
718
|
-
"v",
|
|
719
|
-
"vala",
|
|
720
|
-
"vbnet",
|
|
721
|
-
"velocity",
|
|
722
|
-
"verilog",
|
|
723
|
-
"vhdl",
|
|
724
|
-
"vim",
|
|
725
|
-
"visual-basic",
|
|
726
|
-
"warpscript",
|
|
727
|
-
"wasm",
|
|
728
|
-
"web-idl",
|
|
729
|
-
"wiki",
|
|
730
|
-
"wolfram",
|
|
731
|
-
"wren",
|
|
732
|
-
"xeora",
|
|
733
|
-
"xml-doc",
|
|
734
|
-
"xojo",
|
|
735
|
-
"xquery",
|
|
736
|
-
"yaml",
|
|
737
|
-
"yang",
|
|
738
|
-
"zig",
|
|
739
|
-
]
|
|
740
|
-
],
|
|
741
358
|
Literal[
|
|
742
359
|
"abap",
|
|
743
360
|
"abnf",
|
|
@@ -1019,6 +636,289 @@ class CodeBlock(Component):
|
|
|
1019
636
|
"yang",
|
|
1020
637
|
"zig",
|
|
1021
638
|
],
|
|
639
|
+
Var[
|
|
640
|
+
Literal[
|
|
641
|
+
"abap",
|
|
642
|
+
"abnf",
|
|
643
|
+
"actionscript",
|
|
644
|
+
"ada",
|
|
645
|
+
"agda",
|
|
646
|
+
"al",
|
|
647
|
+
"antlr4",
|
|
648
|
+
"apacheconf",
|
|
649
|
+
"apex",
|
|
650
|
+
"apl",
|
|
651
|
+
"applescript",
|
|
652
|
+
"aql",
|
|
653
|
+
"arduino",
|
|
654
|
+
"arff",
|
|
655
|
+
"asciidoc",
|
|
656
|
+
"asm6502",
|
|
657
|
+
"asmatmel",
|
|
658
|
+
"aspnet",
|
|
659
|
+
"autohotkey",
|
|
660
|
+
"autoit",
|
|
661
|
+
"avisynth",
|
|
662
|
+
"avro-idl",
|
|
663
|
+
"bash",
|
|
664
|
+
"basic",
|
|
665
|
+
"batch",
|
|
666
|
+
"bbcode",
|
|
667
|
+
"bicep",
|
|
668
|
+
"birb",
|
|
669
|
+
"bison",
|
|
670
|
+
"bnf",
|
|
671
|
+
"brainfuck",
|
|
672
|
+
"brightscript",
|
|
673
|
+
"bro",
|
|
674
|
+
"bsl",
|
|
675
|
+
"c",
|
|
676
|
+
"cfscript",
|
|
677
|
+
"chaiscript",
|
|
678
|
+
"cil",
|
|
679
|
+
"clike",
|
|
680
|
+
"clojure",
|
|
681
|
+
"cmake",
|
|
682
|
+
"cobol",
|
|
683
|
+
"coffeescript",
|
|
684
|
+
"concurnas",
|
|
685
|
+
"coq",
|
|
686
|
+
"core",
|
|
687
|
+
"cpp",
|
|
688
|
+
"crystal",
|
|
689
|
+
"csharp",
|
|
690
|
+
"cshtml",
|
|
691
|
+
"csp",
|
|
692
|
+
"css",
|
|
693
|
+
"css-extras",
|
|
694
|
+
"csv",
|
|
695
|
+
"cypher",
|
|
696
|
+
"d",
|
|
697
|
+
"dart",
|
|
698
|
+
"dataweave",
|
|
699
|
+
"dax",
|
|
700
|
+
"dhall",
|
|
701
|
+
"diff",
|
|
702
|
+
"django",
|
|
703
|
+
"dns-zone-file",
|
|
704
|
+
"docker",
|
|
705
|
+
"dot",
|
|
706
|
+
"ebnf",
|
|
707
|
+
"editorconfig",
|
|
708
|
+
"eiffel",
|
|
709
|
+
"ejs",
|
|
710
|
+
"elixir",
|
|
711
|
+
"elm",
|
|
712
|
+
"erb",
|
|
713
|
+
"erlang",
|
|
714
|
+
"etlua",
|
|
715
|
+
"excel-formula",
|
|
716
|
+
"factor",
|
|
717
|
+
"false",
|
|
718
|
+
"firestore-security-rules",
|
|
719
|
+
"flow",
|
|
720
|
+
"fortran",
|
|
721
|
+
"fsharp",
|
|
722
|
+
"ftl",
|
|
723
|
+
"gap",
|
|
724
|
+
"gcode",
|
|
725
|
+
"gdscript",
|
|
726
|
+
"gedcom",
|
|
727
|
+
"gherkin",
|
|
728
|
+
"git",
|
|
729
|
+
"glsl",
|
|
730
|
+
"gml",
|
|
731
|
+
"gn",
|
|
732
|
+
"go",
|
|
733
|
+
"go-module",
|
|
734
|
+
"graphql",
|
|
735
|
+
"groovy",
|
|
736
|
+
"haml",
|
|
737
|
+
"handlebars",
|
|
738
|
+
"haskell",
|
|
739
|
+
"haxe",
|
|
740
|
+
"hcl",
|
|
741
|
+
"hlsl",
|
|
742
|
+
"hoon",
|
|
743
|
+
"hpkp",
|
|
744
|
+
"hsts",
|
|
745
|
+
"http",
|
|
746
|
+
"ichigojam",
|
|
747
|
+
"icon",
|
|
748
|
+
"icu-message-format",
|
|
749
|
+
"idris",
|
|
750
|
+
"iecst",
|
|
751
|
+
"ignore",
|
|
752
|
+
"index",
|
|
753
|
+
"inform7",
|
|
754
|
+
"ini",
|
|
755
|
+
"io",
|
|
756
|
+
"j",
|
|
757
|
+
"java",
|
|
758
|
+
"javadoc",
|
|
759
|
+
"javadoclike",
|
|
760
|
+
"javascript",
|
|
761
|
+
"javastacktrace",
|
|
762
|
+
"jexl",
|
|
763
|
+
"jolie",
|
|
764
|
+
"jq",
|
|
765
|
+
"js-extras",
|
|
766
|
+
"js-templates",
|
|
767
|
+
"jsdoc",
|
|
768
|
+
"json",
|
|
769
|
+
"json5",
|
|
770
|
+
"jsonp",
|
|
771
|
+
"jsstacktrace",
|
|
772
|
+
"jsx",
|
|
773
|
+
"julia",
|
|
774
|
+
"keepalived",
|
|
775
|
+
"keyman",
|
|
776
|
+
"kotlin",
|
|
777
|
+
"kumir",
|
|
778
|
+
"kusto",
|
|
779
|
+
"latex",
|
|
780
|
+
"latte",
|
|
781
|
+
"less",
|
|
782
|
+
"lilypond",
|
|
783
|
+
"liquid",
|
|
784
|
+
"lisp",
|
|
785
|
+
"livescript",
|
|
786
|
+
"llvm",
|
|
787
|
+
"log",
|
|
788
|
+
"lolcode",
|
|
789
|
+
"lua",
|
|
790
|
+
"magma",
|
|
791
|
+
"makefile",
|
|
792
|
+
"markdown",
|
|
793
|
+
"markup",
|
|
794
|
+
"markup-templating",
|
|
795
|
+
"matlab",
|
|
796
|
+
"maxscript",
|
|
797
|
+
"mel",
|
|
798
|
+
"mermaid",
|
|
799
|
+
"mizar",
|
|
800
|
+
"mongodb",
|
|
801
|
+
"monkey",
|
|
802
|
+
"moonscript",
|
|
803
|
+
"n1ql",
|
|
804
|
+
"n4js",
|
|
805
|
+
"nand2tetris-hdl",
|
|
806
|
+
"naniscript",
|
|
807
|
+
"nasm",
|
|
808
|
+
"neon",
|
|
809
|
+
"nevod",
|
|
810
|
+
"nginx",
|
|
811
|
+
"nim",
|
|
812
|
+
"nix",
|
|
813
|
+
"nsis",
|
|
814
|
+
"objectivec",
|
|
815
|
+
"ocaml",
|
|
816
|
+
"opencl",
|
|
817
|
+
"openqasm",
|
|
818
|
+
"oz",
|
|
819
|
+
"parigp",
|
|
820
|
+
"parser",
|
|
821
|
+
"pascal",
|
|
822
|
+
"pascaligo",
|
|
823
|
+
"pcaxis",
|
|
824
|
+
"peoplecode",
|
|
825
|
+
"perl",
|
|
826
|
+
"php",
|
|
827
|
+
"php-extras",
|
|
828
|
+
"phpdoc",
|
|
829
|
+
"plsql",
|
|
830
|
+
"powerquery",
|
|
831
|
+
"powershell",
|
|
832
|
+
"processing",
|
|
833
|
+
"prolog",
|
|
834
|
+
"promql",
|
|
835
|
+
"properties",
|
|
836
|
+
"protobuf",
|
|
837
|
+
"psl",
|
|
838
|
+
"pug",
|
|
839
|
+
"puppet",
|
|
840
|
+
"pure",
|
|
841
|
+
"purebasic",
|
|
842
|
+
"purescript",
|
|
843
|
+
"python",
|
|
844
|
+
"q",
|
|
845
|
+
"qml",
|
|
846
|
+
"qore",
|
|
847
|
+
"qsharp",
|
|
848
|
+
"r",
|
|
849
|
+
"racket",
|
|
850
|
+
"reason",
|
|
851
|
+
"regex",
|
|
852
|
+
"rego",
|
|
853
|
+
"renpy",
|
|
854
|
+
"rest",
|
|
855
|
+
"rip",
|
|
856
|
+
"roboconf",
|
|
857
|
+
"robotframework",
|
|
858
|
+
"ruby",
|
|
859
|
+
"rust",
|
|
860
|
+
"sas",
|
|
861
|
+
"sass",
|
|
862
|
+
"scala",
|
|
863
|
+
"scheme",
|
|
864
|
+
"scss",
|
|
865
|
+
"shell-session",
|
|
866
|
+
"smali",
|
|
867
|
+
"smalltalk",
|
|
868
|
+
"smarty",
|
|
869
|
+
"sml",
|
|
870
|
+
"solidity",
|
|
871
|
+
"solution-file",
|
|
872
|
+
"soy",
|
|
873
|
+
"sparql",
|
|
874
|
+
"splunk-spl",
|
|
875
|
+
"sqf",
|
|
876
|
+
"sql",
|
|
877
|
+
"squirrel",
|
|
878
|
+
"stan",
|
|
879
|
+
"stylus",
|
|
880
|
+
"swift",
|
|
881
|
+
"systemd",
|
|
882
|
+
"t4-cs",
|
|
883
|
+
"t4-templating",
|
|
884
|
+
"t4-vb",
|
|
885
|
+
"tap",
|
|
886
|
+
"tcl",
|
|
887
|
+
"textile",
|
|
888
|
+
"toml",
|
|
889
|
+
"tremor",
|
|
890
|
+
"tsx",
|
|
891
|
+
"tt2",
|
|
892
|
+
"turtle",
|
|
893
|
+
"twig",
|
|
894
|
+
"typescript",
|
|
895
|
+
"typoscript",
|
|
896
|
+
"unrealscript",
|
|
897
|
+
"uorazor",
|
|
898
|
+
"uri",
|
|
899
|
+
"v",
|
|
900
|
+
"vala",
|
|
901
|
+
"vbnet",
|
|
902
|
+
"velocity",
|
|
903
|
+
"verilog",
|
|
904
|
+
"vhdl",
|
|
905
|
+
"vim",
|
|
906
|
+
"visual-basic",
|
|
907
|
+
"warpscript",
|
|
908
|
+
"wasm",
|
|
909
|
+
"web-idl",
|
|
910
|
+
"wiki",
|
|
911
|
+
"wolfram",
|
|
912
|
+
"wren",
|
|
913
|
+
"xeora",
|
|
914
|
+
"xml-doc",
|
|
915
|
+
"xojo",
|
|
916
|
+
"xquery",
|
|
917
|
+
"yaml",
|
|
918
|
+
"yang",
|
|
919
|
+
"zig",
|
|
920
|
+
]
|
|
921
|
+
],
|
|
1022
922
|
]
|
|
1023
923
|
] = None,
|
|
1024
924
|
code: Optional[Union[Var[str], str]] = None,
|
|
@@ -1026,57 +926,47 @@ class CodeBlock(Component):
|
|
|
1026
926
|
starting_line_number: Optional[Union[Var[int], int]] = None,
|
|
1027
927
|
wrap_long_lines: Optional[Union[Var[bool], bool]] = None,
|
|
1028
928
|
custom_style: Optional[Dict[str, Union[str, Var, Color]]] = None,
|
|
1029
|
-
code_tag_props: Optional[Union[
|
|
929
|
+
code_tag_props: Optional[Union[Dict[str, str], Var[Dict[str, str]]]] = None,
|
|
1030
930
|
style: Optional[Style] = None,
|
|
1031
931
|
key: Optional[Any] = None,
|
|
1032
932
|
id: Optional[Any] = None,
|
|
1033
933
|
class_name: Optional[Any] = None,
|
|
1034
934
|
autofocus: Optional[bool] = None,
|
|
1035
|
-
custom_attrs: Optional[Dict[str, Union[
|
|
1036
|
-
on_blur: Optional[
|
|
1037
|
-
|
|
1038
|
-
] = None,
|
|
1039
|
-
on_click: Optional[
|
|
1040
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
1041
|
-
] = None,
|
|
935
|
+
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
936
|
+
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
937
|
+
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
1042
938
|
on_context_menu: Optional[
|
|
1043
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
939
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
1044
940
|
] = None,
|
|
1045
941
|
on_double_click: Optional[
|
|
1046
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
1047
|
-
] = None,
|
|
1048
|
-
on_focus: Optional[
|
|
1049
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
1050
|
-
] = None,
|
|
1051
|
-
on_mount: Optional[
|
|
1052
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
942
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
1053
943
|
] = None,
|
|
944
|
+
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
945
|
+
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
1054
946
|
on_mouse_down: Optional[
|
|
1055
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
947
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
1056
948
|
] = None,
|
|
1057
949
|
on_mouse_enter: Optional[
|
|
1058
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
950
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
1059
951
|
] = None,
|
|
1060
952
|
on_mouse_leave: Optional[
|
|
1061
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
953
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
1062
954
|
] = None,
|
|
1063
955
|
on_mouse_move: Optional[
|
|
1064
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
956
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
1065
957
|
] = None,
|
|
1066
958
|
on_mouse_out: Optional[
|
|
1067
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
959
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
1068
960
|
] = None,
|
|
1069
961
|
on_mouse_over: Optional[
|
|
1070
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
962
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
1071
963
|
] = None,
|
|
1072
964
|
on_mouse_up: Optional[
|
|
1073
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
1074
|
-
] = None,
|
|
1075
|
-
on_scroll: Optional[
|
|
1076
|
-
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
965
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
1077
966
|
] = None,
|
|
967
|
+
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
1078
968
|
on_unmount: Optional[
|
|
1079
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
969
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
1080
970
|
] = None,
|
|
1081
971
|
**props,
|
|
1082
972
|
) -> "CodeBlock":
|