reflex 0.4.5a1__py3-none-any.whl → 0.4.6__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 +5 -15
- reflex/.templates/jinja/web/pages/index.js.jinja2 +4 -0
- reflex/.templates/jinja/web/pages/stateful_component.js.jinja2 +4 -0
- reflex/.templates/web/utils/state.js +3 -0
- reflex/__init__.py +12 -2
- reflex/__init__.pyi +4 -0
- reflex/app.py +23 -3
- reflex/base.py +16 -4
- reflex/compiler/compiler.py +1 -0
- reflex/compiler/utils.py +11 -2
- reflex/components/base/app_wrap.pyi +1 -1
- reflex/components/base/bare.py +3 -4
- reflex/components/base/body.pyi +1 -1
- reflex/components/base/document.pyi +1 -1
- reflex/components/base/fragment.pyi +1 -1
- reflex/components/base/head.pyi +1 -1
- reflex/components/base/link.pyi +1 -1
- reflex/components/base/meta.pyi +1 -1
- reflex/components/base/script.pyi +1 -1
- reflex/components/chakra/base.pyi +1 -1
- reflex/components/chakra/datadisplay/badge.pyi +1 -1
- reflex/components/chakra/datadisplay/code.pyi +1 -1
- reflex/components/chakra/datadisplay/divider.pyi +1 -1
- reflex/components/chakra/datadisplay/keyboard_key.pyi +1 -1
- reflex/components/chakra/datadisplay/list.pyi +1 -1
- reflex/components/chakra/datadisplay/stat.pyi +1 -1
- reflex/components/chakra/datadisplay/table.pyi +1 -1
- reflex/components/chakra/datadisplay/tag.pyi +1 -1
- reflex/components/chakra/disclosure/accordion.pyi +1 -1
- reflex/components/chakra/disclosure/tabs.pyi +1 -1
- reflex/components/chakra/disclosure/transition.pyi +1 -1
- reflex/components/chakra/disclosure/visuallyhidden.pyi +1 -1
- reflex/components/chakra/feedback/alert.pyi +1 -1
- reflex/components/chakra/feedback/circularprogress.pyi +1 -1
- reflex/components/chakra/feedback/progress.pyi +1 -1
- reflex/components/chakra/feedback/skeleton.pyi +1 -1
- reflex/components/chakra/feedback/spinner.pyi +1 -1
- reflex/components/chakra/forms/button.pyi +1 -1
- reflex/components/chakra/forms/checkbox.pyi +1 -1
- reflex/components/chakra/forms/colormodeswitch.pyi +1 -1
- reflex/components/chakra/forms/date_picker.pyi +1 -1
- reflex/components/chakra/forms/date_time_picker.pyi +1 -1
- reflex/components/chakra/forms/editable.pyi +1 -1
- reflex/components/chakra/forms/email.pyi +1 -1
- reflex/components/chakra/forms/form.pyi +1 -1
- reflex/components/chakra/forms/iconbutton.pyi +1 -1
- reflex/components/chakra/forms/input.pyi +1 -1
- reflex/components/chakra/forms/numberinput.pyi +1 -1
- reflex/components/chakra/forms/password.pyi +1 -1
- reflex/components/chakra/forms/pininput.pyi +1 -1
- reflex/components/chakra/forms/radio.pyi +1 -1
- reflex/components/chakra/forms/rangeslider.pyi +1 -1
- reflex/components/chakra/forms/select.pyi +1 -1
- reflex/components/chakra/forms/slider.pyi +1 -1
- reflex/components/chakra/forms/switch.pyi +1 -1
- reflex/components/chakra/forms/textarea.pyi +1 -1
- reflex/components/chakra/forms/time_picker.pyi +1 -1
- reflex/components/chakra/layout/aspect_ratio.pyi +1 -1
- reflex/components/chakra/layout/box.pyi +1 -1
- reflex/components/chakra/layout/card.pyi +1 -1
- reflex/components/chakra/layout/center.pyi +1 -1
- reflex/components/chakra/layout/container.pyi +1 -1
- reflex/components/chakra/layout/flex.pyi +1 -1
- reflex/components/chakra/layout/grid.pyi +1 -1
- reflex/components/chakra/layout/spacer.pyi +1 -1
- reflex/components/chakra/layout/stack.pyi +1 -1
- reflex/components/chakra/layout/wrap.pyi +1 -1
- reflex/components/chakra/media/avatar.pyi +1 -1
- reflex/components/chakra/media/icon.pyi +1 -1
- reflex/components/chakra/media/image.pyi +1 -1
- reflex/components/chakra/navigation/breadcrumb.pyi +1 -1
- reflex/components/chakra/navigation/link.pyi +1 -1
- reflex/components/chakra/navigation/linkoverlay.pyi +1 -1
- reflex/components/chakra/navigation/stepper.pyi +1 -1
- reflex/components/chakra/overlay/alertdialog.pyi +1 -1
- reflex/components/chakra/overlay/drawer.pyi +1 -1
- reflex/components/chakra/overlay/menu.pyi +1 -1
- reflex/components/chakra/overlay/modal.pyi +1 -1
- reflex/components/chakra/overlay/popover.pyi +1 -1
- reflex/components/chakra/overlay/tooltip.pyi +1 -1
- reflex/components/chakra/typography/heading.pyi +1 -1
- reflex/components/chakra/typography/highlight.pyi +1 -1
- reflex/components/chakra/typography/span.pyi +1 -1
- reflex/components/chakra/typography/text.pyi +1 -1
- reflex/components/component.py +82 -30
- reflex/components/core/banner.py +1 -2
- reflex/components/core/banner.pyi +1 -2
- reflex/components/core/client_side_routing.pyi +1 -1
- reflex/components/core/cond.py +1 -1
- reflex/components/core/debounce.pyi +1 -1
- reflex/components/core/html.pyi +1 -1
- reflex/components/core/responsive.py +1 -1
- reflex/components/core/upload.pyi +1 -1
- reflex/components/datadisplay/code.py +17 -9
- reflex/components/datadisplay/code.pyi +3 -1
- reflex/components/datadisplay/dataeditor.pyi +1 -1
- reflex/components/el/element.pyi +1 -1
- reflex/components/el/elements/base.pyi +1 -1
- reflex/components/el/elements/forms.py +78 -1
- reflex/components/el/elements/forms.pyi +10 -2
- reflex/components/el/elements/inline.pyi +1 -1
- reflex/components/el/elements/media.pyi +1 -1
- reflex/components/el/elements/metadata.pyi +1 -1
- reflex/components/el/elements/other.pyi +1 -1
- reflex/components/el/elements/scripts.pyi +1 -1
- reflex/components/el/elements/sectioning.pyi +1 -1
- reflex/components/el/elements/tables.pyi +1 -1
- reflex/components/el/elements/typography.pyi +1 -1
- reflex/components/gridjs/datatable.pyi +1 -1
- reflex/components/lucide/icon.py +275 -115
- reflex/components/lucide/icon.pyi +259 -114
- reflex/components/markdown/markdown.pyi +1 -1
- reflex/components/moment/moment.pyi +1 -1
- reflex/components/next/base.pyi +1 -1
- reflex/components/next/image.pyi +1 -1
- reflex/components/next/link.pyi +1 -1
- reflex/components/next/video.pyi +1 -1
- reflex/components/plotly/plotly.pyi +1 -1
- reflex/components/radix/primitives/accordion.pyi +1 -1
- reflex/components/radix/primitives/base.pyi +1 -1
- reflex/components/radix/primitives/drawer.pyi +1 -1
- reflex/components/radix/primitives/form.pyi +1 -1
- reflex/components/radix/primitives/progress.pyi +1 -1
- reflex/components/radix/primitives/slider.pyi +1 -1
- reflex/components/radix/themes/base.pyi +1 -1
- reflex/components/radix/themes/color_mode.pyi +1 -1
- reflex/components/radix/themes/components/alert_dialog.pyi +1 -1
- reflex/components/radix/themes/components/aspect_ratio.pyi +1 -1
- reflex/components/radix/themes/components/avatar.pyi +1 -1
- reflex/components/radix/themes/components/badge.pyi +1 -1
- reflex/components/radix/themes/components/button.pyi +1 -1
- reflex/components/radix/themes/components/callout.pyi +1 -1
- reflex/components/radix/themes/components/card.pyi +1 -1
- reflex/components/radix/themes/components/checkbox.pyi +1 -1
- reflex/components/radix/themes/components/context_menu.pyi +1 -1
- reflex/components/radix/themes/components/dialog.pyi +1 -1
- reflex/components/radix/themes/components/dropdown_menu.pyi +1 -1
- reflex/components/radix/themes/components/hover_card.pyi +1 -1
- reflex/components/radix/themes/components/icon_button.pyi +1 -1
- reflex/components/radix/themes/components/inset.pyi +1 -1
- reflex/components/radix/themes/components/popover.pyi +1 -1
- reflex/components/radix/themes/components/radio_group.pyi +1 -1
- reflex/components/radix/themes/components/scroll_area.pyi +1 -1
- reflex/components/radix/themes/components/select.py +4 -1
- reflex/components/radix/themes/components/select.pyi +5 -1
- reflex/components/radix/themes/components/separator.pyi +1 -1
- reflex/components/radix/themes/components/slider.pyi +1 -1
- reflex/components/radix/themes/components/switch.pyi +1 -1
- reflex/components/radix/themes/components/table.pyi +1 -1
- reflex/components/radix/themes/components/tabs.pyi +1 -1
- reflex/components/radix/themes/components/text_area.pyi +5 -1
- reflex/components/radix/themes/components/text_field.pyi +1 -1
- reflex/components/radix/themes/components/tooltip.pyi +1 -1
- reflex/components/radix/themes/layout/__init__.py +5 -4
- reflex/components/radix/themes/layout/base.pyi +1 -1
- reflex/components/radix/themes/layout/box.pyi +1 -1
- reflex/components/radix/themes/layout/center.pyi +1 -1
- reflex/components/radix/themes/layout/container.pyi +1 -1
- reflex/components/radix/themes/layout/flex.pyi +1 -1
- reflex/components/radix/themes/layout/grid.pyi +1 -1
- reflex/components/radix/themes/layout/list.py +21 -13
- reflex/components/radix/themes/layout/list.pyi +139 -481
- reflex/components/radix/themes/layout/section.pyi +1 -1
- reflex/components/radix/themes/layout/spacer.pyi +1 -1
- reflex/components/radix/themes/layout/stack.pyi +1 -1
- reflex/components/radix/themes/typography/blockquote.pyi +1 -1
- reflex/components/radix/themes/typography/code.pyi +1 -1
- reflex/components/radix/themes/typography/heading.pyi +1 -1
- reflex/components/radix/themes/typography/link.pyi +1 -1
- reflex/components/radix/themes/typography/text.pyi +1 -1
- reflex/components/react_player/audio.pyi +1 -1
- reflex/components/react_player/react_player.pyi +1 -1
- reflex/components/react_player/video.pyi +1 -1
- reflex/components/recharts/cartesian.pyi +1 -1
- reflex/components/recharts/charts.pyi +1 -1
- reflex/components/recharts/general.pyi +1 -1
- reflex/components/recharts/polar.pyi +1 -1
- reflex/components/recharts/recharts.pyi +1 -1
- reflex/components/suneditor/editor.pyi +1 -1
- reflex/config.py +12 -2
- reflex/custom_components/custom_components.py +305 -21
- reflex/event.py +36 -46
- reflex/reflex.py +19 -13
- reflex/state.py +184 -39
- reflex/testing.py +15 -11
- reflex/utils/console.py +15 -7
- reflex/utils/exec.py +9 -0
- reflex/utils/prerequisites.py +12 -1
- reflex/utils/processes.py +8 -25
- reflex/utils/pyi_generator.py +842 -0
- reflex/utils/telemetry.py +18 -1
- reflex/utils/types.py +14 -2
- reflex/vars.py +33 -3
- {reflex-0.4.5a1.dist-info → reflex-0.4.6.dist-info}/METADATA +31 -29
- {reflex-0.4.5a1.dist-info → reflex-0.4.6.dist-info}/RECORD +198 -198
- reflex/page.pyi +0 -17
- {reflex-0.4.5a1.dist-info → reflex-0.4.6.dist-info}/LICENSE +0 -0
- {reflex-0.4.5a1.dist-info → reflex-0.4.6.dist-info}/WHEEL +0 -0
- {reflex-0.4.5a1.dist-info → reflex-0.4.6.dist-info}/entry_points.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Stub file for reflex/components/radix/themes/layout/list.py"""
|
|
2
2
|
# ------------------- DO NOT EDIT ----------------------
|
|
3
|
-
# This file was generated by `
|
|
3
|
+
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
4
4
|
# ------------------------------------------------------
|
|
5
5
|
|
|
6
6
|
from typing import Any, Dict, Literal, Optional, Union, overload
|
|
@@ -10,13 +10,11 @@ from reflex.style import Style
|
|
|
10
10
|
from typing import Iterable, Literal, Optional, Union
|
|
11
11
|
from reflex.components.component import Component, ComponentNamespace
|
|
12
12
|
from reflex.components.core.foreach import Foreach
|
|
13
|
-
from reflex.components.el.elements.typography import Li
|
|
13
|
+
from reflex.components.el.elements.typography import Li, Ol, Ul
|
|
14
14
|
from reflex.components.lucide.icon import Icon
|
|
15
15
|
from reflex.components.radix.themes.typography.text import Text
|
|
16
16
|
from reflex.style import Style
|
|
17
17
|
from reflex.vars import Var
|
|
18
|
-
from .base import LayoutComponent
|
|
19
|
-
from .flex import Flex
|
|
20
18
|
|
|
21
19
|
LiteralListStyleTypeUnordered = Literal["none", "disc", "circle", "square"]
|
|
22
20
|
LiteralListStyleTypeOrdered = Literal[
|
|
@@ -36,7 +34,7 @@ LiteralListStyleTypeOrdered = Literal[
|
|
|
36
34
|
"katakana",
|
|
37
35
|
]
|
|
38
36
|
|
|
39
|
-
class BaseList(
|
|
37
|
+
class BaseList(Component):
|
|
40
38
|
@overload
|
|
41
39
|
@classmethod
|
|
42
40
|
def create( # type: ignore
|
|
@@ -87,163 +85,6 @@ class BaseList(Flex, LayoutComponent):
|
|
|
87
85
|
],
|
|
88
86
|
]
|
|
89
87
|
] = None,
|
|
90
|
-
as_child: Optional[Union[Var[bool], bool]] = None,
|
|
91
|
-
direction: Optional[
|
|
92
|
-
Union[
|
|
93
|
-
Var[Literal["row", "column", "row-reverse", "column-reverse"]],
|
|
94
|
-
Literal["row", "column", "row-reverse", "column-reverse"],
|
|
95
|
-
]
|
|
96
|
-
] = None,
|
|
97
|
-
align: Optional[
|
|
98
|
-
Union[
|
|
99
|
-
Var[Literal["start", "center", "end", "baseline", "stretch"]],
|
|
100
|
-
Literal["start", "center", "end", "baseline", "stretch"],
|
|
101
|
-
]
|
|
102
|
-
] = None,
|
|
103
|
-
justify: Optional[
|
|
104
|
-
Union[
|
|
105
|
-
Var[Literal["start", "center", "end", "between"]],
|
|
106
|
-
Literal["start", "center", "end", "between"],
|
|
107
|
-
]
|
|
108
|
-
] = None,
|
|
109
|
-
wrap: Optional[
|
|
110
|
-
Union[
|
|
111
|
-
Var[Literal["nowrap", "wrap", "wrap-reverse"]],
|
|
112
|
-
Literal["nowrap", "wrap", "wrap-reverse"],
|
|
113
|
-
]
|
|
114
|
-
] = None,
|
|
115
|
-
spacing: Optional[
|
|
116
|
-
Union[
|
|
117
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
118
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
119
|
-
]
|
|
120
|
-
] = None,
|
|
121
|
-
access_key: Optional[
|
|
122
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
123
|
-
] = None,
|
|
124
|
-
auto_capitalize: Optional[
|
|
125
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
126
|
-
] = None,
|
|
127
|
-
content_editable: Optional[
|
|
128
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
129
|
-
] = None,
|
|
130
|
-
context_menu: Optional[
|
|
131
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
132
|
-
] = None,
|
|
133
|
-
dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
|
|
134
|
-
draggable: Optional[
|
|
135
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
136
|
-
] = None,
|
|
137
|
-
enter_key_hint: Optional[
|
|
138
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
139
|
-
] = None,
|
|
140
|
-
hidden: Optional[
|
|
141
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
142
|
-
] = None,
|
|
143
|
-
input_mode: Optional[
|
|
144
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
145
|
-
] = None,
|
|
146
|
-
item_prop: Optional[
|
|
147
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
148
|
-
] = None,
|
|
149
|
-
lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
|
|
150
|
-
role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
|
|
151
|
-
slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
|
|
152
|
-
spell_check: Optional[
|
|
153
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
154
|
-
] = None,
|
|
155
|
-
tab_index: Optional[
|
|
156
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
157
|
-
] = None,
|
|
158
|
-
title: Optional[
|
|
159
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
160
|
-
] = None,
|
|
161
|
-
p: Optional[
|
|
162
|
-
Union[
|
|
163
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
164
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
165
|
-
]
|
|
166
|
-
] = None,
|
|
167
|
-
px: Optional[
|
|
168
|
-
Union[
|
|
169
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
170
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
171
|
-
]
|
|
172
|
-
] = None,
|
|
173
|
-
py: Optional[
|
|
174
|
-
Union[
|
|
175
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
176
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
177
|
-
]
|
|
178
|
-
] = None,
|
|
179
|
-
pt: Optional[
|
|
180
|
-
Union[
|
|
181
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
182
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
183
|
-
]
|
|
184
|
-
] = None,
|
|
185
|
-
pr: Optional[
|
|
186
|
-
Union[
|
|
187
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
188
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
189
|
-
]
|
|
190
|
-
] = None,
|
|
191
|
-
pb: Optional[
|
|
192
|
-
Union[
|
|
193
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
194
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
195
|
-
]
|
|
196
|
-
] = None,
|
|
197
|
-
pl: Optional[
|
|
198
|
-
Union[
|
|
199
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
200
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
201
|
-
]
|
|
202
|
-
] = None,
|
|
203
|
-
shrink: Optional[Union[Var[Literal["0", "1"]], Literal["0", "1"]]] = None,
|
|
204
|
-
grow: Optional[Union[Var[Literal["0", "1"]], Literal["0", "1"]]] = None,
|
|
205
|
-
m: Optional[
|
|
206
|
-
Union[
|
|
207
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
208
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
209
|
-
]
|
|
210
|
-
] = None,
|
|
211
|
-
mx: Optional[
|
|
212
|
-
Union[
|
|
213
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
214
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
215
|
-
]
|
|
216
|
-
] = None,
|
|
217
|
-
my: Optional[
|
|
218
|
-
Union[
|
|
219
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
220
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
221
|
-
]
|
|
222
|
-
] = None,
|
|
223
|
-
mt: Optional[
|
|
224
|
-
Union[
|
|
225
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
226
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
227
|
-
]
|
|
228
|
-
] = None,
|
|
229
|
-
mr: Optional[
|
|
230
|
-
Union[
|
|
231
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
232
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
233
|
-
]
|
|
234
|
-
] = None,
|
|
235
|
-
mb: Optional[
|
|
236
|
-
Union[
|
|
237
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
238
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
239
|
-
]
|
|
240
|
-
] = None,
|
|
241
|
-
ml: Optional[
|
|
242
|
-
Union[
|
|
243
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
244
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
245
|
-
]
|
|
246
|
-
] = None,
|
|
247
88
|
style: Optional[Style] = None,
|
|
248
89
|
key: Optional[Any] = None,
|
|
249
90
|
id: Optional[Any] = None,
|
|
@@ -303,44 +144,6 @@ class BaseList(Flex, LayoutComponent):
|
|
|
303
144
|
*children: The children of the component.
|
|
304
145
|
items: A list of items to add to the list.
|
|
305
146
|
list_style_type: The style of the list. Default to "none".
|
|
306
|
-
as_child: Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
307
|
-
direction: How child items are layed out: "row" | "column" | "row-reverse" | "column-reverse"
|
|
308
|
-
align: Alignment of children along the main axis: "start" | "center" | "end" | "baseline" | "stretch"
|
|
309
|
-
justify: Alignment of children along the cross axis: "start" | "center" | "end" | "between"
|
|
310
|
-
wrap: Whether children should wrap when they reach the end of their container: "nowrap" | "wrap" | "wrap-reverse"
|
|
311
|
-
spacing: Gap between children: "0" - "9"
|
|
312
|
-
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
313
|
-
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
314
|
-
content_editable: Indicates whether the element's content is editable.
|
|
315
|
-
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
316
|
-
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
317
|
-
draggable: Defines whether the element can be dragged.
|
|
318
|
-
enter_key_hint: Hints what media types the media element is able to play.
|
|
319
|
-
hidden: Defines whether the element is hidden.
|
|
320
|
-
input_mode: Defines the type of the element.
|
|
321
|
-
item_prop: Defines the name of the element for metadata purposes.
|
|
322
|
-
lang: Defines the language used in the element.
|
|
323
|
-
role: Defines the role of the element.
|
|
324
|
-
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
325
|
-
spell_check: Defines whether the element may be checked for spelling errors.
|
|
326
|
-
tab_index: Defines the position of the current element in the tabbing order.
|
|
327
|
-
title: Defines a tooltip for the element.
|
|
328
|
-
p: Padding: "0" - "9"
|
|
329
|
-
px: Padding horizontal: "0" - "9"
|
|
330
|
-
py: Padding vertical: "0" - "9"
|
|
331
|
-
pt: Padding top: "0" - "9"
|
|
332
|
-
pr: Padding right: "0" - "9"
|
|
333
|
-
pb: Padding bottom: "0" - "9"
|
|
334
|
-
pl: Padding left: "0" - "9"
|
|
335
|
-
shrink: Whether the element will take up the smallest possible space: "0" | "1"
|
|
336
|
-
grow: Whether the element will take up the largest possible space: "0" | "1"
|
|
337
|
-
m: Margin: "0" - "9"
|
|
338
|
-
mx: Margin horizontal: "0" - "9"
|
|
339
|
-
my: Margin vertical: "0" - "9"
|
|
340
|
-
mt: Margin top: "0" - "9"
|
|
341
|
-
mr: Margin right: "0" - "9"
|
|
342
|
-
mb: Margin bottom: "0" - "9"
|
|
343
|
-
ml: Margin left: "0" - "9"
|
|
344
147
|
style: The style of the component.
|
|
345
148
|
key: A unique key for the component.
|
|
346
149
|
id: The id for the component.
|
|
@@ -355,7 +158,7 @@ class BaseList(Flex, LayoutComponent):
|
|
|
355
158
|
"""
|
|
356
159
|
...
|
|
357
160
|
|
|
358
|
-
class UnorderedList(BaseList):
|
|
161
|
+
class UnorderedList(BaseList, Ul):
|
|
359
162
|
@overload
|
|
360
163
|
@classmethod
|
|
361
164
|
def create( # type: ignore
|
|
@@ -363,37 +166,6 @@ class UnorderedList(BaseList):
|
|
|
363
166
|
*children,
|
|
364
167
|
items: Optional[Union[Var[Iterable], Iterable]] = None,
|
|
365
168
|
list_style_type: Optional[Literal["none", "disc", "circle", "square"]] = "disc",
|
|
366
|
-
as_child: Optional[Union[Var[bool], bool]] = None,
|
|
367
|
-
direction: Optional[
|
|
368
|
-
Union[
|
|
369
|
-
Var[Literal["row", "column", "row-reverse", "column-reverse"]],
|
|
370
|
-
Literal["row", "column", "row-reverse", "column-reverse"],
|
|
371
|
-
]
|
|
372
|
-
] = None,
|
|
373
|
-
align: Optional[
|
|
374
|
-
Union[
|
|
375
|
-
Var[Literal["start", "center", "end", "baseline", "stretch"]],
|
|
376
|
-
Literal["start", "center", "end", "baseline", "stretch"],
|
|
377
|
-
]
|
|
378
|
-
] = None,
|
|
379
|
-
justify: Optional[
|
|
380
|
-
Union[
|
|
381
|
-
Var[Literal["start", "center", "end", "between"]],
|
|
382
|
-
Literal["start", "center", "end", "between"],
|
|
383
|
-
]
|
|
384
|
-
] = None,
|
|
385
|
-
wrap: Optional[
|
|
386
|
-
Union[
|
|
387
|
-
Var[Literal["nowrap", "wrap", "wrap-reverse"]],
|
|
388
|
-
Literal["nowrap", "wrap", "wrap-reverse"],
|
|
389
|
-
]
|
|
390
|
-
] = None,
|
|
391
|
-
spacing: Optional[
|
|
392
|
-
Union[
|
|
393
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
394
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
395
|
-
]
|
|
396
|
-
] = None,
|
|
397
169
|
access_key: Optional[
|
|
398
170
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
399
171
|
] = None,
|
|
@@ -434,92 +206,6 @@ class UnorderedList(BaseList):
|
|
|
434
206
|
title: Optional[
|
|
435
207
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
436
208
|
] = None,
|
|
437
|
-
p: Optional[
|
|
438
|
-
Union[
|
|
439
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
440
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
441
|
-
]
|
|
442
|
-
] = None,
|
|
443
|
-
px: Optional[
|
|
444
|
-
Union[
|
|
445
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
446
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
447
|
-
]
|
|
448
|
-
] = None,
|
|
449
|
-
py: Optional[
|
|
450
|
-
Union[
|
|
451
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
452
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
453
|
-
]
|
|
454
|
-
] = None,
|
|
455
|
-
pt: Optional[
|
|
456
|
-
Union[
|
|
457
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
458
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
459
|
-
]
|
|
460
|
-
] = None,
|
|
461
|
-
pr: Optional[
|
|
462
|
-
Union[
|
|
463
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
464
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
465
|
-
]
|
|
466
|
-
] = None,
|
|
467
|
-
pb: Optional[
|
|
468
|
-
Union[
|
|
469
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
470
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
471
|
-
]
|
|
472
|
-
] = None,
|
|
473
|
-
pl: Optional[
|
|
474
|
-
Union[
|
|
475
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
476
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
477
|
-
]
|
|
478
|
-
] = None,
|
|
479
|
-
shrink: Optional[Union[Var[Literal["0", "1"]], Literal["0", "1"]]] = None,
|
|
480
|
-
grow: Optional[Union[Var[Literal["0", "1"]], Literal["0", "1"]]] = None,
|
|
481
|
-
m: Optional[
|
|
482
|
-
Union[
|
|
483
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
484
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
485
|
-
]
|
|
486
|
-
] = None,
|
|
487
|
-
mx: Optional[
|
|
488
|
-
Union[
|
|
489
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
490
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
491
|
-
]
|
|
492
|
-
] = None,
|
|
493
|
-
my: Optional[
|
|
494
|
-
Union[
|
|
495
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
496
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
497
|
-
]
|
|
498
|
-
] = None,
|
|
499
|
-
mt: Optional[
|
|
500
|
-
Union[
|
|
501
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
502
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
503
|
-
]
|
|
504
|
-
] = None,
|
|
505
|
-
mr: Optional[
|
|
506
|
-
Union[
|
|
507
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
508
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
509
|
-
]
|
|
510
|
-
] = None,
|
|
511
|
-
mb: Optional[
|
|
512
|
-
Union[
|
|
513
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
514
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
515
|
-
]
|
|
516
|
-
] = None,
|
|
517
|
-
ml: Optional[
|
|
518
|
-
Union[
|
|
519
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
520
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
521
|
-
]
|
|
522
|
-
] = None,
|
|
523
209
|
style: Optional[Style] = None,
|
|
524
210
|
key: Optional[Any] = None,
|
|
525
211
|
id: Optional[Any] = None,
|
|
@@ -579,12 +265,6 @@ class UnorderedList(BaseList):
|
|
|
579
265
|
*children: The children of the component.
|
|
580
266
|
items: A list of items to add to the list.
|
|
581
267
|
list_style_type: The style of the list.
|
|
582
|
-
as_child: Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
583
|
-
direction: How child items are layed out: "row" | "column" | "row-reverse" | "column-reverse"
|
|
584
|
-
align: Alignment of children along the main axis: "start" | "center" | "end" | "baseline" | "stretch"
|
|
585
|
-
justify: Alignment of children along the cross axis: "start" | "center" | "end" | "between"
|
|
586
|
-
wrap: Whether children should wrap when they reach the end of their container: "nowrap" | "wrap" | "wrap-reverse"
|
|
587
|
-
spacing: Gap between children: "0" - "9"
|
|
588
268
|
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
589
269
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
590
270
|
content_editable: Indicates whether the element's content is editable.
|
|
@@ -601,22 +281,6 @@ class UnorderedList(BaseList):
|
|
|
601
281
|
spell_check: Defines whether the element may be checked for spelling errors.
|
|
602
282
|
tab_index: Defines the position of the current element in the tabbing order.
|
|
603
283
|
title: Defines a tooltip for the element.
|
|
604
|
-
p: Padding: "0" - "9"
|
|
605
|
-
px: Padding horizontal: "0" - "9"
|
|
606
|
-
py: Padding vertical: "0" - "9"
|
|
607
|
-
pt: Padding top: "0" - "9"
|
|
608
|
-
pr: Padding right: "0" - "9"
|
|
609
|
-
pb: Padding bottom: "0" - "9"
|
|
610
|
-
pl: Padding left: "0" - "9"
|
|
611
|
-
shrink: Whether the element will take up the smallest possible space: "0" | "1"
|
|
612
|
-
grow: Whether the element will take up the largest possible space: "0" | "1"
|
|
613
|
-
m: Margin: "0" - "9"
|
|
614
|
-
mx: Margin horizontal: "0" - "9"
|
|
615
|
-
my: Margin vertical: "0" - "9"
|
|
616
|
-
mt: Margin top: "0" - "9"
|
|
617
|
-
mr: Margin right: "0" - "9"
|
|
618
|
-
mb: Margin bottom: "0" - "9"
|
|
619
|
-
ml: Margin left: "0" - "9"
|
|
620
284
|
style: The style of the component.
|
|
621
285
|
key: A unique key for the component.
|
|
622
286
|
id: The id for the component.
|
|
@@ -631,7 +295,7 @@ class UnorderedList(BaseList):
|
|
|
631
295
|
"""
|
|
632
296
|
...
|
|
633
297
|
|
|
634
|
-
class OrderedList(BaseList):
|
|
298
|
+
class OrderedList(BaseList, Ol):
|
|
635
299
|
@overload
|
|
636
300
|
@classmethod
|
|
637
301
|
def create( # type: ignore
|
|
@@ -656,37 +320,13 @@ class OrderedList(BaseList):
|
|
|
656
320
|
"katakana",
|
|
657
321
|
]
|
|
658
322
|
] = "decimal",
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
Union[
|
|
662
|
-
Var[Literal["row", "column", "row-reverse", "column-reverse"]],
|
|
663
|
-
Literal["row", "column", "row-reverse", "column-reverse"],
|
|
664
|
-
]
|
|
665
|
-
] = None,
|
|
666
|
-
align: Optional[
|
|
667
|
-
Union[
|
|
668
|
-
Var[Literal["start", "center", "end", "baseline", "stretch"]],
|
|
669
|
-
Literal["start", "center", "end", "baseline", "stretch"],
|
|
670
|
-
]
|
|
671
|
-
] = None,
|
|
672
|
-
justify: Optional[
|
|
673
|
-
Union[
|
|
674
|
-
Var[Literal["start", "center", "end", "between"]],
|
|
675
|
-
Literal["start", "center", "end", "between"],
|
|
676
|
-
]
|
|
677
|
-
] = None,
|
|
678
|
-
wrap: Optional[
|
|
679
|
-
Union[
|
|
680
|
-
Var[Literal["nowrap", "wrap", "wrap-reverse"]],
|
|
681
|
-
Literal["nowrap", "wrap", "wrap-reverse"],
|
|
682
|
-
]
|
|
323
|
+
reversed: Optional[
|
|
324
|
+
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
683
325
|
] = None,
|
|
684
|
-
|
|
685
|
-
Union[
|
|
686
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
687
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
688
|
-
]
|
|
326
|
+
start: Optional[
|
|
327
|
+
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
689
328
|
] = None,
|
|
329
|
+
type: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
|
|
690
330
|
access_key: Optional[
|
|
691
331
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
692
332
|
] = None,
|
|
@@ -727,92 +367,6 @@ class OrderedList(BaseList):
|
|
|
727
367
|
title: Optional[
|
|
728
368
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
729
369
|
] = None,
|
|
730
|
-
p: Optional[
|
|
731
|
-
Union[
|
|
732
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
733
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
734
|
-
]
|
|
735
|
-
] = None,
|
|
736
|
-
px: Optional[
|
|
737
|
-
Union[
|
|
738
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
739
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
740
|
-
]
|
|
741
|
-
] = None,
|
|
742
|
-
py: Optional[
|
|
743
|
-
Union[
|
|
744
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
745
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
746
|
-
]
|
|
747
|
-
] = None,
|
|
748
|
-
pt: Optional[
|
|
749
|
-
Union[
|
|
750
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
751
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
752
|
-
]
|
|
753
|
-
] = None,
|
|
754
|
-
pr: Optional[
|
|
755
|
-
Union[
|
|
756
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
757
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
758
|
-
]
|
|
759
|
-
] = None,
|
|
760
|
-
pb: Optional[
|
|
761
|
-
Union[
|
|
762
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
763
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
764
|
-
]
|
|
765
|
-
] = None,
|
|
766
|
-
pl: Optional[
|
|
767
|
-
Union[
|
|
768
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
769
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
770
|
-
]
|
|
771
|
-
] = None,
|
|
772
|
-
shrink: Optional[Union[Var[Literal["0", "1"]], Literal["0", "1"]]] = None,
|
|
773
|
-
grow: Optional[Union[Var[Literal["0", "1"]], Literal["0", "1"]]] = None,
|
|
774
|
-
m: Optional[
|
|
775
|
-
Union[
|
|
776
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
777
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
778
|
-
]
|
|
779
|
-
] = None,
|
|
780
|
-
mx: Optional[
|
|
781
|
-
Union[
|
|
782
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
783
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
784
|
-
]
|
|
785
|
-
] = None,
|
|
786
|
-
my: Optional[
|
|
787
|
-
Union[
|
|
788
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
789
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
790
|
-
]
|
|
791
|
-
] = None,
|
|
792
|
-
mt: Optional[
|
|
793
|
-
Union[
|
|
794
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
795
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
796
|
-
]
|
|
797
|
-
] = None,
|
|
798
|
-
mr: Optional[
|
|
799
|
-
Union[
|
|
800
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
801
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
802
|
-
]
|
|
803
|
-
] = None,
|
|
804
|
-
mb: Optional[
|
|
805
|
-
Union[
|
|
806
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
807
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
808
|
-
]
|
|
809
|
-
] = None,
|
|
810
|
-
ml: Optional[
|
|
811
|
-
Union[
|
|
812
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
813
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
814
|
-
]
|
|
815
|
-
] = None,
|
|
816
370
|
style: Optional[Style] = None,
|
|
817
371
|
key: Optional[Any] = None,
|
|
818
372
|
id: Optional[Any] = None,
|
|
@@ -872,12 +426,9 @@ class OrderedList(BaseList):
|
|
|
872
426
|
*children: The children of the component.
|
|
873
427
|
items: A list of items to add to the list.
|
|
874
428
|
list_style_type: The style of the list.
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
justify: Alignment of children along the cross axis: "start" | "center" | "end" | "between"
|
|
879
|
-
wrap: Whether children should wrap when they reach the end of their container: "nowrap" | "wrap" | "wrap-reverse"
|
|
880
|
-
spacing: Gap between children: "0" - "9"
|
|
429
|
+
reversed: Reverses the order of the list.
|
|
430
|
+
start: Specifies the start value of the first list item in an ordered list.
|
|
431
|
+
type: Specifies the kind of marker to use in the list (letters or numbers).
|
|
881
432
|
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
882
433
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
883
434
|
content_editable: Indicates whether the element's content is editable.
|
|
@@ -894,22 +445,6 @@ class OrderedList(BaseList):
|
|
|
894
445
|
spell_check: Defines whether the element may be checked for spelling errors.
|
|
895
446
|
tab_index: Defines the position of the current element in the tabbing order.
|
|
896
447
|
title: Defines a tooltip for the element.
|
|
897
|
-
p: Padding: "0" - "9"
|
|
898
|
-
px: Padding horizontal: "0" - "9"
|
|
899
|
-
py: Padding vertical: "0" - "9"
|
|
900
|
-
pt: Padding top: "0" - "9"
|
|
901
|
-
pr: Padding right: "0" - "9"
|
|
902
|
-
pb: Padding bottom: "0" - "9"
|
|
903
|
-
pl: Padding left: "0" - "9"
|
|
904
|
-
shrink: Whether the element will take up the smallest possible space: "0" | "1"
|
|
905
|
-
grow: Whether the element will take up the largest possible space: "0" | "1"
|
|
906
|
-
m: Margin: "0" - "9"
|
|
907
|
-
mx: Margin horizontal: "0" - "9"
|
|
908
|
-
my: Margin vertical: "0" - "9"
|
|
909
|
-
mt: Margin top: "0" - "9"
|
|
910
|
-
mr: Margin right: "0" - "9"
|
|
911
|
-
mb: Margin bottom: "0" - "9"
|
|
912
|
-
ml: Margin left: "0" - "9"
|
|
913
448
|
style: The style of the component.
|
|
914
449
|
key: A unique key for the component.
|
|
915
450
|
id: The id for the component.
|
|
@@ -1058,6 +593,129 @@ class ListItem(Li):
|
|
|
1058
593
|
...
|
|
1059
594
|
|
|
1060
595
|
class List(ComponentNamespace):
|
|
1061
|
-
item = ListItem.create
|
|
1062
|
-
ordered = OrderedList.create
|
|
1063
|
-
unordered = UnorderedList.create
|
|
596
|
+
item = staticmethod(ListItem.create)
|
|
597
|
+
ordered = staticmethod(OrderedList.create)
|
|
598
|
+
unordered = staticmethod(UnorderedList.create)
|
|
599
|
+
|
|
600
|
+
@staticmethod
|
|
601
|
+
def __call__(
|
|
602
|
+
*children,
|
|
603
|
+
items: Optional[Union[Union[Var[Iterable], Iterable], Iterable]] = None,
|
|
604
|
+
list_style_type: Optional[
|
|
605
|
+
Union[
|
|
606
|
+
Var[
|
|
607
|
+
Union[
|
|
608
|
+
Literal["none", "disc", "circle", "square"],
|
|
609
|
+
Literal[
|
|
610
|
+
"none",
|
|
611
|
+
"decimal",
|
|
612
|
+
"decimal-leading-zero",
|
|
613
|
+
"lower-roman",
|
|
614
|
+
"upper-roman",
|
|
615
|
+
"lower-greek",
|
|
616
|
+
"lower-latin",
|
|
617
|
+
"upper-latin",
|
|
618
|
+
"armenian",
|
|
619
|
+
"georgian",
|
|
620
|
+
"lower-alpha",
|
|
621
|
+
"upper-alpha",
|
|
622
|
+
"hiragana",
|
|
623
|
+
"katakana",
|
|
624
|
+
],
|
|
625
|
+
]
|
|
626
|
+
],
|
|
627
|
+
Union[
|
|
628
|
+
Literal["none", "disc", "circle", "square"],
|
|
629
|
+
Literal[
|
|
630
|
+
"none",
|
|
631
|
+
"decimal",
|
|
632
|
+
"decimal-leading-zero",
|
|
633
|
+
"lower-roman",
|
|
634
|
+
"upper-roman",
|
|
635
|
+
"lower-greek",
|
|
636
|
+
"lower-latin",
|
|
637
|
+
"upper-latin",
|
|
638
|
+
"armenian",
|
|
639
|
+
"georgian",
|
|
640
|
+
"lower-alpha",
|
|
641
|
+
"upper-alpha",
|
|
642
|
+
"hiragana",
|
|
643
|
+
"katakana",
|
|
644
|
+
],
|
|
645
|
+
],
|
|
646
|
+
]
|
|
647
|
+
] = None,
|
|
648
|
+
style: Optional[Style] = None,
|
|
649
|
+
key: Optional[Any] = None,
|
|
650
|
+
id: Optional[Any] = None,
|
|
651
|
+
class_name: Optional[Any] = None,
|
|
652
|
+
autofocus: Optional[bool] = None,
|
|
653
|
+
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
654
|
+
on_blur: Optional[
|
|
655
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
656
|
+
] = None,
|
|
657
|
+
on_click: Optional[
|
|
658
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
659
|
+
] = None,
|
|
660
|
+
on_context_menu: Optional[
|
|
661
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
662
|
+
] = None,
|
|
663
|
+
on_double_click: Optional[
|
|
664
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
665
|
+
] = None,
|
|
666
|
+
on_focus: Optional[
|
|
667
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
668
|
+
] = None,
|
|
669
|
+
on_mount: Optional[
|
|
670
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
671
|
+
] = None,
|
|
672
|
+
on_mouse_down: Optional[
|
|
673
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
674
|
+
] = None,
|
|
675
|
+
on_mouse_enter: Optional[
|
|
676
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
677
|
+
] = None,
|
|
678
|
+
on_mouse_leave: Optional[
|
|
679
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
680
|
+
] = None,
|
|
681
|
+
on_mouse_move: Optional[
|
|
682
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
683
|
+
] = None,
|
|
684
|
+
on_mouse_out: Optional[
|
|
685
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
686
|
+
] = None,
|
|
687
|
+
on_mouse_over: Optional[
|
|
688
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
689
|
+
] = None,
|
|
690
|
+
on_mouse_up: Optional[
|
|
691
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
692
|
+
] = None,
|
|
693
|
+
on_scroll: Optional[
|
|
694
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
695
|
+
] = None,
|
|
696
|
+
on_unmount: Optional[
|
|
697
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
698
|
+
] = None,
|
|
699
|
+
**props
|
|
700
|
+
) -> "BaseList":
|
|
701
|
+
"""Create a list component.
|
|
702
|
+
|
|
703
|
+
Args:
|
|
704
|
+
*children: The children of the component.
|
|
705
|
+
items: A list of items to add to the list.
|
|
706
|
+
list_style_type: The style of the list. Default to "none".
|
|
707
|
+
style: The style of the component.
|
|
708
|
+
key: A unique key for the component.
|
|
709
|
+
id: The id for the component.
|
|
710
|
+
class_name: The class name for the component.
|
|
711
|
+
autofocus: Whether the component should take the focus once the page is loaded
|
|
712
|
+
custom_attrs: custom attribute
|
|
713
|
+
**props: The properties of the component.
|
|
714
|
+
|
|
715
|
+
Returns:
|
|
716
|
+
The list component.
|
|
717
|
+
|
|
718
|
+
"""
|
|
719
|
+
...
|
|
720
|
+
|
|
721
|
+
list_ns = List()
|