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
@@ -23,184 +23,6 @@ class Section(elements.Section, RadixThemesComponent):
23
23
  | Literal["1", "2", "3"]
24
24
  | Var[Breakpoints[str, Literal["1", "2", "3"]] | Literal["1", "2", "3"]]
25
25
  | None = None,
26
- access_key: Var[str] | str | None = None,
27
- auto_capitalize: Literal[
28
- "characters", "none", "off", "on", "sentences", "words"
29
- ]
30
- | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
31
- | None = None,
32
- content_editable: Literal["inherit", "plaintext-only", False, True]
33
- | Var[Literal["inherit", "plaintext-only", False, True]]
34
- | None = None,
35
- context_menu: Var[str] | str | None = None,
36
- dir: Var[str] | str | None = None,
37
- draggable: Var[bool] | bool | None = None,
38
- enter_key_hint: Literal[
39
- "done", "enter", "go", "next", "previous", "search", "send"
40
- ]
41
- | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
42
- | None = None,
43
- hidden: Var[bool] | bool | None = None,
44
- input_mode: Literal[
45
- "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
46
- ]
47
- | Var[
48
- Literal[
49
- "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
50
- ]
51
- ]
52
- | None = None,
53
- item_prop: Var[str] | str | None = None,
54
- lang: Var[str] | str | None = None,
55
- role: Literal[
56
- "alert",
57
- "alertdialog",
58
- "application",
59
- "article",
60
- "banner",
61
- "button",
62
- "cell",
63
- "checkbox",
64
- "columnheader",
65
- "combobox",
66
- "complementary",
67
- "contentinfo",
68
- "definition",
69
- "dialog",
70
- "directory",
71
- "document",
72
- "feed",
73
- "figure",
74
- "form",
75
- "grid",
76
- "gridcell",
77
- "group",
78
- "heading",
79
- "img",
80
- "link",
81
- "list",
82
- "listbox",
83
- "listitem",
84
- "log",
85
- "main",
86
- "marquee",
87
- "math",
88
- "menu",
89
- "menubar",
90
- "menuitem",
91
- "menuitemcheckbox",
92
- "menuitemradio",
93
- "navigation",
94
- "none",
95
- "note",
96
- "option",
97
- "presentation",
98
- "progressbar",
99
- "radio",
100
- "radiogroup",
101
- "region",
102
- "row",
103
- "rowgroup",
104
- "rowheader",
105
- "scrollbar",
106
- "search",
107
- "searchbox",
108
- "separator",
109
- "slider",
110
- "spinbutton",
111
- "status",
112
- "switch",
113
- "tab",
114
- "table",
115
- "tablist",
116
- "tabpanel",
117
- "term",
118
- "textbox",
119
- "timer",
120
- "toolbar",
121
- "tooltip",
122
- "tree",
123
- "treegrid",
124
- "treeitem",
125
- ]
126
- | Var[
127
- Literal[
128
- "alert",
129
- "alertdialog",
130
- "application",
131
- "article",
132
- "banner",
133
- "button",
134
- "cell",
135
- "checkbox",
136
- "columnheader",
137
- "combobox",
138
- "complementary",
139
- "contentinfo",
140
- "definition",
141
- "dialog",
142
- "directory",
143
- "document",
144
- "feed",
145
- "figure",
146
- "form",
147
- "grid",
148
- "gridcell",
149
- "group",
150
- "heading",
151
- "img",
152
- "link",
153
- "list",
154
- "listbox",
155
- "listitem",
156
- "log",
157
- "main",
158
- "marquee",
159
- "math",
160
- "menu",
161
- "menubar",
162
- "menuitem",
163
- "menuitemcheckbox",
164
- "menuitemradio",
165
- "navigation",
166
- "none",
167
- "note",
168
- "option",
169
- "presentation",
170
- "progressbar",
171
- "radio",
172
- "radiogroup",
173
- "region",
174
- "row",
175
- "rowgroup",
176
- "rowheader",
177
- "scrollbar",
178
- "search",
179
- "searchbox",
180
- "separator",
181
- "slider",
182
- "spinbutton",
183
- "status",
184
- "switch",
185
- "tab",
186
- "table",
187
- "tablist",
188
- "tabpanel",
189
- "term",
190
- "textbox",
191
- "timer",
192
- "toolbar",
193
- "tooltip",
194
- "tree",
195
- "treegrid",
196
- "treeitem",
197
- ]
198
- ]
199
- | None = None,
200
- slot: Var[str] | str | None = None,
201
- spell_check: Var[bool] | bool | None = None,
202
- tab_index: Var[int] | int | None = None,
203
- title: Var[str] | str | None = None,
204
26
  style: Sequence[Mapping[str, Any]]
205
27
  | Mapping[str, Any]
206
28
  | Var[Mapping[str, Any]]
@@ -237,22 +59,6 @@ class Section(elements.Section, RadixThemesComponent):
237
59
  Args:
238
60
  *children: Child components.
239
61
  size: The size of the section: "1" - "3" (default "2")
240
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
241
- auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
242
- content_editable: Indicates whether the element's content is editable.
243
- context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
244
- dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
245
- draggable: Defines whether the element can be dragged.
246
- enter_key_hint: Hints what media types the media element is able to play.
247
- hidden: Defines whether the element is hidden.
248
- input_mode: Defines the type of the element.
249
- item_prop: Defines the name of the element for metadata purposes.
250
- lang: Defines the language used in the element.
251
- role: Defines the role of the element.
252
- slot: Assigns a slot in a shadow DOM shadow tree to an element.
253
- spell_check: Defines whether the element may be checked for spelling errors.
254
- tab_index: Defines the position of the current element in the tabbing order.
255
- title: Defines a tooltip for the element.
256
62
  style: The style of the component.
257
63
  key: A unique key for the component.
258
64
  id: The id for the component.
@@ -60,184 +60,6 @@ class Spacer(Flex):
60
60
  | Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
61
61
  ]
62
62
  | None = None,
63
- access_key: Var[str] | str | None = None,
64
- auto_capitalize: Literal[
65
- "characters", "none", "off", "on", "sentences", "words"
66
- ]
67
- | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
68
- | None = None,
69
- content_editable: Literal["inherit", "plaintext-only", False, True]
70
- | Var[Literal["inherit", "plaintext-only", False, True]]
71
- | None = None,
72
- context_menu: Var[str] | str | None = None,
73
- dir: Var[str] | str | None = None,
74
- draggable: Var[bool] | bool | None = None,
75
- enter_key_hint: Literal[
76
- "done", "enter", "go", "next", "previous", "search", "send"
77
- ]
78
- | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
79
- | None = None,
80
- hidden: Var[bool] | bool | None = None,
81
- input_mode: Literal[
82
- "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
83
- ]
84
- | Var[
85
- Literal[
86
- "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
87
- ]
88
- ]
89
- | None = None,
90
- item_prop: Var[str] | str | None = None,
91
- lang: Var[str] | str | None = None,
92
- role: Literal[
93
- "alert",
94
- "alertdialog",
95
- "application",
96
- "article",
97
- "banner",
98
- "button",
99
- "cell",
100
- "checkbox",
101
- "columnheader",
102
- "combobox",
103
- "complementary",
104
- "contentinfo",
105
- "definition",
106
- "dialog",
107
- "directory",
108
- "document",
109
- "feed",
110
- "figure",
111
- "form",
112
- "grid",
113
- "gridcell",
114
- "group",
115
- "heading",
116
- "img",
117
- "link",
118
- "list",
119
- "listbox",
120
- "listitem",
121
- "log",
122
- "main",
123
- "marquee",
124
- "math",
125
- "menu",
126
- "menubar",
127
- "menuitem",
128
- "menuitemcheckbox",
129
- "menuitemradio",
130
- "navigation",
131
- "none",
132
- "note",
133
- "option",
134
- "presentation",
135
- "progressbar",
136
- "radio",
137
- "radiogroup",
138
- "region",
139
- "row",
140
- "rowgroup",
141
- "rowheader",
142
- "scrollbar",
143
- "search",
144
- "searchbox",
145
- "separator",
146
- "slider",
147
- "spinbutton",
148
- "status",
149
- "switch",
150
- "tab",
151
- "table",
152
- "tablist",
153
- "tabpanel",
154
- "term",
155
- "textbox",
156
- "timer",
157
- "toolbar",
158
- "tooltip",
159
- "tree",
160
- "treegrid",
161
- "treeitem",
162
- ]
163
- | Var[
164
- Literal[
165
- "alert",
166
- "alertdialog",
167
- "application",
168
- "article",
169
- "banner",
170
- "button",
171
- "cell",
172
- "checkbox",
173
- "columnheader",
174
- "combobox",
175
- "complementary",
176
- "contentinfo",
177
- "definition",
178
- "dialog",
179
- "directory",
180
- "document",
181
- "feed",
182
- "figure",
183
- "form",
184
- "grid",
185
- "gridcell",
186
- "group",
187
- "heading",
188
- "img",
189
- "link",
190
- "list",
191
- "listbox",
192
- "listitem",
193
- "log",
194
- "main",
195
- "marquee",
196
- "math",
197
- "menu",
198
- "menubar",
199
- "menuitem",
200
- "menuitemcheckbox",
201
- "menuitemradio",
202
- "navigation",
203
- "none",
204
- "note",
205
- "option",
206
- "presentation",
207
- "progressbar",
208
- "radio",
209
- "radiogroup",
210
- "region",
211
- "row",
212
- "rowgroup",
213
- "rowheader",
214
- "scrollbar",
215
- "search",
216
- "searchbox",
217
- "separator",
218
- "slider",
219
- "spinbutton",
220
- "status",
221
- "switch",
222
- "tab",
223
- "table",
224
- "tablist",
225
- "tabpanel",
226
- "term",
227
- "textbox",
228
- "timer",
229
- "toolbar",
230
- "tooltip",
231
- "tree",
232
- "treegrid",
233
- "treeitem",
234
- ]
235
- ]
236
- | None = None,
237
- slot: Var[str] | str | None = None,
238
- spell_check: Var[bool] | bool | None = None,
239
- tab_index: Var[int] | int | None = None,
240
- title: Var[str] | str | None = None,
241
63
  style: Sequence[Mapping[str, Any]]
242
64
  | Mapping[str, Any]
243
65
  | Var[Mapping[str, Any]]
@@ -279,22 +101,6 @@ class Spacer(Flex):
279
101
  justify: Alignment of children along the cross axis: "start" | "center" | "end" | "between"
280
102
  wrap: Whether children should wrap when they reach the end of their container: "nowrap" | "wrap" | "wrap-reverse"
281
103
  spacing: Gap between children: "0" - "9"
282
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
283
- auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
284
- content_editable: Indicates whether the element's content is editable.
285
- context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
286
- dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
287
- draggable: Defines whether the element can be dragged.
288
- enter_key_hint: Hints what media types the media element is able to play.
289
- hidden: Defines whether the element is hidden.
290
- input_mode: Defines the type of the element.
291
- item_prop: Defines the name of the element for metadata purposes.
292
- lang: Defines the language used in the element.
293
- role: Defines the role of the element.
294
- slot: Assigns a slot in a shadow DOM shadow tree to an element.
295
- spell_check: Defines whether the element may be checked for spelling errors.
296
- tab_index: Defines the position of the current element in the tabbing order.
297
- title: Defines a tooltip for the element.
298
104
  style: The style of the component.
299
105
  key: A unique key for the component.
300
106
  id: The id for the component.