reflex 0.5.10a3__py3-none-any.whl → 0.6.0__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/jinja/custom_components/pyproject.toml.jinja2 +2 -2
- reflex/.templates/jinja/web/pages/_app.js.jinja2 +1 -1
- reflex/.templates/jinja/web/pages/utils.js.jinja2 +4 -4
- reflex/.templates/jinja/web/utils/context.js.jinja2 +1 -1
- reflex/.templates/jinja/web/utils/theme.js.jinja2 +1 -1
- reflex/.templates/web/utils/state.js +3 -1
- reflex/__init__.py +10 -3
- reflex/__init__.pyi +3 -2
- reflex/app.py +47 -11
- reflex/app_module_for_backend.py +1 -1
- reflex/base.py +3 -2
- reflex/compiler/compiler.py +5 -5
- reflex/compiler/utils.py +5 -3
- reflex/components/base/app_wrap.py +2 -4
- reflex/components/base/app_wrap.pyi +16 -26
- reflex/components/base/bare.py +6 -4
- reflex/components/base/body.pyi +16 -26
- reflex/components/base/document.pyi +76 -126
- reflex/components/base/error_boundary.py +9 -8
- reflex/components/base/error_boundary.pyi +18 -30
- reflex/components/base/fragment.pyi +16 -26
- reflex/components/base/head.pyi +31 -51
- reflex/components/base/link.py +1 -1
- reflex/components/base/link.pyi +31 -51
- reflex/components/base/meta.pyi +61 -101
- reflex/components/base/script.py +2 -2
- reflex/components/base/script.pyi +20 -36
- reflex/components/component.py +107 -130
- reflex/components/core/banner.py +61 -66
- reflex/components/core/banner.pyi +129 -230
- reflex/components/core/client_side_routing.py +2 -2
- reflex/components/core/client_side_routing.pyi +31 -51
- reflex/components/core/clipboard.py +4 -3
- reflex/components/core/clipboard.pyi +19 -31
- reflex/components/core/cond.py +21 -44
- reflex/components/core/debounce.py +7 -9
- reflex/components/core/debounce.pyi +19 -31
- reflex/components/core/foreach.py +4 -14
- reflex/components/core/html.py +1 -1
- reflex/components/core/html.pyi +34 -44
- reflex/components/core/match.py +36 -43
- reflex/components/core/upload.py +27 -26
- reflex/components/core/upload.pyi +81 -116
- reflex/components/datadisplay/code.py +55 -29
- reflex/components/datadisplay/code.pyi +303 -410
- reflex/components/datadisplay/dataeditor.py +13 -9
- reflex/components/datadisplay/dataeditor.pyi +39 -51
- reflex/components/el/__init__.py +0 -1
- reflex/components/el/__init__.pyi +0 -11
- reflex/components/el/element.pyi +16 -26
- reflex/components/el/elements/__init__.py +1 -7
- reflex/components/el/elements/__init__.pyi +1 -15
- reflex/components/el/elements/base.py +1 -1
- reflex/components/el/elements/base.pyi +33 -43
- reflex/components/el/elements/forms.py +26 -33
- reflex/components/el/elements/forms.pyi +542 -694
- reflex/components/el/elements/inline.py +1 -1
- reflex/components/el/elements/inline.pyi +909 -1189
- reflex/components/el/elements/media.py +1 -22
- reflex/components/el/elements/media.pyi +765 -975
- reflex/components/el/elements/metadata.py +3 -5
- reflex/components/el/elements/metadata.pyi +175 -235
- reflex/components/el/elements/other.py +1 -1
- reflex/components/el/elements/other.pyi +228 -298
- reflex/components/el/elements/scripts.py +1 -1
- reflex/components/el/elements/scripts.pyi +106 -136
- reflex/components/el/elements/sectioning.py +0 -2
- reflex/components/el/elements/sectioning.pyi +481 -631
- reflex/components/el/elements/tables.py +1 -1
- reflex/components/el/elements/tables.pyi +341 -441
- reflex/components/el/elements/typography.py +1 -1
- reflex/components/el/elements/typography.pyi +491 -641
- reflex/components/gridjs/datatable.py +9 -13
- reflex/components/gridjs/datatable.pyi +33 -53
- reflex/components/lucide/icon.py +3 -127
- reflex/components/lucide/icon.pyi +31 -160
- reflex/components/markdown/markdown.py +32 -42
- reflex/components/markdown/markdown.pyi +28 -41
- reflex/components/moment/moment.py +13 -12
- reflex/components/moment/moment.pyi +22 -33
- reflex/components/next/base.pyi +16 -26
- reflex/components/next/image.py +1 -5
- reflex/components/next/image.pyi +21 -35
- reflex/components/next/link.py +1 -1
- reflex/components/next/link.pyi +16 -26
- reflex/components/next/video.py +1 -1
- reflex/components/next/video.pyi +16 -26
- reflex/components/plotly/plotly.py +17 -30
- reflex/components/plotly/plotly.pyi +38 -52
- reflex/components/props.py +21 -10
- reflex/components/radix/__init__.pyi +2 -1
- reflex/components/radix/primitives/accordion.py +6 -7
- reflex/components/radix/primitives/accordion.pyi +415 -485
- reflex/components/radix/primitives/base.py +1 -1
- reflex/components/radix/primitives/base.pyi +31 -51
- reflex/components/radix/primitives/drawer.py +1 -1
- reflex/components/radix/primitives/drawer.pyi +162 -262
- reflex/components/radix/primitives/form.py +1 -1
- reflex/components/radix/primitives/form.pyi +247 -353
- reflex/components/radix/primitives/progress.py +1 -1
- reflex/components/radix/primitives/progress.pyi +226 -276
- reflex/components/radix/primitives/slider.py +1 -1
- reflex/components/radix/primitives/slider.pyi +82 -132
- reflex/components/radix/themes/base.py +8 -25
- reflex/components/radix/themes/base.pyi +171 -242
- reflex/components/radix/themes/color_mode.py +11 -20
- reflex/components/radix/themes/color_mode.pyi +198 -231
- reflex/components/radix/themes/components/__init__.pyi +1 -0
- reflex/components/radix/themes/components/alert_dialog.py +1 -1
- reflex/components/radix/themes/components/alert_dialog.pyi +129 -199
- reflex/components/radix/themes/components/aspect_ratio.py +1 -1
- reflex/components/radix/themes/components/aspect_ratio.pyi +16 -26
- reflex/components/radix/themes/components/avatar.py +1 -1
- reflex/components/radix/themes/components/avatar.pyi +69 -79
- reflex/components/radix/themes/components/badge.py +1 -1
- reflex/components/radix/themes/components/badge.pyi +87 -97
- reflex/components/radix/themes/components/button.py +1 -1
- reflex/components/radix/themes/components/button.pyi +97 -107
- reflex/components/radix/themes/components/callout.py +1 -1
- reflex/components/radix/themes/components/callout.pyi +317 -367
- reflex/components/radix/themes/components/card.py +1 -1
- reflex/components/radix/themes/components/card.pyi +37 -47
- reflex/components/radix/themes/components/checkbox.py +2 -4
- reflex/components/radix/themes/components/checkbox.pyi +205 -241
- reflex/components/radix/themes/components/checkbox_cards.py +1 -1
- reflex/components/radix/themes/components/checkbox_cards.pyi +92 -112
- reflex/components/radix/themes/components/checkbox_group.py +1 -1
- reflex/components/radix/themes/components/checkbox_group.pyi +84 -104
- reflex/components/radix/themes/components/context_menu.py +1 -1
- reflex/components/radix/themes/components/context_menu.pyi +230 -310
- reflex/components/radix/themes/components/data_list.py +6 -1
- reflex/components/radix/themes/components/data_list.pyi +131 -166
- reflex/components/radix/themes/components/dialog.py +1 -1
- reflex/components/radix/themes/components/dialog.pyi +132 -202
- reflex/components/radix/themes/components/dropdown_menu.py +1 -1
- reflex/components/radix/themes/components/dropdown_menu.pyi +241 -323
- reflex/components/radix/themes/components/hover_card.py +1 -1
- reflex/components/radix/themes/components/hover_card.pyi +86 -126
- reflex/components/radix/themes/components/icon_button.py +1 -1
- reflex/components/radix/themes/components/icon_button.pyi +97 -107
- reflex/components/radix/themes/components/inset.py +1 -1
- reflex/components/radix/themes/components/inset.pyi +46 -56
- reflex/components/radix/themes/components/popover.py +1 -1
- reflex/components/radix/themes/components/popover.pyi +91 -131
- reflex/components/radix/themes/components/progress.py +1 -1
- reflex/components/radix/themes/components/progress.pyi +70 -80
- reflex/components/radix/themes/components/radio.py +1 -1
- reflex/components/radix/themes/components/radio.pyi +68 -78
- reflex/components/radix/themes/components/radio_cards.py +1 -1
- reflex/components/radix/themes/components/radio_cards.pyi +96 -116
- reflex/components/radix/themes/components/radio_group.py +32 -31
- reflex/components/radix/themes/components/radio_group.pyi +230 -266
- reflex/components/radix/themes/components/scroll_area.py +1 -1
- reflex/components/radix/themes/components/scroll_area.pyi +20 -30
- reflex/components/radix/themes/components/segmented_control.py +1 -1
- reflex/components/radix/themes/components/segmented_control.pyi +88 -110
- reflex/components/radix/themes/components/select.py +1 -1
- reflex/components/radix/themes/components/select.pyi +365 -461
- reflex/components/radix/themes/components/separator.py +2 -4
- reflex/components/radix/themes/components/separator.pyi +68 -78
- reflex/components/radix/themes/components/skeleton.py +1 -1
- reflex/components/radix/themes/components/skeleton.pyi +22 -32
- reflex/components/radix/themes/components/slider.py +1 -1
- reflex/components/radix/themes/components/slider.pyi +74 -86
- reflex/components/radix/themes/components/spinner.py +1 -1
- reflex/components/radix/themes/components/spinner.pyi +18 -28
- reflex/components/radix/themes/components/switch.py +1 -1
- reflex/components/radix/themes/components/switch.pyi +70 -82
- reflex/components/radix/themes/components/table.py +1 -1
- reflex/components/radix/themes/components/table.pyi +254 -324
- reflex/components/radix/themes/components/tabs.py +1 -1
- reflex/components/radix/themes/components/tabs.pyi +134 -188
- reflex/components/radix/themes/components/text_area.py +1 -1
- reflex/components/radix/themes/components/text_area.pyi +95 -109
- reflex/components/radix/themes/components/text_field.py +1 -80
- reflex/components/radix/themes/components/text_field.pyi +245 -290
- reflex/components/radix/themes/components/tooltip.py +1 -1
- reflex/components/radix/themes/components/tooltip.pyi +25 -35
- reflex/components/radix/themes/layout/__init__.pyi +1 -0
- reflex/components/radix/themes/layout/base.py +1 -1
- reflex/components/radix/themes/layout/base.pyi +55 -65
- reflex/components/radix/themes/layout/box.pyi +33 -43
- reflex/components/radix/themes/layout/center.pyi +55 -65
- reflex/components/radix/themes/layout/container.py +2 -4
- reflex/components/radix/themes/layout/container.pyi +35 -45
- reflex/components/radix/themes/layout/flex.py +1 -1
- reflex/components/radix/themes/layout/flex.pyi +55 -65
- reflex/components/radix/themes/layout/grid.py +1 -1
- reflex/components/radix/themes/layout/grid.pyi +63 -73
- reflex/components/radix/themes/layout/list.py +1 -1
- reflex/components/radix/themes/layout/list.pyi +188 -238
- reflex/components/radix/themes/layout/section.py +2 -4
- reflex/components/radix/themes/layout/section.pyi +35 -45
- reflex/components/radix/themes/layout/spacer.pyi +55 -65
- reflex/components/radix/themes/layout/stack.py +1 -1
- reflex/components/radix/themes/layout/stack.pyi +125 -155
- reflex/components/radix/themes/typography/blockquote.py +1 -1
- reflex/components/radix/themes/typography/blockquote.pyi +88 -98
- reflex/components/radix/themes/typography/code.py +1 -1
- reflex/components/radix/themes/typography/code.pyi +89 -99
- reflex/components/radix/themes/typography/heading.py +1 -1
- reflex/components/radix/themes/typography/heading.pyi +95 -105
- reflex/components/radix/themes/typography/link.py +1 -1
- reflex/components/radix/themes/typography/link.pyi +101 -111
- reflex/components/radix/themes/typography/text.py +1 -1
- reflex/components/radix/themes/typography/text.pyi +494 -564
- reflex/components/react_player/audio.pyi +32 -58
- reflex/components/react_player/react_player.py +1 -1
- reflex/components/react_player/react_player.pyi +32 -58
- reflex/components/react_player/video.pyi +32 -58
- reflex/components/recharts/cartesian.py +22 -19
- reflex/components/recharts/cartesian.pyi +658 -840
- reflex/components/recharts/charts.py +3 -3
- reflex/components/recharts/charts.pyi +238 -342
- reflex/components/recharts/general.py +8 -8
- reflex/components/recharts/general.pyi +175 -225
- reflex/components/recharts/polar.py +11 -11
- reflex/components/recharts/polar.pyi +135 -171
- reflex/components/recharts/recharts.pyi +31 -51
- reflex/components/sonner/toast.py +27 -31
- reflex/components/sonner/toast.pyi +36 -45
- reflex/components/suneditor/editor.py +1 -1
- reflex/components/suneditor/editor.pyi +54 -76
- reflex/components/tags/cond_tag.py +6 -4
- reflex/components/tags/iter_tag.py +37 -25
- reflex/components/tags/match_tag.py +6 -4
- reflex/components/tags/tag.py +43 -28
- reflex/constants/base.py +3 -1
- reflex/constants/event.py +1 -0
- reflex/custom_components/custom_components.py +3 -1
- reflex/event.py +166 -108
- reflex/experimental/__init__.py +25 -6
- reflex/experimental/client_state.py +34 -57
- reflex/experimental/hooks.py +12 -17
- reflex/experimental/layout.py +4 -4
- reflex/experimental/layout.pyi +130 -180
- reflex/middleware/hydrate_middleware.py +2 -0
- reflex/middleware/middleware.py +3 -3
- reflex/model.py +22 -0
- reflex/reflex.py +4 -0
- reflex/state.py +491 -110
- reflex/style.py +56 -39
- reflex/testing.py +8 -3
- reflex/utils/exceptions.py +32 -0
- reflex/utils/exec.py +0 -14
- reflex/utils/format.py +80 -209
- reflex/utils/imports.py +16 -73
- reflex/utils/net.py +43 -0
- reflex/utils/path_ops.py +13 -1
- reflex/utils/prerequisites.py +81 -41
- reflex/utils/pyi_generator.py +12 -6
- reflex/utils/serializers.py +13 -41
- reflex/utils/telemetry.py +3 -2
- reflex/utils/types.py +47 -7
- reflex/{experimental/vars → vars}/__init__.py +6 -3
- reflex/vars/base.py +2563 -0
- reflex/vars/function.py +196 -0
- reflex/vars/number.py +1158 -0
- reflex/vars/object.py +562 -0
- reflex/vars/sequence.py +1604 -0
- {reflex-0.5.10a3.dist-info → reflex-0.6.0.dist-info}/METADATA +6 -9
- reflex-0.6.0.dist-info/RECORD +382 -0
- reflex/.templates/apps/demo/.gitignore +0 -4
- reflex/.templates/apps/demo/assets/favicon.ico +0 -0
- reflex/.templates/apps/demo/assets/github.svg +0 -10
- reflex/.templates/apps/demo/assets/icon.svg +0 -37
- reflex/.templates/apps/demo/assets/logo.svg +0 -68
- reflex/.templates/apps/demo/assets/paneleft.svg +0 -13
- reflex/.templates/apps/demo/code/__init__.py +0 -1
- reflex/.templates/apps/demo/code/demo.py +0 -127
- reflex/.templates/apps/demo/code/pages/__init__.py +0 -7
- reflex/.templates/apps/demo/code/pages/chatapp.py +0 -31
- reflex/.templates/apps/demo/code/pages/datatable.py +0 -360
- reflex/.templates/apps/demo/code/pages/forms.py +0 -257
- reflex/.templates/apps/demo/code/pages/graphing.py +0 -253
- reflex/.templates/apps/demo/code/pages/home.py +0 -56
- reflex/.templates/apps/demo/code/sidebar.py +0 -178
- reflex/.templates/apps/demo/code/state.py +0 -22
- reflex/.templates/apps/demo/code/states/form_state.py +0 -40
- reflex/.templates/apps/demo/code/states/pie_state.py +0 -47
- reflex/.templates/apps/demo/code/styles.py +0 -68
- reflex/.templates/apps/demo/code/webui/__init__.py +0 -0
- reflex/.templates/apps/demo/code/webui/components/__init__.py +0 -4
- reflex/.templates/apps/demo/code/webui/components/chat.py +0 -118
- reflex/.templates/apps/demo/code/webui/components/loading_icon.py +0 -19
- reflex/.templates/apps/demo/code/webui/components/modal.py +0 -56
- reflex/.templates/apps/demo/code/webui/components/navbar.py +0 -70
- reflex/.templates/apps/demo/code/webui/components/sidebar.py +0 -66
- reflex/.templates/apps/demo/code/webui/state.py +0 -146
- reflex/.templates/apps/demo/code/webui/styles.py +0 -88
- reflex/.templates/web/components/reflex/chakra_color_mode_provider.js +0 -36
- reflex/experimental/vars/base.py +0 -583
- reflex/experimental/vars/function.py +0 -290
- reflex/experimental/vars/number.py +0 -1458
- reflex/experimental/vars/object.py +0 -804
- reflex/experimental/vars/sequence.py +0 -1764
- reflex/utils/watch.py +0 -96
- reflex/vars.py +0 -2604
- reflex/vars.pyi +0 -218
- reflex-0.5.10a3.dist-info/RECORD +0 -413
- {reflex-0.5.10a3.dist-info → reflex-0.6.0.dist-info}/LICENSE +0 -0
- {reflex-0.5.10a3.dist-info → reflex-0.6.0.dist-info}/WHEEL +0 -0
- {reflex-0.5.10a3.dist-info → reflex-0.6.0.dist-info}/entry_points.txt +0 -0
|
@@ -9,7 +9,7 @@ from reflex.components.tags import Tag
|
|
|
9
9
|
from reflex.utils import types
|
|
10
10
|
from reflex.utils.imports import ImportDict
|
|
11
11
|
from reflex.utils.serializers import serialize
|
|
12
|
-
from reflex.vars import
|
|
12
|
+
from reflex.vars.base import LiteralVar, Var, is_computed_var
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
class Gridjs(Component):
|
|
@@ -65,14 +65,14 @@ class DataTable(Gridjs):
|
|
|
65
65
|
|
|
66
66
|
# The annotation should be provided if data is a computed var. We need this to know how to
|
|
67
67
|
# render pandas dataframes.
|
|
68
|
-
if
|
|
68
|
+
if is_computed_var(data) and data._var_type == Any:
|
|
69
69
|
raise ValueError(
|
|
70
70
|
"Annotation of the computed var assigned to the data field should be provided."
|
|
71
71
|
)
|
|
72
72
|
|
|
73
73
|
if (
|
|
74
74
|
columns is not None
|
|
75
|
-
and
|
|
75
|
+
and is_computed_var(columns)
|
|
76
76
|
and columns._var_type == Any
|
|
77
77
|
):
|
|
78
78
|
raise ValueError(
|
|
@@ -113,24 +113,20 @@ class DataTable(Gridjs):
|
|
|
113
113
|
|
|
114
114
|
def _render(self) -> Tag:
|
|
115
115
|
if isinstance(self.data, Var) and types.is_dataframe(self.data._var_type):
|
|
116
|
-
self.columns =
|
|
117
|
-
|
|
116
|
+
self.columns = self.data._replace(
|
|
117
|
+
_js_expr=f"{self.data._js_expr}.columns",
|
|
118
118
|
_var_type=List[Any],
|
|
119
|
-
_var_full_name_needs_state_prefix=True,
|
|
120
|
-
_var_data=self.data._var_data,
|
|
121
119
|
)
|
|
122
|
-
self.data =
|
|
123
|
-
|
|
120
|
+
self.data = self.data._replace(
|
|
121
|
+
_js_expr=f"{self.data._js_expr}.data",
|
|
124
122
|
_var_type=List[List[Any]],
|
|
125
|
-
_var_full_name_needs_state_prefix=True,
|
|
126
|
-
_var_data=self.data._var_data,
|
|
127
123
|
)
|
|
128
124
|
if types.is_dataframe(type(self.data)):
|
|
129
125
|
# If given a pandas df break up the data and columns
|
|
130
126
|
data = serialize(self.data)
|
|
131
127
|
assert isinstance(data, dict), "Serialized dataframe should be a dict."
|
|
132
|
-
self.columns =
|
|
133
|
-
self.data =
|
|
128
|
+
self.columns = LiteralVar.create(data["columns"])
|
|
129
|
+
self.data = LiteralVar.create(data["data"])
|
|
134
130
|
|
|
135
131
|
# Render the table.
|
|
136
132
|
return super()._render()
|
|
@@ -9,7 +9,7 @@ from reflex.components.component import Component
|
|
|
9
9
|
from reflex.event import EventHandler, EventSpec
|
|
10
10
|
from reflex.style import Style
|
|
11
11
|
from reflex.utils.imports import ImportDict
|
|
12
|
-
from reflex.vars import
|
|
12
|
+
from reflex.vars.base import Var
|
|
13
13
|
|
|
14
14
|
class Gridjs(Component):
|
|
15
15
|
@overload
|
|
@@ -23,50 +23,40 @@ class Gridjs(Component):
|
|
|
23
23
|
class_name: Optional[Any] = None,
|
|
24
24
|
autofocus: Optional[bool] = None,
|
|
25
25
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
26
|
-
on_blur: Optional[
|
|
27
|
-
|
|
28
|
-
] = None,
|
|
29
|
-
on_click: Optional[
|
|
30
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
31
|
-
] = None,
|
|
26
|
+
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
27
|
+
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
32
28
|
on_context_menu: Optional[
|
|
33
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
29
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
34
30
|
] = None,
|
|
35
31
|
on_double_click: Optional[
|
|
36
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
37
|
-
] = None,
|
|
38
|
-
on_focus: Optional[
|
|
39
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
40
|
-
] = None,
|
|
41
|
-
on_mount: Optional[
|
|
42
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
32
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
43
33
|
] = None,
|
|
34
|
+
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
35
|
+
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
44
36
|
on_mouse_down: Optional[
|
|
45
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
37
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
46
38
|
] = None,
|
|
47
39
|
on_mouse_enter: Optional[
|
|
48
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
40
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
49
41
|
] = None,
|
|
50
42
|
on_mouse_leave: Optional[
|
|
51
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
43
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
52
44
|
] = None,
|
|
53
45
|
on_mouse_move: Optional[
|
|
54
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
46
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
55
47
|
] = None,
|
|
56
48
|
on_mouse_out: Optional[
|
|
57
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
49
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
58
50
|
] = None,
|
|
59
51
|
on_mouse_over: Optional[
|
|
60
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
52
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
61
53
|
] = None,
|
|
62
54
|
on_mouse_up: Optional[
|
|
63
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
64
|
-
] = None,
|
|
65
|
-
on_scroll: Optional[
|
|
66
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
55
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
67
56
|
] = None,
|
|
57
|
+
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
68
58
|
on_unmount: Optional[
|
|
69
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
59
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
70
60
|
] = None,
|
|
71
61
|
**props,
|
|
72
62
|
) -> "Gridjs":
|
|
@@ -94,61 +84,51 @@ class DataTable(Gridjs):
|
|
|
94
84
|
cls,
|
|
95
85
|
*children,
|
|
96
86
|
data: Optional[Any] = None,
|
|
97
|
-
columns: Optional[Union[
|
|
87
|
+
columns: Optional[Union[List, Var[List]]] = None,
|
|
98
88
|
search: Optional[Union[Var[bool], bool]] = None,
|
|
99
89
|
sort: Optional[Union[Var[bool], bool]] = None,
|
|
100
90
|
resizable: Optional[Union[Var[bool], bool]] = None,
|
|
101
|
-
pagination: Optional[Union[Var[Union[Dict, bool]], bool
|
|
91
|
+
pagination: Optional[Union[Dict, Var[Union[Dict, bool]], bool]] = None,
|
|
102
92
|
style: Optional[Style] = None,
|
|
103
93
|
key: Optional[Any] = None,
|
|
104
94
|
id: Optional[Any] = None,
|
|
105
95
|
class_name: Optional[Any] = None,
|
|
106
96
|
autofocus: Optional[bool] = None,
|
|
107
97
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
108
|
-
on_blur: Optional[
|
|
109
|
-
|
|
110
|
-
] = None,
|
|
111
|
-
on_click: Optional[
|
|
112
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
113
|
-
] = None,
|
|
98
|
+
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
99
|
+
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
114
100
|
on_context_menu: Optional[
|
|
115
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
101
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
116
102
|
] = None,
|
|
117
103
|
on_double_click: Optional[
|
|
118
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
119
|
-
] = None,
|
|
120
|
-
on_focus: Optional[
|
|
121
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
122
|
-
] = None,
|
|
123
|
-
on_mount: Optional[
|
|
124
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
104
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
125
105
|
] = None,
|
|
106
|
+
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
107
|
+
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
126
108
|
on_mouse_down: Optional[
|
|
127
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
109
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
128
110
|
] = None,
|
|
129
111
|
on_mouse_enter: Optional[
|
|
130
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
112
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
131
113
|
] = None,
|
|
132
114
|
on_mouse_leave: Optional[
|
|
133
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
115
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
134
116
|
] = None,
|
|
135
117
|
on_mouse_move: Optional[
|
|
136
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
118
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
137
119
|
] = None,
|
|
138
120
|
on_mouse_out: Optional[
|
|
139
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
121
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
140
122
|
] = None,
|
|
141
123
|
on_mouse_over: Optional[
|
|
142
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
124
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
143
125
|
] = None,
|
|
144
126
|
on_mouse_up: Optional[
|
|
145
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
146
|
-
] = None,
|
|
147
|
-
on_scroll: Optional[
|
|
148
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
127
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
149
128
|
] = None,
|
|
129
|
+
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
150
130
|
on_unmount: Optional[
|
|
151
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
131
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
152
132
|
] = None,
|
|
153
133
|
**props,
|
|
154
134
|
) -> "DataTable":
|
reflex/components/lucide/icon.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"""Lucide Icon component."""
|
|
2
2
|
|
|
3
3
|
from reflex.components.component import Component
|
|
4
|
-
from reflex.utils import
|
|
5
|
-
from reflex.vars import Var
|
|
4
|
+
from reflex.utils import format
|
|
5
|
+
from reflex.vars.base import Var
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
class LucideIconComponent(Component):
|
|
@@ -36,19 +36,6 @@ class Icon(LucideIconComponent):
|
|
|
36
36
|
Returns:
|
|
37
37
|
The created component.
|
|
38
38
|
"""
|
|
39
|
-
|
|
40
|
-
def map_deprecated_icon_names_05(tag: str) -> str:
|
|
41
|
-
new_tag = RENAMED_ICONS_05.get(tag)
|
|
42
|
-
if new_tag is not None:
|
|
43
|
-
console.deprecate(
|
|
44
|
-
feature_name=f"icon {tag}",
|
|
45
|
-
reason=f"it was renamed upstream. Use {new_tag} instead.",
|
|
46
|
-
deprecation_version="0.4.6",
|
|
47
|
-
removal_version="0.6.0",
|
|
48
|
-
)
|
|
49
|
-
return new_tag
|
|
50
|
-
return tag
|
|
51
|
-
|
|
52
39
|
if children:
|
|
53
40
|
if len(children) == 1 and isinstance(children[0], str):
|
|
54
41
|
props["tag"] = children[0]
|
|
@@ -62,8 +49,7 @@ class Icon(LucideIconComponent):
|
|
|
62
49
|
|
|
63
50
|
if (
|
|
64
51
|
not isinstance(props["tag"], str)
|
|
65
|
-
or
|
|
66
|
-
not in LUCIDE_ICON_LIST
|
|
52
|
+
or format.to_snake_case(props["tag"]) not in LUCIDE_ICON_LIST
|
|
67
53
|
):
|
|
68
54
|
raise ValueError(
|
|
69
55
|
f"Invalid icon tag: {props['tag']}. Please use one of the following: {', '.join(LUCIDE_ICON_LIST[0:25])}, ..."
|
|
@@ -76,116 +62,6 @@ class Icon(LucideIconComponent):
|
|
|
76
62
|
return super().create(*children, **props)
|
|
77
63
|
|
|
78
64
|
|
|
79
|
-
RENAMED_ICONS_05 = {
|
|
80
|
-
"activity_square": "square_activity",
|
|
81
|
-
"alert_circle": "circle_alert",
|
|
82
|
-
"alert_octagon": "octagon_alert",
|
|
83
|
-
"alert_triangle": "triangle_alert",
|
|
84
|
-
"arrow_down_circle": "circle_arrow_down",
|
|
85
|
-
"arrow_down_left_from_circle": "circle_arrow_out_down_left",
|
|
86
|
-
"arrow_down_left_from_square": "square_arrow_out_down_left",
|
|
87
|
-
"arrow_down_left_square": "square_arrow_down_left",
|
|
88
|
-
"arrow_down_right_from_circle": "circle_arrow_out_down_right",
|
|
89
|
-
"arrow_down_right_from_square": "square_arrow_out_down_right",
|
|
90
|
-
"arrow_down_right_square": "square_arrow_down_right",
|
|
91
|
-
"arrow_down_square": "square_arrow_down",
|
|
92
|
-
"arrow_left_circle": "circle_arrow_left",
|
|
93
|
-
"arrow_left_square": "square_arrow_left",
|
|
94
|
-
"arrow_right_circle": "circle_arrow_right",
|
|
95
|
-
"arrow_right_square": "square_arrow_right",
|
|
96
|
-
"arrow_up_circle": "circle_arrow_up",
|
|
97
|
-
"arrow_up_left_from_circle": "circle_arrow_out_up_left",
|
|
98
|
-
"arrow_up_left_from_square": "square_arrow_out_up_left",
|
|
99
|
-
"arrow_up_left_square": "square_arrow_up_left",
|
|
100
|
-
"arrow_up_right_from_circle": "circle_arrow_out_up_right",
|
|
101
|
-
"arrow_up_right_from_square": "square_arrow_out_up_right",
|
|
102
|
-
"arrow_up_right_square": "square_arrow_up_right",
|
|
103
|
-
"arrow_up_square": "square_arrow_up",
|
|
104
|
-
"asterisk_square": "square_asterisk",
|
|
105
|
-
"check_circle": "circle_check_big",
|
|
106
|
-
"check_circle_2": "circle_check",
|
|
107
|
-
"check_square": "square_check_big",
|
|
108
|
-
"check_square_2": "square_check",
|
|
109
|
-
"chevron_down_circle": "circle_chevron_down",
|
|
110
|
-
"chevron_down_square": "square_chevron_down",
|
|
111
|
-
"chevron_left_circle": "circle_chevron_left",
|
|
112
|
-
"chevron_left_square": "square_chevron_left",
|
|
113
|
-
"chevron_right_circle": "circle_chevron_right",
|
|
114
|
-
"chevron_right_square": "square_chevron_right",
|
|
115
|
-
"chevron_up_circle": "circle_chevron_up",
|
|
116
|
-
"chevron_up_square": "square_chevron_up",
|
|
117
|
-
"code_2": "code_xml",
|
|
118
|
-
"code_square": "square_code",
|
|
119
|
-
"contact_2": "contact_round",
|
|
120
|
-
"divide_circle": "circle_divide",
|
|
121
|
-
"divide_square": "square_divide",
|
|
122
|
-
"dot_square": "square_dot",
|
|
123
|
-
"download_cloud": "cloud_download",
|
|
124
|
-
"equal_square": "square_equal",
|
|
125
|
-
"form_input": "rectangle_ellipsis",
|
|
126
|
-
"function_square": "square_function",
|
|
127
|
-
"gantt_chart_square": "square_gantt_chart",
|
|
128
|
-
"gauge_circle": "circle_gauge",
|
|
129
|
-
"globe_2": "earth",
|
|
130
|
-
"help_circle": "circle_help",
|
|
131
|
-
"helping_hand": "hand_helping",
|
|
132
|
-
"ice_cream": "ice_cream_cone",
|
|
133
|
-
"ice_cream_2": "ice_cream_bowl",
|
|
134
|
-
"indent": "indent_increase",
|
|
135
|
-
"kanban_square": "square_kanban",
|
|
136
|
-
"kanban_square_dashed": "square_dashed_kanban",
|
|
137
|
-
"laptop_2": "laptop_minimal",
|
|
138
|
-
"library_square": "square_library",
|
|
139
|
-
"loader_2": "loader_circle",
|
|
140
|
-
"m_square": "square_m",
|
|
141
|
-
"menu_square": "square_menu",
|
|
142
|
-
"mic_2": "mic_vocal",
|
|
143
|
-
"minus_circle": "circle_minus",
|
|
144
|
-
"minus_square": "square_minus",
|
|
145
|
-
"more_horizontal": "ellipsis",
|
|
146
|
-
"more_vertical": "ellipsis_vertical",
|
|
147
|
-
"mouse_pointer_square": "square_mouse_pointer",
|
|
148
|
-
"mouse_pointer_square_dashed": "square_dashed_mouse_pointer",
|
|
149
|
-
"outdent": "indent_decrease",
|
|
150
|
-
"palm_tree": "tree_palm",
|
|
151
|
-
"parking_circle": "circle_parking",
|
|
152
|
-
"parking_circle_off": "circle_parking_off",
|
|
153
|
-
"parking_square": "square_parking",
|
|
154
|
-
"parking_square_off": "square_parking_off",
|
|
155
|
-
"pause_circle": "circle_pause",
|
|
156
|
-
"pause_octagon": "octagon_pause",
|
|
157
|
-
"percent_circle": "circle_percent",
|
|
158
|
-
"percent_diamond": "diamond_percent",
|
|
159
|
-
"percent_square": "square_percent",
|
|
160
|
-
"pi_square": "square_pi",
|
|
161
|
-
"pilcrow_square": "square_pilcrow",
|
|
162
|
-
"play_circle": "circle_play",
|
|
163
|
-
"play_square": "square_play",
|
|
164
|
-
"plus_circle": "circle_plus",
|
|
165
|
-
"plus_square": "square_plus",
|
|
166
|
-
"power_circle": "circle_power",
|
|
167
|
-
"power_square": "square_power",
|
|
168
|
-
"school_2": "university",
|
|
169
|
-
"scissors_square": "square_scissors",
|
|
170
|
-
"scissors_square_dashed_bottom": "square_bottom_dashed_scissors",
|
|
171
|
-
"sigma_square": "square_sigma",
|
|
172
|
-
"slash_circle": "circle_slash",
|
|
173
|
-
"sliders": "sliders_vertical",
|
|
174
|
-
"split_square_horizontal": "square_split_horizontal",
|
|
175
|
-
"split_square_vertical": "square_split_vertical",
|
|
176
|
-
"stop_circle": "circle_stop",
|
|
177
|
-
"subtitles": "captions",
|
|
178
|
-
"test_tube_2": "test_tube_diagonal",
|
|
179
|
-
"unlock": "lock_open",
|
|
180
|
-
"unlock_keyhole": "lock_keyhole_open",
|
|
181
|
-
"upload_cloud": "cloud_upload",
|
|
182
|
-
"wallet_2": "wallet_minimal",
|
|
183
|
-
"wand_2": "wand_sparkles",
|
|
184
|
-
"x_circle": "circle_x",
|
|
185
|
-
"x_octagon": "octagon_x",
|
|
186
|
-
"x_square": "square_x",
|
|
187
|
-
}
|
|
188
|
-
|
|
189
65
|
LUCIDE_ICON_LIST = [
|
|
190
66
|
"a_arrow_down",
|
|
191
67
|
"a_arrow_up",
|
|
@@ -8,7 +8,7 @@ from typing import Any, Callable, Dict, Optional, Union, overload
|
|
|
8
8
|
from reflex.components.component import Component
|
|
9
9
|
from reflex.event import EventHandler, EventSpec
|
|
10
10
|
from reflex.style import Style
|
|
11
|
-
from reflex.vars import
|
|
11
|
+
from reflex.vars.base import Var
|
|
12
12
|
|
|
13
13
|
class LucideIconComponent(Component):
|
|
14
14
|
@overload
|
|
@@ -22,50 +22,40 @@ class LucideIconComponent(Component):
|
|
|
22
22
|
class_name: Optional[Any] = None,
|
|
23
23
|
autofocus: Optional[bool] = None,
|
|
24
24
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
25
|
-
on_blur: Optional[
|
|
26
|
-
|
|
27
|
-
] = None,
|
|
28
|
-
on_click: Optional[
|
|
29
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
30
|
-
] = None,
|
|
25
|
+
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
26
|
+
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
31
27
|
on_context_menu: Optional[
|
|
32
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
28
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
33
29
|
] = None,
|
|
34
30
|
on_double_click: Optional[
|
|
35
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
36
|
-
] = None,
|
|
37
|
-
on_focus: Optional[
|
|
38
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
39
|
-
] = None,
|
|
40
|
-
on_mount: Optional[
|
|
41
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
31
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
42
32
|
] = None,
|
|
33
|
+
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
34
|
+
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
43
35
|
on_mouse_down: Optional[
|
|
44
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
36
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
45
37
|
] = None,
|
|
46
38
|
on_mouse_enter: Optional[
|
|
47
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
39
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
48
40
|
] = None,
|
|
49
41
|
on_mouse_leave: Optional[
|
|
50
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
42
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
51
43
|
] = None,
|
|
52
44
|
on_mouse_move: Optional[
|
|
53
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
45
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
54
46
|
] = None,
|
|
55
47
|
on_mouse_out: Optional[
|
|
56
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
48
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
57
49
|
] = None,
|
|
58
50
|
on_mouse_over: Optional[
|
|
59
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
51
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
60
52
|
] = None,
|
|
61
53
|
on_mouse_up: Optional[
|
|
62
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
63
|
-
] = None,
|
|
64
|
-
on_scroll: Optional[
|
|
65
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
54
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
66
55
|
] = None,
|
|
56
|
+
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
67
57
|
on_unmount: Optional[
|
|
68
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
58
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
69
59
|
] = None,
|
|
70
60
|
**props,
|
|
71
61
|
) -> "LucideIconComponent":
|
|
@@ -99,50 +89,40 @@ class Icon(LucideIconComponent):
|
|
|
99
89
|
class_name: Optional[Any] = None,
|
|
100
90
|
autofocus: Optional[bool] = None,
|
|
101
91
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
102
|
-
on_blur: Optional[
|
|
103
|
-
|
|
104
|
-
] = None,
|
|
105
|
-
on_click: Optional[
|
|
106
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
107
|
-
] = None,
|
|
92
|
+
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
93
|
+
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
108
94
|
on_context_menu: Optional[
|
|
109
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
95
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
110
96
|
] = None,
|
|
111
97
|
on_double_click: Optional[
|
|
112
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
113
|
-
] = None,
|
|
114
|
-
on_focus: Optional[
|
|
115
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
116
|
-
] = None,
|
|
117
|
-
on_mount: Optional[
|
|
118
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
98
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
119
99
|
] = None,
|
|
100
|
+
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
101
|
+
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
120
102
|
on_mouse_down: Optional[
|
|
121
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
103
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
122
104
|
] = None,
|
|
123
105
|
on_mouse_enter: Optional[
|
|
124
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
106
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
125
107
|
] = None,
|
|
126
108
|
on_mouse_leave: Optional[
|
|
127
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
109
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
128
110
|
] = None,
|
|
129
111
|
on_mouse_move: Optional[
|
|
130
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
112
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
131
113
|
] = None,
|
|
132
114
|
on_mouse_out: Optional[
|
|
133
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
115
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
134
116
|
] = None,
|
|
135
117
|
on_mouse_over: Optional[
|
|
136
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
118
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
137
119
|
] = None,
|
|
138
120
|
on_mouse_up: Optional[
|
|
139
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
140
|
-
] = None,
|
|
141
|
-
on_scroll: Optional[
|
|
142
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
121
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
143
122
|
] = None,
|
|
123
|
+
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
144
124
|
on_unmount: Optional[
|
|
145
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
125
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
146
126
|
] = None,
|
|
147
127
|
**props,
|
|
148
128
|
) -> "Icon":
|
|
@@ -170,115 +150,6 @@ class Icon(LucideIconComponent):
|
|
|
170
150
|
"""
|
|
171
151
|
...
|
|
172
152
|
|
|
173
|
-
RENAMED_ICONS_05 = {
|
|
174
|
-
"activity_square": "square_activity",
|
|
175
|
-
"alert_circle": "circle_alert",
|
|
176
|
-
"alert_octagon": "octagon_alert",
|
|
177
|
-
"alert_triangle": "triangle_alert",
|
|
178
|
-
"arrow_down_circle": "circle_arrow_down",
|
|
179
|
-
"arrow_down_left_from_circle": "circle_arrow_out_down_left",
|
|
180
|
-
"arrow_down_left_from_square": "square_arrow_out_down_left",
|
|
181
|
-
"arrow_down_left_square": "square_arrow_down_left",
|
|
182
|
-
"arrow_down_right_from_circle": "circle_arrow_out_down_right",
|
|
183
|
-
"arrow_down_right_from_square": "square_arrow_out_down_right",
|
|
184
|
-
"arrow_down_right_square": "square_arrow_down_right",
|
|
185
|
-
"arrow_down_square": "square_arrow_down",
|
|
186
|
-
"arrow_left_circle": "circle_arrow_left",
|
|
187
|
-
"arrow_left_square": "square_arrow_left",
|
|
188
|
-
"arrow_right_circle": "circle_arrow_right",
|
|
189
|
-
"arrow_right_square": "square_arrow_right",
|
|
190
|
-
"arrow_up_circle": "circle_arrow_up",
|
|
191
|
-
"arrow_up_left_from_circle": "circle_arrow_out_up_left",
|
|
192
|
-
"arrow_up_left_from_square": "square_arrow_out_up_left",
|
|
193
|
-
"arrow_up_left_square": "square_arrow_up_left",
|
|
194
|
-
"arrow_up_right_from_circle": "circle_arrow_out_up_right",
|
|
195
|
-
"arrow_up_right_from_square": "square_arrow_out_up_right",
|
|
196
|
-
"arrow_up_right_square": "square_arrow_up_right",
|
|
197
|
-
"arrow_up_square": "square_arrow_up",
|
|
198
|
-
"asterisk_square": "square_asterisk",
|
|
199
|
-
"check_circle": "circle_check_big",
|
|
200
|
-
"check_circle_2": "circle_check",
|
|
201
|
-
"check_square": "square_check_big",
|
|
202
|
-
"check_square_2": "square_check",
|
|
203
|
-
"chevron_down_circle": "circle_chevron_down",
|
|
204
|
-
"chevron_down_square": "square_chevron_down",
|
|
205
|
-
"chevron_left_circle": "circle_chevron_left",
|
|
206
|
-
"chevron_left_square": "square_chevron_left",
|
|
207
|
-
"chevron_right_circle": "circle_chevron_right",
|
|
208
|
-
"chevron_right_square": "square_chevron_right",
|
|
209
|
-
"chevron_up_circle": "circle_chevron_up",
|
|
210
|
-
"chevron_up_square": "square_chevron_up",
|
|
211
|
-
"code_2": "code_xml",
|
|
212
|
-
"code_square": "square_code",
|
|
213
|
-
"contact_2": "contact_round",
|
|
214
|
-
"divide_circle": "circle_divide",
|
|
215
|
-
"divide_square": "square_divide",
|
|
216
|
-
"dot_square": "square_dot",
|
|
217
|
-
"download_cloud": "cloud_download",
|
|
218
|
-
"equal_square": "square_equal",
|
|
219
|
-
"form_input": "rectangle_ellipsis",
|
|
220
|
-
"function_square": "square_function",
|
|
221
|
-
"gantt_chart_square": "square_gantt_chart",
|
|
222
|
-
"gauge_circle": "circle_gauge",
|
|
223
|
-
"globe_2": "earth",
|
|
224
|
-
"help_circle": "circle_help",
|
|
225
|
-
"helping_hand": "hand_helping",
|
|
226
|
-
"ice_cream": "ice_cream_cone",
|
|
227
|
-
"ice_cream_2": "ice_cream_bowl",
|
|
228
|
-
"indent": "indent_increase",
|
|
229
|
-
"kanban_square": "square_kanban",
|
|
230
|
-
"kanban_square_dashed": "square_dashed_kanban",
|
|
231
|
-
"laptop_2": "laptop_minimal",
|
|
232
|
-
"library_square": "square_library",
|
|
233
|
-
"loader_2": "loader_circle",
|
|
234
|
-
"m_square": "square_m",
|
|
235
|
-
"menu_square": "square_menu",
|
|
236
|
-
"mic_2": "mic_vocal",
|
|
237
|
-
"minus_circle": "circle_minus",
|
|
238
|
-
"minus_square": "square_minus",
|
|
239
|
-
"more_horizontal": "ellipsis",
|
|
240
|
-
"more_vertical": "ellipsis_vertical",
|
|
241
|
-
"mouse_pointer_square": "square_mouse_pointer",
|
|
242
|
-
"mouse_pointer_square_dashed": "square_dashed_mouse_pointer",
|
|
243
|
-
"outdent": "indent_decrease",
|
|
244
|
-
"palm_tree": "tree_palm",
|
|
245
|
-
"parking_circle": "circle_parking",
|
|
246
|
-
"parking_circle_off": "circle_parking_off",
|
|
247
|
-
"parking_square": "square_parking",
|
|
248
|
-
"parking_square_off": "square_parking_off",
|
|
249
|
-
"pause_circle": "circle_pause",
|
|
250
|
-
"pause_octagon": "octagon_pause",
|
|
251
|
-
"percent_circle": "circle_percent",
|
|
252
|
-
"percent_diamond": "diamond_percent",
|
|
253
|
-
"percent_square": "square_percent",
|
|
254
|
-
"pi_square": "square_pi",
|
|
255
|
-
"pilcrow_square": "square_pilcrow",
|
|
256
|
-
"play_circle": "circle_play",
|
|
257
|
-
"play_square": "square_play",
|
|
258
|
-
"plus_circle": "circle_plus",
|
|
259
|
-
"plus_square": "square_plus",
|
|
260
|
-
"power_circle": "circle_power",
|
|
261
|
-
"power_square": "square_power",
|
|
262
|
-
"school_2": "university",
|
|
263
|
-
"scissors_square": "square_scissors",
|
|
264
|
-
"scissors_square_dashed_bottom": "square_bottom_dashed_scissors",
|
|
265
|
-
"sigma_square": "square_sigma",
|
|
266
|
-
"slash_circle": "circle_slash",
|
|
267
|
-
"sliders": "sliders_vertical",
|
|
268
|
-
"split_square_horizontal": "square_split_horizontal",
|
|
269
|
-
"split_square_vertical": "square_split_vertical",
|
|
270
|
-
"stop_circle": "circle_stop",
|
|
271
|
-
"subtitles": "captions",
|
|
272
|
-
"test_tube_2": "test_tube_diagonal",
|
|
273
|
-
"unlock": "lock_open",
|
|
274
|
-
"unlock_keyhole": "lock_keyhole_open",
|
|
275
|
-
"upload_cloud": "cloud_upload",
|
|
276
|
-
"wallet_2": "wallet_minimal",
|
|
277
|
-
"wand_2": "wand_sparkles",
|
|
278
|
-
"x_circle": "circle_x",
|
|
279
|
-
"x_octagon": "octagon_x",
|
|
280
|
-
"x_square": "square_x",
|
|
281
|
-
}
|
|
282
153
|
LUCIDE_ICON_LIST = [
|
|
283
154
|
"a_arrow_down",
|
|
284
155
|
"a_arrow_up",
|