reflex 0.8.15a2__py3-none-any.whl → 0.8.16a1__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/app.py +40 -46
- reflex/app_mixins/lifespan.py +12 -5
- reflex/base.py +1 -0
- reflex/compiler/compiler.py +4 -6
- reflex/compiler/templates.py +25 -31
- reflex/compiler/utils.py +6 -5
- reflex/components/base/body.pyi +1 -195
- reflex/components/base/link.pyi +1 -407
- reflex/components/base/meta.pyi +1 -405
- reflex/components/base/script.pyi +1 -237
- reflex/components/component.py +41 -46
- reflex/components/core/auto_scroll.pyi +1 -195
- reflex/components/core/banner.pyi +1 -391
- reflex/components/core/breakpoints.py +14 -18
- reflex/components/core/html.pyi +1 -197
- reflex/components/core/match.py +2 -2
- reflex/components/core/sticky.py +11 -15
- reflex/components/core/sticky.pyi +0 -788
- reflex/components/core/upload.py +1 -3
- reflex/components/datadisplay/code.pyi +1 -0
- reflex/components/datadisplay/dataeditor.py +4 -6
- reflex/components/datadisplay/shiki_code_block.py +106 -110
- reflex/components/dynamic.py +4 -6
- reflex/components/el/elements/__init__.py +5 -7
- reflex/components/el/elements/__init__.pyi +5 -7
- reflex/components/el/elements/base.py +1 -1
- reflex/components/el/elements/base.pyi +1 -195
- reflex/components/el/elements/forms.py +7 -9
- reflex/components/el/elements/forms.pyi +12 -3112
- reflex/components/el/elements/inline.pyi +0 -5481
- reflex/components/el/elements/media.pyi +0 -10280
- reflex/components/el/elements/metadata.pyi +1 -835
- reflex/components/el/elements/other.pyi +1 -1365
- reflex/components/el/elements/scripts.pyi +1 -625
- reflex/components/el/elements/sectioning.pyi +1 -2911
- reflex/components/el/elements/tables.pyi +1 -1973
- reflex/components/el/elements/typography.pyi +1 -3125
- reflex/components/lucide/icon.py +4 -4
- reflex/components/lucide/icon.pyi +0 -4
- reflex/components/markdown/markdown.py +15 -19
- reflex/components/markdown/markdown.pyi +1 -0
- reflex/components/moment/moment.pyi +0 -49
- reflex/components/props.py +3 -3
- reflex/components/radix/primitives/accordion.py +4 -6
- reflex/components/radix/primitives/accordion.pyi +0 -14
- reflex/components/radix/primitives/base.pyi +0 -5
- reflex/components/radix/primitives/dialog.py +2 -0
- reflex/components/radix/primitives/dialog.pyi +1 -233
- reflex/components/radix/primitives/drawer.pyi +0 -18
- reflex/components/radix/primitives/form.pyi +30 -632
- reflex/components/radix/primitives/progress.pyi +0 -10
- reflex/components/radix/primitives/slider.pyi +0 -10
- reflex/components/radix/themes/color_mode.pyi +1 -284
- reflex/components/radix/themes/components/alert_dialog.pyi +0 -207
- reflex/components/radix/themes/components/aspect_ratio.pyi +0 -2
- reflex/components/radix/themes/components/avatar.pyi +0 -80
- reflex/components/radix/themes/components/badge.pyi +1 -270
- reflex/components/radix/themes/components/button.pyi +1 -274
- reflex/components/radix/themes/components/callout.pyi +0 -1197
- reflex/components/radix/themes/components/card.pyi +1 -209
- reflex/components/radix/themes/components/checkbox.pyi +0 -261
- reflex/components/radix/themes/components/checkbox_cards.pyi +1 -96
- reflex/components/radix/themes/components/checkbox_group.pyi +1 -80
- reflex/components/radix/themes/components/context_menu.pyi +13 -321
- reflex/components/radix/themes/components/data_list.pyi +1 -107
- reflex/components/radix/themes/components/dialog.pyi +1 -210
- reflex/components/radix/themes/components/dropdown_menu.pyi +0 -209
- reflex/components/radix/themes/components/hover_card.pyi +1 -246
- reflex/components/radix/themes/components/icon_button.pyi +1 -195
- reflex/components/radix/themes/components/inset.pyi +0 -252
- reflex/components/radix/themes/components/popover.pyi +1 -234
- reflex/components/radix/themes/components/progress.pyi +1 -84
- reflex/components/radix/themes/components/radio.pyi +1 -72
- reflex/components/radix/themes/components/radio_cards.pyi +1 -123
- reflex/components/radix/themes/components/scroll_area.pyi +1 -11
- reflex/components/radix/themes/components/select.pyi +1 -376
- reflex/components/radix/themes/components/separator.pyi +0 -77
- reflex/components/radix/themes/components/skeleton.pyi +0 -30
- reflex/components/radix/themes/components/slider.py +3 -5
- reflex/components/radix/themes/components/spinner.pyi +0 -5
- reflex/components/radix/themes/components/switch.pyi +0 -89
- reflex/components/radix/themes/components/table.pyi +0 -1453
- reflex/components/radix/themes/components/text_area.pyi +7 -282
- reflex/components/radix/themes/components/text_field.pyi +6 -392
- reflex/components/radix/themes/components/tooltip.pyi +0 -42
- reflex/components/radix/themes/layout/box.pyi +1 -195
- reflex/components/radix/themes/layout/center.pyi +0 -194
- reflex/components/radix/themes/layout/container.pyi +0 -178
- reflex/components/radix/themes/layout/flex.pyi +0 -194
- reflex/components/radix/themes/layout/grid.pyi +0 -194
- reflex/components/radix/themes/layout/list.pyi +0 -978
- reflex/components/radix/themes/layout/section.pyi +0 -194
- reflex/components/radix/themes/layout/spacer.pyi +0 -194
- reflex/components/radix/themes/layout/stack.pyi +0 -582
- reflex/components/radix/themes/typography/blockquote.pyi +0 -196
- reflex/components/radix/themes/typography/code.pyi +0 -194
- reflex/components/radix/themes/typography/heading.pyi +0 -194
- reflex/components/radix/themes/typography/link.pyi +0 -237
- reflex/components/radix/themes/typography/text.pyi +0 -1360
- reflex/components/react_router/dom.pyi +0 -237
- reflex/components/recharts/cartesian.py +12 -18
- reflex/components/recharts/general.py +12 -18
- reflex/constants/installer.py +5 -5
- reflex/custom_components/custom_components.py +6 -5
- reflex/environment.py +30 -7
- reflex/event.py +14 -12
- reflex/experimental/client_state.py +11 -12
- reflex/istate/data.py +8 -10
- reflex/istate/manager/__init__.py +3 -0
- reflex/istate/manager/disk.py +151 -5
- reflex/model.py +1 -1
- reflex/plugins/_screenshot.py +2 -2
- reflex/plugins/shared_tailwind.py +9 -14
- reflex/reflex.py +7 -9
- reflex/state.py +30 -37
- reflex/style.py +6 -6
- reflex/testing.py +54 -30
- reflex/utils/codespaces.py +1 -1
- reflex/utils/compat.py +1 -0
- reflex/utils/decorator.py +3 -3
- reflex/utils/format.py +18 -22
- reflex/utils/prerequisites.py +1 -1
- reflex/utils/pyi_generator.py +51 -57
- reflex/utils/serializers.py +1 -1
- reflex/utils/telemetry.py +1 -1
- reflex/utils/templates.py +4 -4
- reflex/utils/types.py +3 -3
- reflex/vars/base.py +26 -29
- reflex/vars/color.py +6 -8
- reflex/vars/dep_tracking.py +5 -3
- reflex/vars/function.py +3 -3
- reflex/vars/object.py +9 -13
- reflex/vars/sequence.py +18 -24
- {reflex-0.8.15a2.dist-info → reflex-0.8.16a1.dist-info}/METADATA +1 -1
- {reflex-0.8.15a2.dist-info → reflex-0.8.16a1.dist-info}/RECORD +138 -138
- {reflex-0.8.15a2.dist-info → reflex-0.8.16a1.dist-info}/WHEEL +0 -0
- {reflex-0.8.15a2.dist-info → reflex-0.8.16a1.dist-info}/entry_points.txt +0 -0
- {reflex-0.8.15a2.dist-info → reflex-0.8.16a1.dist-info}/licenses/LICENSE +0 -0
|
@@ -17,7 +17,6 @@ class ProgressComponent(RadixPrimitiveComponentWithClassName):
|
|
|
17
17
|
def create(
|
|
18
18
|
cls,
|
|
19
19
|
*children,
|
|
20
|
-
as_child: Var[bool] | bool | None = None,
|
|
21
20
|
style: Sequence[Mapping[str, Any]]
|
|
22
21
|
| Mapping[str, Any]
|
|
23
22
|
| Var[Mapping[str, Any]]
|
|
@@ -50,7 +49,6 @@ class ProgressComponent(RadixPrimitiveComponentWithClassName):
|
|
|
50
49
|
|
|
51
50
|
Args:
|
|
52
51
|
*children: The children of the component.
|
|
53
|
-
as_child: Change the default rendered element for the one passed as a child.
|
|
54
52
|
style: The style of the component.
|
|
55
53
|
key: A unique key for the component.
|
|
56
54
|
id: The id for the component.
|
|
@@ -72,7 +70,6 @@ class ProgressRoot(ProgressComponent):
|
|
|
72
70
|
radius: Literal["full", "large", "medium", "none", "small"]
|
|
73
71
|
| Var[Literal["full", "large", "medium", "none", "small"]]
|
|
74
72
|
| None = None,
|
|
75
|
-
as_child: Var[bool] | bool | None = None,
|
|
76
73
|
style: Sequence[Mapping[str, Any]]
|
|
77
74
|
| Mapping[str, Any]
|
|
78
75
|
| Var[Mapping[str, Any]]
|
|
@@ -106,7 +103,6 @@ class ProgressRoot(ProgressComponent):
|
|
|
106
103
|
Args:
|
|
107
104
|
*children: The children of the component.
|
|
108
105
|
radius: Override theme radius for progress bar: "none" | "small" | "medium" | "large" | "full"
|
|
109
|
-
as_child: Change the default rendered element for the one passed as a child.
|
|
110
106
|
style: The style of the component.
|
|
111
107
|
key: A unique key for the component.
|
|
112
108
|
id: The id for the component.
|
|
@@ -186,7 +182,6 @@ class ProgressIndicator(ProgressComponent):
|
|
|
186
182
|
]
|
|
187
183
|
]
|
|
188
184
|
| None = None,
|
|
189
|
-
as_child: Var[bool] | bool | None = None,
|
|
190
185
|
style: Sequence[Mapping[str, Any]]
|
|
191
186
|
| Mapping[str, Any]
|
|
192
187
|
| Var[Mapping[str, Any]]
|
|
@@ -222,7 +217,6 @@ class ProgressIndicator(ProgressComponent):
|
|
|
222
217
|
value: The current progress value.
|
|
223
218
|
max: The maximum progress value.
|
|
224
219
|
color_scheme: The color scheme of the progress indicator.
|
|
225
|
-
as_child: Change the default rendered element for the one passed as a child.
|
|
226
220
|
style: The style of the component.
|
|
227
221
|
key: A unique key for the component.
|
|
228
222
|
id: The id for the component.
|
|
@@ -304,7 +298,6 @@ class Progress(ProgressRoot):
|
|
|
304
298
|
radius: Literal["full", "large", "medium", "none", "small"]
|
|
305
299
|
| Var[Literal["full", "large", "medium", "none", "small"]]
|
|
306
300
|
| None = None,
|
|
307
|
-
as_child: Var[bool] | bool | None = None,
|
|
308
301
|
style: Sequence[Mapping[str, Any]]
|
|
309
302
|
| Mapping[str, Any]
|
|
310
303
|
| Var[Mapping[str, Any]]
|
|
@@ -340,7 +333,6 @@ class Progress(ProgressRoot):
|
|
|
340
333
|
value: The current progress value.
|
|
341
334
|
max: The maximum progress value.
|
|
342
335
|
radius: Override theme radius for progress bar: "none" | "small" | "medium" | "large" | "full"
|
|
343
|
-
as_child: Change the default rendered element for the one passed as a child.
|
|
344
336
|
style: The style of the component.
|
|
345
337
|
key: A unique key for the component.
|
|
346
338
|
id: The id for the component.
|
|
@@ -424,7 +416,6 @@ class ProgressNamespace(ComponentNamespace):
|
|
|
424
416
|
radius: Literal["full", "large", "medium", "none", "small"]
|
|
425
417
|
| Var[Literal["full", "large", "medium", "none", "small"]]
|
|
426
418
|
| None = None,
|
|
427
|
-
as_child: Var[bool] | bool | None = None,
|
|
428
419
|
style: Sequence[Mapping[str, Any]]
|
|
429
420
|
| Mapping[str, Any]
|
|
430
421
|
| Var[Mapping[str, Any]]
|
|
@@ -460,7 +451,6 @@ class ProgressNamespace(ComponentNamespace):
|
|
|
460
451
|
value: The current progress value.
|
|
461
452
|
max: The maximum progress value.
|
|
462
453
|
radius: Override theme radius for progress bar: "none" | "small" | "medium" | "large" | "full"
|
|
463
|
-
as_child: Change the default rendered element for the one passed as a child.
|
|
464
454
|
style: The style of the component.
|
|
465
455
|
key: A unique key for the component.
|
|
466
456
|
id: The id for the component.
|
|
@@ -20,7 +20,6 @@ class SliderComponent(RadixPrimitiveComponentWithClassName):
|
|
|
20
20
|
def create(
|
|
21
21
|
cls,
|
|
22
22
|
*children,
|
|
23
|
-
as_child: Var[bool] | bool | None = None,
|
|
24
23
|
style: Sequence[Mapping[str, Any]]
|
|
25
24
|
| Mapping[str, Any]
|
|
26
25
|
| Var[Mapping[str, Any]]
|
|
@@ -53,7 +52,6 @@ class SliderComponent(RadixPrimitiveComponentWithClassName):
|
|
|
53
52
|
|
|
54
53
|
Args:
|
|
55
54
|
*children: The children of the component.
|
|
56
|
-
as_child: Change the default rendered element for the one passed as a child.
|
|
57
55
|
style: The style of the component.
|
|
58
56
|
key: A unique key for the component.
|
|
59
57
|
id: The id for the component.
|
|
@@ -85,7 +83,6 @@ class SliderRoot(SliderComponent):
|
|
|
85
83
|
max: Var[int] | int | None = None,
|
|
86
84
|
step: Var[int] | int | None = None,
|
|
87
85
|
min_steps_between_thumbs: Var[int] | int | None = None,
|
|
88
|
-
as_child: Var[bool] | bool | None = None,
|
|
89
86
|
style: Sequence[Mapping[str, Any]]
|
|
90
87
|
| Mapping[str, Any]
|
|
91
88
|
| Var[Mapping[str, Any]]
|
|
@@ -122,7 +119,6 @@ class SliderRoot(SliderComponent):
|
|
|
122
119
|
*children: The children of the component.
|
|
123
120
|
on_value_change: Fired when the value of a thumb changes.
|
|
124
121
|
on_value_commit: Fired when a thumb is released.
|
|
125
|
-
as_child: Change the default rendered element for the one passed as a child.
|
|
126
122
|
style: The style of the component.
|
|
127
123
|
key: A unique key for the component.
|
|
128
124
|
id: The id for the component.
|
|
@@ -141,7 +137,6 @@ class SliderTrack(SliderComponent):
|
|
|
141
137
|
def create(
|
|
142
138
|
cls,
|
|
143
139
|
*children,
|
|
144
|
-
as_child: Var[bool] | bool | None = None,
|
|
145
140
|
style: Sequence[Mapping[str, Any]]
|
|
146
141
|
| Mapping[str, Any]
|
|
147
142
|
| Var[Mapping[str, Any]]
|
|
@@ -174,7 +169,6 @@ class SliderTrack(SliderComponent):
|
|
|
174
169
|
|
|
175
170
|
Args:
|
|
176
171
|
*children: The children of the component.
|
|
177
|
-
as_child: Change the default rendered element for the one passed as a child.
|
|
178
172
|
style: The style of the component.
|
|
179
173
|
key: A unique key for the component.
|
|
180
174
|
id: The id for the component.
|
|
@@ -193,7 +187,6 @@ class SliderRange(SliderComponent):
|
|
|
193
187
|
def create(
|
|
194
188
|
cls,
|
|
195
189
|
*children,
|
|
196
|
-
as_child: Var[bool] | bool | None = None,
|
|
197
190
|
style: Sequence[Mapping[str, Any]]
|
|
198
191
|
| Mapping[str, Any]
|
|
199
192
|
| Var[Mapping[str, Any]]
|
|
@@ -226,7 +219,6 @@ class SliderRange(SliderComponent):
|
|
|
226
219
|
|
|
227
220
|
Args:
|
|
228
221
|
*children: The children of the component.
|
|
229
|
-
as_child: Change the default rendered element for the one passed as a child.
|
|
230
222
|
style: The style of the component.
|
|
231
223
|
key: A unique key for the component.
|
|
232
224
|
id: The id for the component.
|
|
@@ -245,7 +237,6 @@ class SliderThumb(SliderComponent):
|
|
|
245
237
|
def create(
|
|
246
238
|
cls,
|
|
247
239
|
*children,
|
|
248
|
-
as_child: Var[bool] | bool | None = None,
|
|
249
240
|
style: Sequence[Mapping[str, Any]]
|
|
250
241
|
| Mapping[str, Any]
|
|
251
242
|
| Var[Mapping[str, Any]]
|
|
@@ -278,7 +269,6 @@ class SliderThumb(SliderComponent):
|
|
|
278
269
|
|
|
279
270
|
Args:
|
|
280
271
|
*children: The children of the component.
|
|
281
|
-
as_child: Change the default rendered element for the one passed as a child.
|
|
282
272
|
style: The style of the component.
|
|
283
273
|
key: A unique key for the component.
|
|
284
274
|
id: The id for the component.
|
|
@@ -163,185 +163,6 @@ class ColorModeIconButton(IconButton):
|
|
|
163
163
|
| Var[Literal["button", "reset", "submit"]]
|
|
164
164
|
| None = None,
|
|
165
165
|
value: Var[float | int | str] | float | int | str | None = None,
|
|
166
|
-
access_key: Var[str] | str | None = None,
|
|
167
|
-
auto_capitalize: Literal[
|
|
168
|
-
"characters", "none", "off", "on", "sentences", "words"
|
|
169
|
-
]
|
|
170
|
-
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
|
|
171
|
-
| None = None,
|
|
172
|
-
content_editable: Literal["inherit", "plaintext-only", False, True]
|
|
173
|
-
| Var[Literal["inherit", "plaintext-only", False, True]]
|
|
174
|
-
| None = None,
|
|
175
|
-
context_menu: Var[str] | str | None = None,
|
|
176
|
-
dir: Var[str] | str | None = None,
|
|
177
|
-
draggable: Var[bool] | bool | None = None,
|
|
178
|
-
enter_key_hint: Literal[
|
|
179
|
-
"done", "enter", "go", "next", "previous", "search", "send"
|
|
180
|
-
]
|
|
181
|
-
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
|
|
182
|
-
| None = None,
|
|
183
|
-
hidden: Var[bool] | bool | None = None,
|
|
184
|
-
input_mode: Literal[
|
|
185
|
-
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
186
|
-
]
|
|
187
|
-
| Var[
|
|
188
|
-
Literal[
|
|
189
|
-
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
190
|
-
]
|
|
191
|
-
]
|
|
192
|
-
| None = None,
|
|
193
|
-
item_prop: Var[str] | str | None = None,
|
|
194
|
-
lang: Var[str] | str | None = None,
|
|
195
|
-
role: Literal[
|
|
196
|
-
"alert",
|
|
197
|
-
"alertdialog",
|
|
198
|
-
"application",
|
|
199
|
-
"article",
|
|
200
|
-
"banner",
|
|
201
|
-
"button",
|
|
202
|
-
"cell",
|
|
203
|
-
"checkbox",
|
|
204
|
-
"columnheader",
|
|
205
|
-
"combobox",
|
|
206
|
-
"complementary",
|
|
207
|
-
"contentinfo",
|
|
208
|
-
"definition",
|
|
209
|
-
"dialog",
|
|
210
|
-
"directory",
|
|
211
|
-
"document",
|
|
212
|
-
"feed",
|
|
213
|
-
"figure",
|
|
214
|
-
"form",
|
|
215
|
-
"grid",
|
|
216
|
-
"gridcell",
|
|
217
|
-
"group",
|
|
218
|
-
"heading",
|
|
219
|
-
"img",
|
|
220
|
-
"link",
|
|
221
|
-
"list",
|
|
222
|
-
"listbox",
|
|
223
|
-
"listitem",
|
|
224
|
-
"log",
|
|
225
|
-
"main",
|
|
226
|
-
"marquee",
|
|
227
|
-
"math",
|
|
228
|
-
"menu",
|
|
229
|
-
"menubar",
|
|
230
|
-
"menuitem",
|
|
231
|
-
"menuitemcheckbox",
|
|
232
|
-
"menuitemradio",
|
|
233
|
-
"navigation",
|
|
234
|
-
"none",
|
|
235
|
-
"note",
|
|
236
|
-
"option",
|
|
237
|
-
"presentation",
|
|
238
|
-
"progressbar",
|
|
239
|
-
"radio",
|
|
240
|
-
"radiogroup",
|
|
241
|
-
"region",
|
|
242
|
-
"row",
|
|
243
|
-
"rowgroup",
|
|
244
|
-
"rowheader",
|
|
245
|
-
"scrollbar",
|
|
246
|
-
"search",
|
|
247
|
-
"searchbox",
|
|
248
|
-
"separator",
|
|
249
|
-
"slider",
|
|
250
|
-
"spinbutton",
|
|
251
|
-
"status",
|
|
252
|
-
"switch",
|
|
253
|
-
"tab",
|
|
254
|
-
"table",
|
|
255
|
-
"tablist",
|
|
256
|
-
"tabpanel",
|
|
257
|
-
"term",
|
|
258
|
-
"textbox",
|
|
259
|
-
"timer",
|
|
260
|
-
"toolbar",
|
|
261
|
-
"tooltip",
|
|
262
|
-
"tree",
|
|
263
|
-
"treegrid",
|
|
264
|
-
"treeitem",
|
|
265
|
-
]
|
|
266
|
-
| Var[
|
|
267
|
-
Literal[
|
|
268
|
-
"alert",
|
|
269
|
-
"alertdialog",
|
|
270
|
-
"application",
|
|
271
|
-
"article",
|
|
272
|
-
"banner",
|
|
273
|
-
"button",
|
|
274
|
-
"cell",
|
|
275
|
-
"checkbox",
|
|
276
|
-
"columnheader",
|
|
277
|
-
"combobox",
|
|
278
|
-
"complementary",
|
|
279
|
-
"contentinfo",
|
|
280
|
-
"definition",
|
|
281
|
-
"dialog",
|
|
282
|
-
"directory",
|
|
283
|
-
"document",
|
|
284
|
-
"feed",
|
|
285
|
-
"figure",
|
|
286
|
-
"form",
|
|
287
|
-
"grid",
|
|
288
|
-
"gridcell",
|
|
289
|
-
"group",
|
|
290
|
-
"heading",
|
|
291
|
-
"img",
|
|
292
|
-
"link",
|
|
293
|
-
"list",
|
|
294
|
-
"listbox",
|
|
295
|
-
"listitem",
|
|
296
|
-
"log",
|
|
297
|
-
"main",
|
|
298
|
-
"marquee",
|
|
299
|
-
"math",
|
|
300
|
-
"menu",
|
|
301
|
-
"menubar",
|
|
302
|
-
"menuitem",
|
|
303
|
-
"menuitemcheckbox",
|
|
304
|
-
"menuitemradio",
|
|
305
|
-
"navigation",
|
|
306
|
-
"none",
|
|
307
|
-
"note",
|
|
308
|
-
"option",
|
|
309
|
-
"presentation",
|
|
310
|
-
"progressbar",
|
|
311
|
-
"radio",
|
|
312
|
-
"radiogroup",
|
|
313
|
-
"region",
|
|
314
|
-
"row",
|
|
315
|
-
"rowgroup",
|
|
316
|
-
"rowheader",
|
|
317
|
-
"scrollbar",
|
|
318
|
-
"search",
|
|
319
|
-
"searchbox",
|
|
320
|
-
"separator",
|
|
321
|
-
"slider",
|
|
322
|
-
"spinbutton",
|
|
323
|
-
"status",
|
|
324
|
-
"switch",
|
|
325
|
-
"tab",
|
|
326
|
-
"table",
|
|
327
|
-
"tablist",
|
|
328
|
-
"tabpanel",
|
|
329
|
-
"term",
|
|
330
|
-
"textbox",
|
|
331
|
-
"timer",
|
|
332
|
-
"toolbar",
|
|
333
|
-
"tooltip",
|
|
334
|
-
"tree",
|
|
335
|
-
"treegrid",
|
|
336
|
-
"treeitem",
|
|
337
|
-
]
|
|
338
|
-
]
|
|
339
|
-
| None = None,
|
|
340
|
-
slot: Var[str] | str | None = None,
|
|
341
|
-
spell_check: Var[bool] | bool | None = None,
|
|
342
|
-
tab_index: Var[int] | int | None = None,
|
|
343
|
-
title: Var[str] | str | None = None,
|
|
344
|
-
loading: Var[bool] | bool | None = None,
|
|
345
166
|
style: Sequence[Mapping[str, Any]]
|
|
346
167
|
| Mapping[str, Any]
|
|
347
168
|
| Var[Mapping[str, Any]]
|
|
@@ -352,6 +173,7 @@ class ColorModeIconButton(IconButton):
|
|
|
352
173
|
ref: Var | None = None,
|
|
353
174
|
class_name: Any | None = None,
|
|
354
175
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
176
|
+
loading: Var[bool] | bool | None = None,
|
|
355
177
|
on_blur: EventType[()] | None = None,
|
|
356
178
|
on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
357
179
|
on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
@@ -392,22 +214,6 @@ class ColorModeIconButton(IconButton):
|
|
|
392
214
|
name: Name of the button, used when sending form data
|
|
393
215
|
type: Type of the button (submit, reset, or button)
|
|
394
216
|
value: Value of the button, used when sending form data
|
|
395
|
-
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
396
|
-
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
397
|
-
content_editable: Indicates whether the element's content is editable.
|
|
398
|
-
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
399
|
-
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
400
|
-
draggable: Defines whether the element can be dragged.
|
|
401
|
-
enter_key_hint: Hints what media types the media element is able to play.
|
|
402
|
-
hidden: Defines whether the element is hidden.
|
|
403
|
-
input_mode: Defines the type of the element.
|
|
404
|
-
item_prop: Defines the name of the element for metadata purposes.
|
|
405
|
-
lang: Defines the language used in the element.
|
|
406
|
-
role: Defines the role of the element.
|
|
407
|
-
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
408
|
-
spell_check: Defines whether the element may be checked for spelling errors.
|
|
409
|
-
tab_index: Defines the position of the current element in the tabbing order.
|
|
410
|
-
title: Defines a tooltip for the element.
|
|
411
217
|
loading: If set, show an rx.spinner instead of the component children.
|
|
412
218
|
style: The style of the component.
|
|
413
219
|
key: A unique key for the component.
|
|
@@ -426,83 +232,6 @@ class ColorModeSwitch(Switch):
|
|
|
426
232
|
def create(
|
|
427
233
|
cls,
|
|
428
234
|
*children,
|
|
429
|
-
as_child: Var[bool] | bool | None = None,
|
|
430
|
-
default_checked: Var[bool] | bool | None = None,
|
|
431
|
-
checked: Var[bool] | bool | None = None,
|
|
432
|
-
disabled: Var[bool] | bool | None = None,
|
|
433
|
-
required: Var[bool] | bool | None = None,
|
|
434
|
-
name: Var[str] | str | None = None,
|
|
435
|
-
value: Var[str] | str | None = None,
|
|
436
|
-
size: Breakpoints[str, Literal["1", "2", "3"]]
|
|
437
|
-
| Literal["1", "2", "3"]
|
|
438
|
-
| Var[Breakpoints[str, Literal["1", "2", "3"]] | Literal["1", "2", "3"]]
|
|
439
|
-
| None = None,
|
|
440
|
-
variant: Literal["classic", "soft", "surface"]
|
|
441
|
-
| Var[Literal["classic", "soft", "surface"]]
|
|
442
|
-
| None = None,
|
|
443
|
-
color_scheme: Literal[
|
|
444
|
-
"amber",
|
|
445
|
-
"blue",
|
|
446
|
-
"bronze",
|
|
447
|
-
"brown",
|
|
448
|
-
"crimson",
|
|
449
|
-
"cyan",
|
|
450
|
-
"gold",
|
|
451
|
-
"grass",
|
|
452
|
-
"gray",
|
|
453
|
-
"green",
|
|
454
|
-
"indigo",
|
|
455
|
-
"iris",
|
|
456
|
-
"jade",
|
|
457
|
-
"lime",
|
|
458
|
-
"mint",
|
|
459
|
-
"orange",
|
|
460
|
-
"pink",
|
|
461
|
-
"plum",
|
|
462
|
-
"purple",
|
|
463
|
-
"red",
|
|
464
|
-
"ruby",
|
|
465
|
-
"sky",
|
|
466
|
-
"teal",
|
|
467
|
-
"tomato",
|
|
468
|
-
"violet",
|
|
469
|
-
"yellow",
|
|
470
|
-
]
|
|
471
|
-
| Var[
|
|
472
|
-
Literal[
|
|
473
|
-
"amber",
|
|
474
|
-
"blue",
|
|
475
|
-
"bronze",
|
|
476
|
-
"brown",
|
|
477
|
-
"crimson",
|
|
478
|
-
"cyan",
|
|
479
|
-
"gold",
|
|
480
|
-
"grass",
|
|
481
|
-
"gray",
|
|
482
|
-
"green",
|
|
483
|
-
"indigo",
|
|
484
|
-
"iris",
|
|
485
|
-
"jade",
|
|
486
|
-
"lime",
|
|
487
|
-
"mint",
|
|
488
|
-
"orange",
|
|
489
|
-
"pink",
|
|
490
|
-
"plum",
|
|
491
|
-
"purple",
|
|
492
|
-
"red",
|
|
493
|
-
"ruby",
|
|
494
|
-
"sky",
|
|
495
|
-
"teal",
|
|
496
|
-
"tomato",
|
|
497
|
-
"violet",
|
|
498
|
-
"yellow",
|
|
499
|
-
]
|
|
500
|
-
]
|
|
501
|
-
| None = None,
|
|
502
|
-
high_contrast: Var[bool] | bool | None = None,
|
|
503
|
-
radius: Literal["full", "none", "small"]
|
|
504
|
-
| Var[Literal["full", "none", "small"]]
|
|
505
|
-
| None = None,
|
|
506
235
|
style: Sequence[Mapping[str, Any]]
|
|
507
236
|
| Mapping[str, Any]
|
|
508
237
|
| Var[Mapping[str, Any]]
|
|
@@ -536,18 +265,6 @@ class ColorModeSwitch(Switch):
|
|
|
536
265
|
|
|
537
266
|
Args:
|
|
538
267
|
*children: The children of the component.
|
|
539
|
-
as_child: Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
540
|
-
default_checked: Whether the switch is checked by default
|
|
541
|
-
checked: Whether the switch is checked
|
|
542
|
-
disabled: If true, prevent the user from interacting with the switch
|
|
543
|
-
required: If true, the user must interact with the switch to submit the form
|
|
544
|
-
name: The name of the switch (when submitting a form)
|
|
545
|
-
value: The value associated with the "on" position
|
|
546
|
-
size: Switch size "1" - "4"
|
|
547
|
-
variant: Variant of switch: "classic" | "surface" | "soft"
|
|
548
|
-
color_scheme: Override theme color for switch
|
|
549
|
-
high_contrast: Whether to render the switch with higher contrast color against background
|
|
550
|
-
radius: Override theme radius for switch: "none" | "small" | "full"
|
|
551
268
|
on_change: Fired when the value of the switch changes
|
|
552
269
|
style: The style of the component.
|
|
553
270
|
key: A unique key for the component.
|