reflex 0.3.7a1__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/config.py +1 -1
- 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 +56 -11
- reflex/utils/processes.py +8 -1
- reflex/utils/types.py +2 -2
- reflex/vars.py +25 -1
- {reflex-0.3.7a1.dist-info → reflex-0.3.8.dist-info}/METADATA +8 -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.7a1.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.7a1.dist-info → reflex-0.3.8.dist-info}/LICENSE +0 -0
- {reflex-0.3.7a1.dist-info → reflex-0.3.8.dist-info}/WHEEL +0 -0
- {reflex-0.3.7a1.dist-info → reflex-0.3.8.dist-info}/entry_points.txt +0 -0
|
@@ -19,6 +19,69 @@ class DialogRoot(CommonMarginProps, RadixThemesComponent):
|
|
|
19
19
|
def create( # type: ignore
|
|
20
20
|
cls,
|
|
21
21
|
*children,
|
|
22
|
+
color: Optional[Union[Var[str], str]] = None,
|
|
23
|
+
color_scheme: Optional[
|
|
24
|
+
Union[
|
|
25
|
+
Var[
|
|
26
|
+
Literal[
|
|
27
|
+
"tomato",
|
|
28
|
+
"red",
|
|
29
|
+
"ruby",
|
|
30
|
+
"crimson",
|
|
31
|
+
"pink",
|
|
32
|
+
"plum",
|
|
33
|
+
"purple",
|
|
34
|
+
"violet",
|
|
35
|
+
"iris",
|
|
36
|
+
"indigo",
|
|
37
|
+
"blue",
|
|
38
|
+
"cyan",
|
|
39
|
+
"teal",
|
|
40
|
+
"jade",
|
|
41
|
+
"green",
|
|
42
|
+
"grass",
|
|
43
|
+
"brown",
|
|
44
|
+
"orange",
|
|
45
|
+
"sky",
|
|
46
|
+
"mint",
|
|
47
|
+
"lime",
|
|
48
|
+
"yellow",
|
|
49
|
+
"amber",
|
|
50
|
+
"gold",
|
|
51
|
+
"bronze",
|
|
52
|
+
"gray",
|
|
53
|
+
]
|
|
54
|
+
],
|
|
55
|
+
Literal[
|
|
56
|
+
"tomato",
|
|
57
|
+
"red",
|
|
58
|
+
"ruby",
|
|
59
|
+
"crimson",
|
|
60
|
+
"pink",
|
|
61
|
+
"plum",
|
|
62
|
+
"purple",
|
|
63
|
+
"violet",
|
|
64
|
+
"iris",
|
|
65
|
+
"indigo",
|
|
66
|
+
"blue",
|
|
67
|
+
"cyan",
|
|
68
|
+
"teal",
|
|
69
|
+
"jade",
|
|
70
|
+
"green",
|
|
71
|
+
"grass",
|
|
72
|
+
"brown",
|
|
73
|
+
"orange",
|
|
74
|
+
"sky",
|
|
75
|
+
"mint",
|
|
76
|
+
"lime",
|
|
77
|
+
"yellow",
|
|
78
|
+
"amber",
|
|
79
|
+
"gold",
|
|
80
|
+
"bronze",
|
|
81
|
+
"gray",
|
|
82
|
+
],
|
|
83
|
+
]
|
|
84
|
+
] = None,
|
|
22
85
|
open: Optional[Union[Var[bool], bool]] = None,
|
|
23
86
|
modal: Optional[Union[Var[bool], bool]] = None,
|
|
24
87
|
m: Optional[
|
|
@@ -126,6 +189,8 @@ class DialogRoot(CommonMarginProps, RadixThemesComponent):
|
|
|
126
189
|
|
|
127
190
|
Args:
|
|
128
191
|
*children: Child components.
|
|
192
|
+
color: map to CSS default color property.
|
|
193
|
+
color_scheme: map to radix color property.
|
|
129
194
|
open: The controlled open state of the dialog.
|
|
130
195
|
modal: The modality of the dialog. When set to true, interaction with outside elements will be disabled and only dialog content will be visible to screen readers.
|
|
131
196
|
m: Margin: "0" - "9"
|
|
@@ -154,6 +219,69 @@ class DialogTrigger(CommonMarginProps, RadixThemesComponent):
|
|
|
154
219
|
def create( # type: ignore
|
|
155
220
|
cls,
|
|
156
221
|
*children,
|
|
222
|
+
color: Optional[Union[Var[str], str]] = None,
|
|
223
|
+
color_scheme: Optional[
|
|
224
|
+
Union[
|
|
225
|
+
Var[
|
|
226
|
+
Literal[
|
|
227
|
+
"tomato",
|
|
228
|
+
"red",
|
|
229
|
+
"ruby",
|
|
230
|
+
"crimson",
|
|
231
|
+
"pink",
|
|
232
|
+
"plum",
|
|
233
|
+
"purple",
|
|
234
|
+
"violet",
|
|
235
|
+
"iris",
|
|
236
|
+
"indigo",
|
|
237
|
+
"blue",
|
|
238
|
+
"cyan",
|
|
239
|
+
"teal",
|
|
240
|
+
"jade",
|
|
241
|
+
"green",
|
|
242
|
+
"grass",
|
|
243
|
+
"brown",
|
|
244
|
+
"orange",
|
|
245
|
+
"sky",
|
|
246
|
+
"mint",
|
|
247
|
+
"lime",
|
|
248
|
+
"yellow",
|
|
249
|
+
"amber",
|
|
250
|
+
"gold",
|
|
251
|
+
"bronze",
|
|
252
|
+
"gray",
|
|
253
|
+
]
|
|
254
|
+
],
|
|
255
|
+
Literal[
|
|
256
|
+
"tomato",
|
|
257
|
+
"red",
|
|
258
|
+
"ruby",
|
|
259
|
+
"crimson",
|
|
260
|
+
"pink",
|
|
261
|
+
"plum",
|
|
262
|
+
"purple",
|
|
263
|
+
"violet",
|
|
264
|
+
"iris",
|
|
265
|
+
"indigo",
|
|
266
|
+
"blue",
|
|
267
|
+
"cyan",
|
|
268
|
+
"teal",
|
|
269
|
+
"jade",
|
|
270
|
+
"green",
|
|
271
|
+
"grass",
|
|
272
|
+
"brown",
|
|
273
|
+
"orange",
|
|
274
|
+
"sky",
|
|
275
|
+
"mint",
|
|
276
|
+
"lime",
|
|
277
|
+
"yellow",
|
|
278
|
+
"amber",
|
|
279
|
+
"gold",
|
|
280
|
+
"bronze",
|
|
281
|
+
"gray",
|
|
282
|
+
],
|
|
283
|
+
]
|
|
284
|
+
] = None,
|
|
157
285
|
m: Optional[
|
|
158
286
|
Union[
|
|
159
287
|
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
@@ -256,6 +384,8 @@ class DialogTrigger(CommonMarginProps, RadixThemesComponent):
|
|
|
256
384
|
|
|
257
385
|
Args:
|
|
258
386
|
*children: Child components.
|
|
387
|
+
color: map to CSS default color property.
|
|
388
|
+
color_scheme: map to radix color property.
|
|
259
389
|
m: Margin: "0" - "9"
|
|
260
390
|
mx: Margin horizontal: "0" - "9"
|
|
261
391
|
my: Margin vertical: "0" - "9"
|
|
@@ -282,6 +412,69 @@ class DialogTitle(CommonMarginProps, RadixThemesComponent):
|
|
|
282
412
|
def create( # type: ignore
|
|
283
413
|
cls,
|
|
284
414
|
*children,
|
|
415
|
+
color: Optional[Union[Var[str], str]] = None,
|
|
416
|
+
color_scheme: Optional[
|
|
417
|
+
Union[
|
|
418
|
+
Var[
|
|
419
|
+
Literal[
|
|
420
|
+
"tomato",
|
|
421
|
+
"red",
|
|
422
|
+
"ruby",
|
|
423
|
+
"crimson",
|
|
424
|
+
"pink",
|
|
425
|
+
"plum",
|
|
426
|
+
"purple",
|
|
427
|
+
"violet",
|
|
428
|
+
"iris",
|
|
429
|
+
"indigo",
|
|
430
|
+
"blue",
|
|
431
|
+
"cyan",
|
|
432
|
+
"teal",
|
|
433
|
+
"jade",
|
|
434
|
+
"green",
|
|
435
|
+
"grass",
|
|
436
|
+
"brown",
|
|
437
|
+
"orange",
|
|
438
|
+
"sky",
|
|
439
|
+
"mint",
|
|
440
|
+
"lime",
|
|
441
|
+
"yellow",
|
|
442
|
+
"amber",
|
|
443
|
+
"gold",
|
|
444
|
+
"bronze",
|
|
445
|
+
"gray",
|
|
446
|
+
]
|
|
447
|
+
],
|
|
448
|
+
Literal[
|
|
449
|
+
"tomato",
|
|
450
|
+
"red",
|
|
451
|
+
"ruby",
|
|
452
|
+
"crimson",
|
|
453
|
+
"pink",
|
|
454
|
+
"plum",
|
|
455
|
+
"purple",
|
|
456
|
+
"violet",
|
|
457
|
+
"iris",
|
|
458
|
+
"indigo",
|
|
459
|
+
"blue",
|
|
460
|
+
"cyan",
|
|
461
|
+
"teal",
|
|
462
|
+
"jade",
|
|
463
|
+
"green",
|
|
464
|
+
"grass",
|
|
465
|
+
"brown",
|
|
466
|
+
"orange",
|
|
467
|
+
"sky",
|
|
468
|
+
"mint",
|
|
469
|
+
"lime",
|
|
470
|
+
"yellow",
|
|
471
|
+
"amber",
|
|
472
|
+
"gold",
|
|
473
|
+
"bronze",
|
|
474
|
+
"gray",
|
|
475
|
+
],
|
|
476
|
+
]
|
|
477
|
+
] = None,
|
|
285
478
|
m: Optional[
|
|
286
479
|
Union[
|
|
287
480
|
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
@@ -384,6 +577,8 @@ class DialogTitle(CommonMarginProps, RadixThemesComponent):
|
|
|
384
577
|
|
|
385
578
|
Args:
|
|
386
579
|
*children: Child components.
|
|
580
|
+
color: map to CSS default color property.
|
|
581
|
+
color_scheme: map to radix color property.
|
|
387
582
|
m: Margin: "0" - "9"
|
|
388
583
|
mx: Margin horizontal: "0" - "9"
|
|
389
584
|
my: Margin vertical: "0" - "9"
|
|
@@ -411,6 +606,69 @@ class DialogContent(el.Div, CommonMarginProps, RadixThemesComponent):
|
|
|
411
606
|
def create( # type: ignore
|
|
412
607
|
cls,
|
|
413
608
|
*children,
|
|
609
|
+
color: Optional[Union[Var[str], str]] = None,
|
|
610
|
+
color_scheme: Optional[
|
|
611
|
+
Union[
|
|
612
|
+
Var[
|
|
613
|
+
Literal[
|
|
614
|
+
"tomato",
|
|
615
|
+
"red",
|
|
616
|
+
"ruby",
|
|
617
|
+
"crimson",
|
|
618
|
+
"pink",
|
|
619
|
+
"plum",
|
|
620
|
+
"purple",
|
|
621
|
+
"violet",
|
|
622
|
+
"iris",
|
|
623
|
+
"indigo",
|
|
624
|
+
"blue",
|
|
625
|
+
"cyan",
|
|
626
|
+
"teal",
|
|
627
|
+
"jade",
|
|
628
|
+
"green",
|
|
629
|
+
"grass",
|
|
630
|
+
"brown",
|
|
631
|
+
"orange",
|
|
632
|
+
"sky",
|
|
633
|
+
"mint",
|
|
634
|
+
"lime",
|
|
635
|
+
"yellow",
|
|
636
|
+
"amber",
|
|
637
|
+
"gold",
|
|
638
|
+
"bronze",
|
|
639
|
+
"gray",
|
|
640
|
+
]
|
|
641
|
+
],
|
|
642
|
+
Literal[
|
|
643
|
+
"tomato",
|
|
644
|
+
"red",
|
|
645
|
+
"ruby",
|
|
646
|
+
"crimson",
|
|
647
|
+
"pink",
|
|
648
|
+
"plum",
|
|
649
|
+
"purple",
|
|
650
|
+
"violet",
|
|
651
|
+
"iris",
|
|
652
|
+
"indigo",
|
|
653
|
+
"blue",
|
|
654
|
+
"cyan",
|
|
655
|
+
"teal",
|
|
656
|
+
"jade",
|
|
657
|
+
"green",
|
|
658
|
+
"grass",
|
|
659
|
+
"brown",
|
|
660
|
+
"orange",
|
|
661
|
+
"sky",
|
|
662
|
+
"mint",
|
|
663
|
+
"lime",
|
|
664
|
+
"yellow",
|
|
665
|
+
"amber",
|
|
666
|
+
"gold",
|
|
667
|
+
"bronze",
|
|
668
|
+
"gray",
|
|
669
|
+
],
|
|
670
|
+
]
|
|
671
|
+
] = None,
|
|
414
672
|
size: Optional[Union[Var[Literal[1, 2, 3, 4]], Literal[1, 2, 3, 4]]] = None,
|
|
415
673
|
access_key: Optional[
|
|
416
674
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
@@ -572,6 +830,8 @@ class DialogContent(el.Div, CommonMarginProps, RadixThemesComponent):
|
|
|
572
830
|
|
|
573
831
|
Args:
|
|
574
832
|
*children: Child components.
|
|
833
|
+
color: map to CSS default color property.
|
|
834
|
+
color_scheme: map to radix color property.
|
|
575
835
|
size: Button size "1" - "4"
|
|
576
836
|
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
577
837
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
@@ -616,6 +876,69 @@ class DialogDescription(CommonMarginProps, RadixThemesComponent):
|
|
|
616
876
|
def create( # type: ignore
|
|
617
877
|
cls,
|
|
618
878
|
*children,
|
|
879
|
+
color: Optional[Union[Var[str], str]] = None,
|
|
880
|
+
color_scheme: Optional[
|
|
881
|
+
Union[
|
|
882
|
+
Var[
|
|
883
|
+
Literal[
|
|
884
|
+
"tomato",
|
|
885
|
+
"red",
|
|
886
|
+
"ruby",
|
|
887
|
+
"crimson",
|
|
888
|
+
"pink",
|
|
889
|
+
"plum",
|
|
890
|
+
"purple",
|
|
891
|
+
"violet",
|
|
892
|
+
"iris",
|
|
893
|
+
"indigo",
|
|
894
|
+
"blue",
|
|
895
|
+
"cyan",
|
|
896
|
+
"teal",
|
|
897
|
+
"jade",
|
|
898
|
+
"green",
|
|
899
|
+
"grass",
|
|
900
|
+
"brown",
|
|
901
|
+
"orange",
|
|
902
|
+
"sky",
|
|
903
|
+
"mint",
|
|
904
|
+
"lime",
|
|
905
|
+
"yellow",
|
|
906
|
+
"amber",
|
|
907
|
+
"gold",
|
|
908
|
+
"bronze",
|
|
909
|
+
"gray",
|
|
910
|
+
]
|
|
911
|
+
],
|
|
912
|
+
Literal[
|
|
913
|
+
"tomato",
|
|
914
|
+
"red",
|
|
915
|
+
"ruby",
|
|
916
|
+
"crimson",
|
|
917
|
+
"pink",
|
|
918
|
+
"plum",
|
|
919
|
+
"purple",
|
|
920
|
+
"violet",
|
|
921
|
+
"iris",
|
|
922
|
+
"indigo",
|
|
923
|
+
"blue",
|
|
924
|
+
"cyan",
|
|
925
|
+
"teal",
|
|
926
|
+
"jade",
|
|
927
|
+
"green",
|
|
928
|
+
"grass",
|
|
929
|
+
"brown",
|
|
930
|
+
"orange",
|
|
931
|
+
"sky",
|
|
932
|
+
"mint",
|
|
933
|
+
"lime",
|
|
934
|
+
"yellow",
|
|
935
|
+
"amber",
|
|
936
|
+
"gold",
|
|
937
|
+
"bronze",
|
|
938
|
+
"gray",
|
|
939
|
+
],
|
|
940
|
+
]
|
|
941
|
+
] = None,
|
|
619
942
|
m: Optional[
|
|
620
943
|
Union[
|
|
621
944
|
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
@@ -718,6 +1041,201 @@ class DialogDescription(CommonMarginProps, RadixThemesComponent):
|
|
|
718
1041
|
|
|
719
1042
|
Args:
|
|
720
1043
|
*children: Child components.
|
|
1044
|
+
color: map to CSS default color property.
|
|
1045
|
+
color_scheme: map to radix color property.
|
|
1046
|
+
m: Margin: "0" - "9"
|
|
1047
|
+
mx: Margin horizontal: "0" - "9"
|
|
1048
|
+
my: Margin vertical: "0" - "9"
|
|
1049
|
+
mt: Margin top: "0" - "9"
|
|
1050
|
+
mr: Margin right: "0" - "9"
|
|
1051
|
+
mb: Margin bottom: "0" - "9"
|
|
1052
|
+
ml: Margin left: "0" - "9"
|
|
1053
|
+
style: The style of the component.
|
|
1054
|
+
key: A unique key for the component.
|
|
1055
|
+
id: The id for the component.
|
|
1056
|
+
class_name: The class name for the component.
|
|
1057
|
+
autofocus: Whether the component should take the focus once the page is loaded
|
|
1058
|
+
custom_attrs: custom attribute
|
|
1059
|
+
**props: Component properties.
|
|
1060
|
+
|
|
1061
|
+
Returns:
|
|
1062
|
+
A new component instance.
|
|
1063
|
+
"""
|
|
1064
|
+
...
|
|
1065
|
+
|
|
1066
|
+
class DialogClose(CommonMarginProps, RadixThemesComponent):
|
|
1067
|
+
@overload
|
|
1068
|
+
@classmethod
|
|
1069
|
+
def create( # type: ignore
|
|
1070
|
+
cls,
|
|
1071
|
+
*children,
|
|
1072
|
+
color: Optional[Union[Var[str], str]] = None,
|
|
1073
|
+
color_scheme: Optional[
|
|
1074
|
+
Union[
|
|
1075
|
+
Var[
|
|
1076
|
+
Literal[
|
|
1077
|
+
"tomato",
|
|
1078
|
+
"red",
|
|
1079
|
+
"ruby",
|
|
1080
|
+
"crimson",
|
|
1081
|
+
"pink",
|
|
1082
|
+
"plum",
|
|
1083
|
+
"purple",
|
|
1084
|
+
"violet",
|
|
1085
|
+
"iris",
|
|
1086
|
+
"indigo",
|
|
1087
|
+
"blue",
|
|
1088
|
+
"cyan",
|
|
1089
|
+
"teal",
|
|
1090
|
+
"jade",
|
|
1091
|
+
"green",
|
|
1092
|
+
"grass",
|
|
1093
|
+
"brown",
|
|
1094
|
+
"orange",
|
|
1095
|
+
"sky",
|
|
1096
|
+
"mint",
|
|
1097
|
+
"lime",
|
|
1098
|
+
"yellow",
|
|
1099
|
+
"amber",
|
|
1100
|
+
"gold",
|
|
1101
|
+
"bronze",
|
|
1102
|
+
"gray",
|
|
1103
|
+
]
|
|
1104
|
+
],
|
|
1105
|
+
Literal[
|
|
1106
|
+
"tomato",
|
|
1107
|
+
"red",
|
|
1108
|
+
"ruby",
|
|
1109
|
+
"crimson",
|
|
1110
|
+
"pink",
|
|
1111
|
+
"plum",
|
|
1112
|
+
"purple",
|
|
1113
|
+
"violet",
|
|
1114
|
+
"iris",
|
|
1115
|
+
"indigo",
|
|
1116
|
+
"blue",
|
|
1117
|
+
"cyan",
|
|
1118
|
+
"teal",
|
|
1119
|
+
"jade",
|
|
1120
|
+
"green",
|
|
1121
|
+
"grass",
|
|
1122
|
+
"brown",
|
|
1123
|
+
"orange",
|
|
1124
|
+
"sky",
|
|
1125
|
+
"mint",
|
|
1126
|
+
"lime",
|
|
1127
|
+
"yellow",
|
|
1128
|
+
"amber",
|
|
1129
|
+
"gold",
|
|
1130
|
+
"bronze",
|
|
1131
|
+
"gray",
|
|
1132
|
+
],
|
|
1133
|
+
]
|
|
1134
|
+
] = None,
|
|
1135
|
+
m: Optional[
|
|
1136
|
+
Union[
|
|
1137
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1138
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1139
|
+
]
|
|
1140
|
+
] = None,
|
|
1141
|
+
mx: Optional[
|
|
1142
|
+
Union[
|
|
1143
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1144
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1145
|
+
]
|
|
1146
|
+
] = None,
|
|
1147
|
+
my: Optional[
|
|
1148
|
+
Union[
|
|
1149
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1150
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1151
|
+
]
|
|
1152
|
+
] = None,
|
|
1153
|
+
mt: Optional[
|
|
1154
|
+
Union[
|
|
1155
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1156
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1157
|
+
]
|
|
1158
|
+
] = None,
|
|
1159
|
+
mr: Optional[
|
|
1160
|
+
Union[
|
|
1161
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1162
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1163
|
+
]
|
|
1164
|
+
] = None,
|
|
1165
|
+
mb: Optional[
|
|
1166
|
+
Union[
|
|
1167
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1168
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1169
|
+
]
|
|
1170
|
+
] = None,
|
|
1171
|
+
ml: Optional[
|
|
1172
|
+
Union[
|
|
1173
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1174
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1175
|
+
]
|
|
1176
|
+
] = None,
|
|
1177
|
+
style: Optional[Style] = None,
|
|
1178
|
+
key: Optional[Any] = None,
|
|
1179
|
+
id: Optional[Any] = None,
|
|
1180
|
+
class_name: Optional[Any] = None,
|
|
1181
|
+
autofocus: Optional[bool] = None,
|
|
1182
|
+
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
1183
|
+
on_blur: Optional[
|
|
1184
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1185
|
+
] = None,
|
|
1186
|
+
on_click: Optional[
|
|
1187
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1188
|
+
] = None,
|
|
1189
|
+
on_context_menu: Optional[
|
|
1190
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1191
|
+
] = None,
|
|
1192
|
+
on_double_click: Optional[
|
|
1193
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1194
|
+
] = None,
|
|
1195
|
+
on_focus: Optional[
|
|
1196
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1197
|
+
] = None,
|
|
1198
|
+
on_mount: Optional[
|
|
1199
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1200
|
+
] = None,
|
|
1201
|
+
on_mouse_down: Optional[
|
|
1202
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1203
|
+
] = None,
|
|
1204
|
+
on_mouse_enter: Optional[
|
|
1205
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1206
|
+
] = None,
|
|
1207
|
+
on_mouse_leave: Optional[
|
|
1208
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1209
|
+
] = None,
|
|
1210
|
+
on_mouse_move: Optional[
|
|
1211
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1212
|
+
] = None,
|
|
1213
|
+
on_mouse_out: Optional[
|
|
1214
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1215
|
+
] = None,
|
|
1216
|
+
on_mouse_over: Optional[
|
|
1217
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1218
|
+
] = None,
|
|
1219
|
+
on_mouse_up: Optional[
|
|
1220
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1221
|
+
] = None,
|
|
1222
|
+
on_scroll: Optional[
|
|
1223
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1224
|
+
] = None,
|
|
1225
|
+
on_unmount: Optional[
|
|
1226
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1227
|
+
] = None,
|
|
1228
|
+
**props
|
|
1229
|
+
) -> "DialogClose":
|
|
1230
|
+
"""Create a new component instance.
|
|
1231
|
+
|
|
1232
|
+
Will prepend "RadixThemes" to the component tag to avoid conflicts with
|
|
1233
|
+
other UI libraries for common names, like Text and Button.
|
|
1234
|
+
|
|
1235
|
+
Args:
|
|
1236
|
+
*children: Child components.
|
|
1237
|
+
color: map to CSS default color property.
|
|
1238
|
+
color_scheme: map to radix color property.
|
|
721
1239
|
m: Margin: "0" - "9"
|
|
722
1240
|
mx: Margin horizontal: "0" - "9"
|
|
723
1241
|
my: Margin vertical: "0" - "9"
|