Masen Furer
dcba038de5
Merge remote-tracking branch 'origin/main' into reflex-0.4.0
2024-02-13 11:10:33 -08:00
Masen Furer
b5f06991a9
Change names to get_upload_dir
and get_upload_url
( #2587 )
...
These shorter names are more concise and easier to type without losing
significant information.
2024-02-13 11:09:48 -08:00
Masen Furer
4206afeb7b
[REF-1958] Remove shadowed radix css props ( #2590 )
...
* style: shorthand replacements need camelCase
Avoid warning on terminal and in browser console from using kebab-case CSS
props with emotion.
* _rename_props only replace prop name once
In case the value also contains the prop name, we don't want to replace it
multiple times.
* pyi_generator: ignore _rename_props in create signature
* Avoid shadowing CSS prop `display` and `gap`
Replace usages of `gap` with `spacing` to retain Radix sizing number system,
while allowing users to specify a responsive `gap` using CSS units.
Remove `display` props from radix components, allowing `display` to accept
responsive lists.
* checkbox: apply `gap` to `flex` if provided
* Remove _rename_props from .create signatures
* Fix spacing prop in blank template
* Fixup tests after changing style shorthand to return camelCase
2024-02-13 10:06:28 -08:00
Nikhil Rao
f05d5ba7ba
Rename components in top level namespace ( #2589 )
2024-02-12 21:35:49 -08:00
invrainbow
f2a931339a
Merge pull request #2588 from reflex-dev/brandon/fix-progress
...
Fixes to rx.progress
2024-02-12 19:34:18 -08:00
invrainbow
61234ae164
Fix operator precedence ( #2573 )
2024-02-12 19:30:25 -08:00
Brandon Hsiao
de6835f464
ruff
2024-02-12 19:16:20 -08:00
Brandon Hsiao
481c9d9dbd
fix, lint
2024-02-12 18:57:52 -08:00
Brandon Hsiao
977a9d632b
add fixes to rx.progress
2024-02-12 18:38:34 -08:00
Alek Petuskey
de30e15b1d
Add alias for Vaul drawer ( #2586 )
2024-02-12 15:29:45 -08:00
Nikhil Rao
5c6a800b62
Update styles for progress ( #2570 )
2024-02-12 15:20:36 -08:00
Tom Gotsman
71e4d539f6
Remove dropdown menu sub content extra props ( #2582 )
2024-02-12 15:19:05 -08:00
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
Masen Furer
eafe53369e
keep-chakra: whitelist is always whitelist ( #2585 )
...
Regardless of whether the same name exists in the top level rx.<x> namespace,
always convert whitelisted names to rx.chakra.<x>
2024-02-12 14:55:39 -08:00
Masen Furer
fc6eff7104
Convert templates to use rx.chakra
where needed ( #2555 )
...
* Convert templates to use `rx.chakra` where needed
* reflex_init_in_docker_test: run test on PR into reflex-0.4.0
This is why we didn't catch the template issues earlier
2024-02-12 13:32:23 -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
Masen Furer
3df4eac33d
test_call_script: update poll ending condition to avoid race ( #2583 )
2024-02-12 12:21:30 -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
fe2778379d
Fix race condition in test_client_storage ( #2568 )
2024-02-09 16:15:07 -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
3619595bcc
Fixup import of ChakraComponent
...
It is no longer exposed in rx.components namespace
2024-02-08 12:50:07 -08:00
jackie-pc
a4c8c72177
(dev mode) start backend without waiting for page compilation ( #2549 )
...
* start backend without waiting for page compilation
* remove prints for measuring time saved
* pin tighter on uvicorn
2024-02-08 12:13:39 -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
jackie-pc
a4ee985509
CLI script to maintain Chakra backed components in rx namespace in older apps ( #2322 )
2024-02-08 11:12:20 -08:00
Masen Furer
b607531318
Unbreak tests after recent changes in main (p2)
2024-02-08 10:46:40 -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
450aa909ca
state.js: determine upload URL dynamically ( #2531 )
2024-02-07 15:33:16 -08:00
benedikt-bartscher
eabbbea171
fix EventHandlers and ComputedVars inherited by mixin classes ( #2534 )
...
* wip event handlers for state mixins
* fix computed vars, prepare event handler tests
* fix computed vars and event handlers inherited by mixins
* Base is not a mixin
* improve state inheritance tests
* wait for alerts to appear
* poll_for_content to fix flaky ci tests
2024-02-07 14:48:39 -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
Elijah Ahianyo
ce867d2f81
Support for Shorthand css props. ( #2547 )
2024-02-07 12:05:04 -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
Nikhil Rao
51a9b75141
Don't purge web dir if flag is set ( #2529 )
2024-02-06 14:27:44 -08:00
Thomas Brandého
a858d3a755
remove radix icons ( #2538 )
...
* remove radix icons
* update pyi
2024-02-06 14:21:22 -08:00