reflex 0.7.4a3__py3-none-any.whl → 0.7.5a1__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/__init__.py +1 -0
- reflex/__init__.pyi +1 -0
- reflex/app.py +10 -6
- reflex/app_mixins/middleware.py +13 -20
- reflex/compiler/compiler.py +10 -3
- reflex/compiler/utils.py +4 -4
- reflex/components/base/app_wrap.pyi +7 -3
- reflex/components/base/body.pyi +7 -3
- reflex/components/base/document.pyi +27 -7
- reflex/components/base/error_boundary.pyi +7 -3
- reflex/components/base/fragment.pyi +7 -3
- reflex/components/base/head.pyi +12 -4
- reflex/components/base/link.pyi +12 -4
- reflex/components/base/meta.pyi +22 -6
- reflex/components/base/script.pyi +7 -3
- reflex/components/base/strict_mode.pyi +7 -3
- reflex/components/component.py +64 -23
- reflex/components/core/auto_scroll.pyi +7 -3
- reflex/components/core/banner.py +6 -2
- reflex/components/core/banner.pyi +32 -8
- reflex/components/core/client_side_routing.pyi +12 -4
- reflex/components/core/clipboard.pyi +7 -3
- reflex/components/core/debounce.pyi +7 -3
- reflex/components/core/foreach.py +5 -1
- reflex/components/core/html.pyi +7 -3
- reflex/components/core/match.py +5 -5
- reflex/components/core/sticky.pyi +21 -6
- reflex/components/core/upload.pyi +27 -7
- reflex/components/datadisplay/code.pyi +12 -4
- reflex/components/datadisplay/dataeditor.py +2 -2
- reflex/components/datadisplay/dataeditor.pyi +17 -3
- reflex/components/datadisplay/shiki_code_block.pyi +17 -4
- reflex/components/el/__init__.pyi +1 -1
- reflex/components/el/element.pyi +7 -3
- reflex/components/el/elements/__init__.py +3 -1
- reflex/components/el/elements/__init__.pyi +3 -2
- reflex/components/el/elements/base.pyi +7 -3
- reflex/components/el/elements/forms.py +1 -1
- reflex/components/el/elements/forms.pyi +72 -16
- reflex/components/el/elements/inline.pyi +142 -30
- reflex/components/el/elements/media.pyi +127 -27
- reflex/components/el/elements/metadata.pyi +32 -8
- reflex/components/el/elements/other.pyi +37 -9
- reflex/components/el/elements/scripts.pyi +17 -5
- reflex/components/el/elements/sectioning.pyi +77 -17
- reflex/components/el/elements/tables.pyi +52 -12
- reflex/components/el/elements/typography.pyi +77 -17
- reflex/components/gridjs/datatable.py +2 -2
- reflex/components/gridjs/datatable.pyi +12 -4
- reflex/components/lucide/icon.py +7 -6
- reflex/components/lucide/icon.pyi +22 -7
- reflex/components/markdown/markdown.py +1 -1
- reflex/components/markdown/markdown.pyi +7 -3
- reflex/components/moment/moment.pyi +7 -3
- reflex/components/next/base.pyi +7 -3
- reflex/components/next/image.pyi +7 -3
- reflex/components/next/link.pyi +7 -3
- reflex/components/next/video.pyi +7 -3
- reflex/components/plotly/plotly.pyi +47 -11
- reflex/components/radix/primitives/accordion.pyi +37 -9
- reflex/components/radix/primitives/base.pyi +12 -4
- reflex/components/radix/primitives/drawer.pyi +57 -13
- reflex/components/radix/primitives/form.pyi +52 -12
- reflex/components/radix/primitives/progress.pyi +27 -7
- reflex/components/radix/primitives/slider.pyi +27 -7
- reflex/components/radix/themes/base.pyi +41 -10
- reflex/components/radix/themes/color_mode.py +2 -2
- reflex/components/radix/themes/color_mode.pyi +17 -5
- reflex/components/radix/themes/components/alert_dialog.pyi +36 -9
- reflex/components/radix/themes/components/aspect_ratio.pyi +7 -3
- reflex/components/radix/themes/components/avatar.pyi +6 -3
- reflex/components/radix/themes/components/badge.pyi +6 -3
- reflex/components/radix/themes/components/button.pyi +6 -3
- reflex/components/radix/themes/components/callout.pyi +26 -7
- reflex/components/radix/themes/components/card.pyi +6 -3
- reflex/components/radix/themes/components/checkbox.pyi +16 -5
- reflex/components/radix/themes/components/checkbox_cards.pyi +11 -4
- reflex/components/radix/themes/components/checkbox_group.pyi +11 -4
- reflex/components/radix/themes/components/context_menu.pyi +66 -15
- reflex/components/radix/themes/components/data_list.pyi +21 -6
- reflex/components/radix/themes/components/dialog.pyi +36 -9
- reflex/components/radix/themes/components/dropdown_menu.pyi +41 -10
- reflex/components/radix/themes/components/hover_card.pyi +21 -6
- reflex/components/radix/themes/components/icon_button.pyi +6 -3
- reflex/components/radix/themes/components/inset.pyi +6 -3
- reflex/components/radix/themes/components/popover.pyi +21 -6
- reflex/components/radix/themes/components/progress.pyi +6 -3
- reflex/components/radix/themes/components/radio.pyi +6 -3
- reflex/components/radix/themes/components/radio_cards.pyi +11 -4
- reflex/components/radix/themes/components/radio_group.py +6 -1
- reflex/components/radix/themes/components/radio_group.pyi +21 -6
- reflex/components/radix/themes/components/scroll_area.pyi +7 -3
- reflex/components/radix/themes/components/segmented_control.pyi +11 -4
- reflex/components/radix/themes/components/select.pyi +46 -11
- reflex/components/radix/themes/components/separator.pyi +6 -3
- reflex/components/radix/themes/components/skeleton.pyi +6 -3
- reflex/components/radix/themes/components/slider.pyi +6 -3
- reflex/components/radix/themes/components/spinner.pyi +6 -3
- reflex/components/radix/themes/components/switch.pyi +6 -3
- reflex/components/radix/themes/components/table.pyi +36 -9
- reflex/components/radix/themes/components/tabs.pyi +26 -7
- reflex/components/radix/themes/components/text_area.pyi +6 -3
- reflex/components/radix/themes/components/text_field.py +3 -2
- reflex/components/radix/themes/components/text_field.pyi +16 -5
- reflex/components/radix/themes/components/tooltip.pyi +7 -3
- reflex/components/radix/themes/layout/base.pyi +6 -3
- reflex/components/radix/themes/layout/box.pyi +7 -3
- reflex/components/radix/themes/layout/center.pyi +6 -3
- reflex/components/radix/themes/layout/container.pyi +6 -3
- reflex/components/radix/themes/layout/flex.pyi +6 -3
- reflex/components/radix/themes/layout/grid.pyi +6 -3
- reflex/components/radix/themes/layout/list.pyi +27 -7
- reflex/components/radix/themes/layout/section.pyi +6 -3
- reflex/components/radix/themes/layout/spacer.pyi +6 -3
- reflex/components/radix/themes/layout/stack.pyi +16 -5
- reflex/components/radix/themes/typography/blockquote.pyi +6 -3
- reflex/components/radix/themes/typography/code.pyi +6 -3
- reflex/components/radix/themes/typography/heading.pyi +6 -3
- reflex/components/radix/themes/typography/link.pyi +6 -3
- reflex/components/radix/themes/typography/text.pyi +36 -9
- reflex/components/react_player/audio.pyi +7 -3
- reflex/components/react_player/react_player.pyi +7 -3
- reflex/components/react_player/video.pyi +7 -3
- reflex/components/recharts/cartesian.pyi +97 -21
- reflex/components/recharts/charts.pyi +62 -14
- reflex/components/recharts/general.pyi +32 -8
- reflex/components/recharts/polar.py +1 -1
- reflex/components/recharts/polar.pyi +33 -9
- reflex/components/recharts/recharts.pyi +12 -4
- reflex/components/sonner/toast.pyi +7 -2
- reflex/components/suneditor/editor.pyi +7 -3
- reflex/config.py +15 -1
- reflex/constants/installer.py +22 -1
- reflex/custom_components/custom_components.py +12 -7
- reflex/event.py +26 -10
- reflex/experimental/__init__.py +17 -6
- reflex/experimental/layout.pyi +27 -7
- reflex/model.py +3 -3
- reflex/reflex.py +33 -18
- reflex/state.py +3 -3
- reflex/style.py +2 -2
- reflex/testing.py +17 -5
- reflex/utils/console.py +2 -3
- reflex/utils/exec.py +4 -0
- reflex/utils/imports.py +14 -7
- reflex/utils/prerequisites.py +72 -7
- reflex/utils/processes.py +52 -19
- reflex/utils/pyi_generator.py +66 -53
- reflex/utils/registry.py +5 -3
- reflex/utils/serializers.py +1 -2
- reflex/utils/types.py +4 -4
- reflex/vars/base.py +58 -22
- reflex/vars/number.py +23 -6
- reflex/vars/sequence.py +2 -0
- {reflex-0.7.4a3.dist-info → reflex-0.7.5a1.dist-info}/METADATA +2 -2
- {reflex-0.7.4a3.dist-info → reflex-0.7.5a1.dist-info}/RECORD +160 -160
- /reflex/{experimental → utils}/misc.py +0 -0
- {reflex-0.7.4a3.dist-info → reflex-0.7.5a1.dist-info}/WHEEL +0 -0
- {reflex-0.7.4a3.dist-info → reflex-0.7.5a1.dist-info}/entry_points.txt +0 -0
- {reflex-0.7.4a3.dist-info → reflex-0.7.5a1.dist-info}/licenses/LICENSE +0 -0
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
# ------------------- DO NOT EDIT ----------------------
|
|
4
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
5
|
# ------------------------------------------------------
|
|
6
|
-
from typing import Any, Literal, Optional, overload
|
|
6
|
+
from typing import Any, Literal, Mapping, Optional, Sequence, overload
|
|
7
7
|
|
|
8
|
+
from reflex.components.core.breakpoints import Breakpoints
|
|
8
9
|
from reflex.event import EventType
|
|
9
|
-
from reflex.style import Style
|
|
10
10
|
from reflex.vars.base import Var
|
|
11
11
|
|
|
12
12
|
from .base import BaseHTML
|
|
@@ -196,7 +196,11 @@ class Blockquote(BaseHTML):
|
|
|
196
196
|
spell_check: Var[bool] | bool | None = None,
|
|
197
197
|
tab_index: Var[int] | int | None = None,
|
|
198
198
|
title: Var[str] | str | None = None,
|
|
199
|
-
style:
|
|
199
|
+
style: Sequence[Mapping[str, Any]]
|
|
200
|
+
| Mapping[str, Any]
|
|
201
|
+
| Var[Mapping[str, Any]]
|
|
202
|
+
| Breakpoints
|
|
203
|
+
| None = None,
|
|
200
204
|
key: Any | None = None,
|
|
201
205
|
id: Any | None = None,
|
|
202
206
|
class_name: Any | None = None,
|
|
@@ -437,7 +441,11 @@ class Dd(BaseHTML):
|
|
|
437
441
|
spell_check: Var[bool] | bool | None = None,
|
|
438
442
|
tab_index: Var[int] | int | None = None,
|
|
439
443
|
title: Var[str] | str | None = None,
|
|
440
|
-
style:
|
|
444
|
+
style: Sequence[Mapping[str, Any]]
|
|
445
|
+
| Mapping[str, Any]
|
|
446
|
+
| Var[Mapping[str, Any]]
|
|
447
|
+
| Breakpoints
|
|
448
|
+
| None = None,
|
|
441
449
|
key: Any | None = None,
|
|
442
450
|
id: Any | None = None,
|
|
443
451
|
class_name: Any | None = None,
|
|
@@ -677,7 +685,11 @@ class Div(BaseHTML):
|
|
|
677
685
|
spell_check: Var[bool] | bool | None = None,
|
|
678
686
|
tab_index: Var[int] | int | None = None,
|
|
679
687
|
title: Var[str] | str | None = None,
|
|
680
|
-
style:
|
|
688
|
+
style: Sequence[Mapping[str, Any]]
|
|
689
|
+
| Mapping[str, Any]
|
|
690
|
+
| Var[Mapping[str, Any]]
|
|
691
|
+
| Breakpoints
|
|
692
|
+
| None = None,
|
|
681
693
|
key: Any | None = None,
|
|
682
694
|
id: Any | None = None,
|
|
683
695
|
class_name: Any | None = None,
|
|
@@ -917,7 +929,11 @@ class Dl(BaseHTML):
|
|
|
917
929
|
spell_check: Var[bool] | bool | None = None,
|
|
918
930
|
tab_index: Var[int] | int | None = None,
|
|
919
931
|
title: Var[str] | str | None = None,
|
|
920
|
-
style:
|
|
932
|
+
style: Sequence[Mapping[str, Any]]
|
|
933
|
+
| Mapping[str, Any]
|
|
934
|
+
| Var[Mapping[str, Any]]
|
|
935
|
+
| Breakpoints
|
|
936
|
+
| None = None,
|
|
921
937
|
key: Any | None = None,
|
|
922
938
|
id: Any | None = None,
|
|
923
939
|
class_name: Any | None = None,
|
|
@@ -1157,7 +1173,11 @@ class Dt(BaseHTML):
|
|
|
1157
1173
|
spell_check: Var[bool] | bool | None = None,
|
|
1158
1174
|
tab_index: Var[int] | int | None = None,
|
|
1159
1175
|
title: Var[str] | str | None = None,
|
|
1160
|
-
style:
|
|
1176
|
+
style: Sequence[Mapping[str, Any]]
|
|
1177
|
+
| Mapping[str, Any]
|
|
1178
|
+
| Var[Mapping[str, Any]]
|
|
1179
|
+
| Breakpoints
|
|
1180
|
+
| None = None,
|
|
1161
1181
|
key: Any | None = None,
|
|
1162
1182
|
id: Any | None = None,
|
|
1163
1183
|
class_name: Any | None = None,
|
|
@@ -1397,7 +1417,11 @@ class Figcaption(BaseHTML):
|
|
|
1397
1417
|
spell_check: Var[bool] | bool | None = None,
|
|
1398
1418
|
tab_index: Var[int] | int | None = None,
|
|
1399
1419
|
title: Var[str] | str | None = None,
|
|
1400
|
-
style:
|
|
1420
|
+
style: Sequence[Mapping[str, Any]]
|
|
1421
|
+
| Mapping[str, Any]
|
|
1422
|
+
| Var[Mapping[str, Any]]
|
|
1423
|
+
| Breakpoints
|
|
1424
|
+
| None = None,
|
|
1401
1425
|
key: Any | None = None,
|
|
1402
1426
|
id: Any | None = None,
|
|
1403
1427
|
class_name: Any | None = None,
|
|
@@ -1637,7 +1661,11 @@ class Hr(BaseHTML):
|
|
|
1637
1661
|
spell_check: Var[bool] | bool | None = None,
|
|
1638
1662
|
tab_index: Var[int] | int | None = None,
|
|
1639
1663
|
title: Var[str] | str | None = None,
|
|
1640
|
-
style:
|
|
1664
|
+
style: Sequence[Mapping[str, Any]]
|
|
1665
|
+
| Mapping[str, Any]
|
|
1666
|
+
| Var[Mapping[str, Any]]
|
|
1667
|
+
| Breakpoints
|
|
1668
|
+
| None = None,
|
|
1641
1669
|
key: Any | None = None,
|
|
1642
1670
|
id: Any | None = None,
|
|
1643
1671
|
class_name: Any | None = None,
|
|
@@ -1877,7 +1905,11 @@ class Li(BaseHTML):
|
|
|
1877
1905
|
spell_check: Var[bool] | bool | None = None,
|
|
1878
1906
|
tab_index: Var[int] | int | None = None,
|
|
1879
1907
|
title: Var[str] | str | None = None,
|
|
1880
|
-
style:
|
|
1908
|
+
style: Sequence[Mapping[str, Any]]
|
|
1909
|
+
| Mapping[str, Any]
|
|
1910
|
+
| Var[Mapping[str, Any]]
|
|
1911
|
+
| Breakpoints
|
|
1912
|
+
| None = None,
|
|
1881
1913
|
key: Any | None = None,
|
|
1882
1914
|
id: Any | None = None,
|
|
1883
1915
|
class_name: Any | None = None,
|
|
@@ -2118,7 +2150,11 @@ class Menu(BaseHTML):
|
|
|
2118
2150
|
spell_check: Var[bool] | bool | None = None,
|
|
2119
2151
|
tab_index: Var[int] | int | None = None,
|
|
2120
2152
|
title: Var[str] | str | None = None,
|
|
2121
|
-
style:
|
|
2153
|
+
style: Sequence[Mapping[str, Any]]
|
|
2154
|
+
| Mapping[str, Any]
|
|
2155
|
+
| Var[Mapping[str, Any]]
|
|
2156
|
+
| Breakpoints
|
|
2157
|
+
| None = None,
|
|
2122
2158
|
key: Any | None = None,
|
|
2123
2159
|
id: Any | None = None,
|
|
2124
2160
|
class_name: Any | None = None,
|
|
@@ -2364,7 +2400,11 @@ class Ol(BaseHTML):
|
|
|
2364
2400
|
spell_check: Var[bool] | bool | None = None,
|
|
2365
2401
|
tab_index: Var[int] | int | None = None,
|
|
2366
2402
|
title: Var[str] | str | None = None,
|
|
2367
|
-
style:
|
|
2403
|
+
style: Sequence[Mapping[str, Any]]
|
|
2404
|
+
| Mapping[str, Any]
|
|
2405
|
+
| Var[Mapping[str, Any]]
|
|
2406
|
+
| Breakpoints
|
|
2407
|
+
| None = None,
|
|
2368
2408
|
key: Any | None = None,
|
|
2369
2409
|
id: Any | None = None,
|
|
2370
2410
|
class_name: Any | None = None,
|
|
@@ -2607,7 +2647,11 @@ class P(BaseHTML):
|
|
|
2607
2647
|
spell_check: Var[bool] | bool | None = None,
|
|
2608
2648
|
tab_index: Var[int] | int | None = None,
|
|
2609
2649
|
title: Var[str] | str | None = None,
|
|
2610
|
-
style:
|
|
2650
|
+
style: Sequence[Mapping[str, Any]]
|
|
2651
|
+
| Mapping[str, Any]
|
|
2652
|
+
| Var[Mapping[str, Any]]
|
|
2653
|
+
| Breakpoints
|
|
2654
|
+
| None = None,
|
|
2611
2655
|
key: Any | None = None,
|
|
2612
2656
|
id: Any | None = None,
|
|
2613
2657
|
class_name: Any | None = None,
|
|
@@ -2847,7 +2891,11 @@ class Pre(BaseHTML):
|
|
|
2847
2891
|
spell_check: Var[bool] | bool | None = None,
|
|
2848
2892
|
tab_index: Var[int] | int | None = None,
|
|
2849
2893
|
title: Var[str] | str | None = None,
|
|
2850
|
-
style:
|
|
2894
|
+
style: Sequence[Mapping[str, Any]]
|
|
2895
|
+
| Mapping[str, Any]
|
|
2896
|
+
| Var[Mapping[str, Any]]
|
|
2897
|
+
| Breakpoints
|
|
2898
|
+
| None = None,
|
|
2851
2899
|
key: Any | None = None,
|
|
2852
2900
|
id: Any | None = None,
|
|
2853
2901
|
class_name: Any | None = None,
|
|
@@ -3087,7 +3135,11 @@ class Ul(BaseHTML):
|
|
|
3087
3135
|
spell_check: Var[bool] | bool | None = None,
|
|
3088
3136
|
tab_index: Var[int] | int | None = None,
|
|
3089
3137
|
title: Var[str] | str | None = None,
|
|
3090
|
-
style:
|
|
3138
|
+
style: Sequence[Mapping[str, Any]]
|
|
3139
|
+
| Mapping[str, Any]
|
|
3140
|
+
| Var[Mapping[str, Any]]
|
|
3141
|
+
| Breakpoints
|
|
3142
|
+
| None = None,
|
|
3091
3143
|
key: Any | None = None,
|
|
3092
3144
|
id: Any | None = None,
|
|
3093
3145
|
class_name: Any | None = None,
|
|
@@ -3329,7 +3381,11 @@ class Ins(BaseHTML):
|
|
|
3329
3381
|
spell_check: Var[bool] | bool | None = None,
|
|
3330
3382
|
tab_index: Var[int] | int | None = None,
|
|
3331
3383
|
title: Var[str] | str | None = None,
|
|
3332
|
-
style:
|
|
3384
|
+
style: Sequence[Mapping[str, Any]]
|
|
3385
|
+
| Mapping[str, Any]
|
|
3386
|
+
| Var[Mapping[str, Any]]
|
|
3387
|
+
| Breakpoints
|
|
3388
|
+
| None = None,
|
|
3333
3389
|
key: Any | None = None,
|
|
3334
3390
|
id: Any | None = None,
|
|
3335
3391
|
class_name: Any | None = None,
|
|
@@ -3573,7 +3629,11 @@ class Del(BaseHTML):
|
|
|
3573
3629
|
spell_check: Var[bool] | bool | None = None,
|
|
3574
3630
|
tab_index: Var[int] | int | None = None,
|
|
3575
3631
|
title: Var[str] | str | None = None,
|
|
3576
|
-
style:
|
|
3632
|
+
style: Sequence[Mapping[str, Any]]
|
|
3633
|
+
| Mapping[str, Any]
|
|
3634
|
+
| Var[Mapping[str, Any]]
|
|
3635
|
+
| Breakpoints
|
|
3636
|
+
| None = None,
|
|
3577
3637
|
key: Any | None = None,
|
|
3578
3638
|
id: Any | None = None,
|
|
3579
3639
|
class_name: Any | None = None,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Any, Dict,
|
|
5
|
+
from typing import Any, Dict, Sequence
|
|
6
6
|
|
|
7
7
|
from reflex.components.component import Component
|
|
8
8
|
from reflex.components.tags import Tag
|
|
@@ -90,7 +90,7 @@ class DataTable(Gridjs):
|
|
|
90
90
|
|
|
91
91
|
# If data is a list and columns are not provided, throw an error
|
|
92
92
|
if (
|
|
93
|
-
(isinstance(data, Var) and types.
|
|
93
|
+
(isinstance(data, Var) and types.typehint_issubclass(data._var_type, list))
|
|
94
94
|
or isinstance(data, list)
|
|
95
95
|
) and columns is None:
|
|
96
96
|
raise ValueError(
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
# ------------------- DO NOT EDIT ----------------------
|
|
4
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
5
|
# ------------------------------------------------------
|
|
6
|
-
from typing import Any, Dict, Optional, Sequence, overload
|
|
6
|
+
from typing import Any, Dict, Mapping, Optional, Sequence, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.component import Component
|
|
9
|
+
from reflex.components.core.breakpoints import Breakpoints
|
|
9
10
|
from reflex.event import EventType
|
|
10
|
-
from reflex.style import Style
|
|
11
11
|
from reflex.utils.imports import ImportDict
|
|
12
12
|
from reflex.vars.base import Var
|
|
13
13
|
|
|
@@ -17,7 +17,11 @@ class Gridjs(Component):
|
|
|
17
17
|
def create( # type: ignore
|
|
18
18
|
cls,
|
|
19
19
|
*children,
|
|
20
|
-
style:
|
|
20
|
+
style: Sequence[Mapping[str, Any]]
|
|
21
|
+
| Mapping[str, Any]
|
|
22
|
+
| Var[Mapping[str, Any]]
|
|
23
|
+
| Breakpoints
|
|
24
|
+
| None = None,
|
|
21
25
|
key: Any | None = None,
|
|
22
26
|
id: Any | None = None,
|
|
23
27
|
class_name: Any | None = None,
|
|
@@ -69,7 +73,11 @@ class DataTable(Gridjs):
|
|
|
69
73
|
sort: Var[bool] | bool | None = None,
|
|
70
74
|
resizable: Var[bool] | bool | None = None,
|
|
71
75
|
pagination: Dict | Var[Dict | bool] | bool | None = None,
|
|
72
|
-
style:
|
|
76
|
+
style: Sequence[Mapping[str, Any]]
|
|
77
|
+
| Mapping[str, Any]
|
|
78
|
+
| Var[Mapping[str, Any]]
|
|
79
|
+
| Breakpoints
|
|
80
|
+
| None = None,
|
|
73
81
|
key: Any | None = None,
|
|
74
82
|
id: Any | None = None,
|
|
75
83
|
class_name: Any | None = None,
|
reflex/components/lucide/icon.py
CHANGED
|
@@ -79,9 +79,7 @@ class Icon(LucideIconComponent):
|
|
|
79
79
|
)
|
|
80
80
|
tag = "circle_help"
|
|
81
81
|
|
|
82
|
-
props["tag"] = LUCIDE_ICON_MAPPING_OVERRIDE.get(
|
|
83
|
-
tag, format.to_title_case(tag) + "Icon"
|
|
84
|
-
)
|
|
82
|
+
props["tag"] = LUCIDE_ICON_MAPPING_OVERRIDE.get(tag, format.to_title_case(tag))
|
|
85
83
|
props["alias"] = f"Lucide{props['tag']}"
|
|
86
84
|
props.setdefault("color", "var(--current-color)")
|
|
87
85
|
return super().create(**props)
|
|
@@ -98,7 +96,7 @@ class DynamicIcon(LucideIconComponent):
|
|
|
98
96
|
_imports = super()._get_imports()
|
|
99
97
|
if self.library:
|
|
100
98
|
_imports.pop(self.library)
|
|
101
|
-
_imports["lucide-react
|
|
99
|
+
_imports["lucide-react"] = [ImportVar("DynamicIcon", package_path="/dynamic")]
|
|
102
100
|
return _imports
|
|
103
101
|
|
|
104
102
|
|
|
@@ -1680,6 +1678,9 @@ LUCIDE_ICON_LIST = [
|
|
|
1680
1678
|
# The default transformation of some icon names doesn't match how the
|
|
1681
1679
|
# icons are exported from Lucide. Manual overrides can go here.
|
|
1682
1680
|
LUCIDE_ICON_MAPPING_OVERRIDE = {
|
|
1683
|
-
"
|
|
1684
|
-
"
|
|
1681
|
+
"box_select": "BoxSelectIcon",
|
|
1682
|
+
"grid_2x_2_check": "Grid2x2CheckIcon",
|
|
1683
|
+
"grid_2x_2_x": "Grid2x2XIcon",
|
|
1684
|
+
"grid_2x_2_plus": "Grid2x2PlusIcon",
|
|
1685
|
+
"layers_3": "Layers3Icon",
|
|
1685
1686
|
}
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
# ------------------- DO NOT EDIT ----------------------
|
|
4
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
5
|
# ------------------------------------------------------
|
|
6
|
-
from typing import Any, Optional, overload
|
|
6
|
+
from typing import Any, Mapping, Optional, Sequence, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.component import Component
|
|
9
|
+
from reflex.components.core.breakpoints import Breakpoints
|
|
9
10
|
from reflex.event import EventType
|
|
10
|
-
from reflex.style import Style
|
|
11
11
|
from reflex.vars.base import Var
|
|
12
12
|
|
|
13
13
|
class LucideIconComponent(Component):
|
|
@@ -16,7 +16,11 @@ class LucideIconComponent(Component):
|
|
|
16
16
|
def create( # type: ignore
|
|
17
17
|
cls,
|
|
18
18
|
*children,
|
|
19
|
-
style:
|
|
19
|
+
style: Sequence[Mapping[str, Any]]
|
|
20
|
+
| Mapping[str, Any]
|
|
21
|
+
| Var[Mapping[str, Any]]
|
|
22
|
+
| Breakpoints
|
|
23
|
+
| None = None,
|
|
20
24
|
key: Any | None = None,
|
|
21
25
|
id: Any | None = None,
|
|
22
26
|
class_name: Any | None = None,
|
|
@@ -63,7 +67,11 @@ class Icon(LucideIconComponent):
|
|
|
63
67
|
cls,
|
|
64
68
|
*children,
|
|
65
69
|
size: Var[int] | int | None = None,
|
|
66
|
-
style:
|
|
70
|
+
style: Sequence[Mapping[str, Any]]
|
|
71
|
+
| Mapping[str, Any]
|
|
72
|
+
| Var[Mapping[str, Any]]
|
|
73
|
+
| Breakpoints
|
|
74
|
+
| None = None,
|
|
67
75
|
key: Any | None = None,
|
|
68
76
|
id: Any | None = None,
|
|
69
77
|
class_name: Any | None = None,
|
|
@@ -117,7 +125,11 @@ class DynamicIcon(LucideIconComponent):
|
|
|
117
125
|
cls,
|
|
118
126
|
*children,
|
|
119
127
|
name: Var[str] | str | None = None,
|
|
120
|
-
style:
|
|
128
|
+
style: Sequence[Mapping[str, Any]]
|
|
129
|
+
| Mapping[str, Any]
|
|
130
|
+
| Var[Mapping[str, Any]]
|
|
131
|
+
| Breakpoints
|
|
132
|
+
| None = None,
|
|
121
133
|
key: Any | None = None,
|
|
122
134
|
id: Any | None = None,
|
|
123
135
|
class_name: Any | None = None,
|
|
@@ -1732,6 +1744,9 @@ LUCIDE_ICON_LIST = [
|
|
|
1732
1744
|
"zoom_out",
|
|
1733
1745
|
]
|
|
1734
1746
|
LUCIDE_ICON_MAPPING_OVERRIDE = {
|
|
1735
|
-
"
|
|
1736
|
-
"
|
|
1747
|
+
"box_select": "BoxSelectIcon",
|
|
1748
|
+
"grid_2x_2_check": "Grid2x2CheckIcon",
|
|
1749
|
+
"grid_2x_2_x": "Grid2x2XIcon",
|
|
1750
|
+
"grid_2x_2_plus": "Grid2x2PlusIcon",
|
|
1751
|
+
"layers_3": "Layers3Icon",
|
|
1737
1752
|
}
|
|
@@ -347,7 +347,7 @@ let {_LANGUAGE!s} = match ? match[1] : '';
|
|
|
347
347
|
if tag != "codeblock"
|
|
348
348
|
# For codeblock, the mapping for some cases returns an array of elements. Let's join them into a string.
|
|
349
349
|
else ternary_operation(
|
|
350
|
-
ARRAY_ISARRAY.call(_CHILDREN),
|
|
350
|
+
ARRAY_ISARRAY.call(_CHILDREN),
|
|
351
351
|
_CHILDREN.to(list).join("\n"),
|
|
352
352
|
_CHILDREN,
|
|
353
353
|
).to(str)
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
# ------------------------------------------------------
|
|
6
6
|
import dataclasses
|
|
7
7
|
from functools import lru_cache
|
|
8
|
-
from typing import Any, Callable, Optional, Sequence, overload
|
|
8
|
+
from typing import Any, Callable, Mapping, Optional, Sequence, overload
|
|
9
9
|
|
|
10
10
|
from reflex.components.component import Component
|
|
11
|
+
from reflex.components.core.breakpoints import Breakpoints
|
|
11
12
|
from reflex.event import EventType
|
|
12
|
-
from reflex.style import Style
|
|
13
13
|
from reflex.utils.imports import ImportDict
|
|
14
14
|
from reflex.vars.base import LiteralVar, Var, VarData
|
|
15
15
|
|
|
@@ -54,7 +54,11 @@ class Markdown(Component):
|
|
|
54
54
|
*children,
|
|
55
55
|
component_map: dict[str, Any] | None = None,
|
|
56
56
|
component_map_hash: str | None = None,
|
|
57
|
-
style:
|
|
57
|
+
style: Sequence[Mapping[str, Any]]
|
|
58
|
+
| Mapping[str, Any]
|
|
59
|
+
| Var[Mapping[str, Any]]
|
|
60
|
+
| Breakpoints
|
|
61
|
+
| None = None,
|
|
58
62
|
key: Any | None = None,
|
|
59
63
|
id: Any | None = None,
|
|
60
64
|
class_name: Any | None = None,
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
# ------------------------------------------------------
|
|
6
6
|
import dataclasses
|
|
7
7
|
from datetime import date, datetime, time, timedelta
|
|
8
|
-
from typing import Any, Optional, overload
|
|
8
|
+
from typing import Any, Mapping, Optional, Sequence, overload
|
|
9
9
|
|
|
10
10
|
from reflex.components.component import NoSSRComponent
|
|
11
|
+
from reflex.components.core.breakpoints import Breakpoints
|
|
11
12
|
from reflex.event import EventType
|
|
12
|
-
from reflex.style import Style
|
|
13
13
|
from reflex.utils.imports import ImportDict
|
|
14
14
|
from reflex.vars.base import Var
|
|
15
15
|
|
|
@@ -59,7 +59,11 @@ class Moment(NoSSRComponent):
|
|
|
59
59
|
local: Var[bool] | bool | None = None,
|
|
60
60
|
tz: Var[str] | str | None = None,
|
|
61
61
|
locale: Var[str] | str | None = None,
|
|
62
|
-
style:
|
|
62
|
+
style: Sequence[Mapping[str, Any]]
|
|
63
|
+
| Mapping[str, Any]
|
|
64
|
+
| Var[Mapping[str, Any]]
|
|
65
|
+
| Breakpoints
|
|
66
|
+
| None = None,
|
|
63
67
|
key: Any | None = None,
|
|
64
68
|
id: Any | None = None,
|
|
65
69
|
class_name: Any | None = None,
|
reflex/components/next/base.pyi
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
# ------------------- DO NOT EDIT ----------------------
|
|
4
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
5
|
# ------------------------------------------------------
|
|
6
|
-
from typing import Any, Optional, overload
|
|
6
|
+
from typing import Any, Mapping, Optional, Sequence, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.component import Component
|
|
9
|
+
from reflex.components.core.breakpoints import Breakpoints
|
|
9
10
|
from reflex.event import EventType
|
|
10
|
-
from reflex.style import Style
|
|
11
11
|
from reflex.vars.base import Var
|
|
12
12
|
|
|
13
13
|
class NextComponent(Component):
|
|
@@ -18,7 +18,11 @@ class NextComponent(Component):
|
|
|
18
18
|
def create( # type: ignore
|
|
19
19
|
cls,
|
|
20
20
|
*children,
|
|
21
|
-
style:
|
|
21
|
+
style: Sequence[Mapping[str, Any]]
|
|
22
|
+
| Mapping[str, Any]
|
|
23
|
+
| Var[Mapping[str, Any]]
|
|
24
|
+
| Breakpoints
|
|
25
|
+
| None = None,
|
|
22
26
|
key: Any | None = None,
|
|
23
27
|
id: Any | None = None,
|
|
24
28
|
class_name: Any | None = None,
|
reflex/components/next/image.pyi
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
# ------------------- DO NOT EDIT ----------------------
|
|
4
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
5
|
# ------------------------------------------------------
|
|
6
|
-
from typing import Any, Literal, Optional, overload
|
|
6
|
+
from typing import Any, Literal, Mapping, Optional, Sequence, overload
|
|
7
7
|
|
|
8
|
+
from reflex.components.core.breakpoints import Breakpoints
|
|
8
9
|
from reflex.event import EventType
|
|
9
|
-
from reflex.style import Style
|
|
10
10
|
from reflex.vars.base import Var
|
|
11
11
|
|
|
12
12
|
from .base import NextComponent
|
|
@@ -31,7 +31,11 @@ class Image(NextComponent):
|
|
|
31
31
|
placeholder: Var[str] | str | None = None,
|
|
32
32
|
loading: Literal["eager", "lazy"] | Var[Literal["eager", "lazy"]] | None = None,
|
|
33
33
|
blur_data_url: Var[str] | str | None = None,
|
|
34
|
-
style:
|
|
34
|
+
style: Sequence[Mapping[str, Any]]
|
|
35
|
+
| Mapping[str, Any]
|
|
36
|
+
| Var[Mapping[str, Any]]
|
|
37
|
+
| Breakpoints
|
|
38
|
+
| None = None,
|
|
35
39
|
key: Any | None = None,
|
|
36
40
|
id: Any | None = None,
|
|
37
41
|
class_name: Any | None = None,
|
reflex/components/next/link.pyi
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
# ------------------- DO NOT EDIT ----------------------
|
|
4
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
5
|
# ------------------------------------------------------
|
|
6
|
-
from typing import Any, Optional, overload
|
|
6
|
+
from typing import Any, Mapping, Optional, Sequence, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.component import Component
|
|
9
|
+
from reflex.components.core.breakpoints import Breakpoints
|
|
9
10
|
from reflex.event import EventType
|
|
10
|
-
from reflex.style import Style
|
|
11
11
|
from reflex.vars.base import Var
|
|
12
12
|
|
|
13
13
|
class NextLink(Component):
|
|
@@ -18,7 +18,11 @@ class NextLink(Component):
|
|
|
18
18
|
*children,
|
|
19
19
|
href: Var[str] | str | None = None,
|
|
20
20
|
pass_href: Var[bool] | bool | None = None,
|
|
21
|
-
style:
|
|
21
|
+
style: Sequence[Mapping[str, Any]]
|
|
22
|
+
| Mapping[str, Any]
|
|
23
|
+
| Var[Mapping[str, Any]]
|
|
24
|
+
| Breakpoints
|
|
25
|
+
| None = None,
|
|
22
26
|
key: Any | None = None,
|
|
23
27
|
id: Any | None = None,
|
|
24
28
|
class_name: Any | None = None,
|
reflex/components/next/video.pyi
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
# ------------------- DO NOT EDIT ----------------------
|
|
4
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
5
|
# ------------------------------------------------------
|
|
6
|
-
from typing import Any, Optional, overload
|
|
6
|
+
from typing import Any, Mapping, Optional, Sequence, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.component import Component
|
|
9
|
+
from reflex.components.core.breakpoints import Breakpoints
|
|
9
10
|
from reflex.event import EventType
|
|
10
|
-
from reflex.style import Style
|
|
11
11
|
from reflex.vars.base import Var
|
|
12
12
|
|
|
13
13
|
from .base import NextComponent
|
|
@@ -20,7 +20,11 @@ class Video(NextComponent):
|
|
|
20
20
|
*children,
|
|
21
21
|
src: Var[str] | str | None = None,
|
|
22
22
|
as_: Component | None = None,
|
|
23
|
-
style:
|
|
23
|
+
style: Sequence[Mapping[str, Any]]
|
|
24
|
+
| Mapping[str, Any]
|
|
25
|
+
| Var[Mapping[str, Any]]
|
|
26
|
+
| Breakpoints
|
|
27
|
+
| None = None,
|
|
24
28
|
key: Any | None = None,
|
|
25
29
|
id: Any | None = None,
|
|
26
30
|
class_name: Any | None = None,
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
# ------------------- DO NOT EDIT ----------------------
|
|
4
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
5
|
# ------------------------------------------------------
|
|
6
|
-
from typing import Any, Dict, Optional, TypedDict, TypeVar, overload
|
|
6
|
+
from typing import Any, Dict, Mapping, Optional, Sequence, TypedDict, TypeVar, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.component import NoSSRComponent
|
|
9
|
+
from reflex.components.core.breakpoints import Breakpoints
|
|
9
10
|
from reflex.event import EventType
|
|
10
|
-
from reflex.style import Style
|
|
11
11
|
from reflex.utils import console
|
|
12
12
|
from reflex.utils.imports import ImportDict
|
|
13
13
|
from reflex.vars.base import Var
|
|
@@ -58,7 +58,11 @@ class Plotly(NoSSRComponent):
|
|
|
58
58
|
template: Template | Var[Template] | None = None, # type: ignore
|
|
59
59
|
config: Dict | Var[Dict] | None = None,
|
|
60
60
|
use_resize_handler: Var[bool] | bool | None = None,
|
|
61
|
-
style:
|
|
61
|
+
style: Sequence[Mapping[str, Any]]
|
|
62
|
+
| Mapping[str, Any]
|
|
63
|
+
| Var[Mapping[str, Any]]
|
|
64
|
+
| Breakpoints
|
|
65
|
+
| None = None,
|
|
62
66
|
key: Any | None = None,
|
|
63
67
|
id: Any | None = None,
|
|
64
68
|
class_name: Any | None = None,
|
|
@@ -157,7 +161,11 @@ class PlotlyBasic(Plotly):
|
|
|
157
161
|
template: Template | Var[Template] | None = None, # type: ignore
|
|
158
162
|
config: Dict | Var[Dict] | None = None,
|
|
159
163
|
use_resize_handler: Var[bool] | bool | None = None,
|
|
160
|
-
style:
|
|
164
|
+
style: Sequence[Mapping[str, Any]]
|
|
165
|
+
| Mapping[str, Any]
|
|
166
|
+
| Var[Mapping[str, Any]]
|
|
167
|
+
| Breakpoints
|
|
168
|
+
| None = None,
|
|
161
169
|
key: Any | None = None,
|
|
162
170
|
id: Any | None = None,
|
|
163
171
|
class_name: Any | None = None,
|
|
@@ -252,7 +260,11 @@ class PlotlyCartesian(Plotly):
|
|
|
252
260
|
template: Template | Var[Template] | None = None, # type: ignore
|
|
253
261
|
config: Dict | Var[Dict] | None = None,
|
|
254
262
|
use_resize_handler: Var[bool] | bool | None = None,
|
|
255
|
-
style:
|
|
263
|
+
style: Sequence[Mapping[str, Any]]
|
|
264
|
+
| Mapping[str, Any]
|
|
265
|
+
| Var[Mapping[str, Any]]
|
|
266
|
+
| Breakpoints
|
|
267
|
+
| None = None,
|
|
256
268
|
key: Any | None = None,
|
|
257
269
|
id: Any | None = None,
|
|
258
270
|
class_name: Any | None = None,
|
|
@@ -347,7 +359,11 @@ class PlotlyGeo(Plotly):
|
|
|
347
359
|
template: Template | Var[Template] | None = None, # type: ignore
|
|
348
360
|
config: Dict | Var[Dict] | None = None,
|
|
349
361
|
use_resize_handler: Var[bool] | bool | None = None,
|
|
350
|
-
style:
|
|
362
|
+
style: Sequence[Mapping[str, Any]]
|
|
363
|
+
| Mapping[str, Any]
|
|
364
|
+
| Var[Mapping[str, Any]]
|
|
365
|
+
| Breakpoints
|
|
366
|
+
| None = None,
|
|
351
367
|
key: Any | None = None,
|
|
352
368
|
id: Any | None = None,
|
|
353
369
|
class_name: Any | None = None,
|
|
@@ -442,7 +458,11 @@ class PlotlyGl3d(Plotly):
|
|
|
442
458
|
template: Template | Var[Template] | None = None, # type: ignore
|
|
443
459
|
config: Dict | Var[Dict] | None = None,
|
|
444
460
|
use_resize_handler: Var[bool] | bool | None = None,
|
|
445
|
-
style:
|
|
461
|
+
style: Sequence[Mapping[str, Any]]
|
|
462
|
+
| Mapping[str, Any]
|
|
463
|
+
| Var[Mapping[str, Any]]
|
|
464
|
+
| Breakpoints
|
|
465
|
+
| None = None,
|
|
446
466
|
key: Any | None = None,
|
|
447
467
|
id: Any | None = None,
|
|
448
468
|
class_name: Any | None = None,
|
|
@@ -537,7 +557,11 @@ class PlotlyGl2d(Plotly):
|
|
|
537
557
|
template: Template | Var[Template] | None = None, # type: ignore
|
|
538
558
|
config: Dict | Var[Dict] | None = None,
|
|
539
559
|
use_resize_handler: Var[bool] | bool | None = None,
|
|
540
|
-
style:
|
|
560
|
+
style: Sequence[Mapping[str, Any]]
|
|
561
|
+
| Mapping[str, Any]
|
|
562
|
+
| Var[Mapping[str, Any]]
|
|
563
|
+
| Breakpoints
|
|
564
|
+
| None = None,
|
|
541
565
|
key: Any | None = None,
|
|
542
566
|
id: Any | None = None,
|
|
543
567
|
class_name: Any | None = None,
|
|
@@ -632,7 +656,11 @@ class PlotlyMapbox(Plotly):
|
|
|
632
656
|
template: Template | Var[Template] | None = None, # type: ignore
|
|
633
657
|
config: Dict | Var[Dict] | None = None,
|
|
634
658
|
use_resize_handler: Var[bool] | bool | None = None,
|
|
635
|
-
style:
|
|
659
|
+
style: Sequence[Mapping[str, Any]]
|
|
660
|
+
| Mapping[str, Any]
|
|
661
|
+
| Var[Mapping[str, Any]]
|
|
662
|
+
| Breakpoints
|
|
663
|
+
| None = None,
|
|
636
664
|
key: Any | None = None,
|
|
637
665
|
id: Any | None = None,
|
|
638
666
|
class_name: Any | None = None,
|
|
@@ -727,7 +755,11 @@ class PlotlyFinance(Plotly):
|
|
|
727
755
|
template: Template | Var[Template] | None = None, # type: ignore
|
|
728
756
|
config: Dict | Var[Dict] | None = None,
|
|
729
757
|
use_resize_handler: Var[bool] | bool | None = None,
|
|
730
|
-
style:
|
|
758
|
+
style: Sequence[Mapping[str, Any]]
|
|
759
|
+
| Mapping[str, Any]
|
|
760
|
+
| Var[Mapping[str, Any]]
|
|
761
|
+
| Breakpoints
|
|
762
|
+
| None = None,
|
|
731
763
|
key: Any | None = None,
|
|
732
764
|
id: Any | None = None,
|
|
733
765
|
class_name: Any | None = None,
|
|
@@ -822,7 +854,11 @@ class PlotlyStrict(Plotly):
|
|
|
822
854
|
template: Template | Var[Template] | None = None, # type: ignore
|
|
823
855
|
config: Dict | Var[Dict] | None = None,
|
|
824
856
|
use_resize_handler: Var[bool] | bool | None = None,
|
|
825
|
-
style:
|
|
857
|
+
style: Sequence[Mapping[str, Any]]
|
|
858
|
+
| Mapping[str, Any]
|
|
859
|
+
| Var[Mapping[str, Any]]
|
|
860
|
+
| Breakpoints
|
|
861
|
+
| None = None,
|
|
826
862
|
key: Any | None = None,
|
|
827
863
|
id: Any | None = None,
|
|
828
864
|
class_name: Any | None = None,
|