reflex 0.3.7__py3-none-any.whl → 0.3.8__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/apps/blank/code/blank.py +0 -1
- reflex/.templates/apps/demo/code/demo.py +0 -1
- reflex/.templates/apps/sidebar/code/sidebar.py +6 -2
- reflex/.templates/jinja/web/pages/_app.js.jinja2 +4 -1
- reflex/.templates/jinja/web/pages/base_page.js.jinja2 +4 -1
- reflex/.templates/jinja/web/pages/utils.js.jinja2 +24 -0
- reflex/.templates/jinja/web/tailwind.config.js.jinja2 +4 -1
- reflex/.templates/web/utils/helpers/dataeditor.js +56 -54
- reflex/__init__.py +4 -2
- reflex/__init__.pyi +6 -2
- reflex/app.py +43 -9
- reflex/app.pyi +2 -1
- reflex/app_module_for_backend.py +13 -0
- reflex/compiler/compiler.py +19 -0
- reflex/components/__init__.py +9 -232
- reflex/components/base/__init__.py +5 -1
- reflex/components/base/app_wrap.py +1 -1
- reflex/components/base/app_wrap.pyi +1 -1
- reflex/components/base/document.py +0 -8
- reflex/components/base/document.pyi +0 -80
- reflex/components/{layout → base}/fragment.pyi +1 -1
- reflex/components/chakra/__init__.py +202 -19
- reflex/components/{libs/chakra.pyi → chakra/base.pyi} +1 -1
- reflex/components/chakra/datadisplay/__init__.py +12 -0
- reflex/components/{datadisplay → chakra/datadisplay}/badge.py +1 -1
- reflex/components/{datadisplay → chakra/datadisplay}/badge.pyi +2 -2
- reflex/components/{datadisplay → chakra/datadisplay}/code.py +5 -5
- reflex/components/{datadisplay → chakra/datadisplay}/code.pyi +5 -5
- reflex/components/{datadisplay → chakra/datadisplay}/divider.py +4 -2
- reflex/components/{datadisplay → chakra/datadisplay}/divider.pyi +5 -3
- reflex/components/{datadisplay → chakra/datadisplay}/keyboard_key.py +1 -1
- reflex/components/{datadisplay → chakra/datadisplay}/keyboard_key.pyi +2 -2
- reflex/components/{datadisplay → chakra/datadisplay}/list.py +3 -3
- reflex/components/{datadisplay → chakra/datadisplay}/list.pyi +4 -4
- reflex/components/{datadisplay → chakra/datadisplay}/stat.py +1 -1
- reflex/components/{datadisplay → chakra/datadisplay}/stat.pyi +2 -2
- reflex/components/{datadisplay → chakra/datadisplay}/table.py +2 -2
- reflex/components/{datadisplay → chakra/datadisplay}/table.pyi +3 -3
- reflex/components/{datadisplay → chakra/datadisplay}/tag.py +2 -2
- reflex/components/{datadisplay → chakra/datadisplay}/tag.pyi +3 -3
- reflex/components/{disclosure → chakra/disclosure}/accordion.py +1 -1
- reflex/components/{disclosure → chakra/disclosure}/accordion.pyi +2 -2
- reflex/components/{disclosure → chakra/disclosure}/tabs.py +2 -2
- reflex/components/{disclosure → chakra/disclosure}/tabs.pyi +3 -3
- reflex/components/{disclosure → chakra/disclosure}/transition.py +1 -1
- reflex/components/{disclosure → chakra/disclosure}/transition.pyi +2 -2
- reflex/components/{disclosure → chakra/disclosure}/visuallyhidden.py +1 -1
- reflex/components/{disclosure → chakra/disclosure}/visuallyhidden.pyi +2 -2
- reflex/components/{feedback → chakra/feedback}/alert.py +2 -2
- reflex/components/{feedback → chakra/feedback}/alert.pyi +2 -6
- reflex/components/{feedback → chakra/feedback}/circularprogress.py +1 -1
- reflex/components/{feedback → chakra/feedback}/circularprogress.pyi +2 -2
- reflex/components/{feedback → chakra/feedback}/progress.py +1 -1
- reflex/components/{feedback → chakra/feedback}/progress.pyi +2 -2
- reflex/components/{feedback → chakra/feedback}/skeleton.py +1 -1
- reflex/components/{feedback → chakra/feedback}/skeleton.pyi +2 -2
- reflex/components/{feedback → chakra/feedback}/spinner.py +1 -1
- reflex/components/{feedback → chakra/feedback}/spinner.pyi +2 -2
- reflex/components/{forms → chakra/forms}/__init__.py +2 -11
- reflex/components/{forms → chakra/forms}/button.py +3 -1
- reflex/components/{forms → chakra/forms}/button.pyi +2 -2
- reflex/components/{forms → chakra/forms}/checkbox.py +1 -1
- reflex/components/{forms → chakra/forms}/checkbox.pyi +2 -6
- reflex/components/{forms → chakra/forms}/colormodeswitch.py +10 -2
- reflex/components/{forms → chakra/forms}/colormodeswitch.pyi +83 -3
- reflex/components/{forms → chakra/forms}/date_picker.py +1 -1
- reflex/components/{forms → chakra/forms}/date_picker.pyi +2 -2
- reflex/components/{forms → chakra/forms}/date_time_picker.py +1 -1
- reflex/components/{forms → chakra/forms}/date_time_picker.pyi +2 -2
- reflex/components/{forms → chakra/forms}/editable.py +1 -1
- reflex/components/{forms → chakra/forms}/editable.pyi +2 -2
- reflex/components/{forms → chakra/forms}/email.py +1 -1
- reflex/components/{forms → chakra/forms}/email.pyi +2 -2
- reflex/components/{forms → chakra/forms}/form.py +1 -1
- reflex/components/{forms → chakra/forms}/form.pyi +2 -2
- reflex/components/{forms → chakra/forms}/iconbutton.py +1 -1
- reflex/components/{forms → chakra/forms}/iconbutton.pyi +2 -2
- reflex/components/{forms → chakra/forms}/input.py +5 -4
- reflex/components/{forms → chakra/forms}/input.pyi +59 -5
- reflex/components/{forms → chakra/forms}/numberinput.py +6 -2
- reflex/components/{forms → chakra/forms}/numberinput.pyi +10 -2
- reflex/components/{forms → chakra/forms}/password.py +1 -1
- reflex/components/{forms → chakra/forms}/password.pyi +2 -2
- reflex/components/{forms → chakra/forms}/pininput.py +1 -1
- reflex/components/{forms → chakra/forms}/pininput.pyi +2 -2
- reflex/components/{forms → chakra/forms}/radio.py +3 -3
- reflex/components/{forms → chakra/forms}/radio.pyi +4 -4
- reflex/components/{forms → chakra/forms}/rangeslider.py +1 -1
- reflex/components/{forms → chakra/forms}/rangeslider.pyi +2 -2
- reflex/components/{forms → chakra/forms}/select.py +3 -3
- reflex/components/{forms → chakra/forms}/select.pyi +4 -4
- reflex/components/{forms → chakra/forms}/slider.py +4 -3
- reflex/components/{forms → chakra/forms}/slider.pyi +5 -4
- reflex/components/{forms → chakra/forms}/switch.py +1 -1
- reflex/components/{forms → chakra/forms}/switch.pyi +2 -2
- reflex/components/{forms → chakra/forms}/textarea.py +2 -2
- reflex/components/{forms → chakra/forms}/textarea.pyi +3 -3
- reflex/components/chakra/forms/time_picker.py +11 -0
- reflex/components/chakra/forms/time_picker.pyi +129 -0
- reflex/components/{layout → chakra/layout}/__init__.py +1 -20
- reflex/components/{layout → chakra/layout}/aspect_ratio.py +1 -1
- reflex/components/{layout → chakra/layout}/aspect_ratio.pyi +2 -2
- reflex/components/{layout → chakra/layout}/box.py +1 -1
- reflex/components/{layout → chakra/layout}/box.pyi +2 -2
- reflex/components/{layout → chakra/layout}/card.py +2 -2
- reflex/components/{layout → chakra/layout}/card.pyi +3 -3
- reflex/components/{layout → chakra/layout}/center.py +1 -1
- reflex/components/{layout → chakra/layout}/center.pyi +2 -2
- reflex/components/{layout → chakra/layout}/container.py +1 -1
- reflex/components/{layout → chakra/layout}/container.pyi +2 -2
- reflex/components/{layout → chakra/layout}/flex.py +1 -1
- reflex/components/{layout → chakra/layout}/flex.pyi +2 -2
- reflex/components/{layout → chakra/layout}/grid.py +1 -1
- reflex/components/{layout → chakra/layout}/grid.pyi +2 -2
- reflex/components/{layout → chakra/layout}/html.py +1 -1
- reflex/components/{layout → chakra/layout}/html.pyi +2 -2
- reflex/components/{layout → chakra/layout}/spacer.py +1 -1
- reflex/components/{layout → chakra/layout}/spacer.pyi +2 -2
- reflex/components/{layout → chakra/layout}/stack.py +1 -1
- reflex/components/{layout → chakra/layout}/stack.pyi +2 -2
- reflex/components/{layout → chakra/layout}/wrap.py +1 -1
- reflex/components/{layout → chakra/layout}/wrap.pyi +2 -2
- reflex/components/chakra/media/__init__.py +7 -0
- reflex/components/{media → chakra/media}/avatar.py +1 -1
- reflex/components/{media → chakra/media}/avatar.pyi +2 -2
- reflex/components/chakra/media/icon.py +110 -0
- reflex/components/{media → chakra/media}/icon.pyi +2 -2
- reflex/components/chakra/media/image.py +1 -1
- reflex/components/chakra/media/image.pyi +1 -1
- reflex/components/{navigation → chakra/navigation}/__init__.py +0 -1
- reflex/components/{navigation → chakra/navigation}/breadcrumb.py +3 -3
- reflex/components/{navigation → chakra/navigation}/breadcrumb.pyi +4 -4
- reflex/components/{navigation → chakra/navigation}/link.py +2 -2
- reflex/components/{navigation → chakra/navigation}/link.pyi +3 -3
- reflex/components/{navigation → chakra/navigation}/linkoverlay.py +1 -1
- reflex/components/{navigation → chakra/navigation}/linkoverlay.pyi +2 -2
- reflex/components/{navigation → chakra/navigation}/stepper.py +1 -1
- reflex/components/{navigation → chakra/navigation}/stepper.pyi +2 -2
- reflex/components/{overlay → chakra/overlay}/__init__.py +0 -1
- reflex/components/{overlay → chakra/overlay}/alertdialog.py +2 -2
- reflex/components/{overlay → chakra/overlay}/alertdialog.pyi +3 -3
- reflex/components/{overlay → chakra/overlay}/drawer.py +3 -3
- reflex/components/{overlay → chakra/overlay}/drawer.pyi +4 -4
- reflex/components/{overlay → chakra/overlay}/menu.py +4 -6
- reflex/components/{overlay → chakra/overlay}/menu.pyi +4 -4
- reflex/components/{overlay → chakra/overlay}/modal.py +2 -2
- reflex/components/{overlay → chakra/overlay}/modal.pyi +3 -3
- reflex/components/{overlay → chakra/overlay}/popover.py +2 -2
- reflex/components/{overlay → chakra/overlay}/popover.pyi +3 -3
- reflex/components/{overlay → chakra/overlay}/tooltip.py +1 -1
- reflex/components/{overlay → chakra/overlay}/tooltip.pyi +2 -2
- reflex/components/{typography → chakra/typography}/__init__.py +0 -1
- reflex/components/{typography → chakra/typography}/heading.py +1 -1
- reflex/components/{typography → chakra/typography}/heading.pyi +2 -2
- reflex/components/{typography → chakra/typography}/highlight.py +1 -1
- reflex/components/{typography → chakra/typography}/highlight.pyi +2 -2
- reflex/components/{typography → chakra/typography}/span.py +1 -1
- reflex/components/{typography → chakra/typography}/span.pyi +2 -2
- reflex/components/{typography → chakra/typography}/text.py +1 -1
- reflex/components/{typography → chakra/typography}/text.pyi +2 -2
- reflex/components/component.py +7 -8
- reflex/components/core/__init__.py +22 -0
- reflex/components/{overlay → core}/banner.py +4 -3
- reflex/components/{overlay → core}/banner.pyi +5 -4
- reflex/components/{navigation → core}/client_side_routing.py +1 -1
- reflex/components/{navigation → core}/client_side_routing.pyi +2 -2
- reflex/components/{layout → core}/cond.py +1 -1
- reflex/components/{forms → core}/debounce.py +1 -1
- reflex/components/{forms → core}/debounce.pyi +2 -2
- reflex/components/{layout → core}/foreach.py +18 -2
- reflex/components/core/match.py +257 -0
- reflex/components/{layout → core}/responsive.py +1 -1
- reflex/components/{forms → core}/upload.py +2 -2
- reflex/components/{forms → core}/upload.pyi +3 -3
- reflex/components/datadisplay/__init__.py +4 -13
- reflex/components/el/elements/inline.py +4 -0
- reflex/components/el/elements/inline.pyi +3 -0
- reflex/components/gridjs/__init__.py +5 -0
- reflex/components/{datadisplay → gridjs}/datatable.pyi +1 -1
- reflex/components/literals.py +27 -0
- reflex/components/markdown/__init__.py +5 -0
- reflex/components/{typography → markdown}/markdown.py +16 -6
- reflex/components/{typography → markdown}/markdown.pyi +10 -5
- reflex/components/media/__init__.py +1 -8
- reflex/components/media/icon.py +2 -110
- reflex/components/moment/__init__.py +5 -0
- reflex/components/{datadisplay → moment}/moment.pyi +1 -1
- reflex/components/next/__init__.py +2 -0
- reflex/components/{navigation/nextlink.pyi → next/link.pyi} +1 -1
- reflex/components/plotly/__init__.py +5 -0
- reflex/components/{graphing → plotly}/plotly.pyi +1 -1
- reflex/components/radix/primitives/__init__.py +12 -1
- reflex/components/radix/primitives/accordion.py +33 -68
- reflex/components/radix/primitives/accordion.pyi +6 -89
- reflex/components/radix/primitives/base.py +27 -0
- reflex/components/radix/primitives/base.pyi +95 -0
- reflex/components/radix/primitives/form.py +267 -0
- reflex/components/radix/primitives/form.pyi +740 -0
- reflex/components/radix/primitives/progress.py +84 -0
- reflex/components/radix/primitives/progress.pyi +268 -0
- reflex/components/radix/primitives/slider.py +179 -0
- reflex/components/radix/primitives/slider.pyi +452 -0
- reflex/components/radix/themes/base.py +43 -31
- reflex/components/radix/themes/base.pyi +223 -29
- reflex/components/radix/themes/components/__init__.py +18 -3
- reflex/components/radix/themes/components/alertdialog.py +27 -6
- reflex/components/radix/themes/components/alertdialog.pyi +713 -2
- reflex/components/radix/themes/components/aspectratio.py +1 -1
- reflex/components/radix/themes/components/aspectratio.pyi +67 -2
- reflex/components/radix/themes/components/avatar.py +0 -3
- reflex/components/radix/themes/components/avatar.pyi +13 -13
- reflex/components/radix/themes/components/badge.py +1 -4
- reflex/components/radix/themes/components/badge.pyi +11 -11
- reflex/components/radix/themes/components/button.py +1 -1
- reflex/components/radix/themes/components/button.pyi +15 -11
- reflex/components/radix/themes/components/callout.pyi +144 -12
- reflex/components/radix/themes/components/card.py +1 -1
- reflex/components/radix/themes/components/card.pyi +68 -1
- reflex/components/radix/themes/components/checkbox.pyi +14 -12
- reflex/components/radix/themes/components/contextmenu.pyi +402 -8
- reflex/components/radix/themes/components/dialog.py +6 -0
- reflex/components/radix/themes/components/dialog.pyi +518 -0
- reflex/components/radix/themes/components/dropdownmenu.pyi +337 -8
- reflex/components/radix/themes/components/hovercard.pyi +195 -0
- reflex/components/radix/themes/components/iconbutton.pyi +14 -12
- reflex/components/radix/themes/components/icons.py +2 -2
- reflex/components/radix/themes/components/inset.pyi +65 -0
- reflex/components/radix/themes/components/popover.pyi +260 -0
- reflex/components/radix/themes/components/radiogroup.py +1 -1
- reflex/components/radix/themes/components/radiogroup.pyi +78 -9
- reflex/components/radix/themes/components/scrollarea.pyi +65 -0
- reflex/components/radix/themes/components/select.pyi +342 -13
- reflex/components/radix/themes/components/separator.pyi +7 -5
- reflex/components/radix/themes/components/slider.py +4 -4
- reflex/components/radix/themes/components/slider.pyi +17 -13
- reflex/components/radix/themes/components/switch.pyi +20 -18
- reflex/components/radix/themes/components/table.py +1 -1
- reflex/components/radix/themes/components/table.pyi +458 -1
- reflex/components/radix/themes/components/tabs.py +4 -4
- reflex/components/radix/themes/components/tabs.pyi +263 -3
- reflex/components/radix/themes/components/textarea.py +1 -1
- reflex/components/radix/themes/components/textarea.pyi +1 -1
- reflex/components/radix/themes/components/textfield.py +1 -1
- reflex/components/radix/themes/components/textfield.pyi +18 -14
- reflex/components/radix/themes/components/tooltip.py +15 -0
- reflex/components/radix/themes/components/tooltip.pyi +205 -0
- reflex/components/radix/themes/layout/base.pyi +65 -0
- reflex/components/radix/themes/layout/box.pyi +65 -0
- reflex/components/radix/themes/layout/container.pyi +65 -0
- reflex/components/radix/themes/layout/flex.pyi +65 -0
- reflex/components/radix/themes/layout/grid.pyi +65 -0
- reflex/components/radix/themes/layout/section.pyi +65 -0
- reflex/components/radix/themes/typography/blockquote.pyi +16 -14
- reflex/components/radix/themes/typography/code.pyi +22 -20
- reflex/components/radix/themes/typography/em.pyi +65 -0
- reflex/components/radix/themes/typography/heading.pyi +30 -28
- reflex/components/radix/themes/typography/kbd.pyi +65 -0
- reflex/components/radix/themes/typography/link.py +2 -1
- reflex/components/radix/themes/typography/link.pyi +121 -28
- reflex/components/radix/themes/typography/quote.pyi +66 -0
- reflex/components/radix/themes/typography/strong.pyi +65 -0
- reflex/components/radix/themes/typography/text.pyi +30 -28
- reflex/components/react_player/__init__.py +7 -0
- reflex/components/react_player/audio.py +8 -0
- reflex/components/{media → react_player}/audio.pyi +3 -3
- reflex/components/{libs → react_player}/react_player.py +1 -1
- reflex/components/{libs → react_player}/react_player.pyi +3 -3
- reflex/components/react_player/video.py +8 -0
- reflex/components/{media → react_player}/video.pyi +3 -3
- reflex/components/{graphing/recharts → recharts}/cartesian.pyi +1 -1
- reflex/components/{graphing/recharts → recharts}/charts.py +1 -1
- reflex/components/{graphing/recharts → recharts}/charts.pyi +2 -2
- reflex/components/{graphing/recharts → recharts}/general.pyi +1 -1
- reflex/components/{graphing/recharts → recharts}/polar.pyi +1 -1
- reflex/components/{graphing/recharts → recharts}/recharts.pyi +1 -1
- reflex/components/suneditor/__init__.py +5 -0
- reflex/components/{forms → suneditor}/editor.pyi +1 -1
- reflex/components/tags/__init__.py +1 -0
- reflex/components/tags/iter_tag.py +3 -3
- reflex/components/tags/match_tag.py +19 -0
- reflex/constants/base.py +2 -0
- reflex/constants/installer.py +1 -0
- reflex/constants/style.py +1 -1
- reflex/event.py +1 -1
- reflex/reflex.py +14 -12
- reflex/state.py +14 -0
- reflex/style.py +1 -1
- reflex/testing.py +59 -9
- reflex/utils/build.py +7 -1
- reflex/utils/exceptions.py +6 -0
- reflex/utils/exec.py +2 -2
- reflex/utils/export.py +1 -1
- reflex/utils/format.py +41 -4
- reflex/utils/prerequisites.py +37 -6
- reflex/utils/types.py +2 -2
- reflex/vars.py +25 -1
- {reflex-0.3.7.dist-info → reflex-0.3.8.dist-info}/METADATA +7 -2
- reflex-0.3.8.dist-info/RECORD +492 -0
- reflex/components/graphing/__init__.py +0 -5
- reflex/components/libs/__init__.py +0 -31
- reflex/components/media/audio.py +0 -8
- reflex/components/media/image.pyi +0 -123
- reflex/components/media/video.py +0 -8
- reflex-0.3.7.dist-info/RECORD +0 -470
- /reflex/components/{layout → base}/fragment.py +0 -0
- /reflex/components/{libs/chakra.py → chakra/base.py} +0 -0
- /reflex/components/{disclosure → chakra/disclosure}/__init__.py +0 -0
- /reflex/components/{feedback → chakra/feedback}/__init__.py +0 -0
- /reflex/components/{forms → chakra/forms}/multiselect.py +0 -0
- /reflex/components/{datadisplay → gridjs}/datatable.py +0 -0
- /reflex/components/{datadisplay → moment}/moment.py +0 -0
- /reflex/components/{navigation/nextlink.py → next/link.py} +0 -0
- /reflex/components/{graphing → plotly}/plotly.py +0 -0
- /reflex/components/{graphing/recharts → recharts}/__init__.py +0 -0
- /reflex/components/{graphing/recharts → recharts}/cartesian.py +0 -0
- /reflex/components/{graphing/recharts → recharts}/general.py +0 -0
- /reflex/components/{graphing/recharts → recharts}/polar.py +0 -0
- /reflex/components/{graphing/recharts → recharts}/recharts.py +0 -0
- /reflex/components/{forms → suneditor}/editor.py +0 -0
- {reflex-0.3.7.dist-info → reflex-0.3.8.dist-info}/LICENSE +0 -0
- {reflex-0.3.7.dist-info → reflex-0.3.8.dist-info}/WHEEL +0 -0
- {reflex-0.3.7.dist-info → reflex-0.3.8.dist-info}/entry_points.txt +0 -0
|
@@ -18,6 +18,69 @@ class ContextMenuRoot(CommonMarginProps, RadixThemesComponent):
|
|
|
18
18
|
def create( # type: ignore
|
|
19
19
|
cls,
|
|
20
20
|
*children,
|
|
21
|
+
color: Optional[Union[Var[str], str]] = None,
|
|
22
|
+
color_scheme: Optional[
|
|
23
|
+
Union[
|
|
24
|
+
Var[
|
|
25
|
+
Literal[
|
|
26
|
+
"tomato",
|
|
27
|
+
"red",
|
|
28
|
+
"ruby",
|
|
29
|
+
"crimson",
|
|
30
|
+
"pink",
|
|
31
|
+
"plum",
|
|
32
|
+
"purple",
|
|
33
|
+
"violet",
|
|
34
|
+
"iris",
|
|
35
|
+
"indigo",
|
|
36
|
+
"blue",
|
|
37
|
+
"cyan",
|
|
38
|
+
"teal",
|
|
39
|
+
"jade",
|
|
40
|
+
"green",
|
|
41
|
+
"grass",
|
|
42
|
+
"brown",
|
|
43
|
+
"orange",
|
|
44
|
+
"sky",
|
|
45
|
+
"mint",
|
|
46
|
+
"lime",
|
|
47
|
+
"yellow",
|
|
48
|
+
"amber",
|
|
49
|
+
"gold",
|
|
50
|
+
"bronze",
|
|
51
|
+
"gray",
|
|
52
|
+
]
|
|
53
|
+
],
|
|
54
|
+
Literal[
|
|
55
|
+
"tomato",
|
|
56
|
+
"red",
|
|
57
|
+
"ruby",
|
|
58
|
+
"crimson",
|
|
59
|
+
"pink",
|
|
60
|
+
"plum",
|
|
61
|
+
"purple",
|
|
62
|
+
"violet",
|
|
63
|
+
"iris",
|
|
64
|
+
"indigo",
|
|
65
|
+
"blue",
|
|
66
|
+
"cyan",
|
|
67
|
+
"teal",
|
|
68
|
+
"jade",
|
|
69
|
+
"green",
|
|
70
|
+
"grass",
|
|
71
|
+
"brown",
|
|
72
|
+
"orange",
|
|
73
|
+
"sky",
|
|
74
|
+
"mint",
|
|
75
|
+
"lime",
|
|
76
|
+
"yellow",
|
|
77
|
+
"amber",
|
|
78
|
+
"gold",
|
|
79
|
+
"bronze",
|
|
80
|
+
"gray",
|
|
81
|
+
],
|
|
82
|
+
]
|
|
83
|
+
] = None,
|
|
21
84
|
modal: Optional[Union[Var[bool], bool]] = None,
|
|
22
85
|
m: Optional[
|
|
23
86
|
Union[
|
|
@@ -124,6 +187,8 @@ class ContextMenuRoot(CommonMarginProps, RadixThemesComponent):
|
|
|
124
187
|
|
|
125
188
|
Args:
|
|
126
189
|
*children: Child components.
|
|
190
|
+
color: map to CSS default color property.
|
|
191
|
+
color_scheme: map to radix color property.
|
|
127
192
|
modal: The modality of the context menu. When set to true, interaction with outside elements will be disabled and only menu content will be visible to screen readers.
|
|
128
193
|
m: Margin: "0" - "9"
|
|
129
194
|
mx: Margin horizontal: "0" - "9"
|
|
@@ -151,6 +216,69 @@ class ContextMenuTrigger(CommonMarginProps, RadixThemesComponent):
|
|
|
151
216
|
def create( # type: ignore
|
|
152
217
|
cls,
|
|
153
218
|
*children,
|
|
219
|
+
color: Optional[Union[Var[str], str]] = None,
|
|
220
|
+
color_scheme: Optional[
|
|
221
|
+
Union[
|
|
222
|
+
Var[
|
|
223
|
+
Literal[
|
|
224
|
+
"tomato",
|
|
225
|
+
"red",
|
|
226
|
+
"ruby",
|
|
227
|
+
"crimson",
|
|
228
|
+
"pink",
|
|
229
|
+
"plum",
|
|
230
|
+
"purple",
|
|
231
|
+
"violet",
|
|
232
|
+
"iris",
|
|
233
|
+
"indigo",
|
|
234
|
+
"blue",
|
|
235
|
+
"cyan",
|
|
236
|
+
"teal",
|
|
237
|
+
"jade",
|
|
238
|
+
"green",
|
|
239
|
+
"grass",
|
|
240
|
+
"brown",
|
|
241
|
+
"orange",
|
|
242
|
+
"sky",
|
|
243
|
+
"mint",
|
|
244
|
+
"lime",
|
|
245
|
+
"yellow",
|
|
246
|
+
"amber",
|
|
247
|
+
"gold",
|
|
248
|
+
"bronze",
|
|
249
|
+
"gray",
|
|
250
|
+
]
|
|
251
|
+
],
|
|
252
|
+
Literal[
|
|
253
|
+
"tomato",
|
|
254
|
+
"red",
|
|
255
|
+
"ruby",
|
|
256
|
+
"crimson",
|
|
257
|
+
"pink",
|
|
258
|
+
"plum",
|
|
259
|
+
"purple",
|
|
260
|
+
"violet",
|
|
261
|
+
"iris",
|
|
262
|
+
"indigo",
|
|
263
|
+
"blue",
|
|
264
|
+
"cyan",
|
|
265
|
+
"teal",
|
|
266
|
+
"jade",
|
|
267
|
+
"green",
|
|
268
|
+
"grass",
|
|
269
|
+
"brown",
|
|
270
|
+
"orange",
|
|
271
|
+
"sky",
|
|
272
|
+
"mint",
|
|
273
|
+
"lime",
|
|
274
|
+
"yellow",
|
|
275
|
+
"amber",
|
|
276
|
+
"gold",
|
|
277
|
+
"bronze",
|
|
278
|
+
"gray",
|
|
279
|
+
],
|
|
280
|
+
]
|
|
281
|
+
] = None,
|
|
154
282
|
disabled: Optional[Union[Var[bool], bool]] = None,
|
|
155
283
|
m: Optional[
|
|
156
284
|
Union[
|
|
@@ -254,6 +382,8 @@ class ContextMenuTrigger(CommonMarginProps, RadixThemesComponent):
|
|
|
254
382
|
|
|
255
383
|
Args:
|
|
256
384
|
*children: Child components.
|
|
385
|
+
color: map to CSS default color property.
|
|
386
|
+
color_scheme: map to radix color property.
|
|
257
387
|
disabled: Whether the trigger is disabled
|
|
258
388
|
m: Margin: "0" - "9"
|
|
259
389
|
mx: Margin horizontal: "0" - "9"
|
|
@@ -282,11 +412,8 @@ class ContextMenuContent(CommonMarginProps, RadixThemesComponent):
|
|
|
282
412
|
def create( # type: ignore
|
|
283
413
|
cls,
|
|
284
414
|
*children,
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
Union[Var[Literal["solid", "soft"]], Literal["solid", "soft"]]
|
|
288
|
-
] = None,
|
|
289
|
-
color: Optional[
|
|
415
|
+
color: Optional[Union[Var[str], str]] = None,
|
|
416
|
+
color_scheme: Optional[
|
|
290
417
|
Union[
|
|
291
418
|
Var[
|
|
292
419
|
Literal[
|
|
@@ -348,6 +475,10 @@ class ContextMenuContent(CommonMarginProps, RadixThemesComponent):
|
|
|
348
475
|
],
|
|
349
476
|
]
|
|
350
477
|
] = None,
|
|
478
|
+
size: Optional[Union[Var[Literal["1", "2"]], Literal["1", "2"]]] = None,
|
|
479
|
+
variant: Optional[
|
|
480
|
+
Union[Var[Literal["solid", "soft"]], Literal["solid", "soft"]]
|
|
481
|
+
] = None,
|
|
351
482
|
high_contrast: Optional[Union[Var[bool], bool]] = None,
|
|
352
483
|
align_offset: Optional[Union[Var[int], int]] = None,
|
|
353
484
|
avoid_collisions: Optional[Union[Var[bool], bool]] = None,
|
|
@@ -468,9 +599,10 @@ class ContextMenuContent(CommonMarginProps, RadixThemesComponent):
|
|
|
468
599
|
|
|
469
600
|
Args:
|
|
470
601
|
*children: Child components.
|
|
602
|
+
color: map to CSS default color property.
|
|
603
|
+
color_scheme: map to radix color property.
|
|
471
604
|
size: Button size "1" - "4"
|
|
472
605
|
variant: Variant of button: "solid" | "soft" | "outline" | "ghost"
|
|
473
|
-
color: Override theme color for button
|
|
474
606
|
high_contrast: Whether to render the button with higher contrast color against background
|
|
475
607
|
align_offset: The vertical distance in pixels from the anchor.
|
|
476
608
|
avoid_collisions: When true, overrides the side andalign preferences to prevent collisions with boundary edges.
|
|
@@ -500,6 +632,69 @@ class ContextMenuSub(CommonMarginProps, RadixThemesComponent):
|
|
|
500
632
|
def create( # type: ignore
|
|
501
633
|
cls,
|
|
502
634
|
*children,
|
|
635
|
+
color: Optional[Union[Var[str], str]] = None,
|
|
636
|
+
color_scheme: Optional[
|
|
637
|
+
Union[
|
|
638
|
+
Var[
|
|
639
|
+
Literal[
|
|
640
|
+
"tomato",
|
|
641
|
+
"red",
|
|
642
|
+
"ruby",
|
|
643
|
+
"crimson",
|
|
644
|
+
"pink",
|
|
645
|
+
"plum",
|
|
646
|
+
"purple",
|
|
647
|
+
"violet",
|
|
648
|
+
"iris",
|
|
649
|
+
"indigo",
|
|
650
|
+
"blue",
|
|
651
|
+
"cyan",
|
|
652
|
+
"teal",
|
|
653
|
+
"jade",
|
|
654
|
+
"green",
|
|
655
|
+
"grass",
|
|
656
|
+
"brown",
|
|
657
|
+
"orange",
|
|
658
|
+
"sky",
|
|
659
|
+
"mint",
|
|
660
|
+
"lime",
|
|
661
|
+
"yellow",
|
|
662
|
+
"amber",
|
|
663
|
+
"gold",
|
|
664
|
+
"bronze",
|
|
665
|
+
"gray",
|
|
666
|
+
]
|
|
667
|
+
],
|
|
668
|
+
Literal[
|
|
669
|
+
"tomato",
|
|
670
|
+
"red",
|
|
671
|
+
"ruby",
|
|
672
|
+
"crimson",
|
|
673
|
+
"pink",
|
|
674
|
+
"plum",
|
|
675
|
+
"purple",
|
|
676
|
+
"violet",
|
|
677
|
+
"iris",
|
|
678
|
+
"indigo",
|
|
679
|
+
"blue",
|
|
680
|
+
"cyan",
|
|
681
|
+
"teal",
|
|
682
|
+
"jade",
|
|
683
|
+
"green",
|
|
684
|
+
"grass",
|
|
685
|
+
"brown",
|
|
686
|
+
"orange",
|
|
687
|
+
"sky",
|
|
688
|
+
"mint",
|
|
689
|
+
"lime",
|
|
690
|
+
"yellow",
|
|
691
|
+
"amber",
|
|
692
|
+
"gold",
|
|
693
|
+
"bronze",
|
|
694
|
+
"gray",
|
|
695
|
+
],
|
|
696
|
+
]
|
|
697
|
+
] = None,
|
|
503
698
|
m: Optional[
|
|
504
699
|
Union[
|
|
505
700
|
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
@@ -602,6 +797,8 @@ class ContextMenuSub(CommonMarginProps, RadixThemesComponent):
|
|
|
602
797
|
|
|
603
798
|
Args:
|
|
604
799
|
*children: Child components.
|
|
800
|
+
color: map to CSS default color property.
|
|
801
|
+
color_scheme: map to radix color property.
|
|
605
802
|
m: Margin: "0" - "9"
|
|
606
803
|
mx: Margin horizontal: "0" - "9"
|
|
607
804
|
my: Margin vertical: "0" - "9"
|
|
@@ -628,6 +825,69 @@ class ContextMenuSubTrigger(CommonMarginProps, RadixThemesComponent):
|
|
|
628
825
|
def create( # type: ignore
|
|
629
826
|
cls,
|
|
630
827
|
*children,
|
|
828
|
+
color: Optional[Union[Var[str], str]] = None,
|
|
829
|
+
color_scheme: Optional[
|
|
830
|
+
Union[
|
|
831
|
+
Var[
|
|
832
|
+
Literal[
|
|
833
|
+
"tomato",
|
|
834
|
+
"red",
|
|
835
|
+
"ruby",
|
|
836
|
+
"crimson",
|
|
837
|
+
"pink",
|
|
838
|
+
"plum",
|
|
839
|
+
"purple",
|
|
840
|
+
"violet",
|
|
841
|
+
"iris",
|
|
842
|
+
"indigo",
|
|
843
|
+
"blue",
|
|
844
|
+
"cyan",
|
|
845
|
+
"teal",
|
|
846
|
+
"jade",
|
|
847
|
+
"green",
|
|
848
|
+
"grass",
|
|
849
|
+
"brown",
|
|
850
|
+
"orange",
|
|
851
|
+
"sky",
|
|
852
|
+
"mint",
|
|
853
|
+
"lime",
|
|
854
|
+
"yellow",
|
|
855
|
+
"amber",
|
|
856
|
+
"gold",
|
|
857
|
+
"bronze",
|
|
858
|
+
"gray",
|
|
859
|
+
]
|
|
860
|
+
],
|
|
861
|
+
Literal[
|
|
862
|
+
"tomato",
|
|
863
|
+
"red",
|
|
864
|
+
"ruby",
|
|
865
|
+
"crimson",
|
|
866
|
+
"pink",
|
|
867
|
+
"plum",
|
|
868
|
+
"purple",
|
|
869
|
+
"violet",
|
|
870
|
+
"iris",
|
|
871
|
+
"indigo",
|
|
872
|
+
"blue",
|
|
873
|
+
"cyan",
|
|
874
|
+
"teal",
|
|
875
|
+
"jade",
|
|
876
|
+
"green",
|
|
877
|
+
"grass",
|
|
878
|
+
"brown",
|
|
879
|
+
"orange",
|
|
880
|
+
"sky",
|
|
881
|
+
"mint",
|
|
882
|
+
"lime",
|
|
883
|
+
"yellow",
|
|
884
|
+
"amber",
|
|
885
|
+
"gold",
|
|
886
|
+
"bronze",
|
|
887
|
+
"gray",
|
|
888
|
+
],
|
|
889
|
+
]
|
|
890
|
+
] = None,
|
|
631
891
|
disabled: Optional[Union[Var[bool], bool]] = None,
|
|
632
892
|
m: Optional[
|
|
633
893
|
Union[
|
|
@@ -731,6 +991,8 @@ class ContextMenuSubTrigger(CommonMarginProps, RadixThemesComponent):
|
|
|
731
991
|
|
|
732
992
|
Args:
|
|
733
993
|
*children: Child components.
|
|
994
|
+
color: map to CSS default color property.
|
|
995
|
+
color_scheme: map to radix color property.
|
|
734
996
|
disabled: Whether the trigger is disabled
|
|
735
997
|
m: Margin: "0" - "9"
|
|
736
998
|
mx: Margin horizontal: "0" - "9"
|
|
@@ -759,6 +1021,69 @@ class ContextMenuSubContent(CommonMarginProps, RadixThemesComponent):
|
|
|
759
1021
|
def create( # type: ignore
|
|
760
1022
|
cls,
|
|
761
1023
|
*children,
|
|
1024
|
+
color: Optional[Union[Var[str], str]] = None,
|
|
1025
|
+
color_scheme: Optional[
|
|
1026
|
+
Union[
|
|
1027
|
+
Var[
|
|
1028
|
+
Literal[
|
|
1029
|
+
"tomato",
|
|
1030
|
+
"red",
|
|
1031
|
+
"ruby",
|
|
1032
|
+
"crimson",
|
|
1033
|
+
"pink",
|
|
1034
|
+
"plum",
|
|
1035
|
+
"purple",
|
|
1036
|
+
"violet",
|
|
1037
|
+
"iris",
|
|
1038
|
+
"indigo",
|
|
1039
|
+
"blue",
|
|
1040
|
+
"cyan",
|
|
1041
|
+
"teal",
|
|
1042
|
+
"jade",
|
|
1043
|
+
"green",
|
|
1044
|
+
"grass",
|
|
1045
|
+
"brown",
|
|
1046
|
+
"orange",
|
|
1047
|
+
"sky",
|
|
1048
|
+
"mint",
|
|
1049
|
+
"lime",
|
|
1050
|
+
"yellow",
|
|
1051
|
+
"amber",
|
|
1052
|
+
"gold",
|
|
1053
|
+
"bronze",
|
|
1054
|
+
"gray",
|
|
1055
|
+
]
|
|
1056
|
+
],
|
|
1057
|
+
Literal[
|
|
1058
|
+
"tomato",
|
|
1059
|
+
"red",
|
|
1060
|
+
"ruby",
|
|
1061
|
+
"crimson",
|
|
1062
|
+
"pink",
|
|
1063
|
+
"plum",
|
|
1064
|
+
"purple",
|
|
1065
|
+
"violet",
|
|
1066
|
+
"iris",
|
|
1067
|
+
"indigo",
|
|
1068
|
+
"blue",
|
|
1069
|
+
"cyan",
|
|
1070
|
+
"teal",
|
|
1071
|
+
"jade",
|
|
1072
|
+
"green",
|
|
1073
|
+
"grass",
|
|
1074
|
+
"brown",
|
|
1075
|
+
"orange",
|
|
1076
|
+
"sky",
|
|
1077
|
+
"mint",
|
|
1078
|
+
"lime",
|
|
1079
|
+
"yellow",
|
|
1080
|
+
"amber",
|
|
1081
|
+
"gold",
|
|
1082
|
+
"bronze",
|
|
1083
|
+
"gray",
|
|
1084
|
+
],
|
|
1085
|
+
]
|
|
1086
|
+
] = None,
|
|
762
1087
|
loop: Optional[Union[Var[bool], bool]] = None,
|
|
763
1088
|
m: Optional[
|
|
764
1089
|
Union[
|
|
@@ -874,6 +1199,8 @@ class ContextMenuSubContent(CommonMarginProps, RadixThemesComponent):
|
|
|
874
1199
|
|
|
875
1200
|
Args:
|
|
876
1201
|
*children: Child components.
|
|
1202
|
+
color: map to CSS default color property.
|
|
1203
|
+
color_scheme: map to radix color property.
|
|
877
1204
|
loop: When true, keyboard navigation will loop from last item to first, and vice versa.
|
|
878
1205
|
m: Margin: "0" - "9"
|
|
879
1206
|
mx: Margin horizontal: "0" - "9"
|
|
@@ -901,7 +1228,8 @@ class ContextMenuItem(CommonMarginProps, RadixThemesComponent):
|
|
|
901
1228
|
def create( # type: ignore
|
|
902
1229
|
cls,
|
|
903
1230
|
*children,
|
|
904
|
-
color: Optional[
|
|
1231
|
+
color: Optional[Union[Var[str], str]] = None,
|
|
1232
|
+
color_scheme: Optional[
|
|
905
1233
|
Union[
|
|
906
1234
|
Var[
|
|
907
1235
|
Literal[
|
|
@@ -1066,7 +1394,8 @@ class ContextMenuItem(CommonMarginProps, RadixThemesComponent):
|
|
|
1066
1394
|
|
|
1067
1395
|
Args:
|
|
1068
1396
|
*children: Child components.
|
|
1069
|
-
color:
|
|
1397
|
+
color: map to CSS default color property.
|
|
1398
|
+
color_scheme: map to radix color property.
|
|
1070
1399
|
shortcut: Shortcut to render a menu item as a link
|
|
1071
1400
|
m: Margin: "0" - "9"
|
|
1072
1401
|
mx: Margin horizontal: "0" - "9"
|
|
@@ -1094,6 +1423,69 @@ class ContextMenuSeparator(CommonMarginProps, RadixThemesComponent):
|
|
|
1094
1423
|
def create( # type: ignore
|
|
1095
1424
|
cls,
|
|
1096
1425
|
*children,
|
|
1426
|
+
color: Optional[Union[Var[str], str]] = None,
|
|
1427
|
+
color_scheme: Optional[
|
|
1428
|
+
Union[
|
|
1429
|
+
Var[
|
|
1430
|
+
Literal[
|
|
1431
|
+
"tomato",
|
|
1432
|
+
"red",
|
|
1433
|
+
"ruby",
|
|
1434
|
+
"crimson",
|
|
1435
|
+
"pink",
|
|
1436
|
+
"plum",
|
|
1437
|
+
"purple",
|
|
1438
|
+
"violet",
|
|
1439
|
+
"iris",
|
|
1440
|
+
"indigo",
|
|
1441
|
+
"blue",
|
|
1442
|
+
"cyan",
|
|
1443
|
+
"teal",
|
|
1444
|
+
"jade",
|
|
1445
|
+
"green",
|
|
1446
|
+
"grass",
|
|
1447
|
+
"brown",
|
|
1448
|
+
"orange",
|
|
1449
|
+
"sky",
|
|
1450
|
+
"mint",
|
|
1451
|
+
"lime",
|
|
1452
|
+
"yellow",
|
|
1453
|
+
"amber",
|
|
1454
|
+
"gold",
|
|
1455
|
+
"bronze",
|
|
1456
|
+
"gray",
|
|
1457
|
+
]
|
|
1458
|
+
],
|
|
1459
|
+
Literal[
|
|
1460
|
+
"tomato",
|
|
1461
|
+
"red",
|
|
1462
|
+
"ruby",
|
|
1463
|
+
"crimson",
|
|
1464
|
+
"pink",
|
|
1465
|
+
"plum",
|
|
1466
|
+
"purple",
|
|
1467
|
+
"violet",
|
|
1468
|
+
"iris",
|
|
1469
|
+
"indigo",
|
|
1470
|
+
"blue",
|
|
1471
|
+
"cyan",
|
|
1472
|
+
"teal",
|
|
1473
|
+
"jade",
|
|
1474
|
+
"green",
|
|
1475
|
+
"grass",
|
|
1476
|
+
"brown",
|
|
1477
|
+
"orange",
|
|
1478
|
+
"sky",
|
|
1479
|
+
"mint",
|
|
1480
|
+
"lime",
|
|
1481
|
+
"yellow",
|
|
1482
|
+
"amber",
|
|
1483
|
+
"gold",
|
|
1484
|
+
"bronze",
|
|
1485
|
+
"gray",
|
|
1486
|
+
],
|
|
1487
|
+
]
|
|
1488
|
+
] = None,
|
|
1097
1489
|
m: Optional[
|
|
1098
1490
|
Union[
|
|
1099
1491
|
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
@@ -1196,6 +1588,8 @@ class ContextMenuSeparator(CommonMarginProps, RadixThemesComponent):
|
|
|
1196
1588
|
|
|
1197
1589
|
Args:
|
|
1198
1590
|
*children: Child components.
|
|
1591
|
+
color: map to CSS default color property.
|
|
1592
|
+
color_scheme: map to radix color property.
|
|
1199
1593
|
m: Margin: "0" - "9"
|
|
1200
1594
|
mx: Margin horizontal: "0" - "9"
|
|
1201
1595
|
my: Margin vertical: "0" - "9"
|
|
@@ -73,3 +73,9 @@ class DialogDescription(CommonMarginProps, RadixThemesComponent):
|
|
|
73
73
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
|
74
74
|
|
|
75
75
|
tag = "Dialog.Description"
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
class DialogClose(CommonMarginProps, RadixThemesComponent):
|
|
79
|
+
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
|
80
|
+
|
|
81
|
+
tag = "Dialog.Close"
|