Masen Furer
0da21ea605
Merge remote-tracking branch 'origin/main' into reflex-0.4.0
2024-02-12 15:05:34 -08:00
Masen Furer
47a6901695
banner.py: fix import specification for getBackendURL ( #2584 )
...
* banner.py: fix import specification for getBackendURL
Use the constant Dirs.STATE_PATH
* state.js: only `getBackendURL` dynamically when running client side
During server side rendering, `getBackendURL` cannot access the current
location from the `window`, because there is no `window`.
* Better client-side context checking
Thanks jackie
2024-02-12 15:04:59 -08:00
Thomas Brandého
798b72825d
fix match import in iconbutton ( #2552 )
2024-02-12 12:36:48 -08:00
Masen Furer
2b7e7450f8
Merge remote-tracking branch 'origin/main' into reflex-0.4.0
2024-02-12 12:22:50 -08:00
Masen Furer
10e8bd010c
Upload Workflow Refactor ( #2309 )
...
* upload with StaticFiles
* always create uploaded files folder
* just use /_upload to serve uploaded files
* Upload: update pyi file
* app.py: only mount Upload StaticFiles if the upload component is used
2024-02-12 12:21:56 -08:00
Martin Xu
6e946631f3
alias form to form.root ( #2579 )
2024-02-12 10:57:17 -08:00
Nikhil Rao
93c0091aad
remove extra props on scroll area ( #2581 )
2024-02-12 10:54:58 -08:00
Masen Furer
58b5e2f5bd
Merge remote-tracking branch 'origin/main' into reflex-0.4.0
2024-02-09 19:38:35 -08:00
Elijah Ahianyo
ccc9c32c95
Get rx.color
working with fstrings ( #2562 )
...
* fix for rx.color working with fstrings
* Fix fstrings issues
2024-02-09 17:06:55 -08:00
Masen Furer
3136a86e58
[REF-1921] Remove HTML attributes that shadow CSS props ( #2566 )
2024-02-09 16:13:35 -08:00
Masen Furer
78c54b3486
Use rx.el.img as rx.image ( #2558 )
...
* Use rx.el.img as rx.image
* Update test_image to work with plain rx.el.img
2024-02-08 14:44:53 -08:00
Masen Furer
d28109f4c4
Merge remote-tracking branch 'origin/main' into reflex-0.4.0
2024-02-08 11:54:02 -08:00
Masen Furer
7fb9747fa7
Fix missing getEventURL function in connection banner ( #2557 )
...
After a previous PR replaced `getEventURL` with `getBackendURL`, the banner
code was not updated, leading to problems rendering the connection banner.
2024-02-08 11:53:38 -08:00
Elijah Ahianyo
601dd34792
rx.color to work with conditional vars ( #2546 )
2024-02-08 11:45:15 -08:00
Elijah Ahianyo
64a90fa6eb
Decorator to validate rx.color
prop fields ( #2553 )
2024-02-08 11:21:46 -08:00
Masen Furer
c596651de6
Fix pre-commit issues introduced from merging origin/main
2024-02-08 10:28:45 -08:00
Masen Furer
ae20644a82
Merge remote-tracking branch 'origin/main' into reflex-0.4.0
2024-02-08 10:17:34 -08:00
Alek Petuskey
ea2a5904f2
Text default as p ( #2551 )
2024-02-07 18:53:59 -08:00
Tom Gotsman
cb66933921
many small changes from going over all props ( #2532 )
2024-02-07 18:16:47 -08:00
Masen Furer
c124650082
Merge remote-tracking branch 'origin/main' into reflex-0.4.0
2024-02-07 13:53:39 -08:00
Thomas Brandého
88f0be004d
ordered & unordered lists ( #2537 )
2024-02-07 12:29:29 -08:00
Tom Gotsman
57b75c6497
update slider so width automatically set ( #2542 )
2024-02-07 12:06:41 -08:00
Nikhil Rao
eacd534137
Increase debounce timeout to 300ms ( #2541 )
2024-02-07 11:55:43 -08:00
Masen Furer
de6244483d
[REF-1743] Implement radix-native color mode switch and button ( #2526 )
2024-02-07 11:55:25 -08:00
Elijah Ahianyo
1e4b0a163c
Map Accordion color schemes to radix colors ( #2511 )
2024-02-07 09:52:09 -08:00
Thomas Brandého
a858d3a755
remove radix icons ( #2538 )
...
* remove radix icons
* update pyi
2024-02-06 14:21:22 -08:00
Nikhil Rao
e2c3081d1e
Remove focus-visible package ( #2535 )
2024-02-06 11:36:12 -08:00
Elijah Ahianyo
8e2c9681f7
Radix Components Valid children/parents ( #2495 )
2024-02-06 10:55:00 -08:00
Masen Furer
660113fcf9
Merge remote-tracking branch 'origin/main' into reflex-0.4.0
2024-02-05 11:41:40 -08:00
Masen Furer
f99c48806a
Top-level namespace tweaks ( #2523 )
...
* pyi_generator: always ignore files starting with `tests`
* Move CodeBlock out of chakra namespace
* Expose additional names in the top-level namespace
* code pyi fixup
* expose input and quote at the top-level
* add text_field to top-level namespace (maybe)
* fixup chakra code.pyi
* Remove `text_field` from top level namespace
* Remove top-level big C Cond
* fixup top level pyi
2024-02-05 11:14:02 -08:00
Martin Xu
1bf4e23bf3
add dropdown primitive props ( #2521 )
2024-02-04 18:57:33 -08:00
Alek Petuskey
5589cbbfc2
Refactor rx.color ( #2522 )
...
* Refactor
* Lint
* Change name space to top level
* Update test
* Lint
* Fix pyright
* Update pyi
---------
Co-authored-by: Alek Petuskey <alekpetuskey@aleks-mbp.lan>
Co-authored-by: Nikhil Rao <nikhil@reflex.dev>
2024-02-04 15:39:07 -08:00
Nikhil Rao
05d1be2182
Move core components to radix namespace ( #2506 )
2024-02-02 14:26:46 -08:00
Masen Furer
8a3cec11cd
Merge remote-tracking branch 'origin/main' into reflex-0.4.0
2024-02-02 13:50:41 -08:00
Thomas Brandého
ba3de9b9e9
fix icon_button to size children lucide icon correctly. ( #2515 )
2024-02-02 12:23:31 -08:00
Masen Furer
2f70e3e43a
[REF-1839] Reserve top-level __call__ for a future high level API ( #2518 )
...
* Reserve top-level __call__ for a future high level API
Instead of aliasing the top-level `__call__` to `.root`, require users
to explicitly call `.root` to avoid breakage when a future high level
API gets implemented and takes over the top-level `__call__`
Fix REF-1839
* alertdialog: forgot this one
2024-02-02 12:16:59 -08:00
Alek Petuskey
02e626465c
Add comment for theme panel needed for docs ( #2508 )
...
* Add comment for theme panel needed for docs
* update pyi
---------
Co-authored-by: Alek Petuskey <alekpetuskey@aleks-mbp.lan>
Co-authored-by: Masen Furer <m_github@0x26.net>
2024-02-02 09:41:27 -08:00
Masen Furer
35b20d26b5
Merge remote-tracking branch 'origin/main' into reflex-0.4.0
2024-02-02 08:39:10 -08:00
Masen Furer
6d33156d15
Move is_used
to Upload component rather than UploadFilesProvider ( #2514 )
2024-02-01 17:57:43 -08:00
Tom Gotsman
1b4229691a
All event handlers inherit from event triggers ( #2507 )
...
* update to ensure every radix component only inherits events from EventTriggers class
* update the naming of event handlers to swap name on_value_change and on_checked_change to on_change
* update to call _replace_prop_names in component.py
* small darglint error fix
* update to ensure every radix component only inherits events from EventTriggers class
* update the naming of event handlers to swap name on_value_change and on_checked_change to on_change
* update to call _replace_prop_names in component.py
* small darglint error fix
* updates to pass pytest tests
* small fix
* duplicate removal
---------
Co-authored-by: Tom Gotsman <tomgotsman@toms-mbp.lan>
2024-02-01 16:11:15 -08:00
Martin Xu
c067033ed0
radix Theme panel_background prop: transparent -> translucent ( #2504 )
2024-01-31 16:06:23 -08:00
Masen Furer
9c086163df
[REF-1631] Clean up the rx.radix namespace ( #2501 )
2024-01-31 15:32:17 -08:00
Martin Xu
38845db60c
Add props from Radix tooltip primitives to tooltip component ( #2499 )
...
* add tooltip primitives props to tooltip
* ruff
2024-01-31 14:21:34 -08:00
Nikhil Rao
5176a7cb14
Support component create methods as keys in global styles ( #2498 )
2024-01-31 12:25:18 -08:00
Masen Furer
4df279b060
Merge remote-tracking branch 'origin/main' into reflex-0.4.0
2024-01-31 12:06:51 -08:00
Masen Furer
a5302f1866
[0.4.0] Namespace the Drawer primitive subcomponents ( #2492 )
2024-01-31 11:39:13 -08:00
Elijah Ahianyo
d2fd0d3b92
[REF-1742] Radio group prop types fix ( #2452 )
2024-01-30 18:14:20 -08:00
Masen Furer
e12b15f1fe
[REF-1738] Remove radix-specific layout/margin props ( #2442 )
2024-01-30 16:58:28 -08:00
Nikhil Rao
27b9a10233
Merge branch 'main' into reflex-0.4.0
2024-01-30 16:48:38 -08:00
Nikhil Rao
833507b73a
Fix accordion pyi ( #2491 )
2024-01-30 16:12:50 -08:00
Thomas Brandého
6cf411aeb3
add center / spacer / hstack / vstack in radix/themes/layout ( #2331 )
2024-01-30 15:39:22 -08:00
Thomas Brandého
1d6da9010e
fix color of icon to match theme ( #2488 )
2024-01-30 14:31:57 -08:00
Thomas Brandého
0b3693f744
fix kebab case for icon ( #2487 )
2024-01-30 14:31:47 -08:00
Masen Furer
8ecfd07668
Radix themes: replace color_scheme
with color
in get_fields ( #2486 )
2024-01-30 14:08:18 -08:00
Tianze
209c5fab7b
Tabs validate parent is proper tab container ( #2463 )
2024-01-30 11:45:00 -08:00
Martin Xu
0378b2aa3a
Radix primitive based Drawer component ( #2445 )
2024-01-29 20:32:11 -08:00
Masen Furer
bd9d6e6789
Radix Primitive Component Namespaces
...
Expose subcomponents of radix primitives wrapped in a SimpleNamespace with a
__call__ method that points to the high-level API entry point.
2024-01-29 17:38:58 -08:00
Masen Furer
bece5bdb44
[REF-1632] Apply rx.App
styles to Radix Themes root div
( #2481 )
2024-01-29 16:58:05 -08:00
Martin Xu
b6f4422378
Use form_root as form high level API ( #2479 )
2024-01-29 13:42:01 -08:00
Elijah Ahianyo
3a97a10d92
Pass down themes for rx.cond
and rx.match
( #2432 )
2024-01-29 12:03:36 -08:00
Thomas Brandého
11f6d7ccef
add lucide icons as a candidate for core icon library ( #2444 )
2024-01-29 11:43:00 -08:00
Masen Furer
b2c749fc9f
[REF-1763] Rename color
to color_scheme
in all radix themes components ( #2468 )
2024-01-28 16:54:01 -08:00
Martin Xu
3c7356ac3c
remove modal prop from dialog ( #2470 )
2024-01-28 15:56:45 -08:00
Tom Gotsman
14e35e51ee
add separator default width to fill the container ( #2459 )
2024-01-28 15:51:11 -08:00
Nikhil Rao
d68de02bc8
Revert "Individually Import Chakra Packages ( #2405 )" ( #2472 )
2024-01-28 15:39:59 -08:00
Tom Gotsman
8203b888fe
minor update to callout ( #2466 )
...
* minor update to callout
* pyi changes
---------
Co-authored-by: Tom Gotsman <tomgotsman@toms-mbp.lan>
2024-01-26 15:39:19 -08:00
Masen Furer
52d2bccbca
[REF-1746] Define value
prop on base rx.el.textarea ( #2467 )
2024-01-26 15:11:22 -08:00
wassaf shahzad
069892d8ee
fixed issue with hypens ( #2450 )
2024-01-26 14:14:46 -08:00
Masen Furer
a2e0807dc1
Chakra IconButton comes from "@chakra-ui/button@2.1.0" package ( #2465 )
2024-01-26 14:10:51 -08:00
Tom Gotsman
8ae67f89e3
small changes to texfield and separator ( #2448 )
2024-01-25 13:36:32 -08:00
Alek Petuskey
00a8054850
Individually Import Chakra Packages ( #2405 )
...
* Base lib switch
Co-authored-by: Alek Petuskey <alekpetuskey@aleks-mbp.lan>
2024-01-25 10:22:46 -08:00
Elijah Ahianyo
5f1751acc2
Vardata for rx.Match ( #2439 )
2024-01-24 14:55:49 -08:00
Masen Furer
1a50a63b98
Docstrings for radix components ( #2407 )
2024-01-24 12:39:05 -08:00
Martin Xu
ec889c411b
radix link renders as next link by default use ( #2440 )
...
* radix link renders as next link by default use
* pyi
* rewrite
* pyi didn't seem to overwrite
* color -> color_scheme
2024-01-24 12:05:44 -08:00
Nikhil Rao
e94dcf335c
Input high level api ( #2410 )
...
* Input high level api
* finish off input high level api
* Switch order of props
---------
Co-authored-by: Tom Gotsman <tomgotsman@toms-mbp.lan>
2024-01-24 10:53:46 -08:00
benedikt-bartscher
0b1b8ee639
auto enable /_upload endpoint only if Upload component is used ( #2430 )
2024-01-23 12:20:06 -08:00
Martin Xu
84858854ae
Clean up Radix Form component ( #2423 )
...
* form pr
* cleanup
* pyi
2024-01-22 15:07:27 -08:00
Elijah Ahianyo
bd22bcfa60
Accordion styling fix ( #2420 )
2024-01-22 13:04:01 -08:00
Tom Gotsman
b305f895a8
minor update to select prop ( #2424 )
2024-01-21 13:31:47 -08:00
Nikhil Rao
a92abbb0ce
Radix callout high level api ( #2409 )
2024-01-18 18:19:26 -08:00
Tom Gotsman
c8693851fe
update to allow items to be autogenerated for docs ( #2419 )
2024-01-18 17:37:20 -08:00
Tom Gotsman
676f2c5dc2
radiogroup high level api ( #2401 )
2024-01-18 16:41:55 -08:00
Tom Gotsman
7d99d235f1
create high level api for select component ( #2402 )
2024-01-18 16:24:36 -08:00
Tom Gotsman
035fc8e15a
high level api for checkbox ( #2406 )
2024-01-18 15:58:02 -08:00
Alek Petuskey
d466c2aaa2
Radix Accordion ( #2310 )
2024-01-18 14:20:21 -08:00
Alek Petuskey
0bb9a021a2
Overlay Components Improvements ( #2395 )
2024-01-15 15:06:27 -08:00
Masen Furer
fc2f6cddf9
Inset: fix comment ( #2389 )
2024-01-12 14:40:28 -08:00
Masen Furer
fb89c374b1
Correct Radix Themes Slider props ( #2386 )
2024-01-12 14:40:08 -08:00
Masen Furer
6b6f3ae0be
Fix docstrings and comments for Box and Card components ( #2385 )
2024-01-12 14:39:45 -08:00
Masen Furer
27ed574b63
aspectratio: fix docstring and extra literal def ( #2379 )
2024-01-11 14:04:06 -08:00
Elijah Ahianyo
05b4267bb4
Pin version for data editor deps ( #2383 )
2024-01-11 14:03:41 -08:00
Martin Xu
a53af00480
Clean up Radix Avatar components props ( #2375 )
...
* clean up some props for some radix components
* pyi
2024-01-11 11:26:43 -08:00
Tom Gotsman
c81fa261b2
update radix components ( #2380 )
...
* update radix components
* update for pyi
* updates for pre commit
* update pyi again
---------
Co-authored-by: Tom Gotsman <tomgotsman@toms-mbp.lan>
2024-01-10 17:56:04 -08:00
macmoritz
43a0867bb4
add time_picker component ( #2343 )
2024-01-05 18:25:10 -08:00
Tom Gotsman
51baa94ed5
adding cancel and action sub components for alert dialog and rename alert dialog root ( #2352 )
...
* adding cancel and action sub components for alert dialog
* updates to pass integration tests
* add components
---------
Co-authored-by: Tom Gotsman <tomgotsman@Toms-MacBook-Pro.local>
Co-authored-by: Tom Gotsman <tomgotsman@toms-mbp.lan>
2024-01-05 11:37:15 -08:00
Elijah Ahianyo
abfc099779
rx.match component ( #2318 )
...
* initial commit
* add more tests
* refactor match jinja template
* add docstrings
* cleanup
* possible fix for pyright
* fix conflicts
* fix conflicts again
* comments
* fixed bug from review
* fix tests
* address PR comment
* fix tests
* type error improvement
* formatting
* darglint fix
* more tests
* stringify switch condition and cases as js doesnt support complex types(lists and dicts) in switch cases.
* Update reflex/vars.py
Co-authored-by: Masen Furer <m_github@0x26.net>
* change usages
* Precommit fix
---------
Co-authored-by: Alek Petuskey <alek@pynecone.io>
Co-authored-by: Masen Furer <m_github@0x26.net>
Co-authored-by: Alek Petuskey <alekpetuskey@aleks-mbp.lan>
2024-01-04 09:48:18 -08:00
Tom Gotsman
32b9b00e05
update inline so all props have comments ( #2353 )
2024-01-03 15:30:47 -08:00
Masen Furer
0211e9a0e5
Avoid passing props to lists and list items ( #2326 )
2023-12-21 15:58:45 -08:00
Thomas Brandého
527fa4bc3f
Add slider, progress, and form primitives ( #2306 )
2023-12-21 10:32:40 -08:00
Nikhil Rao
93c97383d9
Refactor chakra components into separate folder ( #2315 )
2023-12-21 09:52:08 -08:00
dodeca-6-tope
97f528e7b5
add size prop to the number input ( #2311 )
2023-12-20 13:54:20 -08:00
Tom Gotsman
5c5d17df59
Fixing bugs in radix ( #2316 )
2023-12-20 13:52:56 -08:00
Thomas Brandého
8ac08e2cb4
color_scheme props added and updated pyi files ( #2279 )
2023-12-18 20:47:18 -08:00
Nikhil Rao
5d21f0ca60
Add high-level API for accordion ( #2285 )
2023-12-18 17:21:49 -08:00
Elijah Ahianyo
53e402f47b
Chakra input component type_ prop literal ( #2292 )
2023-12-18 15:43:51 -08:00
Elijah Ahianyo
9629b59617
DataFrame Serializer fix ( #2281 )
2023-12-12 14:03:40 -08:00
Masen Furer
e52267477c
[REF-1417] Convert underscore-prefixed style props to pseudo selector ( #2266 )
2023-12-11 13:37:57 -08:00
Nikhil Rao
96f68cb94d
Implement accordion component ( #2262 )
...
* Implement accordion component
* Fix literal annotation
* Use style prop instead of css
* Move accordion to primitives folder
* Add pyi file
* Fix pyright
* Add apply_theme method
* Fix apply_theme
* Use apply_theme method
* Fix lint
2023-12-08 21:20:30 -08:00
Thomas Brandého
0ca903e468
wrap radix icons ( #2263 )
...
* Add inital ui
* More radix updates
* Add el inheritance
* Add el inheritance for layout
* Triggers + primitive prop inheritance
* Initial Primitives
* Small fix
* Update select
* Radix Themes fixups (#2245 )
* [REF-1367] Fix up event trigger specs
* Add missing name/value props for form controls
Checkbox was incorrectly tagged Button
TextArea was incorrectly tagged TextArea.Input
* [REF-1364] Radix Link now renders as a NextLink
For href as Var or href does not contain the ://, then
render as a NextLink for efficient inner-app navigation
* More changes
* PYI
* add @radix-ui/icons to radix.themes
* add pyi file
* fix for py3.8
---------
Co-authored-by: Alek Petuskey <alekpetuskey@aleks-mbp.lan>
Co-authored-by: Masen Furer <m_github@0x26.net>
2023-12-07 14:08:20 -08:00
Thomas Brandého
a0bd83b915
add event triggers for base html components ( #2276 )
2023-12-07 11:22:40 -08:00
Thomas Brandého
caf32605ca
add next/image and next-video in next namespace ( #2223 )
2023-12-07 10:38:47 -08:00
Alek Petuskey
7164b91d7b
Implement Radix Themes ( #2236 )
2023-12-06 16:47:03 -08:00
Nikhil Rao
46d03880e6
Format var better in error message ( #2269 )
2023-12-06 13:31:29 -08:00
Masen Furer
e0a1b39231
[REF-1425] Always capitalize tag of StatefulComponent ( #2264 )
2023-12-06 09:41:09 -08:00
Masen Furer
eb79da8538
[REF-1352] Markdown component_map hash improvements ( #2241 )
2023-12-01 11:45:22 -08:00
Masen Furer
49ccd2f1fb
Generalize MemoizationLeaf Component mixin ( #2247 )
2023-12-01 11:41:11 -08:00
Masen Furer
4ada79c1e5
[REF-1349] RechartsCharts and ResponsiveContainer must be memo leaf ( #2240 )
2023-12-01 09:49:59 -08:00
Masen Furer
a2d5bbc133
[reflex-web tweaks] Do not memoize children of InputGroup ( #2230 )
2023-11-30 09:48:28 -08:00
Masen Furer
a86bcb3c72
[reflex-web tweaks] chakra Icon is a ChakraComponent (use sx for style) ( #2231 )
...
* chakra Icon is a ChakraComponent (use sx for style)
* icon: update pyi file
2023-11-29 14:48:32 -08:00
Masen Furer
3deb2cec93
code_block responds to color mode by default ( #2228 )
2023-11-28 13:24:38 -08:00
Masen Furer
0c55723df4
[REF-1158] Move chakra-only deps to chakra lib ( #2171 )
2023-11-28 00:04:07 -08:00
Masen Furer
626357ed87
Memoize markdown component_map ( #2219 )
2023-11-27 18:09:41 -08:00
Alek Petuskey
065b1b88d2
Add index on tabs ( #2225 )
...
* Add index on tabs
---------
Co-authored-by: Alek Petuskey <alekpetuskey@aleks-mbp.lan>
2023-11-27 17:59:35 -08:00
Masen Furer
527437cf23
[REF-144] Add context in each component to prevent rerenders ( #2198 )
2023-11-27 16:05:59 -08:00
Thomas Brandého
ed5b3818cb
update removal version of deprecated features ( #2224 )
2023-11-27 14:04:55 -08:00
Thomas Brandého
d61b83fde7
add/subtract in moment ( #2212 )
2023-11-22 13:13:59 -08:00
Masen Furer
1603144c7d
[REF-889] useContext per substate ( #2149 )
2023-11-21 11:52:06 -08:00
Nikhil Rao
e9437ad941
Use singleton app provider to speed up compiles ( #2172 )
2023-11-20 18:11:24 -08:00
Nikhil Rao
b5f6ab3a82
Fix pyright errors ( #2210 )
2023-11-20 18:10:41 -08:00
Tom Gotsman
b6e7744498
update column select literals ( #2150 )
2023-11-20 16:17:27 -08:00
Masen Furer
5eb4c4e62a
Serialize PIL Image in its format ( #2201 )
2023-11-20 16:17:09 -08:00
Alek Petuskey
88a3276356
HTML Refactor ( #2164 )
2023-11-20 15:16:03 -08:00
Thomas Brandého
1b402b65be
fix offset of data_editor input when page is scrolled ( #2208 )
2023-11-20 15:15:00 -08:00
Masen Furer
8e7d4819ee
check_generated_pyi: fix diff checking ( #2029 )
2023-11-17 15:21:52 -08:00
Thomas Brandého
1a83f85783
_valid_children and _invalid_children accessible from class ( #2192 )
2023-11-17 12:30:18 -08:00
Masen Furer
7eccc6d988
[REF-723+] Upload with progress and cancellation ( #1899 )
2023-11-16 15:46:13 -08:00
Alek Petuskey
e399b5a98c
Fix wrong modal sizes ( #2183 )
2023-11-16 15:35:15 -08:00
Thomas Brandého
ddb1f8133b
Apply new pyi script ( #2041 )
2023-11-16 10:27:04 -08:00
Tom Gotsman
d3314233bd
add in new no_of_lines prop for text ( #2184 )
...
* add in new no_of_lines prop for text
* black update
---------
Co-authored-by: Tom Gotsman <tomgotsman@toms-mbp.lan>
2023-11-15 17:59:52 -08:00
Alek Petuskey
93dcc6300d
Add chat icon ( #2181 )
2023-11-15 16:02:44 -08:00
Masen Furer
ce47fcfd6c
Fix CustomComponent rendering ( #2169 )
2023-11-14 13:03:12 -08:00
Masen Furer
f3929f47e3
form: only pass handleSubmit when on_submit is defined ( #2162 )
2023-11-13 23:27:42 -08:00
Nikhil Rao
33e4816950
Lazy import modules in reflex ( #2144 )
2023-11-13 19:48:12 -08:00
Masen Furer
27b09132b5
form: generate a unique on_submit suffix in create ( #2154 )
2023-11-13 12:52:26 -08:00
Elijah Ahianyo
ea22452b27
Reduce Syntax highlighter footprint ( #2037 )
2023-11-13 12:47:55 -08:00
Masen Furer
5e6520cb5d
Support Form controls via name attribute (no ID or ref) ( #2012 )
2023-11-10 12:58:59 -08:00
Nikhil Rao
e703d87450
Set unique index vars in rx.foreach ( #2126 )
2023-11-03 16:20:42 -07:00
Thomas Brandého
eb52edb067
components as props ( #2124 )
2023-11-03 13:29:18 -07:00
Thomas Brandého
eeeab441d8
add column resize for data editor ( #2099 )
2023-11-02 12:22:35 -07:00
shu-qian
a1c39b9968
Add 'orientation' Property to Reflex Stepper Components ( #2089 )
...
* Added 'orientation' property to Stepper
* import Literal in reflex/components/navigation/stepper.py
* Update reflex/components/navigation/stepper.py
---------
Co-authored-by: sq <1838545301@qq.com>
Co-authored-by: Masen Furer <m_github@0x26.net>
2023-11-01 11:51:23 -07:00
Thomas Brandého
853a43eaab
fix portal when using multiple datatable ( #2094 )
2023-10-31 17:07:28 -07:00
Thomas Brandého
60c8c1d40e
cleanup dataeditor js code and hooks ( #2095 )
2023-10-31 17:06:49 -07:00
Masen Furer
56476d0a86
Expose DOM event actions on EventHandler, EventSpec, and EventChain (stopPropagation) ( #1891 )
...
* Expose preventDefault and stopPropagation for DOM events
All EventHandler, EventSpec, and EventChain can now carry these extra
"event_actions" that will be applied inside the frontend code when an event is
triggered from the DOM.
Fix #1621
Fix REF-675
* Test cases (and fixes) for "event_actions"
* form: from __future__ import annotations
for py38, py39 compat
* Revert overzealous merge conflict resolution
2023-10-31 11:42:42 -07:00
Elijah Ahianyo
a2e185cced
Add none to color scheme literal ( #2055 )
2023-10-27 11:21:21 -07:00
Thomas Brandého
3262f29613
fix editable column and theme casting ( #2051 )
2023-10-27 09:38:25 -07:00
Nikhil Rao
8133aa10c9
Update base template ( #2027 )
2023-10-26 17:59:14 -07:00
Thomas Brandého
9a5579e1ef
Add datagrid editor ( #1941 )
2023-10-26 16:17:34 -07:00
Masen Furer
21dbdc0103
Replace renamed Var.type_ with _var_type ( #2039 )
2023-10-26 12:34:00 -07:00
Masen Furer
93d19d6dc3
[REF-938] Fix up radix themes issues ( #2002 )
2023-10-24 14:29:54 -07:00
Elijah Ahianyo
1662066af5
Remove victory charts ( #1945 )
2023-10-24 14:20:03 -07:00
Elijah Ahianyo
d785bd98da
Radix Themes style notation fix ( #2025 )
2023-10-24 10:29:44 -07:00
Elijah Ahianyo
b8f0674556
Improve Event handler Error message ( #2019 )
2023-10-24 10:28:51 -07:00
Thomas Brandého
490ae40a40
Wrap Moment Component ( #1994 )
...
* wip wrap moment
* add some props to moment
* fix typing for 3.8
* fix comment for props and add create method for moment-timezone
2023-10-23 13:24:11 +02:00
Masen Furer
fe244b7eec
multi_select somewhat usable ( #1861 )
2023-10-20 09:43:46 -07:00
Elijah Ahianyo
06bdf9ed8a
Remove 0.3.0 deprecated features ( #1947 )
2023-10-19 09:44:32 -07:00
Biresh Biswas
317b883ec8
fix rx.audio playing prop type: str to bool ( #1986 )
2023-10-17 13:03:57 -07:00
Masen Furer
67606561d3
[REF-668] Wrap MyApp with radix Theme component ( #1867 )
...
* partly add some radix-ui/themes based components
* add @radix-ui/themes integration to top-level app
* WiP: compile _app_wrap based on which component library is used
TODO: working color mode
* WiP get color mode working with agnostic provider
still not perfect, as the RadixColorModeProvider seems to trip hydration errors
when using color_mode_cond component, but for now, this provides a nice balance
between the two libraries and allows them to interoperate.
* WiP template _app.js instead of making a separate wrap file
* WiP: use next-themes for consistent darkmode switching
* strict pin chakra deps
* Move ChakraColorModeProvider to separate js file
* move nasty radix themes js code into js files
* remove chakra from default imports
* chakra fixup import to use .js extension
* Add radix theme typography and layout components
* do NOT special case the radix theme...
avoid templating json and applying it, avoid non-customizable logic
just add the radix Theme component as an app wrap if the user specifies it to
rx.App, and any other app-wrap theme-like component could _also_ be used
without having to change the code.
this also allows different themes for different sections of the app by simply
placing elements inside a different rdxt.theme wrapper.
* Theme uses "radius" not "borderRadius"
* move next-themes to main packages.json
this is always used, regardless of the component library
* test_app: test cases for app_wrap interface
* Finish wrapping Button, Switch, and TextField components
* docstring, comments, static fixups
* debounce: use alias or tag when passing child Element
Fix REF-830
* test_app: ruin my beautiful indentation
* py38 compatibility
* Add event triggers for switch and TextField
* Add type hints for radix theme components
* radix themes fixups from writing the tests
* Add integration test for radix themes components
* test_app: mock out package installation
we only need the compile result, we're not actually trying to install packages
* avoid incompatible version of @emotion/react
* test_radix_themes: include theme_panel component
* next-themes default scheme: "light"
until all of our components look good in dark mode, need to keep the default as
light mode regardless of the system setting.
2023-10-16 15:31:50 -07:00
Masen Furer
4c554c953d
ChartBase.create: include default min dimensions (RESUB) ( #1975 )
2023-10-16 12:05:33 -07:00
Elijah Ahianyo
c6abeb31a5
Props as Literals ( #1921 )
2023-10-15 20:16:39 -07:00
Masen Furer
024cb5fa9b
Var field cleanup ( #1943 )
2023-10-13 14:53:55 -07:00
Masen Furer
684912e33b
[REF-843] Automatically update api_url and deploy_url ( #1954 )
2023-10-13 12:59:19 -07:00
Nikhil Rao
7019708638
Fix custom components special props ( #1956 )
2023-10-12 15:27:41 -07:00
Alek Petuskey
86c624e939
Readded victory create methods and imports ( #1938 )
2023-10-09 11:53:41 -07:00
Alek Petuskey
80bf48b872
Pin Recharts Dependency ( #1934 )
...
* Pin dependency
* Translated README.md file to Brazilian Portuguese (PT-BR) (#1936 )
* Namespace Recharts + Victory Back With Depreciation Warning (#1928 )
---------
Co-authored-by: Alek Petuskey <alekpetuskey@Aleks-MBP.attlocal.net>
Co-authored-by: Victor Moura <26290053+victorcmoura@users.noreply.github.com>
2023-10-08 19:33:37 -07:00
Alek Petuskey
06103a4d8d
Namespace Recharts + Victory Back With Depreciation Warning ( #1928 )
2023-10-08 19:09:09 -07:00
Thomas Brandého
837549bf6e
fix backward compat of menu api ( #1925 )
2023-10-05 12:55:47 -07:00
Nikhil Rao
85937c2369
Pin frontend package versions ( #1920 )
2023-10-05 12:45:21 -07:00
Elijah Ahianyo
513835cf74
Update Deprecations ( #1927 )
2023-10-05 12:12:42 -07:00
Alek Petuskey
67eb661704
Core Graphing -> Recharts ( #1878 )
2023-10-04 15:05:08 -07:00
Elijah Ahianyo
68664a5094
Deprecate set_cookie and set_local_storage ( #1917 )
2023-10-04 14:15:37 -07:00
Thomas Brandého
58933278ad
fix rx.image src not working with state ( #1915 )
2023-10-04 14:15:18 -07:00
Thomas Brandého
c131f76e33
fix menu items= API ( #1905 )
2023-10-02 17:42:36 -07:00
Nikhil Rao
53d205ad9f
Improve default rx.markdown styling ( #1904 )
2023-10-02 11:52:16 -07:00
Masen Furer
0a196693a3
Add Editor component ( #1851 )
2023-10-02 09:41:58 -07:00
Masen Furer
bd0cd18796
circular_progress cleanup: size, thickness, label ( #1879 )
2023-09-28 17:29:28 -07:00
Thomas Brandého
dcb17103bb
code cleanup (split constants into a folder) ( #1866 )
2023-09-28 17:27:20 -07:00
Elijah Ahianyo
8326abf5d5
Button Group variant and size props ( #1873 )
2023-09-28 10:56:28 -07:00
Elijah Ahianyo
26885d98cf
rx.table __bool__ regression fix ( #1828 )
2023-09-28 09:31:01 -07:00
Masen Furer
991c7202a7
rx.call_script: a real EventHandler to execute arbitrary javascript ( #1860 )
2023-09-27 18:27:48 -07:00
Elijah Ahianyo
4e82102ad0
Add button spinner_placement prop ( #1871 )
2023-09-26 10:24:38 -07:00
Nikhil Rao
d1019fb977
Fix style rendering in markdown ( #1869 )
2023-09-26 10:24:12 -07:00
Nikhil Rao
8231993e5a
Improvements to custom styles in rx.markdown ( #1852 )
2023-09-25 15:59:48 -07:00
Masen Furer
2f284a08b6
component: imports
override _get_dependencies_imports
( #1859 )
2023-09-24 01:46:35 -07:00
Thomas Brandého
211dc15995
New API to define triggers ( #1820 )
2023-09-21 09:47:22 -07:00
Nikhil Rao
ac8dfc5f91
Format component as React string ( #1848 )
2023-09-20 19:30:38 -07:00
Thomas Brandého
15ced6b795
allow for non-installable imports ( #1843 )
2023-09-20 16:47:27 -07:00
Nikhil Rao
3113aecb30
Support custom styling for code in markdown ( #1844 )
2023-09-20 11:40:25 -07:00
Nikhil Rao
9e533ee58a
Remove extra imports from rx.markdown ( #1837 )
2023-09-19 15:52:56 -07:00
Nikhil Rao
1938a6cc58
Add serializers for different var types ( #1816 )
2023-09-15 17:19:26 -07:00
Evan Harley
63ae96ede3
Number input float ( #1817 )
2023-09-15 09:58:33 -07:00
Masen Furer
43f3990448
numberinput: check _id is not None
to avoid Var truthiness warning ( #1806 )
2023-09-12 12:36:22 -07:00
wassaf shahzad
77edb01e74
removed is_read_only from select ( #1799 )
2023-09-12 08:38:49 -07:00
Evan Harley
fca5815a37
Implemented color_scheme for Tabs Component ( #1792 )
2023-09-09 22:43:11 -07:00
Thomas Brandého
27eeab485e
move dynamic imports to dedicated method ( #1785 )
2023-09-08 14:53:39 -07:00
Thomas Brandého
2d570b3bcd
Fix some docstrings in pyi ( #1773 )
2023-09-07 12:55:49 -07:00
Thomas Brandého
043648da07
improve pyi files generation ( #1765 )
2023-09-07 00:23:17 -07:00
Masen Furer
38c5503f94
Client-side Routing (404 redirect) ( #1695 )
2023-09-05 16:22:00 -07:00
Masen Furer
71811a600c
Var: __bool__ and __iter__ always raise a TypeError ( #1750 )
2023-09-05 13:44:22 -07:00
Masen Furer
f9fad58769
ConnectionModal uses Cond for rendering ( #1739 )
2023-09-01 13:07:48 -07:00
Elijah Ahianyo
829a7751b5
Refactor: Move format_prop Static Method for Improved Reusability ( #1714 )
2023-09-01 13:01:11 -07:00
Nikhil Rao
1d9f25be6d
Fix project hash and modernize type annotations ( #1704 )
2023-08-31 17:04:39 -07:00
Thomas Brandého
63b5fbd7b0
add pyi_generator script ( #1708 )
2023-08-31 14:25:56 -07:00
Alek Petuskey
fed75ea7f8
Incrementally Add New Packages ( #1607 )
2023-08-31 14:20:44 -07:00
Masen Furer
99843d98af
debounce_input should respect child ref ( #1717 )
2023-08-30 12:46:55 -07:00
Masen Furer
2392c52928
Implement on_mount
and on_unmount
for all components. ( #1636 )
2023-08-30 09:50:39 -07:00
Masen Furer
6b481ecfc3
ConnectionModal and ConnectionBanner cleanup ( #1379 )
2023-08-28 18:04:52 -07:00
Martin Xu
51f0339fa4
Add special var for upload: clear_selected_files ( #1703 )
2023-08-28 17:15:31 -07:00
Martin Xu
82dc237f44
Revert "Use DebounceInput wrapper for fully controlled Editable" ( #1670 )
2023-08-23 17:16:03 -07:00
Elijah Ahianyo
217a5806ee
Validate component children ( #1647 )
2023-08-23 15:56:27 -07:00
wassaf shahzad
42e9924273
added support for limits in pagination ( #1646 )
2023-08-22 00:42:34 -07:00
Mudassir Chapra
0ce77c1ca9
Added the step
prop to Slider
[Issue #1639 ] ( #1643 )
2023-08-21 15:10:52 -07:00
danik292
af08e06569
remove prop debounce_timeout
from input and textarea ( #1645 )
2023-08-21 14:44:59 -07:00
Martin Xu
d884b7ba96
Use DebounceInput wrapper for fully controlled Editable ( #1650 )
2023-08-21 14:25:56 -07:00
Martin Xu
f5067d4050
add prop debounce_timeout
to input and textarea, default to 50 ( #1627 )
2023-08-18 16:58:35 -07:00
Masen Furer
042710ca91
Handle file uploads with component-local state ( #1616 )
2023-08-18 13:12:17 -07:00
Martin Xu
fd4a6257c3
Remove unused full_control
related code ( #1624 )
...
* remove full_control related code
* remove more unused code
2023-08-18 12:56:33 -07:00
Masen Furer
bb337be06c
link: fix link with no href ( #1612 )
2023-08-17 13:32:53 -07:00
Nikhil Rao
00714c60ac
Fix rx.link href prop and Var.to_string type ( #1600 )
...
* Fix rx.link href prop
* Update bool var types
2023-08-16 11:41:19 -07:00
Masen Furer
2eefb5d26c
Fix non-default imports for NoSSRComponent ( #1548 )
2023-08-15 17:32:23 -07:00
Nikhil Rao
6d15326abf
Support f-strings in component children and non-style props ( #1575 )
2023-08-14 11:33:16 -07:00
Thomas Brandého
cd47815a4d
form support more inputs ( #1554 )
2023-08-10 09:54:04 -07:00
Elijah Ahianyo
6c517a39df
Flex props to support Lists ( #1553 )
2023-08-09 20:48:28 -07:00
Alek Petuskey
9f7a7a1e4a
Got rid of mod_import ( #1547 )
2023-08-08 17:20:09 -07:00
Masen Furer
1d0a34a3f5
Expose NoSSRComponent for downstream use ( #1537 )
2023-08-07 14:47:07 -07:00
Masen Furer
4a658ef9be
Wrap Input and TextArea with DebounceInput for full control ( #1484 )
2023-08-07 14:27:42 -07:00
Masen Furer
e214aa26aa
NoSSRComponent recognizes is_default ( #1533 )
2023-08-07 11:50:37 -07:00
Nikhil Rao
9d53f4c1e1
Add alt tag for images ( #1524 )
2023-08-04 17:05:16 -07:00
Alek Petuskey
b9536bcf40
Fix Nextjs Dynamic Import ( #1480 )
...
* Fix dunamic imoprt for react player and plotly
* Fix format
* Fix pr comments
* Update react player
---------
Co-authored-by: Alek Petuskey <alekpetuskey@aleks-mbp.lan>
2023-07-31 16:02:14 -07:00
Masen Furer
c11d9e657f
Disable fully controlled Input and TextArea ( #1383 )
2023-07-31 12:19:34 -07:00
Thomas Brandého
6555234dee
fix breadcrumb API & add get_page_crumbs method ( #1387 )
2023-07-28 16:40:49 -07:00
Nikhil Rao
d0fc965c7f
rx.markdown custom styles for tags ( #1416 )
2023-07-25 13:28:02 -07:00
Nikhil Rao
c94b2e4636
Fix foreach indexing ( #1403 )
2023-07-21 20:09:20 -07:00
Thomas Brandého
9510c58296
Fix datatable rendering ( #1360 )
2023-07-21 11:23:51 -07:00
Nikhil Rao
723105d8bb
Fix foreach index type ( #1389 )
2023-07-20 13:03:28 -07:00
Masen Furer
370e1fd04c
table: allow rows to be a Var ( #1374 )
2023-07-19 18:01:44 -07:00
Masen Furer
bfec196d84
Expose Script component from next/script ( #1355 )
2023-07-18 18:57:50 -07:00
Nikhil Rao
3f151f054d
Generate sitemap on export ( #1358 )
...
* Generate sitemap on export
* Remove prints
2023-07-17 23:14:37 -07:00
Masen Furer
2c97c1e7ca
reflex.testing.AppHarness: tools for testing reflex apps ( #1326 )
2023-07-13 15:45:57 -07:00
Nikhil Rao
bb6be16963
Fix codeblock import ( #1337 )
2023-07-12 17:09:24 -07:00
Alek Petuskey
f79ba97ce3
Add input element addons left/right ( #1335 )
2023-07-12 15:37:06 -07:00