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
|
@@ -14,13 +14,76 @@ from ..base import CommonMarginProps, RadixThemesComponent
|
|
|
14
14
|
|
|
15
15
|
LiteralSwitchSize = Literal["1", "2", "3", "4"]
|
|
16
16
|
|
|
17
|
-
class
|
|
17
|
+
class AlertDialogRoot(CommonMarginProps, RadixThemesComponent):
|
|
18
18
|
def get_event_triggers(self) -> Dict[str, Any]: ...
|
|
19
19
|
@overload
|
|
20
20
|
@classmethod
|
|
21
21
|
def create( # type: ignore
|
|
22
22
|
cls,
|
|
23
23
|
*children,
|
|
24
|
+
color: Optional[Union[Var[str], str]] = None,
|
|
25
|
+
color_scheme: Optional[
|
|
26
|
+
Union[
|
|
27
|
+
Var[
|
|
28
|
+
Literal[
|
|
29
|
+
"tomato",
|
|
30
|
+
"red",
|
|
31
|
+
"ruby",
|
|
32
|
+
"crimson",
|
|
33
|
+
"pink",
|
|
34
|
+
"plum",
|
|
35
|
+
"purple",
|
|
36
|
+
"violet",
|
|
37
|
+
"iris",
|
|
38
|
+
"indigo",
|
|
39
|
+
"blue",
|
|
40
|
+
"cyan",
|
|
41
|
+
"teal",
|
|
42
|
+
"jade",
|
|
43
|
+
"green",
|
|
44
|
+
"grass",
|
|
45
|
+
"brown",
|
|
46
|
+
"orange",
|
|
47
|
+
"sky",
|
|
48
|
+
"mint",
|
|
49
|
+
"lime",
|
|
50
|
+
"yellow",
|
|
51
|
+
"amber",
|
|
52
|
+
"gold",
|
|
53
|
+
"bronze",
|
|
54
|
+
"gray",
|
|
55
|
+
]
|
|
56
|
+
],
|
|
57
|
+
Literal[
|
|
58
|
+
"tomato",
|
|
59
|
+
"red",
|
|
60
|
+
"ruby",
|
|
61
|
+
"crimson",
|
|
62
|
+
"pink",
|
|
63
|
+
"plum",
|
|
64
|
+
"purple",
|
|
65
|
+
"violet",
|
|
66
|
+
"iris",
|
|
67
|
+
"indigo",
|
|
68
|
+
"blue",
|
|
69
|
+
"cyan",
|
|
70
|
+
"teal",
|
|
71
|
+
"jade",
|
|
72
|
+
"green",
|
|
73
|
+
"grass",
|
|
74
|
+
"brown",
|
|
75
|
+
"orange",
|
|
76
|
+
"sky",
|
|
77
|
+
"mint",
|
|
78
|
+
"lime",
|
|
79
|
+
"yellow",
|
|
80
|
+
"amber",
|
|
81
|
+
"gold",
|
|
82
|
+
"bronze",
|
|
83
|
+
"gray",
|
|
84
|
+
],
|
|
85
|
+
]
|
|
86
|
+
] = None,
|
|
24
87
|
open: Optional[Union[Var[bool], bool]] = None,
|
|
25
88
|
m: Optional[
|
|
26
89
|
Union[
|
|
@@ -119,7 +182,7 @@ class AlertDialog(CommonMarginProps, RadixThemesComponent):
|
|
|
119
182
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
120
183
|
] = None,
|
|
121
184
|
**props
|
|
122
|
-
) -> "
|
|
185
|
+
) -> "AlertDialogRoot":
|
|
123
186
|
"""Create a new component instance.
|
|
124
187
|
|
|
125
188
|
Will prepend "RadixThemes" to the component tag to avoid conflicts with
|
|
@@ -127,6 +190,8 @@ class AlertDialog(CommonMarginProps, RadixThemesComponent):
|
|
|
127
190
|
|
|
128
191
|
Args:
|
|
129
192
|
*children: Child components.
|
|
193
|
+
color: map to CSS default color property.
|
|
194
|
+
color_scheme: map to radix color property.
|
|
130
195
|
open: The controlled open state of the dialog.
|
|
131
196
|
m: Margin: "0" - "9"
|
|
132
197
|
mx: Margin horizontal: "0" - "9"
|
|
@@ -154,6 +219,69 @@ class AlertDialogTrigger(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 AlertDialogTrigger(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"
|
|
@@ -283,6 +413,69 @@ class AlertDialogContent(el.Div, CommonMarginProps, RadixThemesComponent):
|
|
|
283
413
|
def create( # type: ignore
|
|
284
414
|
cls,
|
|
285
415
|
*children,
|
|
416
|
+
color: Optional[Union[Var[str], str]] = None,
|
|
417
|
+
color_scheme: Optional[
|
|
418
|
+
Union[
|
|
419
|
+
Var[
|
|
420
|
+
Literal[
|
|
421
|
+
"tomato",
|
|
422
|
+
"red",
|
|
423
|
+
"ruby",
|
|
424
|
+
"crimson",
|
|
425
|
+
"pink",
|
|
426
|
+
"plum",
|
|
427
|
+
"purple",
|
|
428
|
+
"violet",
|
|
429
|
+
"iris",
|
|
430
|
+
"indigo",
|
|
431
|
+
"blue",
|
|
432
|
+
"cyan",
|
|
433
|
+
"teal",
|
|
434
|
+
"jade",
|
|
435
|
+
"green",
|
|
436
|
+
"grass",
|
|
437
|
+
"brown",
|
|
438
|
+
"orange",
|
|
439
|
+
"sky",
|
|
440
|
+
"mint",
|
|
441
|
+
"lime",
|
|
442
|
+
"yellow",
|
|
443
|
+
"amber",
|
|
444
|
+
"gold",
|
|
445
|
+
"bronze",
|
|
446
|
+
"gray",
|
|
447
|
+
]
|
|
448
|
+
],
|
|
449
|
+
Literal[
|
|
450
|
+
"tomato",
|
|
451
|
+
"red",
|
|
452
|
+
"ruby",
|
|
453
|
+
"crimson",
|
|
454
|
+
"pink",
|
|
455
|
+
"plum",
|
|
456
|
+
"purple",
|
|
457
|
+
"violet",
|
|
458
|
+
"iris",
|
|
459
|
+
"indigo",
|
|
460
|
+
"blue",
|
|
461
|
+
"cyan",
|
|
462
|
+
"teal",
|
|
463
|
+
"jade",
|
|
464
|
+
"green",
|
|
465
|
+
"grass",
|
|
466
|
+
"brown",
|
|
467
|
+
"orange",
|
|
468
|
+
"sky",
|
|
469
|
+
"mint",
|
|
470
|
+
"lime",
|
|
471
|
+
"yellow",
|
|
472
|
+
"amber",
|
|
473
|
+
"gold",
|
|
474
|
+
"bronze",
|
|
475
|
+
"gray",
|
|
476
|
+
],
|
|
477
|
+
]
|
|
478
|
+
] = None,
|
|
286
479
|
force_mount: Optional[Union[Var[bool], bool]] = None,
|
|
287
480
|
access_key: Optional[
|
|
288
481
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
@@ -438,6 +631,8 @@ class AlertDialogContent(el.Div, CommonMarginProps, RadixThemesComponent):
|
|
|
438
631
|
|
|
439
632
|
Args:
|
|
440
633
|
*children: Child components.
|
|
634
|
+
color: map to CSS default color property.
|
|
635
|
+
color_scheme: map to radix color property.
|
|
441
636
|
force_mount: Whether to force mount the content on open.
|
|
442
637
|
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
443
638
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
@@ -482,6 +677,69 @@ class AlertDialogTitle(CommonMarginProps, RadixThemesComponent):
|
|
|
482
677
|
def create( # type: ignore
|
|
483
678
|
cls,
|
|
484
679
|
*children,
|
|
680
|
+
color: Optional[Union[Var[str], str]] = None,
|
|
681
|
+
color_scheme: Optional[
|
|
682
|
+
Union[
|
|
683
|
+
Var[
|
|
684
|
+
Literal[
|
|
685
|
+
"tomato",
|
|
686
|
+
"red",
|
|
687
|
+
"ruby",
|
|
688
|
+
"crimson",
|
|
689
|
+
"pink",
|
|
690
|
+
"plum",
|
|
691
|
+
"purple",
|
|
692
|
+
"violet",
|
|
693
|
+
"iris",
|
|
694
|
+
"indigo",
|
|
695
|
+
"blue",
|
|
696
|
+
"cyan",
|
|
697
|
+
"teal",
|
|
698
|
+
"jade",
|
|
699
|
+
"green",
|
|
700
|
+
"grass",
|
|
701
|
+
"brown",
|
|
702
|
+
"orange",
|
|
703
|
+
"sky",
|
|
704
|
+
"mint",
|
|
705
|
+
"lime",
|
|
706
|
+
"yellow",
|
|
707
|
+
"amber",
|
|
708
|
+
"gold",
|
|
709
|
+
"bronze",
|
|
710
|
+
"gray",
|
|
711
|
+
]
|
|
712
|
+
],
|
|
713
|
+
Literal[
|
|
714
|
+
"tomato",
|
|
715
|
+
"red",
|
|
716
|
+
"ruby",
|
|
717
|
+
"crimson",
|
|
718
|
+
"pink",
|
|
719
|
+
"plum",
|
|
720
|
+
"purple",
|
|
721
|
+
"violet",
|
|
722
|
+
"iris",
|
|
723
|
+
"indigo",
|
|
724
|
+
"blue",
|
|
725
|
+
"cyan",
|
|
726
|
+
"teal",
|
|
727
|
+
"jade",
|
|
728
|
+
"green",
|
|
729
|
+
"grass",
|
|
730
|
+
"brown",
|
|
731
|
+
"orange",
|
|
732
|
+
"sky",
|
|
733
|
+
"mint",
|
|
734
|
+
"lime",
|
|
735
|
+
"yellow",
|
|
736
|
+
"amber",
|
|
737
|
+
"gold",
|
|
738
|
+
"bronze",
|
|
739
|
+
"gray",
|
|
740
|
+
],
|
|
741
|
+
]
|
|
742
|
+
] = None,
|
|
485
743
|
m: Optional[
|
|
486
744
|
Union[
|
|
487
745
|
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
@@ -584,6 +842,8 @@ class AlertDialogTitle(CommonMarginProps, RadixThemesComponent):
|
|
|
584
842
|
|
|
585
843
|
Args:
|
|
586
844
|
*children: Child components.
|
|
845
|
+
color: map to CSS default color property.
|
|
846
|
+
color_scheme: map to radix color property.
|
|
587
847
|
m: Margin: "0" - "9"
|
|
588
848
|
mx: Margin horizontal: "0" - "9"
|
|
589
849
|
my: Margin vertical: "0" - "9"
|
|
@@ -610,6 +870,69 @@ class AlertDialogDescription(CommonMarginProps, RadixThemesComponent):
|
|
|
610
870
|
def create( # type: ignore
|
|
611
871
|
cls,
|
|
612
872
|
*children,
|
|
873
|
+
color: Optional[Union[Var[str], str]] = None,
|
|
874
|
+
color_scheme: Optional[
|
|
875
|
+
Union[
|
|
876
|
+
Var[
|
|
877
|
+
Literal[
|
|
878
|
+
"tomato",
|
|
879
|
+
"red",
|
|
880
|
+
"ruby",
|
|
881
|
+
"crimson",
|
|
882
|
+
"pink",
|
|
883
|
+
"plum",
|
|
884
|
+
"purple",
|
|
885
|
+
"violet",
|
|
886
|
+
"iris",
|
|
887
|
+
"indigo",
|
|
888
|
+
"blue",
|
|
889
|
+
"cyan",
|
|
890
|
+
"teal",
|
|
891
|
+
"jade",
|
|
892
|
+
"green",
|
|
893
|
+
"grass",
|
|
894
|
+
"brown",
|
|
895
|
+
"orange",
|
|
896
|
+
"sky",
|
|
897
|
+
"mint",
|
|
898
|
+
"lime",
|
|
899
|
+
"yellow",
|
|
900
|
+
"amber",
|
|
901
|
+
"gold",
|
|
902
|
+
"bronze",
|
|
903
|
+
"gray",
|
|
904
|
+
]
|
|
905
|
+
],
|
|
906
|
+
Literal[
|
|
907
|
+
"tomato",
|
|
908
|
+
"red",
|
|
909
|
+
"ruby",
|
|
910
|
+
"crimson",
|
|
911
|
+
"pink",
|
|
912
|
+
"plum",
|
|
913
|
+
"purple",
|
|
914
|
+
"violet",
|
|
915
|
+
"iris",
|
|
916
|
+
"indigo",
|
|
917
|
+
"blue",
|
|
918
|
+
"cyan",
|
|
919
|
+
"teal",
|
|
920
|
+
"jade",
|
|
921
|
+
"green",
|
|
922
|
+
"grass",
|
|
923
|
+
"brown",
|
|
924
|
+
"orange",
|
|
925
|
+
"sky",
|
|
926
|
+
"mint",
|
|
927
|
+
"lime",
|
|
928
|
+
"yellow",
|
|
929
|
+
"amber",
|
|
930
|
+
"gold",
|
|
931
|
+
"bronze",
|
|
932
|
+
"gray",
|
|
933
|
+
],
|
|
934
|
+
]
|
|
935
|
+
] = None,
|
|
613
936
|
m: Optional[
|
|
614
937
|
Union[
|
|
615
938
|
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
@@ -712,6 +1035,394 @@ class AlertDialogDescription(CommonMarginProps, RadixThemesComponent):
|
|
|
712
1035
|
|
|
713
1036
|
Args:
|
|
714
1037
|
*children: Child components.
|
|
1038
|
+
color: map to CSS default color property.
|
|
1039
|
+
color_scheme: map to radix color property.
|
|
1040
|
+
m: Margin: "0" - "9"
|
|
1041
|
+
mx: Margin horizontal: "0" - "9"
|
|
1042
|
+
my: Margin vertical: "0" - "9"
|
|
1043
|
+
mt: Margin top: "0" - "9"
|
|
1044
|
+
mr: Margin right: "0" - "9"
|
|
1045
|
+
mb: Margin bottom: "0" - "9"
|
|
1046
|
+
ml: Margin left: "0" - "9"
|
|
1047
|
+
style: The style of the component.
|
|
1048
|
+
key: A unique key for the component.
|
|
1049
|
+
id: The id for the component.
|
|
1050
|
+
class_name: The class name for the component.
|
|
1051
|
+
autofocus: Whether the component should take the focus once the page is loaded
|
|
1052
|
+
custom_attrs: custom attribute
|
|
1053
|
+
**props: Component properties.
|
|
1054
|
+
|
|
1055
|
+
Returns:
|
|
1056
|
+
A new component instance.
|
|
1057
|
+
"""
|
|
1058
|
+
...
|
|
1059
|
+
|
|
1060
|
+
class AlertDialogAction(CommonMarginProps, RadixThemesComponent):
|
|
1061
|
+
@overload
|
|
1062
|
+
@classmethod
|
|
1063
|
+
def create( # type: ignore
|
|
1064
|
+
cls,
|
|
1065
|
+
*children,
|
|
1066
|
+
color: Optional[Union[Var[str], str]] = None,
|
|
1067
|
+
color_scheme: Optional[
|
|
1068
|
+
Union[
|
|
1069
|
+
Var[
|
|
1070
|
+
Literal[
|
|
1071
|
+
"tomato",
|
|
1072
|
+
"red",
|
|
1073
|
+
"ruby",
|
|
1074
|
+
"crimson",
|
|
1075
|
+
"pink",
|
|
1076
|
+
"plum",
|
|
1077
|
+
"purple",
|
|
1078
|
+
"violet",
|
|
1079
|
+
"iris",
|
|
1080
|
+
"indigo",
|
|
1081
|
+
"blue",
|
|
1082
|
+
"cyan",
|
|
1083
|
+
"teal",
|
|
1084
|
+
"jade",
|
|
1085
|
+
"green",
|
|
1086
|
+
"grass",
|
|
1087
|
+
"brown",
|
|
1088
|
+
"orange",
|
|
1089
|
+
"sky",
|
|
1090
|
+
"mint",
|
|
1091
|
+
"lime",
|
|
1092
|
+
"yellow",
|
|
1093
|
+
"amber",
|
|
1094
|
+
"gold",
|
|
1095
|
+
"bronze",
|
|
1096
|
+
"gray",
|
|
1097
|
+
]
|
|
1098
|
+
],
|
|
1099
|
+
Literal[
|
|
1100
|
+
"tomato",
|
|
1101
|
+
"red",
|
|
1102
|
+
"ruby",
|
|
1103
|
+
"crimson",
|
|
1104
|
+
"pink",
|
|
1105
|
+
"plum",
|
|
1106
|
+
"purple",
|
|
1107
|
+
"violet",
|
|
1108
|
+
"iris",
|
|
1109
|
+
"indigo",
|
|
1110
|
+
"blue",
|
|
1111
|
+
"cyan",
|
|
1112
|
+
"teal",
|
|
1113
|
+
"jade",
|
|
1114
|
+
"green",
|
|
1115
|
+
"grass",
|
|
1116
|
+
"brown",
|
|
1117
|
+
"orange",
|
|
1118
|
+
"sky",
|
|
1119
|
+
"mint",
|
|
1120
|
+
"lime",
|
|
1121
|
+
"yellow",
|
|
1122
|
+
"amber",
|
|
1123
|
+
"gold",
|
|
1124
|
+
"bronze",
|
|
1125
|
+
"gray",
|
|
1126
|
+
],
|
|
1127
|
+
]
|
|
1128
|
+
] = None,
|
|
1129
|
+
m: Optional[
|
|
1130
|
+
Union[
|
|
1131
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1132
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1133
|
+
]
|
|
1134
|
+
] = None,
|
|
1135
|
+
mx: 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
|
+
my: 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
|
+
mt: 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
|
+
mr: 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
|
+
mb: 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
|
+
ml: 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
|
+
style: Optional[Style] = None,
|
|
1172
|
+
key: Optional[Any] = None,
|
|
1173
|
+
id: Optional[Any] = None,
|
|
1174
|
+
class_name: Optional[Any] = None,
|
|
1175
|
+
autofocus: Optional[bool] = None,
|
|
1176
|
+
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
1177
|
+
on_blur: Optional[
|
|
1178
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1179
|
+
] = None,
|
|
1180
|
+
on_click: Optional[
|
|
1181
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1182
|
+
] = None,
|
|
1183
|
+
on_context_menu: Optional[
|
|
1184
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1185
|
+
] = None,
|
|
1186
|
+
on_double_click: Optional[
|
|
1187
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1188
|
+
] = None,
|
|
1189
|
+
on_focus: Optional[
|
|
1190
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1191
|
+
] = None,
|
|
1192
|
+
on_mount: Optional[
|
|
1193
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1194
|
+
] = None,
|
|
1195
|
+
on_mouse_down: Optional[
|
|
1196
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1197
|
+
] = None,
|
|
1198
|
+
on_mouse_enter: Optional[
|
|
1199
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1200
|
+
] = None,
|
|
1201
|
+
on_mouse_leave: Optional[
|
|
1202
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1203
|
+
] = None,
|
|
1204
|
+
on_mouse_move: Optional[
|
|
1205
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1206
|
+
] = None,
|
|
1207
|
+
on_mouse_out: Optional[
|
|
1208
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1209
|
+
] = None,
|
|
1210
|
+
on_mouse_over: Optional[
|
|
1211
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1212
|
+
] = None,
|
|
1213
|
+
on_mouse_up: Optional[
|
|
1214
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1215
|
+
] = None,
|
|
1216
|
+
on_scroll: Optional[
|
|
1217
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1218
|
+
] = None,
|
|
1219
|
+
on_unmount: Optional[
|
|
1220
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1221
|
+
] = None,
|
|
1222
|
+
**props
|
|
1223
|
+
) -> "AlertDialogAction":
|
|
1224
|
+
"""Create a new component instance.
|
|
1225
|
+
|
|
1226
|
+
Will prepend "RadixThemes" to the component tag to avoid conflicts with
|
|
1227
|
+
other UI libraries for common names, like Text and Button.
|
|
1228
|
+
|
|
1229
|
+
Args:
|
|
1230
|
+
*children: Child components.
|
|
1231
|
+
color: map to CSS default color property.
|
|
1232
|
+
color_scheme: map to radix color property.
|
|
1233
|
+
m: Margin: "0" - "9"
|
|
1234
|
+
mx: Margin horizontal: "0" - "9"
|
|
1235
|
+
my: Margin vertical: "0" - "9"
|
|
1236
|
+
mt: Margin top: "0" - "9"
|
|
1237
|
+
mr: Margin right: "0" - "9"
|
|
1238
|
+
mb: Margin bottom: "0" - "9"
|
|
1239
|
+
ml: Margin left: "0" - "9"
|
|
1240
|
+
style: The style of the component.
|
|
1241
|
+
key: A unique key for the component.
|
|
1242
|
+
id: The id for the component.
|
|
1243
|
+
class_name: The class name for the component.
|
|
1244
|
+
autofocus: Whether the component should take the focus once the page is loaded
|
|
1245
|
+
custom_attrs: custom attribute
|
|
1246
|
+
**props: Component properties.
|
|
1247
|
+
|
|
1248
|
+
Returns:
|
|
1249
|
+
A new component instance.
|
|
1250
|
+
"""
|
|
1251
|
+
...
|
|
1252
|
+
|
|
1253
|
+
class AlertDialogCancel(CommonMarginProps, RadixThemesComponent):
|
|
1254
|
+
@overload
|
|
1255
|
+
@classmethod
|
|
1256
|
+
def create( # type: ignore
|
|
1257
|
+
cls,
|
|
1258
|
+
*children,
|
|
1259
|
+
color: Optional[Union[Var[str], str]] = None,
|
|
1260
|
+
color_scheme: Optional[
|
|
1261
|
+
Union[
|
|
1262
|
+
Var[
|
|
1263
|
+
Literal[
|
|
1264
|
+
"tomato",
|
|
1265
|
+
"red",
|
|
1266
|
+
"ruby",
|
|
1267
|
+
"crimson",
|
|
1268
|
+
"pink",
|
|
1269
|
+
"plum",
|
|
1270
|
+
"purple",
|
|
1271
|
+
"violet",
|
|
1272
|
+
"iris",
|
|
1273
|
+
"indigo",
|
|
1274
|
+
"blue",
|
|
1275
|
+
"cyan",
|
|
1276
|
+
"teal",
|
|
1277
|
+
"jade",
|
|
1278
|
+
"green",
|
|
1279
|
+
"grass",
|
|
1280
|
+
"brown",
|
|
1281
|
+
"orange",
|
|
1282
|
+
"sky",
|
|
1283
|
+
"mint",
|
|
1284
|
+
"lime",
|
|
1285
|
+
"yellow",
|
|
1286
|
+
"amber",
|
|
1287
|
+
"gold",
|
|
1288
|
+
"bronze",
|
|
1289
|
+
"gray",
|
|
1290
|
+
]
|
|
1291
|
+
],
|
|
1292
|
+
Literal[
|
|
1293
|
+
"tomato",
|
|
1294
|
+
"red",
|
|
1295
|
+
"ruby",
|
|
1296
|
+
"crimson",
|
|
1297
|
+
"pink",
|
|
1298
|
+
"plum",
|
|
1299
|
+
"purple",
|
|
1300
|
+
"violet",
|
|
1301
|
+
"iris",
|
|
1302
|
+
"indigo",
|
|
1303
|
+
"blue",
|
|
1304
|
+
"cyan",
|
|
1305
|
+
"teal",
|
|
1306
|
+
"jade",
|
|
1307
|
+
"green",
|
|
1308
|
+
"grass",
|
|
1309
|
+
"brown",
|
|
1310
|
+
"orange",
|
|
1311
|
+
"sky",
|
|
1312
|
+
"mint",
|
|
1313
|
+
"lime",
|
|
1314
|
+
"yellow",
|
|
1315
|
+
"amber",
|
|
1316
|
+
"gold",
|
|
1317
|
+
"bronze",
|
|
1318
|
+
"gray",
|
|
1319
|
+
],
|
|
1320
|
+
]
|
|
1321
|
+
] = None,
|
|
1322
|
+
m: Optional[
|
|
1323
|
+
Union[
|
|
1324
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1325
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1326
|
+
]
|
|
1327
|
+
] = None,
|
|
1328
|
+
mx: Optional[
|
|
1329
|
+
Union[
|
|
1330
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1331
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1332
|
+
]
|
|
1333
|
+
] = None,
|
|
1334
|
+
my: Optional[
|
|
1335
|
+
Union[
|
|
1336
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1337
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1338
|
+
]
|
|
1339
|
+
] = None,
|
|
1340
|
+
mt: Optional[
|
|
1341
|
+
Union[
|
|
1342
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1343
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1344
|
+
]
|
|
1345
|
+
] = None,
|
|
1346
|
+
mr: Optional[
|
|
1347
|
+
Union[
|
|
1348
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1349
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1350
|
+
]
|
|
1351
|
+
] = None,
|
|
1352
|
+
mb: Optional[
|
|
1353
|
+
Union[
|
|
1354
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1355
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1356
|
+
]
|
|
1357
|
+
] = None,
|
|
1358
|
+
ml: Optional[
|
|
1359
|
+
Union[
|
|
1360
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1361
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1362
|
+
]
|
|
1363
|
+
] = None,
|
|
1364
|
+
style: Optional[Style] = None,
|
|
1365
|
+
key: Optional[Any] = None,
|
|
1366
|
+
id: Optional[Any] = None,
|
|
1367
|
+
class_name: Optional[Any] = None,
|
|
1368
|
+
autofocus: Optional[bool] = None,
|
|
1369
|
+
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
1370
|
+
on_blur: Optional[
|
|
1371
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1372
|
+
] = None,
|
|
1373
|
+
on_click: Optional[
|
|
1374
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1375
|
+
] = None,
|
|
1376
|
+
on_context_menu: Optional[
|
|
1377
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1378
|
+
] = None,
|
|
1379
|
+
on_double_click: Optional[
|
|
1380
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1381
|
+
] = None,
|
|
1382
|
+
on_focus: Optional[
|
|
1383
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1384
|
+
] = None,
|
|
1385
|
+
on_mount: Optional[
|
|
1386
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1387
|
+
] = None,
|
|
1388
|
+
on_mouse_down: Optional[
|
|
1389
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1390
|
+
] = None,
|
|
1391
|
+
on_mouse_enter: Optional[
|
|
1392
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1393
|
+
] = None,
|
|
1394
|
+
on_mouse_leave: Optional[
|
|
1395
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1396
|
+
] = None,
|
|
1397
|
+
on_mouse_move: Optional[
|
|
1398
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1399
|
+
] = None,
|
|
1400
|
+
on_mouse_out: Optional[
|
|
1401
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1402
|
+
] = None,
|
|
1403
|
+
on_mouse_over: Optional[
|
|
1404
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1405
|
+
] = None,
|
|
1406
|
+
on_mouse_up: Optional[
|
|
1407
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1408
|
+
] = None,
|
|
1409
|
+
on_scroll: Optional[
|
|
1410
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1411
|
+
] = None,
|
|
1412
|
+
on_unmount: Optional[
|
|
1413
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1414
|
+
] = None,
|
|
1415
|
+
**props
|
|
1416
|
+
) -> "AlertDialogCancel":
|
|
1417
|
+
"""Create a new component instance.
|
|
1418
|
+
|
|
1419
|
+
Will prepend "RadixThemes" to the component tag to avoid conflicts with
|
|
1420
|
+
other UI libraries for common names, like Text and Button.
|
|
1421
|
+
|
|
1422
|
+
Args:
|
|
1423
|
+
*children: Child components.
|
|
1424
|
+
color: map to CSS default color property.
|
|
1425
|
+
color_scheme: map to radix color property.
|
|
715
1426
|
m: Margin: "0" - "9"
|
|
716
1427
|
mx: Margin horizontal: "0" - "9"
|
|
717
1428
|
my: Margin vertical: "0" - "9"
|