reflex 0.8.4a1__py3-none-any.whl → 0.8.5__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/web/utils/react-theme.js +12 -17
- reflex/__init__.py +2 -9
- reflex/__init__.pyi +4 -2
- reflex/app.py +16 -10
- reflex/compiler/compiler.py +10 -3
- reflex/compiler/utils.py +6 -12
- reflex/components/base/app_wrap.pyi +0 -1
- reflex/components/base/body.pyi +0 -2
- reflex/components/base/document.pyi +0 -12
- reflex/components/base/error_boundary.pyi +0 -2
- reflex/components/base/fragment.pyi +0 -2
- reflex/components/base/link.pyi +0 -4
- reflex/components/base/meta.pyi +0 -6
- reflex/components/base/script.py +0 -2
- reflex/components/base/script.pyi +0 -2
- reflex/components/base/strict_mode.pyi +0 -2
- reflex/components/component.py +2 -30
- reflex/components/core/auto_scroll.py +14 -13
- reflex/components/core/auto_scroll.pyi +0 -2
- reflex/components/core/banner.pyi +0 -10
- reflex/components/core/client_side_routing.pyi +0 -2
- reflex/components/core/clipboard.py +1 -3
- reflex/components/core/clipboard.pyi +0 -2
- reflex/components/core/cond.py +0 -2
- reflex/components/core/debounce.pyi +0 -1
- reflex/components/core/helmet.pyi +0 -2
- reflex/components/core/html.pyi +0 -2
- reflex/components/core/match.py +1 -2
- reflex/components/core/sticky.pyi +0 -4
- reflex/components/core/upload.pyi +0 -10
- reflex/components/core/window_events.pyi +0 -2
- reflex/components/datadisplay/code.py +6 -4
- reflex/components/datadisplay/code.pyi +0 -4
- reflex/components/datadisplay/dataeditor.pyi +0 -2
- reflex/components/datadisplay/shiki_code_block.pyi +0 -6
- reflex/components/el/element.pyi +0 -2
- reflex/components/el/elements/base.pyi +0 -2
- reflex/components/el/elements/forms.py +5 -21
- reflex/components/el/elements/forms.pyi +0 -38
- reflex/components/el/elements/inline.pyi +0 -56
- reflex/components/el/elements/media.pyi +0 -52
- reflex/components/el/elements/metadata.pyi +0 -12
- reflex/components/el/elements/other.pyi +0 -14
- reflex/components/el/elements/scripts.pyi +0 -6
- reflex/components/el/elements/sectioning.pyi +0 -30
- reflex/components/el/elements/tables.pyi +0 -20
- reflex/components/el/elements/typography.pyi +0 -32
- reflex/components/gridjs/datatable.pyi +0 -4
- reflex/components/lucide/icon.py +12 -1
- reflex/components/lucide/icon.pyi +12 -7
- reflex/components/markdown/markdown.pyi +0 -2
- reflex/components/moment/moment.pyi +0 -2
- reflex/components/plotly/plotly.py +25 -17
- reflex/components/plotly/plotly.pyi +0 -18
- reflex/components/radix/primitives/accordion.pyi +0 -14
- reflex/components/radix/primitives/base.pyi +0 -4
- reflex/components/radix/primitives/drawer.pyi +0 -22
- reflex/components/radix/primitives/form.pyi +0 -20
- reflex/components/radix/primitives/progress.pyi +0 -10
- reflex/components/radix/primitives/slider.pyi +0 -10
- reflex/components/radix/themes/base.py +2 -4
- reflex/components/radix/themes/base.pyi +0 -15
- reflex/components/radix/themes/color_mode.pyi +0 -5
- reflex/components/radix/themes/components/alert_dialog.pyi +0 -11
- reflex/components/radix/themes/components/aspect_ratio.pyi +0 -2
- reflex/components/radix/themes/components/avatar.pyi +0 -2
- reflex/components/radix/themes/components/badge.pyi +0 -2
- reflex/components/radix/themes/components/button.pyi +0 -2
- reflex/components/radix/themes/components/callout.pyi +0 -10
- reflex/components/radix/themes/components/card.pyi +0 -2
- reflex/components/radix/themes/components/checkbox.pyi +0 -6
- reflex/components/radix/themes/components/checkbox_cards.pyi +0 -4
- reflex/components/radix/themes/components/checkbox_group.pyi +0 -4
- reflex/components/radix/themes/components/context_menu.pyi +0 -26
- reflex/components/radix/themes/components/data_list.pyi +0 -8
- reflex/components/radix/themes/components/dialog.pyi +0 -12
- reflex/components/radix/themes/components/dropdown_menu.pyi +0 -14
- reflex/components/radix/themes/components/hover_card.pyi +0 -7
- reflex/components/radix/themes/components/icon_button.pyi +0 -2
- reflex/components/radix/themes/components/inset.pyi +0 -2
- reflex/components/radix/themes/components/popover.pyi +0 -6
- reflex/components/radix/themes/components/progress.pyi +0 -2
- reflex/components/radix/themes/components/radio.pyi +0 -2
- reflex/components/radix/themes/components/radio_cards.pyi +0 -4
- reflex/components/radix/themes/components/radio_group.pyi +0 -8
- reflex/components/radix/themes/components/scroll_area.pyi +0 -2
- reflex/components/radix/themes/components/segmented_control.pyi +0 -4
- reflex/components/radix/themes/components/select.pyi +0 -18
- reflex/components/radix/themes/components/separator.pyi +0 -2
- reflex/components/radix/themes/components/skeleton.pyi +0 -2
- reflex/components/radix/themes/components/slider.pyi +0 -2
- reflex/components/radix/themes/components/spinner.pyi +0 -2
- reflex/components/radix/themes/components/switch.pyi +0 -2
- reflex/components/radix/themes/components/table.pyi +0 -14
- reflex/components/radix/themes/components/tabs.pyi +0 -10
- reflex/components/radix/themes/components/text_area.pyi +0 -2
- reflex/components/radix/themes/components/text_field.pyi +0 -6
- reflex/components/radix/themes/components/tooltip.pyi +0 -2
- reflex/components/radix/themes/layout/base.pyi +0 -2
- reflex/components/radix/themes/layout/box.pyi +0 -2
- reflex/components/radix/themes/layout/center.pyi +0 -2
- reflex/components/radix/themes/layout/container.pyi +0 -1
- reflex/components/radix/themes/layout/flex.pyi +0 -2
- reflex/components/radix/themes/layout/grid.pyi +0 -2
- reflex/components/radix/themes/layout/list.pyi +0 -10
- reflex/components/radix/themes/layout/section.pyi +0 -2
- reflex/components/radix/themes/layout/spacer.pyi +0 -2
- reflex/components/radix/themes/layout/stack.pyi +0 -6
- reflex/components/radix/themes/typography/blockquote.pyi +0 -2
- reflex/components/radix/themes/typography/code.pyi +0 -2
- reflex/components/radix/themes/typography/heading.pyi +0 -2
- reflex/components/radix/themes/typography/link.pyi +0 -2
- reflex/components/radix/themes/typography/text.pyi +0 -14
- reflex/components/react_player/audio.pyi +0 -2
- reflex/components/react_player/react_player.pyi +0 -2
- reflex/components/react_player/video.pyi +0 -2
- reflex/components/react_router/dom.pyi +0 -2
- reflex/components/recharts/cartesian.pyi +0 -38
- reflex/components/recharts/charts.pyi +0 -24
- reflex/components/recharts/general.pyi +0 -12
- reflex/components/recharts/polar.pyi +0 -12
- reflex/components/recharts/recharts.pyi +0 -4
- reflex/components/sonner/toast.pyi +0 -2
- reflex/components/tags/cond_tag.py +4 -3
- reflex/components/tags/iter_tag.py +1 -1
- reflex/components/tags/match_tag.py +3 -2
- reflex/components/tags/tag.py +39 -40
- reflex/constants/base.py +4 -58
- reflex/constants/compiler.py +0 -8
- reflex/constants/installer.py +5 -5
- reflex/environment.py +0 -10
- reflex/event.py +77 -15
- reflex/page.py +62 -4
- reflex/reflex.py +2 -5
- reflex/utils/misc.py +0 -3
- reflex/utils/net.py +7 -2
- reflex/utils/prerequisites.py +8 -71
- reflex/utils/processes.py +6 -6
- {reflex-0.8.4a1.dist-info → reflex-0.8.5.dist-info}/METADATA +2 -2
- {reflex-0.8.4a1.dist-info → reflex-0.8.5.dist-info}/RECORD +143 -147
- reflex/components/el/constants/__init__.py +0 -5
- reflex/components/el/constants/html.py +0 -343
- reflex/components/el/constants/react.py +0 -501
- reflex/components/el/constants/reflex.py +0 -51
- {reflex-0.8.4a1.dist-info → reflex-0.8.5.dist-info}/WHEEL +0 -0
- {reflex-0.8.4a1.dist-info → reflex-0.8.5.dist-info}/entry_points.txt +0 -0
- {reflex-0.8.4a1.dist-info → reflex-0.8.5.dist-info}/licenses/LICENSE +0 -0
reflex/components/lucide/icon.py
CHANGED
|
@@ -6,7 +6,7 @@ from reflex.utils.imports import ImportVar
|
|
|
6
6
|
from reflex.vars.base import LiteralVar, Var
|
|
7
7
|
from reflex.vars.sequence import LiteralStringVar, StringVar
|
|
8
8
|
|
|
9
|
-
LUCIDE_LIBRARY = "lucide-react@0.
|
|
9
|
+
LUCIDE_LIBRARY = "lucide-react@0.534.0"
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class LucideIconComponent(Component):
|
|
@@ -231,6 +231,7 @@ LUCIDE_ICON_LIST = [
|
|
|
231
231
|
"badge_pound_sterling",
|
|
232
232
|
"badge_russian_ruble",
|
|
233
233
|
"badge_swiss_franc",
|
|
234
|
+
"badge_turkish_lira",
|
|
234
235
|
"badge_x",
|
|
235
236
|
"badge",
|
|
236
237
|
"baggage_claim",
|
|
@@ -501,6 +502,7 @@ LUCIDE_ICON_LIST = [
|
|
|
501
502
|
"citrus",
|
|
502
503
|
"clapperboard",
|
|
503
504
|
"clipboard_check",
|
|
505
|
+
"clipboard_clock",
|
|
504
506
|
"clipboard_copy",
|
|
505
507
|
"clipboard_list",
|
|
506
508
|
"clipboard_minus",
|
|
@@ -529,6 +531,7 @@ LUCIDE_ICON_LIST = [
|
|
|
529
531
|
"clock_fading",
|
|
530
532
|
"clock_plus",
|
|
531
533
|
"clock",
|
|
534
|
+
"closed_caption",
|
|
532
535
|
"cloud_alert",
|
|
533
536
|
"cloud_check",
|
|
534
537
|
"cloud_cog",
|
|
@@ -876,12 +879,14 @@ LUCIDE_ICON_LIST = [
|
|
|
876
879
|
"hand_metal",
|
|
877
880
|
"hand_platter",
|
|
878
881
|
"hand",
|
|
882
|
+
"handbag",
|
|
879
883
|
"handshake",
|
|
880
884
|
"hard_drive_download",
|
|
881
885
|
"hard_drive_upload",
|
|
882
886
|
"hard_drive",
|
|
883
887
|
"hard_hat",
|
|
884
888
|
"hash",
|
|
889
|
+
"hat_glasses",
|
|
885
890
|
"haze",
|
|
886
891
|
"hdmi_port",
|
|
887
892
|
"heading_1",
|
|
@@ -1034,6 +1039,7 @@ LUCIDE_ICON_LIST = [
|
|
|
1034
1039
|
"mail",
|
|
1035
1040
|
"mailbox",
|
|
1036
1041
|
"mails",
|
|
1042
|
+
"map_minus",
|
|
1037
1043
|
"map_pin_check_inside",
|
|
1038
1044
|
"map_pin_check",
|
|
1039
1045
|
"map_pin_house",
|
|
@@ -1289,6 +1295,7 @@ LUCIDE_ICON_LIST = [
|
|
|
1289
1295
|
"receipt_russian_ruble",
|
|
1290
1296
|
"receipt_swiss_franc",
|
|
1291
1297
|
"receipt_text",
|
|
1298
|
+
"receipt_turkish_lira",
|
|
1292
1299
|
"receipt",
|
|
1293
1300
|
"rectangle_circle",
|
|
1294
1301
|
"rectangle_ellipsis",
|
|
@@ -1450,6 +1457,7 @@ LUCIDE_ICON_LIST = [
|
|
|
1450
1457
|
"spline",
|
|
1451
1458
|
"split",
|
|
1452
1459
|
"spool",
|
|
1460
|
+
"spotlight",
|
|
1453
1461
|
"spray_can",
|
|
1454
1462
|
"sprout",
|
|
1455
1463
|
"square_activity",
|
|
@@ -1635,6 +1643,7 @@ LUCIDE_ICON_LIST = [
|
|
|
1635
1643
|
"trophy",
|
|
1636
1644
|
"truck_electric",
|
|
1637
1645
|
"truck",
|
|
1646
|
+
"turkish_lira",
|
|
1638
1647
|
"turtle",
|
|
1639
1648
|
"tv_2",
|
|
1640
1649
|
"tv_minimal_play",
|
|
@@ -1674,6 +1683,7 @@ LUCIDE_ICON_LIST = [
|
|
|
1674
1683
|
"user_round_x",
|
|
1675
1684
|
"user_round",
|
|
1676
1685
|
"user_search",
|
|
1686
|
+
"user_star",
|
|
1677
1687
|
"user_x",
|
|
1678
1688
|
"user",
|
|
1679
1689
|
"users_round",
|
|
@@ -1726,6 +1736,7 @@ LUCIDE_ICON_LIST = [
|
|
|
1726
1736
|
"wifi_low",
|
|
1727
1737
|
"wifi_off",
|
|
1728
1738
|
"wifi_pen",
|
|
1739
|
+
"wifi_sync",
|
|
1729
1740
|
"wifi_zero",
|
|
1730
1741
|
"wifi",
|
|
1731
1742
|
"wind_arrow_down",
|
|
@@ -11,7 +11,7 @@ from reflex.components.core.breakpoints import Breakpoints
|
|
|
11
11
|
from reflex.event import EventType, PointerEventInfo
|
|
12
12
|
from reflex.vars.base import Var
|
|
13
13
|
|
|
14
|
-
LUCIDE_LIBRARY = "lucide-react@0.
|
|
14
|
+
LUCIDE_LIBRARY = "lucide-react@0.534.0"
|
|
15
15
|
|
|
16
16
|
class LucideIconComponent(Component):
|
|
17
17
|
@classmethod
|
|
@@ -27,7 +27,6 @@ class LucideIconComponent(Component):
|
|
|
27
27
|
id: Any | None = None,
|
|
28
28
|
ref: Var | None = None,
|
|
29
29
|
class_name: Any | None = None,
|
|
30
|
-
autofocus: bool | None = None,
|
|
31
30
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
32
31
|
on_blur: EventType[()] | None = None,
|
|
33
32
|
on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
@@ -56,7 +55,6 @@ class LucideIconComponent(Component):
|
|
|
56
55
|
id: The id for the component.
|
|
57
56
|
ref: The Var to pass as the ref to the component.
|
|
58
57
|
class_name: The class name for the component.
|
|
59
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
60
58
|
custom_attrs: custom attribute
|
|
61
59
|
**props: The props of the component.
|
|
62
60
|
|
|
@@ -79,7 +77,6 @@ class Icon(LucideIconComponent):
|
|
|
79
77
|
id: Any | None = None,
|
|
80
78
|
ref: Var | None = None,
|
|
81
79
|
class_name: Any | None = None,
|
|
82
|
-
autofocus: bool | None = None,
|
|
83
80
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
84
81
|
on_blur: EventType[()] | None = None,
|
|
85
82
|
on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
@@ -111,7 +108,6 @@ class Icon(LucideIconComponent):
|
|
|
111
108
|
id: The id for the component.
|
|
112
109
|
ref: The Var to pass as the ref to the component.
|
|
113
110
|
class_name: The class name for the component.
|
|
114
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
115
111
|
custom_attrs: custom attribute
|
|
116
112
|
**props: The keyword arguments
|
|
117
113
|
|
|
@@ -138,7 +134,6 @@ class DynamicIcon(LucideIconComponent):
|
|
|
138
134
|
id: Any | None = None,
|
|
139
135
|
ref: Var | None = None,
|
|
140
136
|
class_name: Any | None = None,
|
|
141
|
-
autofocus: bool | None = None,
|
|
142
137
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
143
138
|
on_blur: EventType[()] | None = None,
|
|
144
139
|
on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
@@ -167,7 +162,6 @@ class DynamicIcon(LucideIconComponent):
|
|
|
167
162
|
id: The id for the component.
|
|
168
163
|
ref: The Var to pass as the ref to the component.
|
|
169
164
|
class_name: The class name for the component.
|
|
170
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
171
165
|
custom_attrs: custom attribute
|
|
172
166
|
**props: The props of the component.
|
|
173
167
|
|
|
@@ -302,6 +296,7 @@ LUCIDE_ICON_LIST = [
|
|
|
302
296
|
"badge_pound_sterling",
|
|
303
297
|
"badge_russian_ruble",
|
|
304
298
|
"badge_swiss_franc",
|
|
299
|
+
"badge_turkish_lira",
|
|
305
300
|
"badge_x",
|
|
306
301
|
"badge",
|
|
307
302
|
"baggage_claim",
|
|
@@ -572,6 +567,7 @@ LUCIDE_ICON_LIST = [
|
|
|
572
567
|
"citrus",
|
|
573
568
|
"clapperboard",
|
|
574
569
|
"clipboard_check",
|
|
570
|
+
"clipboard_clock",
|
|
575
571
|
"clipboard_copy",
|
|
576
572
|
"clipboard_list",
|
|
577
573
|
"clipboard_minus",
|
|
@@ -600,6 +596,7 @@ LUCIDE_ICON_LIST = [
|
|
|
600
596
|
"clock_fading",
|
|
601
597
|
"clock_plus",
|
|
602
598
|
"clock",
|
|
599
|
+
"closed_caption",
|
|
603
600
|
"cloud_alert",
|
|
604
601
|
"cloud_check",
|
|
605
602
|
"cloud_cog",
|
|
@@ -947,12 +944,14 @@ LUCIDE_ICON_LIST = [
|
|
|
947
944
|
"hand_metal",
|
|
948
945
|
"hand_platter",
|
|
949
946
|
"hand",
|
|
947
|
+
"handbag",
|
|
950
948
|
"handshake",
|
|
951
949
|
"hard_drive_download",
|
|
952
950
|
"hard_drive_upload",
|
|
953
951
|
"hard_drive",
|
|
954
952
|
"hard_hat",
|
|
955
953
|
"hash",
|
|
954
|
+
"hat_glasses",
|
|
956
955
|
"haze",
|
|
957
956
|
"hdmi_port",
|
|
958
957
|
"heading_1",
|
|
@@ -1105,6 +1104,7 @@ LUCIDE_ICON_LIST = [
|
|
|
1105
1104
|
"mail",
|
|
1106
1105
|
"mailbox",
|
|
1107
1106
|
"mails",
|
|
1107
|
+
"map_minus",
|
|
1108
1108
|
"map_pin_check_inside",
|
|
1109
1109
|
"map_pin_check",
|
|
1110
1110
|
"map_pin_house",
|
|
@@ -1360,6 +1360,7 @@ LUCIDE_ICON_LIST = [
|
|
|
1360
1360
|
"receipt_russian_ruble",
|
|
1361
1361
|
"receipt_swiss_franc",
|
|
1362
1362
|
"receipt_text",
|
|
1363
|
+
"receipt_turkish_lira",
|
|
1363
1364
|
"receipt",
|
|
1364
1365
|
"rectangle_circle",
|
|
1365
1366
|
"rectangle_ellipsis",
|
|
@@ -1521,6 +1522,7 @@ LUCIDE_ICON_LIST = [
|
|
|
1521
1522
|
"spline",
|
|
1522
1523
|
"split",
|
|
1523
1524
|
"spool",
|
|
1525
|
+
"spotlight",
|
|
1524
1526
|
"spray_can",
|
|
1525
1527
|
"sprout",
|
|
1526
1528
|
"square_activity",
|
|
@@ -1706,6 +1708,7 @@ LUCIDE_ICON_LIST = [
|
|
|
1706
1708
|
"trophy",
|
|
1707
1709
|
"truck_electric",
|
|
1708
1710
|
"truck",
|
|
1711
|
+
"turkish_lira",
|
|
1709
1712
|
"turtle",
|
|
1710
1713
|
"tv_2",
|
|
1711
1714
|
"tv_minimal_play",
|
|
@@ -1745,6 +1748,7 @@ LUCIDE_ICON_LIST = [
|
|
|
1745
1748
|
"user_round_x",
|
|
1746
1749
|
"user_round",
|
|
1747
1750
|
"user_search",
|
|
1751
|
+
"user_star",
|
|
1748
1752
|
"user_x",
|
|
1749
1753
|
"user",
|
|
1750
1754
|
"users_round",
|
|
@@ -1797,6 +1801,7 @@ LUCIDE_ICON_LIST = [
|
|
|
1797
1801
|
"wifi_low",
|
|
1798
1802
|
"wifi_off",
|
|
1799
1803
|
"wifi_pen",
|
|
1804
|
+
"wifi_sync",
|
|
1800
1805
|
"wifi_zero",
|
|
1801
1806
|
"wifi",
|
|
1802
1807
|
"wind_arrow_down",
|
|
@@ -63,7 +63,6 @@ class Markdown(Component):
|
|
|
63
63
|
id: Any | None = None,
|
|
64
64
|
ref: Var | None = None,
|
|
65
65
|
class_name: Any | None = None,
|
|
66
|
-
autofocus: bool | None = None,
|
|
67
66
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
68
67
|
on_blur: EventType[()] | None = None,
|
|
69
68
|
on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
@@ -94,7 +93,6 @@ class Markdown(Component):
|
|
|
94
93
|
id: The id for the component.
|
|
95
94
|
ref: The Var to pass as the ref to the component.
|
|
96
95
|
class_name: The class name for the component.
|
|
97
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
98
96
|
custom_attrs: custom attribute
|
|
99
97
|
**props: The properties of the component.
|
|
100
98
|
|
|
@@ -68,7 +68,6 @@ class Moment(NoSSRComponent):
|
|
|
68
68
|
id: Any | None = None,
|
|
69
69
|
ref: Var | None = None,
|
|
70
70
|
class_name: Any | None = None,
|
|
71
|
-
autofocus: bool | None = None,
|
|
72
71
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
73
72
|
on_blur: EventType[()] | None = None,
|
|
74
73
|
on_change: EventType[()] | EventType[str] | None = None,
|
|
@@ -120,7 +119,6 @@ class Moment(NoSSRComponent):
|
|
|
120
119
|
id: The id for the component.
|
|
121
120
|
ref: The Var to pass as the ref to the component.
|
|
122
121
|
class_name: The class name for the component.
|
|
123
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
124
122
|
custom_attrs: custom attribute
|
|
125
123
|
**props: The props of the component.
|
|
126
124
|
|
|
@@ -72,7 +72,7 @@ class Plotly(NoSSRComponent):
|
|
|
72
72
|
|
|
73
73
|
library = "react-plotly.js@2.6.0"
|
|
74
74
|
|
|
75
|
-
lib_dependencies: list[str] = ["plotly.js@3.0.
|
|
75
|
+
lib_dependencies: list[str] = ["plotly.js@3.0.3"]
|
|
76
76
|
|
|
77
77
|
tag = "Plot"
|
|
78
78
|
|
|
@@ -245,16 +245,24 @@ const extractPoints = (points) => {
|
|
|
245
245
|
template_dict = LiteralVar.create({"layout": {"template": self.template}})
|
|
246
246
|
merge_dicts.append(template_dict._without_data())
|
|
247
247
|
if merge_dicts:
|
|
248
|
-
tag.
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
248
|
+
tag = tag.set(
|
|
249
|
+
special_props=[
|
|
250
|
+
*tag.special_props,
|
|
251
|
+
# Merge all dictionaries and spread the result over props.
|
|
252
|
+
Var(
|
|
253
|
+
_js_expr=f"{{...mergician({figure!s},"
|
|
254
|
+
f"{','.join(str(md) for md in merge_dicts)})}}",
|
|
255
|
+
),
|
|
256
|
+
]
|
|
254
257
|
)
|
|
255
258
|
else:
|
|
256
|
-
|
|
257
|
-
|
|
259
|
+
tag = tag.set(
|
|
260
|
+
special_props=[
|
|
261
|
+
*tag.special_props,
|
|
262
|
+
# Spread the figure dict over props, nothing to merge.
|
|
263
|
+
Var(_js_expr=str(figure)),
|
|
264
|
+
]
|
|
265
|
+
)
|
|
258
266
|
return tag
|
|
259
267
|
|
|
260
268
|
|
|
@@ -295,7 +303,7 @@ class PlotlyBasic(Plotly):
|
|
|
295
303
|
|
|
296
304
|
library = "react-plotly.js@2.6.0"
|
|
297
305
|
|
|
298
|
-
lib_dependencies: list[str] = ["plotly.js-basic-dist-min@3.0.
|
|
306
|
+
lib_dependencies: list[str] = ["plotly.js-basic-dist-min@3.0.3"]
|
|
299
307
|
|
|
300
308
|
def add_imports(self) -> ImportDict | list[ImportDict]:
|
|
301
309
|
"""Add imports for the plotly basic component.
|
|
@@ -321,7 +329,7 @@ class PlotlyCartesian(Plotly):
|
|
|
321
329
|
|
|
322
330
|
library = "react-plotly.js@2.6.0"
|
|
323
331
|
|
|
324
|
-
lib_dependencies: list[str] = ["plotly.js-cartesian-dist-min@3.0.
|
|
332
|
+
lib_dependencies: list[str] = ["plotly.js-cartesian-dist-min@3.0.3"]
|
|
325
333
|
|
|
326
334
|
def add_imports(self) -> ImportDict | list[ImportDict]:
|
|
327
335
|
"""Add imports for the plotly cartesian component.
|
|
@@ -347,7 +355,7 @@ class PlotlyGeo(Plotly):
|
|
|
347
355
|
|
|
348
356
|
library = "react-plotly.js@2.6.0"
|
|
349
357
|
|
|
350
|
-
lib_dependencies: list[str] = ["plotly.js-geo-dist-min@3.0.
|
|
358
|
+
lib_dependencies: list[str] = ["plotly.js-geo-dist-min@3.0.3"]
|
|
351
359
|
|
|
352
360
|
def add_imports(self) -> ImportDict | list[ImportDict]:
|
|
353
361
|
"""Add imports for the plotly geo component.
|
|
@@ -373,7 +381,7 @@ class PlotlyGl3d(Plotly):
|
|
|
373
381
|
|
|
374
382
|
library = "react-plotly.js@2.6.0"
|
|
375
383
|
|
|
376
|
-
lib_dependencies: list[str] = ["plotly.js-gl3d-dist-min@3.0.
|
|
384
|
+
lib_dependencies: list[str] = ["plotly.js-gl3d-dist-min@3.0.3"]
|
|
377
385
|
|
|
378
386
|
def add_imports(self) -> ImportDict | list[ImportDict]:
|
|
379
387
|
"""Add imports for the plotly 3d component.
|
|
@@ -399,7 +407,7 @@ class PlotlyGl2d(Plotly):
|
|
|
399
407
|
|
|
400
408
|
library = "react-plotly.js@2.6.0"
|
|
401
409
|
|
|
402
|
-
lib_dependencies: list[str] = ["plotly.js-gl2d-dist-min@3.0.
|
|
410
|
+
lib_dependencies: list[str] = ["plotly.js-gl2d-dist-min@3.0.3"]
|
|
403
411
|
|
|
404
412
|
def add_imports(self) -> ImportDict | list[ImportDict]:
|
|
405
413
|
"""Add imports for the plotly 2d component.
|
|
@@ -425,7 +433,7 @@ class PlotlyMapbox(Plotly):
|
|
|
425
433
|
|
|
426
434
|
library = "react-plotly.js@2.6.0"
|
|
427
435
|
|
|
428
|
-
lib_dependencies: list[str] = ["plotly.js-mapbox-dist-min@3.0.
|
|
436
|
+
lib_dependencies: list[str] = ["plotly.js-mapbox-dist-min@3.0.3"]
|
|
429
437
|
|
|
430
438
|
def add_imports(self) -> ImportDict | list[ImportDict]:
|
|
431
439
|
"""Add imports for the plotly mapbox component.
|
|
@@ -451,7 +459,7 @@ class PlotlyFinance(Plotly):
|
|
|
451
459
|
|
|
452
460
|
library = "react-plotly.js@2.6.0"
|
|
453
461
|
|
|
454
|
-
lib_dependencies: list[str] = ["plotly.js-finance-dist-min@3.0.
|
|
462
|
+
lib_dependencies: list[str] = ["plotly.js-finance-dist-min@3.0.3"]
|
|
455
463
|
|
|
456
464
|
def add_imports(self) -> ImportDict | list[ImportDict]:
|
|
457
465
|
"""Add imports for the plotly finance component.
|
|
@@ -477,7 +485,7 @@ class PlotlyStrict(Plotly):
|
|
|
477
485
|
|
|
478
486
|
library = "react-plotly.js@2.6.0"
|
|
479
487
|
|
|
480
|
-
lib_dependencies: list[str] = ["plotly.js-strict-dist-min@3.0.
|
|
488
|
+
lib_dependencies: list[str] = ["plotly.js-strict-dist-min@3.0.3"]
|
|
481
489
|
|
|
482
490
|
def add_imports(self) -> ImportDict | list[ImportDict]:
|
|
483
491
|
"""Add imports for the plotly strict component.
|
|
@@ -67,7 +67,6 @@ class Plotly(NoSSRComponent):
|
|
|
67
67
|
id: Any | None = None,
|
|
68
68
|
ref: Var | None = None,
|
|
69
69
|
class_name: Any | None = None,
|
|
70
|
-
autofocus: bool | None = None,
|
|
71
70
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
72
71
|
on_after_plot: EventType[()] | None = None,
|
|
73
72
|
on_animated: EventType[()] | None = None,
|
|
@@ -139,7 +138,6 @@ class Plotly(NoSSRComponent):
|
|
|
139
138
|
id: The id for the component.
|
|
140
139
|
ref: The Var to pass as the ref to the component.
|
|
141
140
|
class_name: The class name for the component.
|
|
142
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
143
141
|
custom_attrs: custom attribute
|
|
144
142
|
**props: The properties of the component.
|
|
145
143
|
|
|
@@ -171,7 +169,6 @@ class PlotlyBasic(Plotly):
|
|
|
171
169
|
id: Any | None = None,
|
|
172
170
|
ref: Var | None = None,
|
|
173
171
|
class_name: Any | None = None,
|
|
174
|
-
autofocus: bool | None = None,
|
|
175
172
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
176
173
|
on_after_plot: EventType[()] | None = None,
|
|
177
174
|
on_animated: EventType[()] | None = None,
|
|
@@ -243,7 +240,6 @@ class PlotlyBasic(Plotly):
|
|
|
243
240
|
id: The id for the component.
|
|
244
241
|
ref: The Var to pass as the ref to the component.
|
|
245
242
|
class_name: The class name for the component.
|
|
246
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
247
243
|
custom_attrs: custom attribute
|
|
248
244
|
**props: The properties of the component.
|
|
249
245
|
|
|
@@ -271,7 +267,6 @@ class PlotlyCartesian(Plotly):
|
|
|
271
267
|
id: Any | None = None,
|
|
272
268
|
ref: Var | None = None,
|
|
273
269
|
class_name: Any | None = None,
|
|
274
|
-
autofocus: bool | None = None,
|
|
275
270
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
276
271
|
on_after_plot: EventType[()] | None = None,
|
|
277
272
|
on_animated: EventType[()] | None = None,
|
|
@@ -343,7 +338,6 @@ class PlotlyCartesian(Plotly):
|
|
|
343
338
|
id: The id for the component.
|
|
344
339
|
ref: The Var to pass as the ref to the component.
|
|
345
340
|
class_name: The class name for the component.
|
|
346
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
347
341
|
custom_attrs: custom attribute
|
|
348
342
|
**props: The properties of the component.
|
|
349
343
|
|
|
@@ -371,7 +365,6 @@ class PlotlyGeo(Plotly):
|
|
|
371
365
|
id: Any | None = None,
|
|
372
366
|
ref: Var | None = None,
|
|
373
367
|
class_name: Any | None = None,
|
|
374
|
-
autofocus: bool | None = None,
|
|
375
368
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
376
369
|
on_after_plot: EventType[()] | None = None,
|
|
377
370
|
on_animated: EventType[()] | None = None,
|
|
@@ -443,7 +436,6 @@ class PlotlyGeo(Plotly):
|
|
|
443
436
|
id: The id for the component.
|
|
444
437
|
ref: The Var to pass as the ref to the component.
|
|
445
438
|
class_name: The class name for the component.
|
|
446
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
447
439
|
custom_attrs: custom attribute
|
|
448
440
|
**props: The properties of the component.
|
|
449
441
|
|
|
@@ -471,7 +463,6 @@ class PlotlyGl3d(Plotly):
|
|
|
471
463
|
id: Any | None = None,
|
|
472
464
|
ref: Var | None = None,
|
|
473
465
|
class_name: Any | None = None,
|
|
474
|
-
autofocus: bool | None = None,
|
|
475
466
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
476
467
|
on_after_plot: EventType[()] | None = None,
|
|
477
468
|
on_animated: EventType[()] | None = None,
|
|
@@ -543,7 +534,6 @@ class PlotlyGl3d(Plotly):
|
|
|
543
534
|
id: The id for the component.
|
|
544
535
|
ref: The Var to pass as the ref to the component.
|
|
545
536
|
class_name: The class name for the component.
|
|
546
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
547
537
|
custom_attrs: custom attribute
|
|
548
538
|
**props: The properties of the component.
|
|
549
539
|
|
|
@@ -571,7 +561,6 @@ class PlotlyGl2d(Plotly):
|
|
|
571
561
|
id: Any | None = None,
|
|
572
562
|
ref: Var | None = None,
|
|
573
563
|
class_name: Any | None = None,
|
|
574
|
-
autofocus: bool | None = None,
|
|
575
564
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
576
565
|
on_after_plot: EventType[()] | None = None,
|
|
577
566
|
on_animated: EventType[()] | None = None,
|
|
@@ -643,7 +632,6 @@ class PlotlyGl2d(Plotly):
|
|
|
643
632
|
id: The id for the component.
|
|
644
633
|
ref: The Var to pass as the ref to the component.
|
|
645
634
|
class_name: The class name for the component.
|
|
646
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
647
635
|
custom_attrs: custom attribute
|
|
648
636
|
**props: The properties of the component.
|
|
649
637
|
|
|
@@ -671,7 +659,6 @@ class PlotlyMapbox(Plotly):
|
|
|
671
659
|
id: Any | None = None,
|
|
672
660
|
ref: Var | None = None,
|
|
673
661
|
class_name: Any | None = None,
|
|
674
|
-
autofocus: bool | None = None,
|
|
675
662
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
676
663
|
on_after_plot: EventType[()] | None = None,
|
|
677
664
|
on_animated: EventType[()] | None = None,
|
|
@@ -743,7 +730,6 @@ class PlotlyMapbox(Plotly):
|
|
|
743
730
|
id: The id for the component.
|
|
744
731
|
ref: The Var to pass as the ref to the component.
|
|
745
732
|
class_name: The class name for the component.
|
|
746
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
747
733
|
custom_attrs: custom attribute
|
|
748
734
|
**props: The properties of the component.
|
|
749
735
|
|
|
@@ -771,7 +757,6 @@ class PlotlyFinance(Plotly):
|
|
|
771
757
|
id: Any | None = None,
|
|
772
758
|
ref: Var | None = None,
|
|
773
759
|
class_name: Any | None = None,
|
|
774
|
-
autofocus: bool | None = None,
|
|
775
760
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
776
761
|
on_after_plot: EventType[()] | None = None,
|
|
777
762
|
on_animated: EventType[()] | None = None,
|
|
@@ -843,7 +828,6 @@ class PlotlyFinance(Plotly):
|
|
|
843
828
|
id: The id for the component.
|
|
844
829
|
ref: The Var to pass as the ref to the component.
|
|
845
830
|
class_name: The class name for the component.
|
|
846
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
847
831
|
custom_attrs: custom attribute
|
|
848
832
|
**props: The properties of the component.
|
|
849
833
|
|
|
@@ -871,7 +855,6 @@ class PlotlyStrict(Plotly):
|
|
|
871
855
|
id: Any | None = None,
|
|
872
856
|
ref: Var | None = None,
|
|
873
857
|
class_name: Any | None = None,
|
|
874
|
-
autofocus: bool | None = None,
|
|
875
858
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
876
859
|
on_after_plot: EventType[()] | None = None,
|
|
877
860
|
on_animated: EventType[()] | None = None,
|
|
@@ -943,7 +926,6 @@ class PlotlyStrict(Plotly):
|
|
|
943
926
|
id: The id for the component.
|
|
944
927
|
ref: The Var to pass as the ref to the component.
|
|
945
928
|
class_name: The class name for the component.
|
|
946
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
947
929
|
custom_attrs: custom attribute
|
|
948
930
|
**props: The properties of the component.
|
|
949
931
|
|
|
@@ -98,7 +98,6 @@ class AccordionComponent(RadixPrimitiveComponent):
|
|
|
98
98
|
id: Any | None = None,
|
|
99
99
|
ref: Var | None = None,
|
|
100
100
|
class_name: Any | None = None,
|
|
101
|
-
autofocus: bool | None = None,
|
|
102
101
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
103
102
|
on_blur: EventType[()] | None = None,
|
|
104
103
|
on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
@@ -130,7 +129,6 @@ class AccordionComponent(RadixPrimitiveComponent):
|
|
|
130
129
|
id: The id for the component.
|
|
131
130
|
ref: The Var to pass as the ref to the component.
|
|
132
131
|
class_name: The class name for the component.
|
|
133
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
134
132
|
custom_attrs: custom attribute
|
|
135
133
|
**props: The props of the component.
|
|
136
134
|
|
|
@@ -235,7 +233,6 @@ class AccordionRoot(AccordionComponent):
|
|
|
235
233
|
id: Any | None = None,
|
|
236
234
|
ref: Var | None = None,
|
|
237
235
|
class_name: Any | None = None,
|
|
238
|
-
autofocus: bool | None = None,
|
|
239
236
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
240
237
|
on_blur: EventType[()] | None = None,
|
|
241
238
|
on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
@@ -280,7 +277,6 @@ class AccordionRoot(AccordionComponent):
|
|
|
280
277
|
id: The id for the component.
|
|
281
278
|
ref: The Var to pass as the ref to the component.
|
|
282
279
|
class_name: The class name for the component.
|
|
283
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
284
280
|
custom_attrs: custom attribute
|
|
285
281
|
**props: The props of the component.
|
|
286
282
|
|
|
@@ -369,7 +365,6 @@ class AccordionItem(AccordionComponent):
|
|
|
369
365
|
id: Any | None = None,
|
|
370
366
|
ref: Var | None = None,
|
|
371
367
|
class_name: Any | None = None,
|
|
372
|
-
autofocus: bool | None = None,
|
|
373
368
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
374
369
|
on_blur: EventType[()] | None = None,
|
|
375
370
|
on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
@@ -405,7 +400,6 @@ class AccordionItem(AccordionComponent):
|
|
|
405
400
|
id: The id for the component.
|
|
406
401
|
ref: The Var to pass as the ref to the component.
|
|
407
402
|
class_name: The class name for the component.
|
|
408
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
409
403
|
custom_attrs: custom attribute
|
|
410
404
|
**props: Additional properties to apply to the accordion item.
|
|
411
405
|
|
|
@@ -492,7 +486,6 @@ class AccordionHeader(AccordionComponent):
|
|
|
492
486
|
id: Any | None = None,
|
|
493
487
|
ref: Var | None = None,
|
|
494
488
|
class_name: Any | None = None,
|
|
495
|
-
autofocus: bool | None = None,
|
|
496
489
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
497
490
|
on_blur: EventType[()] | None = None,
|
|
498
491
|
on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
@@ -524,7 +517,6 @@ class AccordionHeader(AccordionComponent):
|
|
|
524
517
|
id: The id for the component.
|
|
525
518
|
ref: The Var to pass as the ref to the component.
|
|
526
519
|
class_name: The class name for the component.
|
|
527
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
528
520
|
custom_attrs: custom attribute
|
|
529
521
|
**props: The properties of the component.
|
|
530
522
|
|
|
@@ -611,7 +603,6 @@ class AccordionTrigger(AccordionComponent):
|
|
|
611
603
|
id: Any | None = None,
|
|
612
604
|
ref: Var | None = None,
|
|
613
605
|
class_name: Any | None = None,
|
|
614
|
-
autofocus: bool | None = None,
|
|
615
606
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
616
607
|
on_blur: EventType[()] | None = None,
|
|
617
608
|
on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
@@ -643,7 +634,6 @@ class AccordionTrigger(AccordionComponent):
|
|
|
643
634
|
id: The id for the component.
|
|
644
635
|
ref: The Var to pass as the ref to the component.
|
|
645
636
|
class_name: The class name for the component.
|
|
646
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
647
637
|
custom_attrs: custom attribute
|
|
648
638
|
**props: The properties of the component.
|
|
649
639
|
|
|
@@ -668,7 +658,6 @@ class AccordionIcon(Icon):
|
|
|
668
658
|
id: Any | None = None,
|
|
669
659
|
ref: Var | None = None,
|
|
670
660
|
class_name: Any | None = None,
|
|
671
|
-
autofocus: bool | None = None,
|
|
672
661
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
673
662
|
on_blur: EventType[()] | None = None,
|
|
674
663
|
on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
@@ -698,7 +687,6 @@ class AccordionIcon(Icon):
|
|
|
698
687
|
id: The id for the component.
|
|
699
688
|
ref: The Var to pass as the ref to the component.
|
|
700
689
|
class_name: The class name for the component.
|
|
701
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
702
690
|
custom_attrs: custom attribute
|
|
703
691
|
**props: The properties of the component.
|
|
704
692
|
|
|
@@ -791,7 +779,6 @@ class AccordionContent(AccordionComponent):
|
|
|
791
779
|
id: Any | None = None,
|
|
792
780
|
ref: Var | None = None,
|
|
793
781
|
class_name: Any | None = None,
|
|
794
|
-
autofocus: bool | None = None,
|
|
795
782
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
796
783
|
on_blur: EventType[()] | None = None,
|
|
797
784
|
on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
@@ -823,7 +810,6 @@ class AccordionContent(AccordionComponent):
|
|
|
823
810
|
id: The id for the component.
|
|
824
811
|
ref: The Var to pass as the ref to the component.
|
|
825
812
|
class_name: The class name for the component.
|
|
826
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
827
813
|
custom_attrs: custom attribute
|
|
828
814
|
**props: The properties of the component.
|
|
829
815
|
|
|
@@ -26,7 +26,6 @@ class RadixPrimitiveComponent(Component):
|
|
|
26
26
|
id: Any | None = None,
|
|
27
27
|
ref: Var | None = None,
|
|
28
28
|
class_name: Any | None = None,
|
|
29
|
-
autofocus: bool | None = None,
|
|
30
29
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
31
30
|
on_blur: EventType[()] | None = None,
|
|
32
31
|
on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
@@ -56,7 +55,6 @@ class RadixPrimitiveComponent(Component):
|
|
|
56
55
|
id: The id for the component.
|
|
57
56
|
ref: The Var to pass as the ref to the component.
|
|
58
57
|
class_name: The class name for the component.
|
|
59
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
60
58
|
custom_attrs: custom attribute
|
|
61
59
|
**props: The props of the component.
|
|
62
60
|
|
|
@@ -79,7 +77,6 @@ class RadixPrimitiveComponentWithClassName(RadixPrimitiveComponent):
|
|
|
79
77
|
id: Any | None = None,
|
|
80
78
|
ref: Var | None = None,
|
|
81
79
|
class_name: Any | None = None,
|
|
82
|
-
autofocus: bool | None = None,
|
|
83
80
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
84
81
|
on_blur: EventType[()] | None = None,
|
|
85
82
|
on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
@@ -109,7 +106,6 @@ class RadixPrimitiveComponentWithClassName(RadixPrimitiveComponent):
|
|
|
109
106
|
id: The id for the component.
|
|
110
107
|
ref: The Var to pass as the ref to the component.
|
|
111
108
|
class_name: The class name for the component.
|
|
112
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
113
109
|
custom_attrs: custom attribute
|
|
114
110
|
**props: The props of the component.
|
|
115
111
|
|