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,7 +18,69 @@ class TabsRoot(CommonMarginProps, RadixThemesComponent):
|
|
|
18
18
|
def create( # type: ignore
|
|
19
19
|
cls,
|
|
20
20
|
*children,
|
|
21
|
-
|
|
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,
|
|
22
84
|
variant: Optional[
|
|
23
85
|
Union[Var[Literal["surface", "ghost"]], Literal["surface", "ghost"]]
|
|
24
86
|
] = None,
|
|
@@ -135,8 +197,9 @@ class TabsRoot(CommonMarginProps, RadixThemesComponent):
|
|
|
135
197
|
|
|
136
198
|
Args:
|
|
137
199
|
*children: Child components.
|
|
138
|
-
|
|
139
|
-
|
|
200
|
+
color: map to CSS default color property.
|
|
201
|
+
color_scheme: map to radix color property.
|
|
202
|
+
variant: The variant of the tab
|
|
140
203
|
default_value: The value of the tab that should be active when initially rendered. Use when you do not need to control the state of the tabs.
|
|
141
204
|
value: The controlled value of the tab that should be active. Use when you need to control the state of the tabs.
|
|
142
205
|
orientation: The orientation of the tabs.
|
|
@@ -166,6 +229,69 @@ class TabsList(CommonMarginProps, RadixThemesComponent):
|
|
|
166
229
|
def create( # type: ignore
|
|
167
230
|
cls,
|
|
168
231
|
*children,
|
|
232
|
+
color: Optional[Union[Var[str], str]] = None,
|
|
233
|
+
color_scheme: Optional[
|
|
234
|
+
Union[
|
|
235
|
+
Var[
|
|
236
|
+
Literal[
|
|
237
|
+
"tomato",
|
|
238
|
+
"red",
|
|
239
|
+
"ruby",
|
|
240
|
+
"crimson",
|
|
241
|
+
"pink",
|
|
242
|
+
"plum",
|
|
243
|
+
"purple",
|
|
244
|
+
"violet",
|
|
245
|
+
"iris",
|
|
246
|
+
"indigo",
|
|
247
|
+
"blue",
|
|
248
|
+
"cyan",
|
|
249
|
+
"teal",
|
|
250
|
+
"jade",
|
|
251
|
+
"green",
|
|
252
|
+
"grass",
|
|
253
|
+
"brown",
|
|
254
|
+
"orange",
|
|
255
|
+
"sky",
|
|
256
|
+
"mint",
|
|
257
|
+
"lime",
|
|
258
|
+
"yellow",
|
|
259
|
+
"amber",
|
|
260
|
+
"gold",
|
|
261
|
+
"bronze",
|
|
262
|
+
"gray",
|
|
263
|
+
]
|
|
264
|
+
],
|
|
265
|
+
Literal[
|
|
266
|
+
"tomato",
|
|
267
|
+
"red",
|
|
268
|
+
"ruby",
|
|
269
|
+
"crimson",
|
|
270
|
+
"pink",
|
|
271
|
+
"plum",
|
|
272
|
+
"purple",
|
|
273
|
+
"violet",
|
|
274
|
+
"iris",
|
|
275
|
+
"indigo",
|
|
276
|
+
"blue",
|
|
277
|
+
"cyan",
|
|
278
|
+
"teal",
|
|
279
|
+
"jade",
|
|
280
|
+
"green",
|
|
281
|
+
"grass",
|
|
282
|
+
"brown",
|
|
283
|
+
"orange",
|
|
284
|
+
"sky",
|
|
285
|
+
"mint",
|
|
286
|
+
"lime",
|
|
287
|
+
"yellow",
|
|
288
|
+
"amber",
|
|
289
|
+
"gold",
|
|
290
|
+
"bronze",
|
|
291
|
+
"gray",
|
|
292
|
+
],
|
|
293
|
+
]
|
|
294
|
+
] = None,
|
|
169
295
|
m: Optional[
|
|
170
296
|
Union[
|
|
171
297
|
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
@@ -268,6 +394,8 @@ class TabsList(CommonMarginProps, RadixThemesComponent):
|
|
|
268
394
|
|
|
269
395
|
Args:
|
|
270
396
|
*children: Child components.
|
|
397
|
+
color: map to CSS default color property.
|
|
398
|
+
color_scheme: map to radix color property.
|
|
271
399
|
m: Margin: "0" - "9"
|
|
272
400
|
mx: Margin horizontal: "0" - "9"
|
|
273
401
|
my: Margin vertical: "0" - "9"
|
|
@@ -294,6 +422,69 @@ class TabsTrigger(CommonMarginProps, RadixThemesComponent):
|
|
|
294
422
|
def create( # type: ignore
|
|
295
423
|
cls,
|
|
296
424
|
*children,
|
|
425
|
+
color: Optional[Union[Var[str], str]] = None,
|
|
426
|
+
color_scheme: Optional[
|
|
427
|
+
Union[
|
|
428
|
+
Var[
|
|
429
|
+
Literal[
|
|
430
|
+
"tomato",
|
|
431
|
+
"red",
|
|
432
|
+
"ruby",
|
|
433
|
+
"crimson",
|
|
434
|
+
"pink",
|
|
435
|
+
"plum",
|
|
436
|
+
"purple",
|
|
437
|
+
"violet",
|
|
438
|
+
"iris",
|
|
439
|
+
"indigo",
|
|
440
|
+
"blue",
|
|
441
|
+
"cyan",
|
|
442
|
+
"teal",
|
|
443
|
+
"jade",
|
|
444
|
+
"green",
|
|
445
|
+
"grass",
|
|
446
|
+
"brown",
|
|
447
|
+
"orange",
|
|
448
|
+
"sky",
|
|
449
|
+
"mint",
|
|
450
|
+
"lime",
|
|
451
|
+
"yellow",
|
|
452
|
+
"amber",
|
|
453
|
+
"gold",
|
|
454
|
+
"bronze",
|
|
455
|
+
"gray",
|
|
456
|
+
]
|
|
457
|
+
],
|
|
458
|
+
Literal[
|
|
459
|
+
"tomato",
|
|
460
|
+
"red",
|
|
461
|
+
"ruby",
|
|
462
|
+
"crimson",
|
|
463
|
+
"pink",
|
|
464
|
+
"plum",
|
|
465
|
+
"purple",
|
|
466
|
+
"violet",
|
|
467
|
+
"iris",
|
|
468
|
+
"indigo",
|
|
469
|
+
"blue",
|
|
470
|
+
"cyan",
|
|
471
|
+
"teal",
|
|
472
|
+
"jade",
|
|
473
|
+
"green",
|
|
474
|
+
"grass",
|
|
475
|
+
"brown",
|
|
476
|
+
"orange",
|
|
477
|
+
"sky",
|
|
478
|
+
"mint",
|
|
479
|
+
"lime",
|
|
480
|
+
"yellow",
|
|
481
|
+
"amber",
|
|
482
|
+
"gold",
|
|
483
|
+
"bronze",
|
|
484
|
+
"gray",
|
|
485
|
+
],
|
|
486
|
+
]
|
|
487
|
+
] = None,
|
|
297
488
|
value: Optional[Union[Var[str], str]] = None,
|
|
298
489
|
disabled: Optional[Union[Var[bool], bool]] = None,
|
|
299
490
|
m: Optional[
|
|
@@ -398,6 +589,8 @@ class TabsTrigger(CommonMarginProps, RadixThemesComponent):
|
|
|
398
589
|
|
|
399
590
|
Args:
|
|
400
591
|
*children: Child components.
|
|
592
|
+
color: map to CSS default color property.
|
|
593
|
+
color_scheme: map to radix color property.
|
|
401
594
|
value: The value of the tab. Must be unique for each tab.
|
|
402
595
|
disabled: Whether the tab is disabled
|
|
403
596
|
m: Margin: "0" - "9"
|
|
@@ -426,6 +619,70 @@ class TabsContent(CommonMarginProps, RadixThemesComponent):
|
|
|
426
619
|
def create( # type: ignore
|
|
427
620
|
cls,
|
|
428
621
|
*children,
|
|
622
|
+
color: Optional[Union[Var[str], str]] = None,
|
|
623
|
+
color_scheme: Optional[
|
|
624
|
+
Union[
|
|
625
|
+
Var[
|
|
626
|
+
Literal[
|
|
627
|
+
"tomato",
|
|
628
|
+
"red",
|
|
629
|
+
"ruby",
|
|
630
|
+
"crimson",
|
|
631
|
+
"pink",
|
|
632
|
+
"plum",
|
|
633
|
+
"purple",
|
|
634
|
+
"violet",
|
|
635
|
+
"iris",
|
|
636
|
+
"indigo",
|
|
637
|
+
"blue",
|
|
638
|
+
"cyan",
|
|
639
|
+
"teal",
|
|
640
|
+
"jade",
|
|
641
|
+
"green",
|
|
642
|
+
"grass",
|
|
643
|
+
"brown",
|
|
644
|
+
"orange",
|
|
645
|
+
"sky",
|
|
646
|
+
"mint",
|
|
647
|
+
"lime",
|
|
648
|
+
"yellow",
|
|
649
|
+
"amber",
|
|
650
|
+
"gold",
|
|
651
|
+
"bronze",
|
|
652
|
+
"gray",
|
|
653
|
+
]
|
|
654
|
+
],
|
|
655
|
+
Literal[
|
|
656
|
+
"tomato",
|
|
657
|
+
"red",
|
|
658
|
+
"ruby",
|
|
659
|
+
"crimson",
|
|
660
|
+
"pink",
|
|
661
|
+
"plum",
|
|
662
|
+
"purple",
|
|
663
|
+
"violet",
|
|
664
|
+
"iris",
|
|
665
|
+
"indigo",
|
|
666
|
+
"blue",
|
|
667
|
+
"cyan",
|
|
668
|
+
"teal",
|
|
669
|
+
"jade",
|
|
670
|
+
"green",
|
|
671
|
+
"grass",
|
|
672
|
+
"brown",
|
|
673
|
+
"orange",
|
|
674
|
+
"sky",
|
|
675
|
+
"mint",
|
|
676
|
+
"lime",
|
|
677
|
+
"yellow",
|
|
678
|
+
"amber",
|
|
679
|
+
"gold",
|
|
680
|
+
"bronze",
|
|
681
|
+
"gray",
|
|
682
|
+
],
|
|
683
|
+
]
|
|
684
|
+
] = None,
|
|
685
|
+
value: Optional[Union[Var[str], str]] = None,
|
|
429
686
|
m: Optional[
|
|
430
687
|
Union[
|
|
431
688
|
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
@@ -528,6 +785,9 @@ class TabsContent(CommonMarginProps, RadixThemesComponent):
|
|
|
528
785
|
|
|
529
786
|
Args:
|
|
530
787
|
*children: Child components.
|
|
788
|
+
color: map to CSS default color property.
|
|
789
|
+
color_scheme: map to radix color property.
|
|
790
|
+
value: The value of the tab. Must be unique for each tab.
|
|
531
791
|
m: Margin: "0" - "9"
|
|
532
792
|
mx: Margin horizontal: "0" - "9"
|
|
533
793
|
my: Margin vertical: "0" - "9"
|
|
@@ -3,7 +3,7 @@ from typing import Any, Dict, Literal
|
|
|
3
3
|
|
|
4
4
|
from reflex import el
|
|
5
5
|
from reflex.components.component import Component
|
|
6
|
-
from reflex.components.
|
|
6
|
+
from reflex.components.core.debounce import DebounceInput
|
|
7
7
|
from reflex.constants import EventTriggers
|
|
8
8
|
from reflex.vars import Var
|
|
9
9
|
|
|
@@ -10,7 +10,7 @@ from reflex.style import Style
|
|
|
10
10
|
from typing import Any, Dict, Literal
|
|
11
11
|
from reflex import el
|
|
12
12
|
from reflex.components.component import Component
|
|
13
|
-
from reflex.components.
|
|
13
|
+
from reflex.components.core.debounce import DebounceInput
|
|
14
14
|
from reflex.constants import EventTriggers
|
|
15
15
|
from reflex.vars import Var
|
|
16
16
|
from ..base import CommonMarginProps, LiteralAccentColor, RadixThemesComponent
|
|
@@ -3,7 +3,7 @@ from typing import Any, Dict, Literal
|
|
|
3
3
|
|
|
4
4
|
from reflex.components import el
|
|
5
5
|
from reflex.components.component import Component
|
|
6
|
-
from reflex.components.
|
|
6
|
+
from reflex.components.core.debounce import DebounceInput
|
|
7
7
|
from reflex.constants import EventTriggers
|
|
8
8
|
from reflex.vars import Var
|
|
9
9
|
|
|
@@ -10,7 +10,7 @@ from reflex.style import Style
|
|
|
10
10
|
from typing import Any, Dict, Literal
|
|
11
11
|
from reflex.components import el
|
|
12
12
|
from reflex.components.component import Component
|
|
13
|
-
from reflex.components.
|
|
13
|
+
from reflex.components.core.debounce import DebounceInput
|
|
14
14
|
from reflex.constants import EventTriggers
|
|
15
15
|
from reflex.vars import Var
|
|
16
16
|
from ..base import (
|
|
@@ -30,16 +30,8 @@ class TextFieldRoot(el.Div, CommonMarginProps, RadixThemesComponent):
|
|
|
30
30
|
def create( # type: ignore
|
|
31
31
|
cls,
|
|
32
32
|
*children,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
] = None,
|
|
36
|
-
variant: Optional[
|
|
37
|
-
Union[
|
|
38
|
-
Var[Literal["classic", "surface", "soft"]],
|
|
39
|
-
Literal["classic", "surface", "soft"],
|
|
40
|
-
]
|
|
41
|
-
] = None,
|
|
42
|
-
color: Optional[
|
|
33
|
+
color: Optional[Union[Var[str], str]] = None,
|
|
34
|
+
color_scheme: Optional[
|
|
43
35
|
Union[
|
|
44
36
|
Var[
|
|
45
37
|
Literal[
|
|
@@ -101,6 +93,15 @@ class TextFieldRoot(el.Div, CommonMarginProps, RadixThemesComponent):
|
|
|
101
93
|
],
|
|
102
94
|
]
|
|
103
95
|
] = None,
|
|
96
|
+
size: Optional[
|
|
97
|
+
Union[Var[Literal["1", "2", "3"]], Literal["1", "2", "3"]]
|
|
98
|
+
] = None,
|
|
99
|
+
variant: Optional[
|
|
100
|
+
Union[
|
|
101
|
+
Var[Literal["classic", "surface", "soft"]],
|
|
102
|
+
Literal["classic", "surface", "soft"],
|
|
103
|
+
]
|
|
104
|
+
] = None,
|
|
104
105
|
radius: Optional[
|
|
105
106
|
Union[
|
|
106
107
|
Var[Literal["none", "small", "medium", "large", "full"]],
|
|
@@ -252,9 +253,10 @@ class TextFieldRoot(el.Div, CommonMarginProps, RadixThemesComponent):
|
|
|
252
253
|
|
|
253
254
|
Args:
|
|
254
255
|
*children: Child components.
|
|
256
|
+
color: map to CSS default color property.
|
|
257
|
+
color_scheme: map to radix color property.
|
|
255
258
|
size: Text field size "1" - "3"
|
|
256
259
|
variant: Variant of text field: "classic" | "surface" | "soft"
|
|
257
|
-
color: Override theme color for text field
|
|
258
260
|
radius: Override theme radius for text field: "none" | "small" | "medium" | "large" | "full"
|
|
259
261
|
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
260
262
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
@@ -683,7 +685,8 @@ class TextFieldSlot(RadixThemesComponent):
|
|
|
683
685
|
def create( # type: ignore
|
|
684
686
|
cls,
|
|
685
687
|
*children,
|
|
686
|
-
color: Optional[
|
|
688
|
+
color: Optional[Union[Var[str], str]] = None,
|
|
689
|
+
color_scheme: Optional[
|
|
687
690
|
Union[
|
|
688
691
|
Var[
|
|
689
692
|
Literal[
|
|
@@ -811,7 +814,8 @@ class TextFieldSlot(RadixThemesComponent):
|
|
|
811
814
|
|
|
812
815
|
Args:
|
|
813
816
|
*children: Child components.
|
|
814
|
-
color:
|
|
817
|
+
color: map to CSS default color property.
|
|
818
|
+
color_scheme: map to radix color property.
|
|
815
819
|
gap: Override the gap spacing between slot and input: "1" - "9"
|
|
816
820
|
style: The style of the component.
|
|
817
821
|
key: A unique key for the component.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""Interactive components provided by @radix-ui/themes."""
|
|
2
|
+
from reflex.vars import Var
|
|
3
|
+
|
|
4
|
+
from ..base import (
|
|
5
|
+
CommonMarginProps,
|
|
6
|
+
RadixThemesComponent,
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Tooltip(CommonMarginProps, RadixThemesComponent):
|
|
11
|
+
"""Floating element that provides a control with contextual information via pointer or focus."""
|
|
12
|
+
|
|
13
|
+
tag = "Tooltip"
|
|
14
|
+
|
|
15
|
+
content: Var[str]
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
"""Stub file for reflex/components/radix/themes/components/tooltip.py"""
|
|
2
|
+
# ------------------- DO NOT EDIT ----------------------
|
|
3
|
+
# This file was generated by `scripts/pyi_generator.py`!
|
|
4
|
+
# ------------------------------------------------------
|
|
5
|
+
|
|
6
|
+
from typing import Any, Dict, Literal, Optional, Union, overload
|
|
7
|
+
from reflex.vars import Var, BaseVar, ComputedVar
|
|
8
|
+
from reflex.event import EventChain, EventHandler, EventSpec
|
|
9
|
+
from reflex.style import Style
|
|
10
|
+
from reflex.vars import Var
|
|
11
|
+
from ..base import CommonMarginProps, RadixThemesComponent
|
|
12
|
+
|
|
13
|
+
class Tooltip(CommonMarginProps, RadixThemesComponent):
|
|
14
|
+
@overload
|
|
15
|
+
@classmethod
|
|
16
|
+
def create( # type: ignore
|
|
17
|
+
cls,
|
|
18
|
+
*children,
|
|
19
|
+
color: Optional[Union[Var[str], str]] = None,
|
|
20
|
+
color_scheme: Optional[
|
|
21
|
+
Union[
|
|
22
|
+
Var[
|
|
23
|
+
Literal[
|
|
24
|
+
"tomato",
|
|
25
|
+
"red",
|
|
26
|
+
"ruby",
|
|
27
|
+
"crimson",
|
|
28
|
+
"pink",
|
|
29
|
+
"plum",
|
|
30
|
+
"purple",
|
|
31
|
+
"violet",
|
|
32
|
+
"iris",
|
|
33
|
+
"indigo",
|
|
34
|
+
"blue",
|
|
35
|
+
"cyan",
|
|
36
|
+
"teal",
|
|
37
|
+
"jade",
|
|
38
|
+
"green",
|
|
39
|
+
"grass",
|
|
40
|
+
"brown",
|
|
41
|
+
"orange",
|
|
42
|
+
"sky",
|
|
43
|
+
"mint",
|
|
44
|
+
"lime",
|
|
45
|
+
"yellow",
|
|
46
|
+
"amber",
|
|
47
|
+
"gold",
|
|
48
|
+
"bronze",
|
|
49
|
+
"gray",
|
|
50
|
+
]
|
|
51
|
+
],
|
|
52
|
+
Literal[
|
|
53
|
+
"tomato",
|
|
54
|
+
"red",
|
|
55
|
+
"ruby",
|
|
56
|
+
"crimson",
|
|
57
|
+
"pink",
|
|
58
|
+
"plum",
|
|
59
|
+
"purple",
|
|
60
|
+
"violet",
|
|
61
|
+
"iris",
|
|
62
|
+
"indigo",
|
|
63
|
+
"blue",
|
|
64
|
+
"cyan",
|
|
65
|
+
"teal",
|
|
66
|
+
"jade",
|
|
67
|
+
"green",
|
|
68
|
+
"grass",
|
|
69
|
+
"brown",
|
|
70
|
+
"orange",
|
|
71
|
+
"sky",
|
|
72
|
+
"mint",
|
|
73
|
+
"lime",
|
|
74
|
+
"yellow",
|
|
75
|
+
"amber",
|
|
76
|
+
"gold",
|
|
77
|
+
"bronze",
|
|
78
|
+
"gray",
|
|
79
|
+
],
|
|
80
|
+
]
|
|
81
|
+
] = None,
|
|
82
|
+
content: Optional[Union[Var[str], str]] = None,
|
|
83
|
+
m: Optional[
|
|
84
|
+
Union[
|
|
85
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
86
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
87
|
+
]
|
|
88
|
+
] = None,
|
|
89
|
+
mx: Optional[
|
|
90
|
+
Union[
|
|
91
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
92
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
93
|
+
]
|
|
94
|
+
] = None,
|
|
95
|
+
my: Optional[
|
|
96
|
+
Union[
|
|
97
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
98
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
99
|
+
]
|
|
100
|
+
] = None,
|
|
101
|
+
mt: Optional[
|
|
102
|
+
Union[
|
|
103
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
104
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
105
|
+
]
|
|
106
|
+
] = None,
|
|
107
|
+
mr: Optional[
|
|
108
|
+
Union[
|
|
109
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
110
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
111
|
+
]
|
|
112
|
+
] = None,
|
|
113
|
+
mb: Optional[
|
|
114
|
+
Union[
|
|
115
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
116
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
117
|
+
]
|
|
118
|
+
] = None,
|
|
119
|
+
ml: Optional[
|
|
120
|
+
Union[
|
|
121
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
122
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
123
|
+
]
|
|
124
|
+
] = None,
|
|
125
|
+
style: Optional[Style] = None,
|
|
126
|
+
key: Optional[Any] = None,
|
|
127
|
+
id: Optional[Any] = None,
|
|
128
|
+
class_name: Optional[Any] = None,
|
|
129
|
+
autofocus: Optional[bool] = None,
|
|
130
|
+
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
131
|
+
on_blur: Optional[
|
|
132
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
133
|
+
] = None,
|
|
134
|
+
on_click: Optional[
|
|
135
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
136
|
+
] = None,
|
|
137
|
+
on_context_menu: Optional[
|
|
138
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
139
|
+
] = None,
|
|
140
|
+
on_double_click: Optional[
|
|
141
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
142
|
+
] = None,
|
|
143
|
+
on_focus: Optional[
|
|
144
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
145
|
+
] = None,
|
|
146
|
+
on_mount: Optional[
|
|
147
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
148
|
+
] = None,
|
|
149
|
+
on_mouse_down: Optional[
|
|
150
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
151
|
+
] = None,
|
|
152
|
+
on_mouse_enter: Optional[
|
|
153
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
154
|
+
] = None,
|
|
155
|
+
on_mouse_leave: Optional[
|
|
156
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
157
|
+
] = None,
|
|
158
|
+
on_mouse_move: Optional[
|
|
159
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
160
|
+
] = None,
|
|
161
|
+
on_mouse_out: Optional[
|
|
162
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
163
|
+
] = None,
|
|
164
|
+
on_mouse_over: Optional[
|
|
165
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
166
|
+
] = None,
|
|
167
|
+
on_mouse_up: Optional[
|
|
168
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
169
|
+
] = None,
|
|
170
|
+
on_scroll: Optional[
|
|
171
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
172
|
+
] = None,
|
|
173
|
+
on_unmount: Optional[
|
|
174
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
175
|
+
] = None,
|
|
176
|
+
**props
|
|
177
|
+
) -> "Tooltip":
|
|
178
|
+
"""Create a new component instance.
|
|
179
|
+
|
|
180
|
+
Will prepend "RadixThemes" to the component tag to avoid conflicts with
|
|
181
|
+
other UI libraries for common names, like Text and Button.
|
|
182
|
+
|
|
183
|
+
Args:
|
|
184
|
+
*children: Child components.
|
|
185
|
+
color: map to CSS default color property.
|
|
186
|
+
color_scheme: map to radix color property.
|
|
187
|
+
m: Margin: "0" - "9"
|
|
188
|
+
mx: Margin horizontal: "0" - "9"
|
|
189
|
+
my: Margin vertical: "0" - "9"
|
|
190
|
+
mt: Margin top: "0" - "9"
|
|
191
|
+
mr: Margin right: "0" - "9"
|
|
192
|
+
mb: Margin bottom: "0" - "9"
|
|
193
|
+
ml: Margin left: "0" - "9"
|
|
194
|
+
style: The style of the component.
|
|
195
|
+
key: A unique key for the component.
|
|
196
|
+
id: The id for the component.
|
|
197
|
+
class_name: The class name for the component.
|
|
198
|
+
autofocus: Whether the component should take the focus once the page is loaded
|
|
199
|
+
custom_attrs: custom attribute
|
|
200
|
+
**props: Component properties.
|
|
201
|
+
|
|
202
|
+
Returns:
|
|
203
|
+
A new component instance.
|
|
204
|
+
"""
|
|
205
|
+
...
|