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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"""Stub file for reflex/components/forms/colormodeswitch.py"""
|
|
1
|
+
"""Stub file for reflex/components/chakra/forms/colormodeswitch.py"""
|
|
2
2
|
# ------------------- DO NOT EDIT ----------------------
|
|
3
3
|
# This file was generated by `scripts/pyi_generator.py`!
|
|
4
4
|
# ------------------------------------------------------
|
|
@@ -8,9 +8,10 @@ from reflex.vars import Var, BaseVar, ComputedVar
|
|
|
8
8
|
from reflex.event import EventChain, EventHandler, EventSpec
|
|
9
9
|
from reflex.style import Style
|
|
10
10
|
from typing import Any
|
|
11
|
+
from reflex.components.chakra import ChakraComponent
|
|
12
|
+
from reflex.components.chakra.media.icon import Icon
|
|
11
13
|
from reflex.components.component import BaseComponent, Component
|
|
12
|
-
from reflex.components.
|
|
13
|
-
from reflex.components.media.icon import Icon
|
|
14
|
+
from reflex.components.core.cond import Cond, cond
|
|
14
15
|
from reflex.style import color_mode, toggle_color_mode
|
|
15
16
|
from reflex.vars import Var
|
|
16
17
|
from .button import Button
|
|
@@ -398,3 +399,82 @@ class ColorModeButton(Button):
|
|
|
398
399
|
The switch component.
|
|
399
400
|
"""
|
|
400
401
|
...
|
|
402
|
+
|
|
403
|
+
class ColorModeScript(ChakraComponent):
|
|
404
|
+
@overload
|
|
405
|
+
@classmethod
|
|
406
|
+
def create( # type: ignore
|
|
407
|
+
cls,
|
|
408
|
+
*children,
|
|
409
|
+
style: Optional[Style] = None,
|
|
410
|
+
key: Optional[Any] = None,
|
|
411
|
+
id: Optional[Any] = None,
|
|
412
|
+
class_name: Optional[Any] = None,
|
|
413
|
+
autofocus: Optional[bool] = None,
|
|
414
|
+
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
415
|
+
on_blur: Optional[
|
|
416
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
417
|
+
] = None,
|
|
418
|
+
on_click: Optional[
|
|
419
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
420
|
+
] = None,
|
|
421
|
+
on_context_menu: Optional[
|
|
422
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
423
|
+
] = None,
|
|
424
|
+
on_double_click: Optional[
|
|
425
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
426
|
+
] = None,
|
|
427
|
+
on_focus: Optional[
|
|
428
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
429
|
+
] = None,
|
|
430
|
+
on_mount: Optional[
|
|
431
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
432
|
+
] = None,
|
|
433
|
+
on_mouse_down: Optional[
|
|
434
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
435
|
+
] = None,
|
|
436
|
+
on_mouse_enter: Optional[
|
|
437
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
438
|
+
] = None,
|
|
439
|
+
on_mouse_leave: Optional[
|
|
440
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
441
|
+
] = None,
|
|
442
|
+
on_mouse_move: Optional[
|
|
443
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
444
|
+
] = None,
|
|
445
|
+
on_mouse_out: Optional[
|
|
446
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
447
|
+
] = None,
|
|
448
|
+
on_mouse_over: Optional[
|
|
449
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
450
|
+
] = None,
|
|
451
|
+
on_mouse_up: Optional[
|
|
452
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
453
|
+
] = None,
|
|
454
|
+
on_scroll: Optional[
|
|
455
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
456
|
+
] = None,
|
|
457
|
+
on_unmount: Optional[
|
|
458
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
459
|
+
] = None,
|
|
460
|
+
**props
|
|
461
|
+
) -> "ColorModeScript":
|
|
462
|
+
"""Create the component.
|
|
463
|
+
|
|
464
|
+
Args:
|
|
465
|
+
*children: The children of the component.
|
|
466
|
+
style: The style of the component.
|
|
467
|
+
key: A unique key for the component.
|
|
468
|
+
id: The id for the component.
|
|
469
|
+
class_name: The class name for the component.
|
|
470
|
+
autofocus: Whether the component should take the focus once the page is loaded
|
|
471
|
+
custom_attrs: custom attribute
|
|
472
|
+
**props: The props of the component.
|
|
473
|
+
|
|
474
|
+
Returns:
|
|
475
|
+
The component.
|
|
476
|
+
|
|
477
|
+
Raises:
|
|
478
|
+
TypeError: If an invalid child is passed.
|
|
479
|
+
"""
|
|
480
|
+
...
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"""Stub file for reflex/components/forms/date_picker.py"""
|
|
1
|
+
"""Stub file for reflex/components/chakra/forms/date_picker.py"""
|
|
2
2
|
# ------------------- DO NOT EDIT ----------------------
|
|
3
3
|
# This file was generated by `scripts/pyi_generator.py`!
|
|
4
4
|
# ------------------------------------------------------
|
|
@@ -7,7 +7,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload
|
|
|
7
7
|
from reflex.vars import Var, BaseVar, ComputedVar
|
|
8
8
|
from reflex.event import EventChain, EventHandler, EventSpec
|
|
9
9
|
from reflex.style import Style
|
|
10
|
-
from reflex.components.forms.input import Input
|
|
10
|
+
from reflex.components.chakra.forms.input import Input
|
|
11
11
|
from reflex.vars import Var
|
|
12
12
|
|
|
13
13
|
class DatePicker(Input):
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"""Stub file for reflex/components/forms/date_time_picker.py"""
|
|
1
|
+
"""Stub file for reflex/components/chakra/forms/date_time_picker.py"""
|
|
2
2
|
# ------------------- DO NOT EDIT ----------------------
|
|
3
3
|
# This file was generated by `scripts/pyi_generator.py`!
|
|
4
4
|
# ------------------------------------------------------
|
|
@@ -7,7 +7,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload
|
|
|
7
7
|
from reflex.vars import Var, BaseVar, ComputedVar
|
|
8
8
|
from reflex.event import EventChain, EventHandler, EventSpec
|
|
9
9
|
from reflex.style import Style
|
|
10
|
-
from reflex.components.forms.input import Input
|
|
10
|
+
from reflex.components.chakra.forms.input import Input
|
|
11
11
|
from reflex.vars import Var
|
|
12
12
|
|
|
13
13
|
class DateTimePicker(Input):
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"""Stub file for reflex/components/forms/editable.py"""
|
|
1
|
+
"""Stub file for reflex/components/chakra/forms/editable.py"""
|
|
2
2
|
# ------------------- DO NOT EDIT ----------------------
|
|
3
3
|
# This file was generated by `scripts/pyi_generator.py`!
|
|
4
4
|
# ------------------------------------------------------
|
|
@@ -8,7 +8,7 @@ from reflex.vars import Var, BaseVar, ComputedVar
|
|
|
8
8
|
from reflex.event import EventChain, EventHandler, EventSpec
|
|
9
9
|
from reflex.style import Style
|
|
10
10
|
from typing import Any, Union
|
|
11
|
-
from reflex.components.
|
|
11
|
+
from reflex.components.chakra import ChakraComponent
|
|
12
12
|
from reflex.constants import EventTriggers
|
|
13
13
|
from reflex.vars import Var
|
|
14
14
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"""Stub file for reflex/components/forms/email.py"""
|
|
1
|
+
"""Stub file for reflex/components/chakra/forms/email.py"""
|
|
2
2
|
# ------------------- DO NOT EDIT ----------------------
|
|
3
3
|
# This file was generated by `scripts/pyi_generator.py`!
|
|
4
4
|
# ------------------------------------------------------
|
|
@@ -7,7 +7,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload
|
|
|
7
7
|
from reflex.vars import Var, BaseVar, ComputedVar
|
|
8
8
|
from reflex.event import EventChain, EventHandler, EventSpec
|
|
9
9
|
from reflex.style import Style
|
|
10
|
-
from reflex.components.forms.input import Input
|
|
10
|
+
from reflex.components.chakra.forms.input import Input
|
|
11
11
|
from reflex.vars import Var
|
|
12
12
|
|
|
13
13
|
class Email(Input):
|
|
@@ -6,8 +6,8 @@ from typing import Any, Dict, Iterator
|
|
|
6
6
|
|
|
7
7
|
from jinja2 import Environment
|
|
8
8
|
|
|
9
|
+
from reflex.components.chakra import ChakraComponent
|
|
9
10
|
from reflex.components.component import Component
|
|
10
|
-
from reflex.components.libs.chakra import ChakraComponent
|
|
11
11
|
from reflex.components.tags import Tag
|
|
12
12
|
from reflex.constants import Dirs, EventTriggers
|
|
13
13
|
from reflex.event import EventChain
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"""Stub file for reflex/components/forms/form.py"""
|
|
1
|
+
"""Stub file for reflex/components/chakra/forms/form.py"""
|
|
2
2
|
# ------------------- DO NOT EDIT ----------------------
|
|
3
3
|
# This file was generated by `scripts/pyi_generator.py`!
|
|
4
4
|
# ------------------------------------------------------
|
|
@@ -10,8 +10,8 @@ from reflex.style import Style
|
|
|
10
10
|
from hashlib import md5
|
|
11
11
|
from typing import Any, Dict, Iterator
|
|
12
12
|
from jinja2 import Environment
|
|
13
|
+
from reflex.components.chakra import ChakraComponent
|
|
13
14
|
from reflex.components.component import Component
|
|
14
|
-
from reflex.components.libs.chakra import ChakraComponent
|
|
15
15
|
from reflex.components.tags import Tag
|
|
16
16
|
from reflex.constants import Dirs, EventTriggers
|
|
17
17
|
from reflex.event import EventChain
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"""Stub file for reflex/components/forms/iconbutton.py"""
|
|
1
|
+
"""Stub file for reflex/components/chakra/forms/iconbutton.py"""
|
|
2
2
|
# ------------------- DO NOT EDIT ----------------------
|
|
3
3
|
# This file was generated by `scripts/pyi_generator.py`!
|
|
4
4
|
# ------------------------------------------------------
|
|
@@ -8,8 +8,8 @@ from reflex.vars import Var, BaseVar, ComputedVar
|
|
|
8
8
|
from reflex.event import EventChain, EventHandler, EventSpec
|
|
9
9
|
from reflex.style import Style
|
|
10
10
|
from typing import Optional
|
|
11
|
+
from reflex.components.chakra.typography.text import Text
|
|
11
12
|
from reflex.components.component import Component
|
|
12
|
-
from reflex.components.typography.text import Text
|
|
13
13
|
from reflex.vars import Var
|
|
14
14
|
|
|
15
15
|
class IconButton(Text):
|
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
from typing import Any, Dict
|
|
4
4
|
|
|
5
|
-
from reflex.components.
|
|
6
|
-
from reflex.components.forms.debounce import DebounceInput
|
|
7
|
-
from reflex.components.libs.chakra import (
|
|
5
|
+
from reflex.components.chakra import (
|
|
8
6
|
ChakraComponent,
|
|
9
7
|
LiteralButtonSize,
|
|
10
8
|
LiteralInputVariant,
|
|
11
9
|
)
|
|
10
|
+
from reflex.components.component import Component
|
|
11
|
+
from reflex.components.core.debounce import DebounceInput
|
|
12
|
+
from reflex.components.literals import LiteralInputType
|
|
12
13
|
from reflex.constants import EventTriggers, MemoizationMode
|
|
13
14
|
from reflex.utils import imports
|
|
14
15
|
from reflex.vars import Var
|
|
@@ -29,7 +30,7 @@ class Input(ChakraComponent):
|
|
|
29
30
|
placeholder: Var[str]
|
|
30
31
|
|
|
31
32
|
# The type of input.
|
|
32
|
-
type_: Var[
|
|
33
|
+
type_: Var[LiteralInputType] = "text" # type: ignore
|
|
33
34
|
|
|
34
35
|
# The border color when the input is invalid.
|
|
35
36
|
error_border_color: Var[str]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"""Stub file for reflex/components/forms/input.py"""
|
|
1
|
+
"""Stub file for reflex/components/chakra/forms/input.py"""
|
|
2
2
|
# ------------------- DO NOT EDIT ----------------------
|
|
3
3
|
# This file was generated by `scripts/pyi_generator.py`!
|
|
4
4
|
# ------------------------------------------------------
|
|
@@ -8,13 +8,14 @@ from reflex.vars import Var, BaseVar, ComputedVar
|
|
|
8
8
|
from reflex.event import EventChain, EventHandler, EventSpec
|
|
9
9
|
from reflex.style import Style
|
|
10
10
|
from typing import Any, Dict
|
|
11
|
-
from reflex.components.
|
|
12
|
-
from reflex.components.forms.debounce import DebounceInput
|
|
13
|
-
from reflex.components.libs.chakra import (
|
|
11
|
+
from reflex.components.chakra import (
|
|
14
12
|
ChakraComponent,
|
|
15
13
|
LiteralButtonSize,
|
|
16
14
|
LiteralInputVariant,
|
|
17
15
|
)
|
|
16
|
+
from reflex.components.component import Component
|
|
17
|
+
from reflex.components.core.debounce import DebounceInput
|
|
18
|
+
from reflex.components.literals import LiteralInputType
|
|
18
19
|
from reflex.constants import EventTriggers, MemoizationMode
|
|
19
20
|
from reflex.utils import imports
|
|
20
21
|
from reflex.vars import Var
|
|
@@ -29,7 +30,60 @@ class Input(ChakraComponent):
|
|
|
29
30
|
value: Optional[Union[Var[str], str]] = None,
|
|
30
31
|
default_value: Optional[Union[Var[str], str]] = None,
|
|
31
32
|
placeholder: Optional[Union[Var[str], str]] = None,
|
|
32
|
-
type_: Optional[
|
|
33
|
+
type_: Optional[
|
|
34
|
+
Union[
|
|
35
|
+
Var[
|
|
36
|
+
Literal[
|
|
37
|
+
"button",
|
|
38
|
+
"checkbox",
|
|
39
|
+
"color",
|
|
40
|
+
"date",
|
|
41
|
+
"datetime-local",
|
|
42
|
+
"email",
|
|
43
|
+
"file",
|
|
44
|
+
"hidden",
|
|
45
|
+
"image",
|
|
46
|
+
"month",
|
|
47
|
+
"number",
|
|
48
|
+
"password",
|
|
49
|
+
"radio",
|
|
50
|
+
"range",
|
|
51
|
+
"reset",
|
|
52
|
+
"search",
|
|
53
|
+
"submit",
|
|
54
|
+
"tel",
|
|
55
|
+
"text",
|
|
56
|
+
"time",
|
|
57
|
+
"url",
|
|
58
|
+
"week",
|
|
59
|
+
]
|
|
60
|
+
],
|
|
61
|
+
Literal[
|
|
62
|
+
"button",
|
|
63
|
+
"checkbox",
|
|
64
|
+
"color",
|
|
65
|
+
"date",
|
|
66
|
+
"datetime-local",
|
|
67
|
+
"email",
|
|
68
|
+
"file",
|
|
69
|
+
"hidden",
|
|
70
|
+
"image",
|
|
71
|
+
"month",
|
|
72
|
+
"number",
|
|
73
|
+
"password",
|
|
74
|
+
"radio",
|
|
75
|
+
"range",
|
|
76
|
+
"reset",
|
|
77
|
+
"search",
|
|
78
|
+
"submit",
|
|
79
|
+
"tel",
|
|
80
|
+
"text",
|
|
81
|
+
"time",
|
|
82
|
+
"url",
|
|
83
|
+
"week",
|
|
84
|
+
],
|
|
85
|
+
]
|
|
86
|
+
] = None,
|
|
33
87
|
error_border_color: Optional[Union[Var[str], str]] = None,
|
|
34
88
|
focus_border_color: Optional[Union[Var[str], str]] = None,
|
|
35
89
|
is_disabled: Optional[Union[Var[bool], bool]] = None,
|
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
from numbers import Number
|
|
4
4
|
from typing import Any, Dict
|
|
5
5
|
|
|
6
|
-
from reflex.components.
|
|
7
|
-
from reflex.components.libs.chakra import (
|
|
6
|
+
from reflex.components.chakra import (
|
|
8
7
|
ChakraComponent,
|
|
8
|
+
LiteralButtonSize,
|
|
9
9
|
LiteralInputVariant,
|
|
10
10
|
)
|
|
11
|
+
from reflex.components.component import Component
|
|
11
12
|
from reflex.constants import EventTriggers
|
|
12
13
|
from reflex.vars import Var
|
|
13
14
|
|
|
@@ -68,6 +69,9 @@ class NumberInput(ChakraComponent):
|
|
|
68
69
|
# "outline" | "filled" | "flushed" | "unstyled"
|
|
69
70
|
variant: Var[LiteralInputVariant]
|
|
70
71
|
|
|
72
|
+
# "lg" | "md" | "sm" | "xs"
|
|
73
|
+
size: Var[LiteralButtonSize]
|
|
74
|
+
|
|
71
75
|
# The name of the form field
|
|
72
76
|
name: Var[str]
|
|
73
77
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"""Stub file for reflex/components/forms/numberinput.py"""
|
|
1
|
+
"""Stub file for reflex/components/chakra/forms/numberinput.py"""
|
|
2
2
|
# ------------------- DO NOT EDIT ----------------------
|
|
3
3
|
# This file was generated by `scripts/pyi_generator.py`!
|
|
4
4
|
# ------------------------------------------------------
|
|
@@ -9,8 +9,12 @@ from reflex.event import EventChain, EventHandler, EventSpec
|
|
|
9
9
|
from reflex.style import Style
|
|
10
10
|
from numbers import Number
|
|
11
11
|
from typing import Any, Dict
|
|
12
|
+
from reflex.components.chakra import (
|
|
13
|
+
ChakraComponent,
|
|
14
|
+
LiteralButtonSize,
|
|
15
|
+
LiteralInputVariant,
|
|
16
|
+
)
|
|
12
17
|
from reflex.components.component import Component
|
|
13
|
-
from reflex.components.libs.chakra import ChakraComponent, LiteralInputVariant
|
|
14
18
|
from reflex.constants import EventTriggers
|
|
15
19
|
from reflex.vars import Var
|
|
16
20
|
|
|
@@ -42,6 +46,9 @@ class NumberInput(ChakraComponent):
|
|
|
42
46
|
Literal["outline", "filled", "flushed", "unstyled"],
|
|
43
47
|
]
|
|
44
48
|
] = None,
|
|
49
|
+
size: Optional[
|
|
50
|
+
Union[Var[Literal["sm", "md", "lg", "xs"]], Literal["sm", "md", "lg", "xs"]]
|
|
51
|
+
] = None,
|
|
45
52
|
name: Optional[Union[Var[str], str]] = None,
|
|
46
53
|
style: Optional[Style] = None,
|
|
47
54
|
key: Optional[Any] = None,
|
|
@@ -121,6 +128,7 @@ class NumberInput(ChakraComponent):
|
|
|
121
128
|
max_: The maximum value of the counter
|
|
122
129
|
min_: The minimum value of the counter
|
|
123
130
|
variant: "outline" | "filled" | "flushed" | "unstyled"
|
|
131
|
+
size: "lg" | "md" | "sm" | "xs"
|
|
124
132
|
name: The name of the form field
|
|
125
133
|
style: The style of the component.
|
|
126
134
|
key: A unique key for the component.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"""Stub file for reflex/components/forms/password.py"""
|
|
1
|
+
"""Stub file for reflex/components/chakra/forms/password.py"""
|
|
2
2
|
# ------------------- DO NOT EDIT ----------------------
|
|
3
3
|
# This file was generated by `scripts/pyi_generator.py`!
|
|
4
4
|
# ------------------------------------------------------
|
|
@@ -7,7 +7,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload
|
|
|
7
7
|
from reflex.vars import Var, BaseVar, ComputedVar
|
|
8
8
|
from reflex.event import EventChain, EventHandler, EventSpec
|
|
9
9
|
from reflex.style import Style
|
|
10
|
-
from reflex.components.forms.input import Input
|
|
10
|
+
from reflex.components.chakra.forms.input import Input
|
|
11
11
|
from reflex.vars import Var
|
|
12
12
|
|
|
13
13
|
class Password(Input):
|
|
@@ -3,8 +3,8 @@ from __future__ import annotations
|
|
|
3
3
|
|
|
4
4
|
from typing import Any, Optional, Union
|
|
5
5
|
|
|
6
|
+
from reflex.components.chakra import ChakraComponent, LiteralInputVariant
|
|
6
7
|
from reflex.components.component import Component
|
|
7
|
-
from reflex.components.libs.chakra import ChakraComponent, LiteralInputVariant
|
|
8
8
|
from reflex.components.tags.tag import Tag
|
|
9
9
|
from reflex.constants import EventTriggers
|
|
10
10
|
from reflex.utils import format
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"""Stub file for reflex/components/forms/pininput.py"""
|
|
1
|
+
"""Stub file for reflex/components/chakra/forms/pininput.py"""
|
|
2
2
|
# ------------------- DO NOT EDIT ----------------------
|
|
3
3
|
# This file was generated by `scripts/pyi_generator.py`!
|
|
4
4
|
# ------------------------------------------------------
|
|
@@ -8,8 +8,8 @@ from reflex.vars import Var, BaseVar, ComputedVar
|
|
|
8
8
|
from reflex.event import EventChain, EventHandler, EventSpec
|
|
9
9
|
from reflex.style import Style
|
|
10
10
|
from typing import Any, Optional, Union
|
|
11
|
+
from reflex.components.chakra import ChakraComponent, LiteralInputVariant
|
|
11
12
|
from reflex.components.component import Component
|
|
12
|
-
from reflex.components.libs.chakra import ChakraComponent, LiteralInputVariant
|
|
13
13
|
from reflex.components.tags.tag import Tag
|
|
14
14
|
from reflex.constants import EventTriggers
|
|
15
15
|
from reflex.utils import format
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
from typing import Any, Dict, List, Union
|
|
5
5
|
|
|
6
|
+
from reflex.components.chakra import ChakraComponent
|
|
7
|
+
from reflex.components.chakra.typography.text import Text
|
|
6
8
|
from reflex.components.component import Component
|
|
7
|
-
from reflex.components.
|
|
8
|
-
from reflex.components.libs.chakra import ChakraComponent
|
|
9
|
-
from reflex.components.typography.text import Text
|
|
9
|
+
from reflex.components.core.foreach import Foreach
|
|
10
10
|
from reflex.constants import EventTriggers
|
|
11
11
|
from reflex.utils.types import _issubclass
|
|
12
12
|
from reflex.vars import Var
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"""Stub file for reflex/components/forms/radio.py"""
|
|
1
|
+
"""Stub file for reflex/components/chakra/forms/radio.py"""
|
|
2
2
|
# ------------------- DO NOT EDIT ----------------------
|
|
3
3
|
# This file was generated by `scripts/pyi_generator.py`!
|
|
4
4
|
# ------------------------------------------------------
|
|
@@ -8,10 +8,10 @@ from reflex.vars import Var, BaseVar, ComputedVar
|
|
|
8
8
|
from reflex.event import EventChain, EventHandler, EventSpec
|
|
9
9
|
from reflex.style import Style
|
|
10
10
|
from typing import Any, Dict, List, Union
|
|
11
|
+
from reflex.components.chakra import ChakraComponent
|
|
12
|
+
from reflex.components.chakra.typography.text import Text
|
|
11
13
|
from reflex.components.component import Component
|
|
12
|
-
from reflex.components.
|
|
13
|
-
from reflex.components.libs.chakra import ChakraComponent
|
|
14
|
-
from reflex.components.typography.text import Text
|
|
14
|
+
from reflex.components.core.foreach import Foreach
|
|
15
15
|
from reflex.constants import EventTriggers
|
|
16
16
|
from reflex.utils.types import _issubclass
|
|
17
17
|
from reflex.vars import Var
|
|
@@ -3,8 +3,8 @@ from __future__ import annotations
|
|
|
3
3
|
|
|
4
4
|
from typing import Any, List, Optional, Union
|
|
5
5
|
|
|
6
|
+
from reflex.components.chakra import ChakraComponent, LiteralChakraDirection
|
|
6
7
|
from reflex.components.component import Component
|
|
7
|
-
from reflex.components.libs.chakra import ChakraComponent, LiteralChakraDirection
|
|
8
8
|
from reflex.constants import EventTriggers
|
|
9
9
|
from reflex.utils import format
|
|
10
10
|
from reflex.vars import Var
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"""Stub file for reflex/components/forms/rangeslider.py"""
|
|
1
|
+
"""Stub file for reflex/components/chakra/forms/rangeslider.py"""
|
|
2
2
|
# ------------------- DO NOT EDIT ----------------------
|
|
3
3
|
# This file was generated by `scripts/pyi_generator.py`!
|
|
4
4
|
# ------------------------------------------------------
|
|
@@ -8,8 +8,8 @@ from reflex.vars import Var, BaseVar, ComputedVar
|
|
|
8
8
|
from reflex.event import EventChain, EventHandler, EventSpec
|
|
9
9
|
from reflex.style import Style
|
|
10
10
|
from typing import Any, List, Optional, Union
|
|
11
|
+
from reflex.components.chakra import ChakraComponent, LiteralChakraDirection
|
|
11
12
|
from reflex.components.component import Component
|
|
12
|
-
from reflex.components.libs.chakra import ChakraComponent, LiteralChakraDirection
|
|
13
13
|
from reflex.constants import EventTriggers
|
|
14
14
|
from reflex.utils import format
|
|
15
15
|
from reflex.vars import Var
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
from typing import Any, Dict, List, Union
|
|
4
4
|
|
|
5
|
+
from reflex.components.chakra import ChakraComponent, LiteralInputVariant
|
|
6
|
+
from reflex.components.chakra.typography.text import Text
|
|
5
7
|
from reflex.components.component import Component
|
|
6
|
-
from reflex.components.
|
|
7
|
-
from reflex.components.libs.chakra import ChakraComponent, LiteralInputVariant
|
|
8
|
-
from reflex.components.typography.text import Text
|
|
8
|
+
from reflex.components.core.foreach import Foreach
|
|
9
9
|
from reflex.constants import EventTriggers
|
|
10
10
|
from reflex.utils.types import _issubclass
|
|
11
11
|
from reflex.vars import Var
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"""Stub file for reflex/components/forms/select.py"""
|
|
1
|
+
"""Stub file for reflex/components/chakra/forms/select.py"""
|
|
2
2
|
# ------------------- DO NOT EDIT ----------------------
|
|
3
3
|
# This file was generated by `scripts/pyi_generator.py`!
|
|
4
4
|
# ------------------------------------------------------
|
|
@@ -8,10 +8,10 @@ from reflex.vars import Var, BaseVar, ComputedVar
|
|
|
8
8
|
from reflex.event import EventChain, EventHandler, EventSpec
|
|
9
9
|
from reflex.style import Style
|
|
10
10
|
from typing import Any, Dict, List, Union
|
|
11
|
+
from reflex.components.chakra import ChakraComponent, LiteralInputVariant
|
|
12
|
+
from reflex.components.chakra.typography.text import Text
|
|
11
13
|
from reflex.components.component import Component
|
|
12
|
-
from reflex.components.
|
|
13
|
-
from reflex.components.libs.chakra import ChakraComponent, LiteralInputVariant
|
|
14
|
-
from reflex.components.typography.text import Text
|
|
14
|
+
from reflex.components.core.foreach import Foreach
|
|
15
15
|
from reflex.constants import EventTriggers
|
|
16
16
|
from reflex.utils.types import _issubclass
|
|
17
17
|
from reflex.vars import Var
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
"""A slider component."""
|
|
2
2
|
from __future__ import annotations
|
|
3
3
|
|
|
4
|
-
from typing import Any, Union
|
|
4
|
+
from typing import Any, Literal, Union
|
|
5
5
|
|
|
6
|
+
from reflex.components.chakra import ChakraComponent, LiteralChakraDirection
|
|
6
7
|
from reflex.components.component import Component
|
|
7
|
-
from reflex.components.graphing.recharts.recharts import LiteralLayout
|
|
8
|
-
from reflex.components.libs.chakra import ChakraComponent, LiteralChakraDirection
|
|
9
8
|
from reflex.constants import EventTriggers
|
|
10
9
|
from reflex.vars import Var
|
|
11
10
|
|
|
11
|
+
LiteralLayout = Literal["horizontal", "vertical"]
|
|
12
|
+
|
|
12
13
|
|
|
13
14
|
class Slider(ChakraComponent):
|
|
14
15
|
"""The wrapper that provides context and functionality for all children."""
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"""Stub file for reflex/components/forms/slider.py"""
|
|
1
|
+
"""Stub file for reflex/components/chakra/forms/slider.py"""
|
|
2
2
|
# ------------------- DO NOT EDIT ----------------------
|
|
3
3
|
# This file was generated by `scripts/pyi_generator.py`!
|
|
4
4
|
# ------------------------------------------------------
|
|
@@ -7,13 +7,14 @@ from typing import Any, Dict, Literal, Optional, Union, overload
|
|
|
7
7
|
from reflex.vars import Var, BaseVar, ComputedVar
|
|
8
8
|
from reflex.event import EventChain, EventHandler, EventSpec
|
|
9
9
|
from reflex.style import Style
|
|
10
|
-
from typing import Any, Union
|
|
10
|
+
from typing import Any, Literal, Union
|
|
11
|
+
from reflex.components.chakra import ChakraComponent, LiteralChakraDirection
|
|
11
12
|
from reflex.components.component import Component
|
|
12
|
-
from reflex.components.graphing.recharts.recharts import LiteralLayout
|
|
13
|
-
from reflex.components.libs.chakra import ChakraComponent, LiteralChakraDirection
|
|
14
13
|
from reflex.constants import EventTriggers
|
|
15
14
|
from reflex.vars import Var
|
|
16
15
|
|
|
16
|
+
LiteralLayout = Literal["horizontal", "vertical"]
|
|
17
|
+
|
|
17
18
|
class Slider(ChakraComponent):
|
|
18
19
|
def get_event_triggers(self) -> dict[str, Union[Var, Any]]: ...
|
|
19
20
|
@overload
|
|
@@ -3,7 +3,7 @@ from __future__ import annotations
|
|
|
3
3
|
|
|
4
4
|
from typing import Any, Union
|
|
5
5
|
|
|
6
|
-
from reflex.components.
|
|
6
|
+
from reflex.components.chakra import ChakraComponent, LiteralColorScheme
|
|
7
7
|
from reflex.constants import EventTriggers
|
|
8
8
|
from reflex.vars import Var
|
|
9
9
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"""Stub file for reflex/components/forms/switch.py"""
|
|
1
|
+
"""Stub file for reflex/components/chakra/forms/switch.py"""
|
|
2
2
|
# ------------------- DO NOT EDIT ----------------------
|
|
3
3
|
# This file was generated by `scripts/pyi_generator.py`!
|
|
4
4
|
# ------------------------------------------------------
|
|
@@ -8,7 +8,7 @@ from reflex.vars import Var, BaseVar, ComputedVar
|
|
|
8
8
|
from reflex.event import EventChain, EventHandler, EventSpec
|
|
9
9
|
from reflex.style import Style
|
|
10
10
|
from typing import Any, Union
|
|
11
|
-
from reflex.components.
|
|
11
|
+
from reflex.components.chakra import ChakraComponent, LiteralColorScheme
|
|
12
12
|
from reflex.constants import EventTriggers
|
|
13
13
|
from reflex.vars import Var
|
|
14
14
|
|