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.

Files changed (138) hide show
  1. reflex/app.py +40 -46
  2. reflex/app_mixins/lifespan.py +12 -5
  3. reflex/base.py +1 -0
  4. reflex/compiler/compiler.py +4 -6
  5. reflex/compiler/templates.py +25 -31
  6. reflex/compiler/utils.py +6 -5
  7. reflex/components/base/body.pyi +1 -195
  8. reflex/components/base/link.pyi +1 -407
  9. reflex/components/base/meta.pyi +1 -405
  10. reflex/components/base/script.pyi +1 -237
  11. reflex/components/component.py +41 -46
  12. reflex/components/core/auto_scroll.pyi +1 -195
  13. reflex/components/core/banner.pyi +1 -391
  14. reflex/components/core/breakpoints.py +14 -18
  15. reflex/components/core/html.pyi +1 -197
  16. reflex/components/core/match.py +2 -2
  17. reflex/components/core/sticky.py +11 -15
  18. reflex/components/core/sticky.pyi +0 -788
  19. reflex/components/core/upload.py +1 -3
  20. reflex/components/datadisplay/code.pyi +1 -0
  21. reflex/components/datadisplay/dataeditor.py +4 -6
  22. reflex/components/datadisplay/shiki_code_block.py +106 -110
  23. reflex/components/dynamic.py +4 -6
  24. reflex/components/el/elements/__init__.py +5 -7
  25. reflex/components/el/elements/__init__.pyi +5 -7
  26. reflex/components/el/elements/base.py +1 -1
  27. reflex/components/el/elements/base.pyi +1 -195
  28. reflex/components/el/elements/forms.py +7 -9
  29. reflex/components/el/elements/forms.pyi +12 -3112
  30. reflex/components/el/elements/inline.pyi +0 -5481
  31. reflex/components/el/elements/media.pyi +0 -10280
  32. reflex/components/el/elements/metadata.pyi +1 -835
  33. reflex/components/el/elements/other.pyi +1 -1365
  34. reflex/components/el/elements/scripts.pyi +1 -625
  35. reflex/components/el/elements/sectioning.pyi +1 -2911
  36. reflex/components/el/elements/tables.pyi +1 -1973
  37. reflex/components/el/elements/typography.pyi +1 -3125
  38. reflex/components/lucide/icon.py +4 -4
  39. reflex/components/lucide/icon.pyi +0 -4
  40. reflex/components/markdown/markdown.py +15 -19
  41. reflex/components/markdown/markdown.pyi +1 -0
  42. reflex/components/moment/moment.pyi +0 -49
  43. reflex/components/props.py +3 -3
  44. reflex/components/radix/primitives/accordion.py +4 -6
  45. reflex/components/radix/primitives/accordion.pyi +0 -14
  46. reflex/components/radix/primitives/base.pyi +0 -5
  47. reflex/components/radix/primitives/dialog.py +2 -0
  48. reflex/components/radix/primitives/dialog.pyi +1 -233
  49. reflex/components/radix/primitives/drawer.pyi +0 -18
  50. reflex/components/radix/primitives/form.pyi +30 -632
  51. reflex/components/radix/primitives/progress.pyi +0 -10
  52. reflex/components/radix/primitives/slider.pyi +0 -10
  53. reflex/components/radix/themes/color_mode.pyi +1 -284
  54. reflex/components/radix/themes/components/alert_dialog.pyi +0 -207
  55. reflex/components/radix/themes/components/aspect_ratio.pyi +0 -2
  56. reflex/components/radix/themes/components/avatar.pyi +0 -80
  57. reflex/components/radix/themes/components/badge.pyi +1 -270
  58. reflex/components/radix/themes/components/button.pyi +1 -274
  59. reflex/components/radix/themes/components/callout.pyi +0 -1197
  60. reflex/components/radix/themes/components/card.pyi +1 -209
  61. reflex/components/radix/themes/components/checkbox.pyi +0 -261
  62. reflex/components/radix/themes/components/checkbox_cards.pyi +1 -96
  63. reflex/components/radix/themes/components/checkbox_group.pyi +1 -80
  64. reflex/components/radix/themes/components/context_menu.pyi +13 -321
  65. reflex/components/radix/themes/components/data_list.pyi +1 -107
  66. reflex/components/radix/themes/components/dialog.pyi +1 -210
  67. reflex/components/radix/themes/components/dropdown_menu.pyi +0 -209
  68. reflex/components/radix/themes/components/hover_card.pyi +1 -246
  69. reflex/components/radix/themes/components/icon_button.pyi +1 -195
  70. reflex/components/radix/themes/components/inset.pyi +0 -252
  71. reflex/components/radix/themes/components/popover.pyi +1 -234
  72. reflex/components/radix/themes/components/progress.pyi +1 -84
  73. reflex/components/radix/themes/components/radio.pyi +1 -72
  74. reflex/components/radix/themes/components/radio_cards.pyi +1 -123
  75. reflex/components/radix/themes/components/scroll_area.pyi +1 -11
  76. reflex/components/radix/themes/components/select.pyi +1 -376
  77. reflex/components/radix/themes/components/separator.pyi +0 -77
  78. reflex/components/radix/themes/components/skeleton.pyi +0 -30
  79. reflex/components/radix/themes/components/slider.py +3 -5
  80. reflex/components/radix/themes/components/spinner.pyi +0 -5
  81. reflex/components/radix/themes/components/switch.pyi +0 -89
  82. reflex/components/radix/themes/components/table.pyi +0 -1453
  83. reflex/components/radix/themes/components/text_area.pyi +7 -282
  84. reflex/components/radix/themes/components/text_field.pyi +6 -392
  85. reflex/components/radix/themes/components/tooltip.pyi +0 -42
  86. reflex/components/radix/themes/layout/box.pyi +1 -195
  87. reflex/components/radix/themes/layout/center.pyi +0 -194
  88. reflex/components/radix/themes/layout/container.pyi +0 -178
  89. reflex/components/radix/themes/layout/flex.pyi +0 -194
  90. reflex/components/radix/themes/layout/grid.pyi +0 -194
  91. reflex/components/radix/themes/layout/list.pyi +0 -978
  92. reflex/components/radix/themes/layout/section.pyi +0 -194
  93. reflex/components/radix/themes/layout/spacer.pyi +0 -194
  94. reflex/components/radix/themes/layout/stack.pyi +0 -582
  95. reflex/components/radix/themes/typography/blockquote.pyi +0 -196
  96. reflex/components/radix/themes/typography/code.pyi +0 -194
  97. reflex/components/radix/themes/typography/heading.pyi +0 -194
  98. reflex/components/radix/themes/typography/link.pyi +0 -237
  99. reflex/components/radix/themes/typography/text.pyi +0 -1360
  100. reflex/components/react_router/dom.pyi +0 -237
  101. reflex/components/recharts/cartesian.py +12 -18
  102. reflex/components/recharts/general.py +12 -18
  103. reflex/constants/installer.py +5 -5
  104. reflex/custom_components/custom_components.py +6 -5
  105. reflex/environment.py +30 -7
  106. reflex/event.py +14 -12
  107. reflex/experimental/client_state.py +11 -12
  108. reflex/istate/data.py +8 -10
  109. reflex/istate/manager/__init__.py +3 -0
  110. reflex/istate/manager/disk.py +151 -5
  111. reflex/model.py +1 -1
  112. reflex/plugins/_screenshot.py +2 -2
  113. reflex/plugins/shared_tailwind.py +9 -14
  114. reflex/reflex.py +7 -9
  115. reflex/state.py +30 -37
  116. reflex/style.py +6 -6
  117. reflex/testing.py +54 -30
  118. reflex/utils/codespaces.py +1 -1
  119. reflex/utils/compat.py +1 -0
  120. reflex/utils/decorator.py +3 -3
  121. reflex/utils/format.py +18 -22
  122. reflex/utils/prerequisites.py +1 -1
  123. reflex/utils/pyi_generator.py +51 -57
  124. reflex/utils/serializers.py +1 -1
  125. reflex/utils/telemetry.py +1 -1
  126. reflex/utils/templates.py +4 -4
  127. reflex/utils/types.py +3 -3
  128. reflex/vars/base.py +26 -29
  129. reflex/vars/color.py +6 -8
  130. reflex/vars/dep_tracking.py +5 -3
  131. reflex/vars/function.py +3 -3
  132. reflex/vars/object.py +9 -13
  133. reflex/vars/sequence.py +18 -24
  134. {reflex-0.8.15a2.dist-info → reflex-0.8.16a1.dist-info}/METADATA +1 -1
  135. {reflex-0.8.15a2.dist-info → reflex-0.8.16a1.dist-info}/RECORD +138 -138
  136. {reflex-0.8.15a2.dist-info → reflex-0.8.16a1.dist-info}/WHEEL +0 -0
  137. {reflex-0.8.15a2.dist-info → reflex-0.8.16a1.dist-info}/entry_points.txt +0 -0
  138. {reflex-0.8.15a2.dist-info → reflex-0.8.16a1.dist-info}/licenses/LICENSE +0 -0
@@ -106,185 +106,6 @@ class IconButton(elements.Button, RadixLoadingProp, RadixThemesComponent):
106
106
  | Var[Literal["button", "reset", "submit"]]
107
107
  | None = None,
108
108
  value: Var[float | int | str] | float | int | str | None = None,
109
- access_key: Var[str] | str | None = None,
110
- auto_capitalize: Literal[
111
- "characters", "none", "off", "on", "sentences", "words"
112
- ]
113
- | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
114
- | None = None,
115
- content_editable: Literal["inherit", "plaintext-only", False, True]
116
- | Var[Literal["inherit", "plaintext-only", False, True]]
117
- | None = None,
118
- context_menu: Var[str] | str | None = None,
119
- dir: Var[str] | str | None = None,
120
- draggable: Var[bool] | bool | None = None,
121
- enter_key_hint: Literal[
122
- "done", "enter", "go", "next", "previous", "search", "send"
123
- ]
124
- | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
125
- | None = None,
126
- hidden: Var[bool] | bool | None = None,
127
- input_mode: Literal[
128
- "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
129
- ]
130
- | Var[
131
- Literal[
132
- "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
133
- ]
134
- ]
135
- | None = None,
136
- item_prop: Var[str] | str | None = None,
137
- lang: Var[str] | str | None = None,
138
- role: Literal[
139
- "alert",
140
- "alertdialog",
141
- "application",
142
- "article",
143
- "banner",
144
- "button",
145
- "cell",
146
- "checkbox",
147
- "columnheader",
148
- "combobox",
149
- "complementary",
150
- "contentinfo",
151
- "definition",
152
- "dialog",
153
- "directory",
154
- "document",
155
- "feed",
156
- "figure",
157
- "form",
158
- "grid",
159
- "gridcell",
160
- "group",
161
- "heading",
162
- "img",
163
- "link",
164
- "list",
165
- "listbox",
166
- "listitem",
167
- "log",
168
- "main",
169
- "marquee",
170
- "math",
171
- "menu",
172
- "menubar",
173
- "menuitem",
174
- "menuitemcheckbox",
175
- "menuitemradio",
176
- "navigation",
177
- "none",
178
- "note",
179
- "option",
180
- "presentation",
181
- "progressbar",
182
- "radio",
183
- "radiogroup",
184
- "region",
185
- "row",
186
- "rowgroup",
187
- "rowheader",
188
- "scrollbar",
189
- "search",
190
- "searchbox",
191
- "separator",
192
- "slider",
193
- "spinbutton",
194
- "status",
195
- "switch",
196
- "tab",
197
- "table",
198
- "tablist",
199
- "tabpanel",
200
- "term",
201
- "textbox",
202
- "timer",
203
- "toolbar",
204
- "tooltip",
205
- "tree",
206
- "treegrid",
207
- "treeitem",
208
- ]
209
- | Var[
210
- Literal[
211
- "alert",
212
- "alertdialog",
213
- "application",
214
- "article",
215
- "banner",
216
- "button",
217
- "cell",
218
- "checkbox",
219
- "columnheader",
220
- "combobox",
221
- "complementary",
222
- "contentinfo",
223
- "definition",
224
- "dialog",
225
- "directory",
226
- "document",
227
- "feed",
228
- "figure",
229
- "form",
230
- "grid",
231
- "gridcell",
232
- "group",
233
- "heading",
234
- "img",
235
- "link",
236
- "list",
237
- "listbox",
238
- "listitem",
239
- "log",
240
- "main",
241
- "marquee",
242
- "math",
243
- "menu",
244
- "menubar",
245
- "menuitem",
246
- "menuitemcheckbox",
247
- "menuitemradio",
248
- "navigation",
249
- "none",
250
- "note",
251
- "option",
252
- "presentation",
253
- "progressbar",
254
- "radio",
255
- "radiogroup",
256
- "region",
257
- "row",
258
- "rowgroup",
259
- "rowheader",
260
- "scrollbar",
261
- "search",
262
- "searchbox",
263
- "separator",
264
- "slider",
265
- "spinbutton",
266
- "status",
267
- "switch",
268
- "tab",
269
- "table",
270
- "tablist",
271
- "tabpanel",
272
- "term",
273
- "textbox",
274
- "timer",
275
- "toolbar",
276
- "tooltip",
277
- "tree",
278
- "treegrid",
279
- "treeitem",
280
- ]
281
- ]
282
- | None = None,
283
- slot: Var[str] | str | None = None,
284
- spell_check: Var[bool] | bool | None = None,
285
- tab_index: Var[int] | int | None = None,
286
- title: Var[str] | str | None = None,
287
- loading: Var[bool] | bool | None = None,
288
109
  style: Sequence[Mapping[str, Any]]
289
110
  | Mapping[str, Any]
290
111
  | Var[Mapping[str, Any]]
@@ -295,6 +116,7 @@ class IconButton(elements.Button, RadixLoadingProp, RadixThemesComponent):
295
116
  ref: Var | None = None,
296
117
  class_name: Any | None = None,
297
118
  custom_attrs: dict[str, Var | Any] | None = None,
119
+ loading: Var[bool] | bool | None = None,
298
120
  on_blur: EventType[()] | None = None,
299
121
  on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
300
122
  on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
@@ -334,22 +156,6 @@ class IconButton(elements.Button, RadixLoadingProp, RadixThemesComponent):
334
156
  name: Name of the button, used when sending form data
335
157
  type: Type of the button (submit, reset, or button)
336
158
  value: Value of the button, used when sending form data
337
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
338
- auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
339
- content_editable: Indicates whether the element's content is editable.
340
- context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
341
- dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
342
- draggable: Defines whether the element can be dragged.
343
- enter_key_hint: Hints what media types the media element is able to play.
344
- hidden: Defines whether the element is hidden.
345
- input_mode: Defines the type of the element.
346
- item_prop: Defines the name of the element for metadata purposes.
347
- lang: Defines the language used in the element.
348
- role: Defines the role of the element.
349
- slot: Assigns a slot in a shadow DOM shadow tree to an element.
350
- spell_check: Defines whether the element may be checked for spelling errors.
351
- tab_index: Defines the position of the current element in the tabbing order.
352
- title: Defines a tooltip for the element.
353
159
  loading: If set, show an rx.spinner instead of the component children.
354
160
  style: The style of the component.
355
161
  key: A unique key for the component.
@@ -19,233 +19,6 @@ class Inset(elements.Div, RadixThemesComponent):
19
19
  def create(
20
20
  cls,
21
21
  *children,
22
- side: Breakpoints[str, Literal["bottom", "left", "right", "top", "x", "y"]]
23
- | Literal["bottom", "left", "right", "top", "x", "y"]
24
- | Var[
25
- Breakpoints[str, Literal["bottom", "left", "right", "top", "x", "y"]]
26
- | Literal["bottom", "left", "right", "top", "x", "y"]
27
- ]
28
- | None = None,
29
- clip: Breakpoints[str, Literal["border-box", "padding-box"]]
30
- | Literal["border-box", "padding-box"]
31
- | Var[
32
- Breakpoints[str, Literal["border-box", "padding-box"]]
33
- | Literal["border-box", "padding-box"]
34
- ]
35
- | None = None,
36
- p: Breakpoints[str, int | str]
37
- | Var[Breakpoints[str, int | str] | int | str]
38
- | int
39
- | str
40
- | None = None,
41
- px: Breakpoints[str, int | str]
42
- | Var[Breakpoints[str, int | str] | int | str]
43
- | int
44
- | str
45
- | None = None,
46
- py: Breakpoints[str, int | str]
47
- | Var[Breakpoints[str, int | str] | int | str]
48
- | int
49
- | str
50
- | None = None,
51
- pt: Breakpoints[str, int | str]
52
- | Var[Breakpoints[str, int | str] | int | str]
53
- | int
54
- | str
55
- | None = None,
56
- pr: Breakpoints[str, int | str]
57
- | Var[Breakpoints[str, int | str] | int | str]
58
- | int
59
- | str
60
- | None = None,
61
- pb: Breakpoints[str, int | str]
62
- | Var[Breakpoints[str, int | str] | int | str]
63
- | int
64
- | str
65
- | None = None,
66
- pl: Breakpoints[str, int | str]
67
- | Var[Breakpoints[str, int | str] | int | str]
68
- | int
69
- | str
70
- | None = None,
71
- access_key: Var[str] | str | None = None,
72
- auto_capitalize: Literal[
73
- "characters", "none", "off", "on", "sentences", "words"
74
- ]
75
- | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
76
- | None = None,
77
- content_editable: Literal["inherit", "plaintext-only", False, True]
78
- | Var[Literal["inherit", "plaintext-only", False, True]]
79
- | None = None,
80
- context_menu: Var[str] | str | None = None,
81
- dir: Var[str] | str | None = None,
82
- draggable: Var[bool] | bool | None = None,
83
- enter_key_hint: Literal[
84
- "done", "enter", "go", "next", "previous", "search", "send"
85
- ]
86
- | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
87
- | None = None,
88
- hidden: Var[bool] | bool | None = None,
89
- input_mode: Literal[
90
- "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
91
- ]
92
- | Var[
93
- Literal[
94
- "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
95
- ]
96
- ]
97
- | None = None,
98
- item_prop: Var[str] | str | None = None,
99
- lang: Var[str] | str | None = None,
100
- role: Literal[
101
- "alert",
102
- "alertdialog",
103
- "application",
104
- "article",
105
- "banner",
106
- "button",
107
- "cell",
108
- "checkbox",
109
- "columnheader",
110
- "combobox",
111
- "complementary",
112
- "contentinfo",
113
- "definition",
114
- "dialog",
115
- "directory",
116
- "document",
117
- "feed",
118
- "figure",
119
- "form",
120
- "grid",
121
- "gridcell",
122
- "group",
123
- "heading",
124
- "img",
125
- "link",
126
- "list",
127
- "listbox",
128
- "listitem",
129
- "log",
130
- "main",
131
- "marquee",
132
- "math",
133
- "menu",
134
- "menubar",
135
- "menuitem",
136
- "menuitemcheckbox",
137
- "menuitemradio",
138
- "navigation",
139
- "none",
140
- "note",
141
- "option",
142
- "presentation",
143
- "progressbar",
144
- "radio",
145
- "radiogroup",
146
- "region",
147
- "row",
148
- "rowgroup",
149
- "rowheader",
150
- "scrollbar",
151
- "search",
152
- "searchbox",
153
- "separator",
154
- "slider",
155
- "spinbutton",
156
- "status",
157
- "switch",
158
- "tab",
159
- "table",
160
- "tablist",
161
- "tabpanel",
162
- "term",
163
- "textbox",
164
- "timer",
165
- "toolbar",
166
- "tooltip",
167
- "tree",
168
- "treegrid",
169
- "treeitem",
170
- ]
171
- | Var[
172
- Literal[
173
- "alert",
174
- "alertdialog",
175
- "application",
176
- "article",
177
- "banner",
178
- "button",
179
- "cell",
180
- "checkbox",
181
- "columnheader",
182
- "combobox",
183
- "complementary",
184
- "contentinfo",
185
- "definition",
186
- "dialog",
187
- "directory",
188
- "document",
189
- "feed",
190
- "figure",
191
- "form",
192
- "grid",
193
- "gridcell",
194
- "group",
195
- "heading",
196
- "img",
197
- "link",
198
- "list",
199
- "listbox",
200
- "listitem",
201
- "log",
202
- "main",
203
- "marquee",
204
- "math",
205
- "menu",
206
- "menubar",
207
- "menuitem",
208
- "menuitemcheckbox",
209
- "menuitemradio",
210
- "navigation",
211
- "none",
212
- "note",
213
- "option",
214
- "presentation",
215
- "progressbar",
216
- "radio",
217
- "radiogroup",
218
- "region",
219
- "row",
220
- "rowgroup",
221
- "rowheader",
222
- "scrollbar",
223
- "search",
224
- "searchbox",
225
- "separator",
226
- "slider",
227
- "spinbutton",
228
- "status",
229
- "switch",
230
- "tab",
231
- "table",
232
- "tablist",
233
- "tabpanel",
234
- "term",
235
- "textbox",
236
- "timer",
237
- "toolbar",
238
- "tooltip",
239
- "tree",
240
- "treegrid",
241
- "treeitem",
242
- ]
243
- ]
244
- | None = None,
245
- slot: Var[str] | str | None = None,
246
- spell_check: Var[bool] | bool | None = None,
247
- tab_index: Var[int] | int | None = None,
248
- title: Var[str] | str | None = None,
249
22
  style: Sequence[Mapping[str, Any]]
250
23
  | Mapping[str, Any]
251
24
  | Var[Mapping[str, Any]]
@@ -281,31 +54,6 @@ class Inset(elements.Div, RadixThemesComponent):
281
54
 
282
55
  Args:
283
56
  *children: Child components.
284
- side: The side
285
- clip: How to clip the element's content: "border-box" | "padding-box"
286
- p: Padding
287
- px: Padding on the x axis
288
- py: Padding on the y axis
289
- pt: Padding on the top
290
- pr: Padding on the right
291
- pb: Padding on the bottom
292
- pl: Padding on the left
293
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
294
- auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
295
- content_editable: Indicates whether the element's content is editable.
296
- context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
297
- dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
298
- draggable: Defines whether the element can be dragged.
299
- enter_key_hint: Hints what media types the media element is able to play.
300
- hidden: Defines whether the element is hidden.
301
- input_mode: Defines the type of the element.
302
- item_prop: Defines the name of the element for metadata purposes.
303
- lang: Defines the language used in the element.
304
- role: Defines the role of the element.
305
- slot: Assigns a slot in a shadow DOM shadow tree to an element.
306
- spell_check: Defines whether the element may be checked for spelling errors.
307
- tab_index: Defines the position of the current element in the tabbing order.
308
- title: Defines a tooltip for the element.
309
57
  style: The style of the component.
310
58
  key: A unique key for the component.
311
59
  id: The id for the component.