reflex 0.3.9a3__py3-none-any.whl → 0.3.10__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of reflex might be problematic. Click here for more details.
- reflex/__init__.py +3 -1
- reflex/__init__.pyi +3 -1
- reflex/app.py +116 -86
- reflex/compiler/compiler.py +110 -0
- reflex/compiler/utils.py +13 -12
- reflex/components/base/app_wrap.pyi +1 -0
- reflex/components/base/body.pyi +2 -0
- reflex/components/base/document.pyi +10 -0
- reflex/components/base/fragment.pyi +2 -0
- reflex/components/base/head.pyi +4 -0
- reflex/components/base/link.pyi +4 -0
- reflex/components/base/meta.pyi +8 -0
- reflex/components/base/script.pyi +2 -0
- reflex/components/chakra/base.pyi +7 -0
- reflex/components/chakra/datadisplay/badge.pyi +2 -0
- reflex/components/chakra/datadisplay/code.pyi +4 -0
- reflex/components/chakra/datadisplay/divider.pyi +2 -0
- reflex/components/chakra/datadisplay/keyboard_key.pyi +2 -0
- reflex/components/chakra/datadisplay/list.pyi +8 -0
- reflex/components/chakra/datadisplay/stat.pyi +12 -0
- reflex/components/chakra/datadisplay/table.pyi +18 -0
- reflex/components/chakra/datadisplay/tag.pyi +9 -0
- reflex/components/chakra/disclosure/accordion.pyi +10 -0
- reflex/components/chakra/disclosure/tabs.py +8 -0
- reflex/components/chakra/disclosure/tabs.pyi +10 -0
- reflex/components/chakra/disclosure/transition.pyi +12 -0
- reflex/components/chakra/disclosure/visuallyhidden.pyi +2 -0
- reflex/components/chakra/feedback/alert.pyi +8 -0
- reflex/components/chakra/feedback/circularprogress.pyi +4 -0
- reflex/components/chakra/feedback/progress.pyi +2 -0
- reflex/components/chakra/feedback/skeleton.pyi +6 -0
- reflex/components/chakra/feedback/spinner.pyi +2 -0
- reflex/components/chakra/forms/button.pyi +4 -0
- reflex/components/chakra/forms/checkbox.pyi +4 -0
- reflex/components/chakra/forms/colormodeswitch.pyi +7 -0
- reflex/components/chakra/forms/date_picker.pyi +2 -0
- reflex/components/chakra/forms/date_time_picker.pyi +2 -0
- reflex/components/chakra/forms/editable.pyi +8 -0
- reflex/components/chakra/forms/email.pyi +2 -0
- reflex/components/chakra/forms/form.pyi +10 -0
- reflex/components/chakra/forms/iconbutton.py +1 -0
- reflex/components/chakra/forms/iconbutton.pyi +2 -0
- reflex/components/chakra/forms/input.pyi +12 -0
- reflex/components/chakra/forms/numberinput.pyi +10 -0
- reflex/components/chakra/forms/password.pyi +2 -0
- reflex/components/chakra/forms/pininput.pyi +4 -0
- reflex/components/chakra/forms/radio.pyi +4 -0
- reflex/components/chakra/forms/rangeslider.pyi +8 -0
- reflex/components/chakra/forms/select.pyi +4 -0
- reflex/components/chakra/forms/slider.pyi +10 -0
- reflex/components/chakra/forms/switch.pyi +2 -0
- reflex/components/chakra/forms/textarea.pyi +2 -0
- reflex/components/chakra/forms/time_picker.pyi +2 -0
- reflex/components/chakra/layout/aspect_ratio.pyi +2 -0
- reflex/components/chakra/layout/box.pyi +2 -0
- reflex/components/chakra/layout/card.pyi +7 -0
- reflex/components/chakra/layout/center.pyi +6 -0
- reflex/components/chakra/layout/container.pyi +2 -0
- reflex/components/chakra/layout/flex.pyi +2 -0
- reflex/components/chakra/layout/grid.pyi +6 -0
- reflex/components/chakra/layout/html.pyi +2 -0
- reflex/components/chakra/layout/spacer.pyi +2 -0
- reflex/components/chakra/layout/stack.pyi +6 -0
- reflex/components/chakra/layout/wrap.pyi +4 -0
- reflex/components/chakra/media/avatar.pyi +6 -0
- reflex/components/chakra/media/icon.pyi +4 -0
- reflex/components/chakra/media/image.pyi +2 -0
- reflex/components/chakra/navigation/breadcrumb.pyi +8 -0
- reflex/components/chakra/navigation/link.pyi +2 -0
- reflex/components/chakra/navigation/linkoverlay.pyi +4 -0
- reflex/components/chakra/navigation/stepper.pyi +18 -0
- reflex/components/chakra/overlay/alertdialog.pyi +14 -0
- reflex/components/chakra/overlay/drawer.pyi +14 -0
- reflex/components/chakra/overlay/menu.pyi +16 -0
- reflex/components/chakra/overlay/modal.pyi +14 -0
- reflex/components/chakra/overlay/popover.pyi +18 -0
- reflex/components/chakra/overlay/tooltip.pyi +2 -0
- reflex/components/chakra/typography/heading.pyi +2 -0
- reflex/components/chakra/typography/highlight.pyi +2 -0
- reflex/components/chakra/typography/span.pyi +2 -0
- reflex/components/chakra/typography/text.pyi +2 -0
- reflex/components/component.py +41 -3
- reflex/components/core/__init__.py +2 -0
- reflex/components/core/banner.pyi +3 -0
- reflex/components/core/client_side_routing.pyi +4 -0
- reflex/components/core/colors.py +21 -0
- reflex/components/core/cond.py +11 -2
- reflex/components/core/debounce.pyi +1 -0
- reflex/components/core/layout/__init__.py +1 -0
- reflex/components/core/match.py +44 -18
- reflex/components/core/upload.py +8 -2
- reflex/components/core/upload.pyi +7 -1
- reflex/components/datadisplay/dataeditor.pyi +2 -0
- reflex/components/el/element.pyi +2 -0
- reflex/components/el/elements/base.pyi +2 -0
- reflex/components/el/elements/forms.py +3 -0
- reflex/components/el/elements/forms.pyi +32 -0
- reflex/components/el/elements/inline.pyi +56 -0
- reflex/components/el/elements/media.pyi +28 -0
- reflex/components/el/elements/metadata.pyi +10 -0
- reflex/components/el/elements/other.pyi +14 -0
- reflex/components/el/elements/scripts.pyi +6 -0
- reflex/components/el/elements/sectioning.pyi +30 -0
- reflex/components/el/elements/tables.pyi +20 -0
- reflex/components/el/elements/typography.pyi +30 -0
- reflex/components/gridjs/datatable.pyi +4 -0
- reflex/components/lucide/__init__.py +5 -0
- reflex/components/lucide/icon.py +1484 -0
- reflex/components/lucide/icon.pyi +1594 -0
- reflex/components/markdown/markdown.pyi +2 -0
- reflex/components/moment/moment.pyi +2 -0
- reflex/components/next/base.pyi +2 -0
- reflex/components/next/image.pyi +2 -0
- reflex/components/next/link.pyi +2 -0
- reflex/components/next/video.pyi +2 -0
- reflex/components/plotly/plotly.pyi +4 -0
- reflex/components/radix/primitives/__init__.py +10 -0
- reflex/components/radix/primitives/accordion.py +51 -32
- reflex/components/radix/primitives/accordion.pyi +16 -3
- reflex/components/radix/primitives/base.pyi +4 -0
- reflex/components/radix/primitives/drawer.py +240 -0
- reflex/components/radix/primitives/drawer.pyi +814 -0
- reflex/components/radix/primitives/form.py +40 -7
- reflex/components/radix/primitives/form.pyi +32 -10
- reflex/components/radix/primitives/progress.py +2 -2
- reflex/components/radix/primitives/progress.pyi +6 -0
- reflex/components/radix/primitives/slider.pyi +10 -0
- reflex/components/radix/themes/base.py +46 -12
- reflex/components/radix/themes/base.pyi +23 -9
- reflex/components/radix/themes/components/__init__.py +4 -2
- reflex/components/radix/themes/components/alertdialog.py +13 -12
- reflex/components/radix/themes/components/alertdialog.pyi +23 -351
- reflex/components/radix/themes/components/aspectratio.py +2 -5
- reflex/components/radix/themes/components/aspectratio.pyi +4 -51
- reflex/components/radix/themes/components/avatar.py +3 -4
- reflex/components/radix/themes/components/avatar.pyi +4 -57
- reflex/components/radix/themes/components/badge.py +3 -4
- reflex/components/radix/themes/components/badge.pyi +4 -56
- reflex/components/radix/themes/components/button.py +2 -3
- reflex/components/radix/themes/components/button.pyi +3 -51
- reflex/components/radix/themes/components/callout.py +9 -12
- reflex/components/radix/themes/components/callout.pyi +24 -217
- reflex/components/radix/themes/components/card.py +1 -2
- reflex/components/radix/themes/components/card.pyi +4 -51
- reflex/components/radix/themes/components/checkbox.py +11 -5
- reflex/components/radix/themes/components/checkbox.pyi +13 -112
- reflex/components/radix/themes/components/contextmenu.py +21 -21
- reflex/components/radix/themes/components/contextmenu.pyi +26 -401
- reflex/components/radix/themes/components/dialog.py +13 -16
- reflex/components/radix/themes/components/dialog.pyi +20 -303
- reflex/components/radix/themes/components/dropdownmenu.py +196 -32
- reflex/components/radix/themes/components/dropdownmenu.pyi +147 -389
- reflex/components/radix/themes/components/hovercard.py +5 -5
- reflex/components/radix/themes/components/hovercard.pyi +11 -151
- reflex/components/radix/themes/components/iconbutton.py +56 -4
- reflex/components/radix/themes/components/iconbutton.pyi +25 -71
- reflex/components/radix/themes/components/icons.pyi +4 -0
- reflex/components/radix/themes/components/inset.py +1 -2
- reflex/components/radix/themes/components/inset.pyi +4 -51
- reflex/components/radix/themes/components/popover.py +12 -12
- reflex/components/radix/themes/components/popover.pyi +14 -201
- reflex/components/radix/themes/components/radiogroup.py +47 -20
- reflex/components/radix/themes/components/radiogroup.pyi +26 -171
- reflex/components/radix/themes/components/scrollarea.py +2 -3
- reflex/components/radix/themes/components/scrollarea.pyi +4 -51
- reflex/components/radix/themes/components/select.py +28 -25
- reflex/components/radix/themes/components/select.pyi +43 -419
- reflex/components/radix/themes/components/separator.py +4 -5
- reflex/components/radix/themes/components/separator.pyi +5 -52
- reflex/components/radix/themes/components/slider.py +8 -5
- reflex/components/radix/themes/components/slider.pyi +9 -60
- reflex/components/radix/themes/components/switch.py +6 -4
- reflex/components/radix/themes/components/switch.pyi +5 -53
- reflex/components/radix/themes/components/table.py +14 -15
- reflex/components/radix/themes/components/table.pyi +22 -351
- reflex/components/radix/themes/components/tabs.py +9 -6
- reflex/components/radix/themes/components/tabs.pyi +18 -205
- reflex/components/radix/themes/components/textarea.py +2 -3
- reflex/components/radix/themes/components/textarea.pyi +10 -53
- reflex/components/radix/themes/components/textfield.py +105 -4
- reflex/components/radix/themes/components/textfield.pyi +200 -108
- reflex/components/radix/themes/components/tooltip.py +102 -2
- reflex/components/radix/themes/components/tooltip.pyi +66 -110
- reflex/components/radix/themes/layout/__init__.py +7 -0
- reflex/components/radix/themes/layout/base.pyi +2 -0
- reflex/components/radix/themes/layout/box.py +2 -2
- reflex/components/radix/themes/layout/box.pyi +4 -104
- reflex/components/radix/themes/layout/center.py +19 -0
- reflex/components/radix/themes/layout/center.pyi +261 -0
- reflex/components/radix/themes/layout/container.py +2 -2
- reflex/components/radix/themes/layout/container.pyi +4 -104
- reflex/components/radix/themes/layout/flex.py +2 -2
- reflex/components/radix/themes/layout/flex.pyi +4 -105
- reflex/components/radix/themes/layout/grid.pyi +2 -0
- reflex/components/radix/themes/layout/section.py +2 -2
- reflex/components/radix/themes/layout/section.pyi +4 -104
- reflex/components/radix/themes/layout/spacer.py +19 -0
- reflex/components/radix/themes/layout/spacer.pyi +261 -0
- reflex/components/radix/themes/layout/stack.py +60 -0
- reflex/components/radix/themes/layout/stack.pyi +537 -0
- reflex/components/radix/themes/typography/blockquote.py +2 -3
- reflex/components/radix/themes/typography/blockquote.pyi +4 -51
- reflex/components/radix/themes/typography/code.py +2 -3
- reflex/components/radix/themes/typography/code.pyi +4 -56
- reflex/components/radix/themes/typography/em.py +1 -2
- reflex/components/radix/themes/typography/em.pyi +4 -51
- reflex/components/radix/themes/typography/heading.py +2 -3
- reflex/components/radix/themes/typography/heading.pyi +4 -51
- reflex/components/radix/themes/typography/kbd.py +1 -2
- reflex/components/radix/themes/typography/kbd.pyi +4 -51
- reflex/components/radix/themes/typography/link.py +34 -3
- reflex/components/radix/themes/typography/link.pyi +41 -86
- reflex/components/radix/themes/typography/quote.py +1 -2
- reflex/components/radix/themes/typography/quote.pyi +4 -51
- reflex/components/radix/themes/typography/strong.py +1 -2
- reflex/components/radix/themes/typography/strong.pyi +4 -51
- reflex/components/radix/themes/typography/text.py +2 -3
- reflex/components/radix/themes/typography/text.pyi +4 -51
- reflex/components/radix/themes/typography.py +10 -11
- reflex/components/react_player/audio.pyi +2 -0
- reflex/components/react_player/react_player.pyi +2 -0
- reflex/components/react_player/video.pyi +2 -0
- reflex/components/recharts/cartesian.pyi +38 -0
- reflex/components/recharts/charts.pyi +22 -0
- reflex/components/recharts/general.pyi +10 -0
- reflex/components/recharts/polar.pyi +12 -0
- reflex/components/recharts/recharts.pyi +4 -0
- reflex/components/suneditor/editor.pyi +2 -0
- reflex/components/tags/tag.py +1 -1
- reflex/constants/base.py +5 -1
- reflex/constants/colors.py +80 -0
- reflex/constants/event.py +10 -1
- reflex/page.py +1 -1
- reflex/reflex.py +4 -0
- reflex/style.py +8 -3
- reflex/testing.py +21 -10
- reflex/utils/format.py +13 -9
- reflex/utils/prerequisites.py +41 -3
- reflex/utils/serializers.py +14 -0
- reflex/utils/telemetry.py +8 -2
- reflex/utils/types.py +36 -2
- reflex/vars.py +53 -18
- {reflex-0.3.9a3.dist-info → reflex-0.3.10.dist-info}/METADATA +1 -2
- {reflex-0.3.9a3.dist-info → reflex-0.3.10.dist-info}/RECORD +247 -233
- {reflex-0.3.9a3.dist-info → reflex-0.3.10.dist-info}/WHEEL +1 -1
- {reflex-0.3.9a3.dist-info → reflex-0.3.10.dist-info}/LICENSE +0 -0
- {reflex-0.3.9a3.dist-info → reflex-0.3.10.dist-info}/entry_points.txt +0 -0
|
@@ -10,9 +10,9 @@ from reflex.style import Style
|
|
|
10
10
|
from typing import Literal, Union
|
|
11
11
|
from reflex import el
|
|
12
12
|
from reflex.vars import Var
|
|
13
|
-
from ..base import
|
|
13
|
+
from ..base import RadixThemesComponent
|
|
14
14
|
|
|
15
|
-
class TableRoot(el.Table,
|
|
15
|
+
class TableRoot(el.Table, RadixThemesComponent):
|
|
16
16
|
@overload
|
|
17
17
|
@classmethod
|
|
18
18
|
def create( # type: ignore
|
|
@@ -145,53 +145,12 @@ class TableRoot(el.Table, CommonMarginProps, RadixThemesComponent):
|
|
|
145
145
|
translate: Optional[
|
|
146
146
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
147
147
|
] = None,
|
|
148
|
-
m: Optional[
|
|
149
|
-
Union[
|
|
150
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
151
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
152
|
-
]
|
|
153
|
-
] = None,
|
|
154
|
-
mx: Optional[
|
|
155
|
-
Union[
|
|
156
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
157
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
158
|
-
]
|
|
159
|
-
] = None,
|
|
160
|
-
my: Optional[
|
|
161
|
-
Union[
|
|
162
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
163
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
164
|
-
]
|
|
165
|
-
] = None,
|
|
166
|
-
mt: Optional[
|
|
167
|
-
Union[
|
|
168
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
169
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
170
|
-
]
|
|
171
|
-
] = None,
|
|
172
|
-
mr: Optional[
|
|
173
|
-
Union[
|
|
174
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
175
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
176
|
-
]
|
|
177
|
-
] = None,
|
|
178
|
-
mb: Optional[
|
|
179
|
-
Union[
|
|
180
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
181
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
182
|
-
]
|
|
183
|
-
] = None,
|
|
184
|
-
ml: Optional[
|
|
185
|
-
Union[
|
|
186
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
187
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
188
|
-
]
|
|
189
|
-
] = None,
|
|
190
148
|
style: Optional[Style] = None,
|
|
191
149
|
key: Optional[Any] = None,
|
|
192
150
|
id: Optional[Any] = None,
|
|
193
151
|
class_name: Optional[Any] = None,
|
|
194
152
|
autofocus: Optional[bool] = None,
|
|
153
|
+
_rename_props: Optional[Dict[str, str]] = None,
|
|
195
154
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
196
155
|
on_blur: Optional[
|
|
197
156
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
@@ -273,18 +232,12 @@ class TableRoot(el.Table, CommonMarginProps, RadixThemesComponent):
|
|
|
273
232
|
tab_index: Defines the position of the current element in the tabbing order.
|
|
274
233
|
title: Defines a tooltip for the element.
|
|
275
234
|
translate: Specifies whether the content of an element should be translated or not.
|
|
276
|
-
m: Margin: "0" - "9"
|
|
277
|
-
mx: Margin horizontal: "0" - "9"
|
|
278
|
-
my: Margin vertical: "0" - "9"
|
|
279
|
-
mt: Margin top: "0" - "9"
|
|
280
|
-
mr: Margin right: "0" - "9"
|
|
281
|
-
mb: Margin bottom: "0" - "9"
|
|
282
|
-
ml: Margin left: "0" - "9"
|
|
283
235
|
style: The style of the component.
|
|
284
236
|
key: A unique key for the component.
|
|
285
237
|
id: The id for the component.
|
|
286
238
|
class_name: The class name for the component.
|
|
287
239
|
autofocus: Whether the component should take the focus once the page is loaded
|
|
240
|
+
_rename_props: props to change the name of
|
|
288
241
|
custom_attrs: custom attribute
|
|
289
242
|
**props: Component properties.
|
|
290
243
|
|
|
@@ -293,7 +246,7 @@ class TableRoot(el.Table, CommonMarginProps, RadixThemesComponent):
|
|
|
293
246
|
"""
|
|
294
247
|
...
|
|
295
248
|
|
|
296
|
-
class TableHeader(el.Thead,
|
|
249
|
+
class TableHeader(el.Thead, RadixThemesComponent):
|
|
297
250
|
@overload
|
|
298
251
|
@classmethod
|
|
299
252
|
def create( # type: ignore
|
|
@@ -408,53 +361,12 @@ class TableHeader(el.Thead, CommonMarginProps, RadixThemesComponent):
|
|
|
408
361
|
translate: Optional[
|
|
409
362
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
410
363
|
] = None,
|
|
411
|
-
m: Optional[
|
|
412
|
-
Union[
|
|
413
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
414
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
415
|
-
]
|
|
416
|
-
] = None,
|
|
417
|
-
mx: Optional[
|
|
418
|
-
Union[
|
|
419
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
420
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
421
|
-
]
|
|
422
|
-
] = None,
|
|
423
|
-
my: Optional[
|
|
424
|
-
Union[
|
|
425
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
426
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
427
|
-
]
|
|
428
|
-
] = None,
|
|
429
|
-
mt: Optional[
|
|
430
|
-
Union[
|
|
431
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
432
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
433
|
-
]
|
|
434
|
-
] = None,
|
|
435
|
-
mr: Optional[
|
|
436
|
-
Union[
|
|
437
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
438
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
439
|
-
]
|
|
440
|
-
] = None,
|
|
441
|
-
mb: Optional[
|
|
442
|
-
Union[
|
|
443
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
444
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
445
|
-
]
|
|
446
|
-
] = None,
|
|
447
|
-
ml: Optional[
|
|
448
|
-
Union[
|
|
449
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
450
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
451
|
-
]
|
|
452
|
-
] = None,
|
|
453
364
|
style: Optional[Style] = None,
|
|
454
365
|
key: Optional[Any] = None,
|
|
455
366
|
id: Optional[Any] = None,
|
|
456
367
|
class_name: Optional[Any] = None,
|
|
457
368
|
autofocus: Optional[bool] = None,
|
|
369
|
+
_rename_props: Optional[Dict[str, str]] = None,
|
|
458
370
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
459
371
|
on_blur: Optional[
|
|
460
372
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
@@ -530,18 +442,12 @@ class TableHeader(el.Thead, CommonMarginProps, RadixThemesComponent):
|
|
|
530
442
|
tab_index: Defines the position of the current element in the tabbing order.
|
|
531
443
|
title: Defines a tooltip for the element.
|
|
532
444
|
translate: Specifies whether the content of an element should be translated or not.
|
|
533
|
-
m: Margin: "0" - "9"
|
|
534
|
-
mx: Margin horizontal: "0" - "9"
|
|
535
|
-
my: Margin vertical: "0" - "9"
|
|
536
|
-
mt: Margin top: "0" - "9"
|
|
537
|
-
mr: Margin right: "0" - "9"
|
|
538
|
-
mb: Margin bottom: "0" - "9"
|
|
539
|
-
ml: Margin left: "0" - "9"
|
|
540
445
|
style: The style of the component.
|
|
541
446
|
key: A unique key for the component.
|
|
542
447
|
id: The id for the component.
|
|
543
448
|
class_name: The class name for the component.
|
|
544
449
|
autofocus: Whether the component should take the focus once the page is loaded
|
|
450
|
+
_rename_props: props to change the name of
|
|
545
451
|
custom_attrs: custom attribute
|
|
546
452
|
**props: Component properties.
|
|
547
453
|
|
|
@@ -550,7 +456,7 @@ class TableHeader(el.Thead, CommonMarginProps, RadixThemesComponent):
|
|
|
550
456
|
"""
|
|
551
457
|
...
|
|
552
458
|
|
|
553
|
-
class TableRow(el.Tr,
|
|
459
|
+
class TableRow(el.Tr, RadixThemesComponent):
|
|
554
460
|
@overload
|
|
555
461
|
@classmethod
|
|
556
462
|
def create( # type: ignore
|
|
@@ -671,53 +577,12 @@ class TableRow(el.Tr, CommonMarginProps, RadixThemesComponent):
|
|
|
671
577
|
translate: Optional[
|
|
672
578
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
673
579
|
] = None,
|
|
674
|
-
m: Optional[
|
|
675
|
-
Union[
|
|
676
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
677
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
678
|
-
]
|
|
679
|
-
] = None,
|
|
680
|
-
mx: Optional[
|
|
681
|
-
Union[
|
|
682
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
683
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
684
|
-
]
|
|
685
|
-
] = None,
|
|
686
|
-
my: Optional[
|
|
687
|
-
Union[
|
|
688
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
689
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
690
|
-
]
|
|
691
|
-
] = None,
|
|
692
|
-
mt: Optional[
|
|
693
|
-
Union[
|
|
694
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
695
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
696
|
-
]
|
|
697
|
-
] = None,
|
|
698
|
-
mr: Optional[
|
|
699
|
-
Union[
|
|
700
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
701
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
702
|
-
]
|
|
703
|
-
] = None,
|
|
704
|
-
mb: Optional[
|
|
705
|
-
Union[
|
|
706
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
707
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
708
|
-
]
|
|
709
|
-
] = None,
|
|
710
|
-
ml: Optional[
|
|
711
|
-
Union[
|
|
712
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
713
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
714
|
-
]
|
|
715
|
-
] = None,
|
|
716
580
|
style: Optional[Style] = None,
|
|
717
581
|
key: Optional[Any] = None,
|
|
718
582
|
id: Optional[Any] = None,
|
|
719
583
|
class_name: Optional[Any] = None,
|
|
720
584
|
autofocus: Optional[bool] = None,
|
|
585
|
+
_rename_props: Optional[Dict[str, str]] = None,
|
|
721
586
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
722
587
|
on_blur: Optional[
|
|
723
588
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
@@ -794,18 +659,12 @@ class TableRow(el.Tr, CommonMarginProps, RadixThemesComponent):
|
|
|
794
659
|
tab_index: Defines the position of the current element in the tabbing order.
|
|
795
660
|
title: Defines a tooltip for the element.
|
|
796
661
|
translate: Specifies whether the content of an element should be translated or not.
|
|
797
|
-
m: Margin: "0" - "9"
|
|
798
|
-
mx: Margin horizontal: "0" - "9"
|
|
799
|
-
my: Margin vertical: "0" - "9"
|
|
800
|
-
mt: Margin top: "0" - "9"
|
|
801
|
-
mr: Margin right: "0" - "9"
|
|
802
|
-
mb: Margin bottom: "0" - "9"
|
|
803
|
-
ml: Margin left: "0" - "9"
|
|
804
662
|
style: The style of the component.
|
|
805
663
|
key: A unique key for the component.
|
|
806
664
|
id: The id for the component.
|
|
807
665
|
class_name: The class name for the component.
|
|
808
666
|
autofocus: Whether the component should take the focus once the page is loaded
|
|
667
|
+
_rename_props: props to change the name of
|
|
809
668
|
custom_attrs: custom attribute
|
|
810
669
|
**props: Component properties.
|
|
811
670
|
|
|
@@ -814,7 +673,7 @@ class TableRow(el.Tr, CommonMarginProps, RadixThemesComponent):
|
|
|
814
673
|
"""
|
|
815
674
|
...
|
|
816
675
|
|
|
817
|
-
class TableColumnHeaderCell(el.Th,
|
|
676
|
+
class TableColumnHeaderCell(el.Th, RadixThemesComponent):
|
|
818
677
|
@overload
|
|
819
678
|
@classmethod
|
|
820
679
|
def create( # type: ignore
|
|
@@ -954,53 +813,12 @@ class TableColumnHeaderCell(el.Th, CommonMarginProps, RadixThemesComponent):
|
|
|
954
813
|
translate: Optional[
|
|
955
814
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
956
815
|
] = None,
|
|
957
|
-
m: Optional[
|
|
958
|
-
Union[
|
|
959
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
960
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
961
|
-
]
|
|
962
|
-
] = None,
|
|
963
|
-
mx: Optional[
|
|
964
|
-
Union[
|
|
965
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
966
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
967
|
-
]
|
|
968
|
-
] = None,
|
|
969
|
-
my: Optional[
|
|
970
|
-
Union[
|
|
971
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
972
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
973
|
-
]
|
|
974
|
-
] = None,
|
|
975
|
-
mt: Optional[
|
|
976
|
-
Union[
|
|
977
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
978
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
979
|
-
]
|
|
980
|
-
] = None,
|
|
981
|
-
mr: Optional[
|
|
982
|
-
Union[
|
|
983
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
984
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
985
|
-
]
|
|
986
|
-
] = None,
|
|
987
|
-
mb: Optional[
|
|
988
|
-
Union[
|
|
989
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
990
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
991
|
-
]
|
|
992
|
-
] = None,
|
|
993
|
-
ml: Optional[
|
|
994
|
-
Union[
|
|
995
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
996
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
997
|
-
]
|
|
998
|
-
] = None,
|
|
999
816
|
style: Optional[Style] = None,
|
|
1000
817
|
key: Optional[Any] = None,
|
|
1001
818
|
id: Optional[Any] = None,
|
|
1002
819
|
class_name: Optional[Any] = None,
|
|
1003
820
|
autofocus: Optional[bool] = None,
|
|
821
|
+
_rename_props: Optional[Dict[str, str]] = None,
|
|
1004
822
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
1005
823
|
on_blur: Optional[
|
|
1006
824
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
@@ -1084,18 +902,12 @@ class TableColumnHeaderCell(el.Th, CommonMarginProps, RadixThemesComponent):
|
|
|
1084
902
|
tab_index: Defines the position of the current element in the tabbing order.
|
|
1085
903
|
title: Defines a tooltip for the element.
|
|
1086
904
|
translate: Specifies whether the content of an element should be translated or not.
|
|
1087
|
-
m: Margin: "0" - "9"
|
|
1088
|
-
mx: Margin horizontal: "0" - "9"
|
|
1089
|
-
my: Margin vertical: "0" - "9"
|
|
1090
|
-
mt: Margin top: "0" - "9"
|
|
1091
|
-
mr: Margin right: "0" - "9"
|
|
1092
|
-
mb: Margin bottom: "0" - "9"
|
|
1093
|
-
ml: Margin left: "0" - "9"
|
|
1094
905
|
style: The style of the component.
|
|
1095
906
|
key: A unique key for the component.
|
|
1096
907
|
id: The id for the component.
|
|
1097
908
|
class_name: The class name for the component.
|
|
1098
909
|
autofocus: Whether the component should take the focus once the page is loaded
|
|
910
|
+
_rename_props: props to change the name of
|
|
1099
911
|
custom_attrs: custom attribute
|
|
1100
912
|
**props: Component properties.
|
|
1101
913
|
|
|
@@ -1104,7 +916,7 @@ class TableColumnHeaderCell(el.Th, CommonMarginProps, RadixThemesComponent):
|
|
|
1104
916
|
"""
|
|
1105
917
|
...
|
|
1106
918
|
|
|
1107
|
-
class TableBody(el.Tbody,
|
|
919
|
+
class TableBody(el.Tbody, RadixThemesComponent):
|
|
1108
920
|
@overload
|
|
1109
921
|
@classmethod
|
|
1110
922
|
def create( # type: ignore
|
|
@@ -1222,53 +1034,12 @@ class TableBody(el.Tbody, CommonMarginProps, RadixThemesComponent):
|
|
|
1222
1034
|
translate: Optional[
|
|
1223
1035
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
1224
1036
|
] = None,
|
|
1225
|
-
m: Optional[
|
|
1226
|
-
Union[
|
|
1227
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1228
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1229
|
-
]
|
|
1230
|
-
] = None,
|
|
1231
|
-
mx: Optional[
|
|
1232
|
-
Union[
|
|
1233
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1234
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1235
|
-
]
|
|
1236
|
-
] = None,
|
|
1237
|
-
my: Optional[
|
|
1238
|
-
Union[
|
|
1239
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1240
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1241
|
-
]
|
|
1242
|
-
] = None,
|
|
1243
|
-
mt: Optional[
|
|
1244
|
-
Union[
|
|
1245
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1246
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1247
|
-
]
|
|
1248
|
-
] = None,
|
|
1249
|
-
mr: Optional[
|
|
1250
|
-
Union[
|
|
1251
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1252
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1253
|
-
]
|
|
1254
|
-
] = None,
|
|
1255
|
-
mb: Optional[
|
|
1256
|
-
Union[
|
|
1257
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1258
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1259
|
-
]
|
|
1260
|
-
] = None,
|
|
1261
|
-
ml: Optional[
|
|
1262
|
-
Union[
|
|
1263
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1264
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1265
|
-
]
|
|
1266
|
-
] = None,
|
|
1267
1037
|
style: Optional[Style] = None,
|
|
1268
1038
|
key: Optional[Any] = None,
|
|
1269
1039
|
id: Optional[Any] = None,
|
|
1270
1040
|
class_name: Optional[Any] = None,
|
|
1271
1041
|
autofocus: Optional[bool] = None,
|
|
1042
|
+
_rename_props: Optional[Dict[str, str]] = None,
|
|
1272
1043
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
1273
1044
|
on_blur: Optional[
|
|
1274
1045
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
@@ -1345,18 +1116,12 @@ class TableBody(el.Tbody, CommonMarginProps, RadixThemesComponent):
|
|
|
1345
1116
|
tab_index: Defines the position of the current element in the tabbing order.
|
|
1346
1117
|
title: Defines a tooltip for the element.
|
|
1347
1118
|
translate: Specifies whether the content of an element should be translated or not.
|
|
1348
|
-
m: Margin: "0" - "9"
|
|
1349
|
-
mx: Margin horizontal: "0" - "9"
|
|
1350
|
-
my: Margin vertical: "0" - "9"
|
|
1351
|
-
mt: Margin top: "0" - "9"
|
|
1352
|
-
mr: Margin right: "0" - "9"
|
|
1353
|
-
mb: Margin bottom: "0" - "9"
|
|
1354
|
-
ml: Margin left: "0" - "9"
|
|
1355
1119
|
style: The style of the component.
|
|
1356
1120
|
key: A unique key for the component.
|
|
1357
1121
|
id: The id for the component.
|
|
1358
1122
|
class_name: The class name for the component.
|
|
1359
1123
|
autofocus: Whether the component should take the focus once the page is loaded
|
|
1124
|
+
_rename_props: props to change the name of
|
|
1360
1125
|
custom_attrs: custom attribute
|
|
1361
1126
|
**props: Component properties.
|
|
1362
1127
|
|
|
@@ -1365,7 +1130,7 @@ class TableBody(el.Tbody, CommonMarginProps, RadixThemesComponent):
|
|
|
1365
1130
|
"""
|
|
1366
1131
|
...
|
|
1367
1132
|
|
|
1368
|
-
class TableCell(el.Td,
|
|
1133
|
+
class TableCell(el.Td, RadixThemesComponent):
|
|
1369
1134
|
@overload
|
|
1370
1135
|
@classmethod
|
|
1371
1136
|
def create( # type: ignore
|
|
@@ -1502,53 +1267,12 @@ class TableCell(el.Td, CommonMarginProps, RadixThemesComponent):
|
|
|
1502
1267
|
translate: Optional[
|
|
1503
1268
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
1504
1269
|
] = None,
|
|
1505
|
-
m: Optional[
|
|
1506
|
-
Union[
|
|
1507
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1508
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1509
|
-
]
|
|
1510
|
-
] = None,
|
|
1511
|
-
mx: Optional[
|
|
1512
|
-
Union[
|
|
1513
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1514
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1515
|
-
]
|
|
1516
|
-
] = None,
|
|
1517
|
-
my: Optional[
|
|
1518
|
-
Union[
|
|
1519
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1520
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1521
|
-
]
|
|
1522
|
-
] = None,
|
|
1523
|
-
mt: Optional[
|
|
1524
|
-
Union[
|
|
1525
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1526
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1527
|
-
]
|
|
1528
|
-
] = None,
|
|
1529
|
-
mr: Optional[
|
|
1530
|
-
Union[
|
|
1531
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1532
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1533
|
-
]
|
|
1534
|
-
] = None,
|
|
1535
|
-
mb: Optional[
|
|
1536
|
-
Union[
|
|
1537
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1538
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1539
|
-
]
|
|
1540
|
-
] = None,
|
|
1541
|
-
ml: Optional[
|
|
1542
|
-
Union[
|
|
1543
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1544
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1545
|
-
]
|
|
1546
|
-
] = None,
|
|
1547
1270
|
style: Optional[Style] = None,
|
|
1548
1271
|
key: Optional[Any] = None,
|
|
1549
1272
|
id: Optional[Any] = None,
|
|
1550
1273
|
class_name: Optional[Any] = None,
|
|
1551
1274
|
autofocus: Optional[bool] = None,
|
|
1275
|
+
_rename_props: Optional[Dict[str, str]] = None,
|
|
1552
1276
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
1553
1277
|
on_blur: Optional[
|
|
1554
1278
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
@@ -1631,18 +1355,12 @@ class TableCell(el.Td, CommonMarginProps, RadixThemesComponent):
|
|
|
1631
1355
|
tab_index: Defines the position of the current element in the tabbing order.
|
|
1632
1356
|
title: Defines a tooltip for the element.
|
|
1633
1357
|
translate: Specifies whether the content of an element should be translated or not.
|
|
1634
|
-
m: Margin: "0" - "9"
|
|
1635
|
-
mx: Margin horizontal: "0" - "9"
|
|
1636
|
-
my: Margin vertical: "0" - "9"
|
|
1637
|
-
mt: Margin top: "0" - "9"
|
|
1638
|
-
mr: Margin right: "0" - "9"
|
|
1639
|
-
mb: Margin bottom: "0" - "9"
|
|
1640
|
-
ml: Margin left: "0" - "9"
|
|
1641
1358
|
style: The style of the component.
|
|
1642
1359
|
key: A unique key for the component.
|
|
1643
1360
|
id: The id for the component.
|
|
1644
1361
|
class_name: The class name for the component.
|
|
1645
1362
|
autofocus: Whether the component should take the focus once the page is loaded
|
|
1363
|
+
_rename_props: props to change the name of
|
|
1646
1364
|
custom_attrs: custom attribute
|
|
1647
1365
|
**props: Component properties.
|
|
1648
1366
|
|
|
@@ -1651,7 +1369,7 @@ class TableCell(el.Td, CommonMarginProps, RadixThemesComponent):
|
|
|
1651
1369
|
"""
|
|
1652
1370
|
...
|
|
1653
1371
|
|
|
1654
|
-
class TableRowHeaderCell(el.Th,
|
|
1372
|
+
class TableRowHeaderCell(el.Th, RadixThemesComponent):
|
|
1655
1373
|
@overload
|
|
1656
1374
|
@classmethod
|
|
1657
1375
|
def create( # type: ignore
|
|
@@ -1791,53 +1509,12 @@ class TableRowHeaderCell(el.Th, CommonMarginProps, RadixThemesComponent):
|
|
|
1791
1509
|
translate: Optional[
|
|
1792
1510
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
1793
1511
|
] = None,
|
|
1794
|
-
m: Optional[
|
|
1795
|
-
Union[
|
|
1796
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1797
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1798
|
-
]
|
|
1799
|
-
] = None,
|
|
1800
|
-
mx: Optional[
|
|
1801
|
-
Union[
|
|
1802
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1803
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1804
|
-
]
|
|
1805
|
-
] = None,
|
|
1806
|
-
my: Optional[
|
|
1807
|
-
Union[
|
|
1808
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1809
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1810
|
-
]
|
|
1811
|
-
] = None,
|
|
1812
|
-
mt: Optional[
|
|
1813
|
-
Union[
|
|
1814
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1815
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1816
|
-
]
|
|
1817
|
-
] = None,
|
|
1818
|
-
mr: Optional[
|
|
1819
|
-
Union[
|
|
1820
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1821
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1822
|
-
]
|
|
1823
|
-
] = None,
|
|
1824
|
-
mb: Optional[
|
|
1825
|
-
Union[
|
|
1826
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1827
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1828
|
-
]
|
|
1829
|
-
] = None,
|
|
1830
|
-
ml: Optional[
|
|
1831
|
-
Union[
|
|
1832
|
-
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1833
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1834
|
-
]
|
|
1835
|
-
] = None,
|
|
1836
1512
|
style: Optional[Style] = None,
|
|
1837
1513
|
key: Optional[Any] = None,
|
|
1838
1514
|
id: Optional[Any] = None,
|
|
1839
1515
|
class_name: Optional[Any] = None,
|
|
1840
1516
|
autofocus: Optional[bool] = None,
|
|
1517
|
+
_rename_props: Optional[Dict[str, str]] = None,
|
|
1841
1518
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
1842
1519
|
on_blur: Optional[
|
|
1843
1520
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
@@ -1921,18 +1598,12 @@ class TableRowHeaderCell(el.Th, CommonMarginProps, RadixThemesComponent):
|
|
|
1921
1598
|
tab_index: Defines the position of the current element in the tabbing order.
|
|
1922
1599
|
title: Defines a tooltip for the element.
|
|
1923
1600
|
translate: Specifies whether the content of an element should be translated or not.
|
|
1924
|
-
m: Margin: "0" - "9"
|
|
1925
|
-
mx: Margin horizontal: "0" - "9"
|
|
1926
|
-
my: Margin vertical: "0" - "9"
|
|
1927
|
-
mt: Margin top: "0" - "9"
|
|
1928
|
-
mr: Margin right: "0" - "9"
|
|
1929
|
-
mb: Margin bottom: "0" - "9"
|
|
1930
|
-
ml: Margin left: "0" - "9"
|
|
1931
1601
|
style: The style of the component.
|
|
1932
1602
|
key: A unique key for the component.
|
|
1933
1603
|
id: The id for the component.
|
|
1934
1604
|
class_name: The class name for the component.
|
|
1935
1605
|
autofocus: Whether the component should take the focus once the page is loaded
|
|
1606
|
+
_rename_props: props to change the name of
|
|
1936
1607
|
custom_attrs: custom attribute
|
|
1937
1608
|
**props: Component properties.
|
|
1938
1609
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"""Interactive components provided by @radix-ui/themes."""
|
|
2
2
|
from typing import Any, Dict, Literal
|
|
3
3
|
|
|
4
|
+
from reflex.constants import EventTriggers
|
|
4
5
|
from reflex.vars import Var
|
|
5
6
|
|
|
6
7
|
from ..base import (
|
|
7
|
-
CommonMarginProps,
|
|
8
8
|
RadixThemesComponent,
|
|
9
9
|
)
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
class TabsRoot(
|
|
12
|
+
class TabsRoot(RadixThemesComponent):
|
|
13
13
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
|
14
14
|
|
|
15
15
|
tag = "Tabs.Root"
|
|
@@ -26,6 +26,9 @@ class TabsRoot(CommonMarginProps, RadixThemesComponent):
|
|
|
26
26
|
# The orientation of the tabs.
|
|
27
27
|
orientation: Var[Literal["horizontal", "vertical"]]
|
|
28
28
|
|
|
29
|
+
# Props to rename
|
|
30
|
+
_rename_props = {"onChange": "onValueChange"}
|
|
31
|
+
|
|
29
32
|
def get_event_triggers(self) -> Dict[str, Any]:
|
|
30
33
|
"""Get the events triggers signatures for the component.
|
|
31
34
|
|
|
@@ -34,17 +37,17 @@ class TabsRoot(CommonMarginProps, RadixThemesComponent):
|
|
|
34
37
|
"""
|
|
35
38
|
return {
|
|
36
39
|
**super().get_event_triggers(),
|
|
37
|
-
|
|
40
|
+
EventTriggers.ON_CHANGE: lambda e0: [e0],
|
|
38
41
|
}
|
|
39
42
|
|
|
40
43
|
|
|
41
|
-
class TabsList(
|
|
44
|
+
class TabsList(RadixThemesComponent):
|
|
42
45
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
|
43
46
|
|
|
44
47
|
tag = "Tabs.List"
|
|
45
48
|
|
|
46
49
|
|
|
47
|
-
class TabsTrigger(
|
|
50
|
+
class TabsTrigger(RadixThemesComponent):
|
|
48
51
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
|
49
52
|
|
|
50
53
|
tag = "Tabs.Trigger"
|
|
@@ -56,7 +59,7 @@ class TabsTrigger(CommonMarginProps, RadixThemesComponent):
|
|
|
56
59
|
disabled: Var[bool]
|
|
57
60
|
|
|
58
61
|
|
|
59
|
-
class TabsContent(
|
|
62
|
+
class TabsContent(RadixThemesComponent):
|
|
60
63
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
|
61
64
|
|
|
62
65
|
tag = "Tabs.Content"
|