Elijah Ahianyo
eeff4142ab
Accordion Root Exclude color_scheme
and variant
props in tag ( #2664 )
...
* Accordion Root Exclude `color_scheme` and `variant` props in tag
* colorScheme -> color for radix primitives
* remove _rename_props based on pr comments
* lint
* pyi fix
* pop instead of del
2024-02-20 09:57:01 -08:00
Masen Furer
279e9bfa28
[REF-1993] link: respect is_external
prop and other attributes on A tag ( #2651 )
...
* link: respect `is_external` prop and other attributes on A tag
Instead of passing all props to NextLink by default, only pass props that
NextLink understands, placing the remaining props on the Radix link
Add a test case to avoid regression of `is_external` behavior.
* Link is a MemoizationLeaf
Because Link is often rendered with NextLink as_child, and NextLink breaks if
the href is stateful outside of a Link, ensure that any stateful child of Link
gets memoized together.
2024-02-19 15:43:27 -08:00
abulvenz
052f82cd06
fix: File upload error after using rx.clear_selected_files ( #2666 )
2024-02-19 10:42:11 -08:00
Nikhil Rao
899e35edba
Deprecate get_asset_path ( #2644 )
2024-02-16 11:53:51 -08:00
Nikhil Rao
4ad238c42c
Update deprecation version to 0.5.0 ( #2642 )
2024-02-16 11:23:15 -08:00
Elijah Ahianyo
3f24b42260
Drawer component styles should only be in css dict ( #2640 )
2024-02-16 09:41:02 -08:00
Masen Furer
10984ef869
Quick fixes for regressions in 0.4.0 ( #2639 )
...
* rx.el.img accepts Any type for src prop
This retains compatibility with the previous chakra image src prop.
* Re-add `moment` back to top-level namespace
2024-02-15 22:48:52 -08:00
Masen Furer
1698e3e5e3
Fix more information link to v0.4.0 blog post ( #2638 )
2024-02-15 20:51:06 -08:00
Masen Furer
3350fa0388
Component: translate underscore suffix for props supported by chakra ( #2636 )
...
* Component: translate underscore suffix for props supported by chakra
type_ becomes type
min_ becomes min
max_ becomes max
id_ becomes id
The deprecation warning is only displayed when the underscore suffix prop is
passed and the non-underscore suffix prop is defined on the given component.
* Rename type_ to type in accordion and scroll_area
All of the new radix components avoid the underscore suffix names where
possible.
* Update deprecation warning wording
* Refactor for readability
* Do not raise deprecation warning for `id_`
id is kind of a special prop because it exists on all components
* Add test case for deprecating underscore suffix props
2024-02-15 20:46:06 -08:00
Nikhil Rao
0beec0b2a6
Default high level radio to horizontal ( #2637 )
2024-02-15 20:34:52 -08:00
Masen Furer
b03fa5709f
rx.theme: Recognize color_mode
in addition to appearance
( #2635 )
2024-02-15 18:15:44 -08:00
Nikhil Rao
7240f8ee6f
Handle component namespaces in global styles ( #2630 )
2024-02-15 16:03:10 -08:00
Thomas Brandého
0cb66fb561
set default align stack ( #2626 )
2024-02-15 13:57:27 -08:00
Thomas Brandého
411a3a1f13
accordion default classname ( #2628 )
2024-02-15 13:57:12 -08:00
Nikhil Rao
6ded702d03
Simplify app template ( #2627 )
2024-02-15 12:51:52 -08:00
Masen Furer
d979d99338
[REF-1902] [REF-1987] Chakra upgrade message ( #2624 )
...
* Show rx.chakra upgrade message _before_ overwriting the version
Ensure that the conditions for showing the rx.chakra upgrade message
are checked before overwriting the version saved in .web/reflex.json.
Check for the absense of a config file to suppress the upgrade message
when init'ing a brand new project.
Check for the existance of `reflex.json` before opening it, since it
might not exist at the point it's checked.
* Update more information link in chakra upgrade message
* Fix long line
2024-02-15 12:49:53 -08:00
Timothy Pidashev
45b70a130c
align vstack in blank demo app ( #2625 )
2024-02-15 12:17:53 -08:00
Martin Xu
37eeea1100
Spacing literal should include "0" ( #2622 )
...
* spacing literal should include "0"
* rename to LiteralSpacing
* pyi
2024-02-15 11:54:38 -08:00
Masen Furer
44000af633
Unbreak demo app ( #2623 )
...
Apparently this was converted before code_block got moved back to the top
level.
2024-02-15 11:09:00 -08:00
Elijah Ahianyo
791fcc9b41
Text as_
prop literals update ( #2620 )
...
Support more literal values
2024-02-15 11:08:19 -08:00
Nikhil Rao
80c62da062
Use align start by default stacks ( #2619 )
2024-02-14 22:43:16 -08:00
Thomas Brandého
39486386f4
fix value/default_value in accordion ( #2616 )
...
* fix value/default_value in accordion
* fix for 3.8 compat
* update comment
2024-02-14 17:06:28 -08:00
Masen Furer
a91987c051
Update docstrings for Radix components based on upstream descriptions ( #2615 )
...
These are better than copying the generic description of Button in many many
many components.
2024-02-14 15:51:38 -08:00
Masen Furer
f12746d859
Inherit _rename_props from parent classes ( #2613 )
...
Ensure that _rename_props from base classes add to the list of _rename_props in subclasses.
Add a test case to validate this behavior.
2024-02-14 14:36:01 -08:00
Elijah Ahianyo
74d90ffb65
Apply themes to drawer content ( #2612 )
2024-02-14 13:36:48 -08:00
Elijah Ahianyo
d8a9a0c95d
Accordion var data Attribute Error Fix ( #2611 )
2024-02-14 11:55:05 -08:00
Thomas Brandého
48d6717bb8
add span in text namespace ( #2607 )
2024-02-14 10:30:26 -08:00
Thomas Brandého
4232767b69
update docstrings for Dialog components ( #2608 )
2024-02-14 10:29:09 -08:00
Alek Petuskey
eadbf1d3db
Fix comments on drawer ( #2604 )
...
* Fix comments on drawer
* Fix precommit
* Fix pyi
* Fix table invalid children
---------
Co-authored-by: Alek Petuskey <alekpetuskey@aleks-mbp.lan>
2024-02-13 22:10:18 -08:00
invrainbow
e729a315f8
Fix fstrings being escaped improperly ( #2571 )
2024-02-13 14:32:44 -08:00
invrainbow
fccb73ee70
Fix rx.progress to support max
prop ( #2601 )
2024-02-13 14:25:31 -08:00
Elijah Ahianyo
5e9b472d1b
[REF-1919] Valid Children/parents to allow Foreach,Cond,Match and Fragment ( #2591 )
2024-02-13 14:22:22 -08:00
invrainbow
eea3b00deb
Fix AccordionItem interactive docs not showing up ( #2600 )
2024-02-13 14:08:30 -08:00
Masen Furer
656e43503c
[REF-1840] Clean up color_scheme
mapping ( #2602 )
2024-02-13 14:07:25 -08:00
Masen Furer
4b327edeb6
Merge remote-tracking branch 'origin/main' into reflex-0.4.0
2024-02-13 12:36:30 -08:00
Tom Gotsman
dec777485f
rx.download accepts data
arg as either str or bytes ( #2493 )
...
* initial attempt that works for dataframe and text downloads
* changes for masens comments
* Instead of using blob, just send a data: URL from the backend
* Enable rx.download directly with Var
If the Var is string-like and starts with `data:`, then no special processing
occurs. Otherwise, the value is passed to JSON.stringify and downloaded as
text/plain.
* event: update docstring and comments on rx.download
Raise ValueError when URL and data are both provided, or the data provided is
not one of the expected types.
---------
Co-authored-by: Tom Gotsman <tomgotsman@toms-mbp.lan>
Co-authored-by: Masen Furer <m_github@0x26.net>
2024-02-13 12:35:31 -08:00
jackie-pc
6b6eea4d7d
Revert "Revert "Revert "use process pool to compile faster ( #2377 )" ( #2434 )" ( #2497 )" ( #2595 )
2024-02-13 12:16:35 -08:00
Nikhil Rao
db90006512
Update input to use textfield.input ( #2599 )
2024-02-13 12:13:48 -08:00
Thomas Brandého
5328f624d4
update connection banner and connection modal to use Radix component instead of chakra ( #2593 )
2024-02-13 12:05:59 -08:00
Martin Xu
fda6785d56
sub form.root to form class solely for documentation ( #2594 )
2024-02-13 12:03:17 -08:00
jackie-pc
b130dd07cd
print background compile errors ASAP ( #2596 )
2024-02-13 12:02:37 -08:00
Elijah Ahianyo
c1089fc8f9
[REF-1925] Accordion foreach fix ( #2598 )
2024-02-13 11:58:48 -08:00
Masen Furer
d26ceb236d
Expose get_upload_url
and get_upload_dir
at top level
2024-02-13 11:14:15 -08:00
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
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
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
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
c9fadafc06
Merge remote-tracking branch 'origin/main' into reflex-0.4.0
2024-02-06 10:42:24 -08:00
Masen Furer
b3fb77f0d8
Add rx.lucide to top-level namespace
2024-02-06 09:38:18 -08:00
jackie-pc
0f3857ec9a
inline memoize components in compiled page files, to prevent hot reload errors ( #2527 )
2024-02-05 12:31:06 -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
benedikt-bartscher
9ce4e85050
fix appharness regex for functions with return type ( #2512 )
2024-02-02 09:35:44 -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
jackie-pc
80c9eb34e4
Rework telemetry to support installation_id ( #2480 )
2024-01-31 11:39:48 -08:00
Masen Furer
a5302f1866
[0.4.0] Namespace the Drawer primitive subcomponents ( #2492 )
2024-01-31 11:39:13 -08:00
jackie-pc
80dce21ac0
Revert "Revert "use process pool to compile faster ( #2377 )" ( #2434 )" ( #2497 )
2024-01-31 11:38:28 -08:00
wassaf shahzad
84a2bb9671
Added Environmental variable REFLEX_DIR ( #2457 )
2024-01-30 18:18:29 -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
benedikt-bartscher
be7f7969ed
improve sqlalchemy type parsing ( #2474 )
...
* improve sqlalchemy type parsing
* add support for propertys and relationships
* cleanup duplicate property check
* avoid confusion, improve readability
2024-01-30 15:57:56 -08:00
jackie-pc
032017df3a
simple pytest benchmark for measuring event <=> state update round trip time ( #2489 )
2024-01-30 15:55:55 -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
Kumara Guru M
3b1443e76f
Update meta parameter to accept a list of any type ( #2477 )
2024-01-29 16:52:28 -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
Nikhil Rao
01c2a1ed7d
Set correct type when indexing into Var[str] ( #2469 )
...
* Index into strings
* Write tests
2024-01-28 21:57:02 -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
Alek Petuskey
670faf291a
[WIP] rx.color ( #2443 )
...
* Color module intial commit
* Improvments
* Update reflex/constants/colors.py
Co-authored-by: Masen Furer <m_github@0x26.net>
* Comments+tests
* Fix import
---------
Co-authored-by: Alek Petuskey <alekpetuskey@aleks-mbp.lan>
Co-authored-by: Masen Furer <m_github@0x26.net>
Co-authored-by: Alek Petuskey <alekpetuskey@Aleks-MacBook-Pro.local>
2024-01-28 14:06:08 -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
Elijah Ahianyo
aad009e5df
Accordion style merge issue fix ( #2446 )
2024-01-26 14:12:18 -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
0d8efb9b55
parse return type annotations of sqlalchemy hybrid properties ( #2422 )
...
* parse return type annotations of sqlylchemy hybrid properties
* use get_type_hints instead of __annotations__
2024-01-23 14:00:07 -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
Nikhil Rao
f513f4c089
Revert "use process pool to compile faster ( #2377 )" ( #2434 )
2024-01-22 12:56:07 -08:00
Tom Gotsman
b305f895a8
minor update to select prop ( #2424 )
2024-01-21 13:31:47 -08:00
Masen Furer
9446a1e99f
[REF-1705] Do not overwrite Var attributes during format ( #2421 )
2024-01-19 15:17:00 -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
Nikhil Rao
2abecbdb9c
Remove default radix theme ( #2403 )
2024-01-18 15:25:23 -08:00
Alek Petuskey
d466c2aaa2
Radix Accordion ( #2310 )
2024-01-18 14:20:21 -08:00
Masen Furer
6fcc4fd357
Allow app harness tests to import State subclasses ( #2408 )
2024-01-18 12:54:29 -08:00
jackie-pc
2c270585ab
Skip frontend packages install if previously done ( #2400 )
2024-01-16 17:52:28 -08:00
benedikt-bartscher
1aca1b677f
fix is_backend_variable for dunder prefixed variables ( #2391 )
2024-01-16 17:37:05 -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
benedikt-bartscher
ae1a6e1acc
inherit computed vars from state mixins ( #2351 )
2024-01-12 14:22:38 -08:00
jackie-pc
a8756cb0f8
use process pool to compile faster ( #2377 )
2024-01-12 14:22:18 -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
Nikhil Rao
16f9f743bb
Import radix as rx.radix ( #2374 )
2024-01-09 10:36:37 -08:00
Elijah Ahianyo
26a9e79a5f
Resolve correct python path on windows ( #2373 )
2024-01-09 09:58:06 -08:00
Masen Furer
7cec7feb63
Update comments in template apps ( #2370 )
2024-01-08 16:10:56 -08:00
macmoritz
43a0867bb4
add time_picker component ( #2343 )
2024-01-05 18:25:10 -08:00
Masen Furer
87844c3f7d
Enable real app AppHarness tests to not specify state=
( #2358 )
2024-01-05 17:47:31 -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
benedikt-bartscher
58a7e5e460
support parsing type args of DeclarativeBase subclasses ( #2348 )
2024-01-03 11:55:07 -08:00
Masen Furer
414a879879
Handle VarData roundtrip when encoded value contains newline ( #2350 )
2024-01-03 09:46:22 -08:00
Masen Furer
accaf6dc52
[REF-1365] Radix + Tailwind Compatibility (and allow tailwind to be completely disabled) ( #2246 )
2023-12-28 00:14:04 -08:00
Thomas Brandého
78429866bd
fix editable property of columns being ignored in data_editor ( #2338 )
2023-12-28 00:09:07 -08:00
Jishnu N
c5c42665eb
add: reflex init app name validator ( #2336 )
2023-12-28 00:07:55 -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
f75d5f2808
fix tailwind for stateful components imported from utils ( #2328 )
2023-12-21 10:43:11 -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
Masen Furer
1289182f2e
Remove app.compile()
from templates ( #2327 )
2023-12-21 09:49:30 -08:00
Romain Bury
42bcea7631
update tailwind.config.js.jinja2 to add darkMode option ( #2312 )
2023-12-20 15:43:47 -08:00
Nikhil Rao
cfb9d44e0c
Apply default theme to apps ( #2320 )
2023-12-20 15:17:49 -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
jackie-pc
7388617b72
apps should no longer call "app.compile()" ( #2291 )
2023-12-18 16:06:21 -08:00
Martin Xu
3c07537c11
only exclude assets folder if it's in the root_dir ( #2308 )
2023-12-18 15:51:13 -08:00
Elijah Ahianyo
53e402f47b
Chakra input component type_ prop literal ( #2292 )
2023-12-18 15:43:51 -08:00
Elijah Ahianyo
70ac284370
Create .web only after template selection ( #2288 )
2023-12-14 15:18:27 -08:00
jackie-pc
92bd3da676
capture exceptions thrown by any process in run_concurrently_context ( #2296 )
2023-12-14 14:41:45 -08:00
Martin Xu
9da65b9a9a
[REF-1464] Handle requirements.txt encoding ( #2284 )
2023-12-14 14:25:40 -08:00
Masen Furer
e245b6b6a0
support SQLModel 0.0.14 + SQLAlchemy 2 ( #2283 )
2023-12-12 17:52:11 -08:00
Elijah Ahianyo
9629b59617
DataFrame Serializer fix ( #2281 )
2023-12-12 14:03:40 -08:00
benedikt-bartscher
f90982ea06
use redis-py url syntax for redis_url ( #2267 )
...
* use redis-py url syntax for redis_url
* port is optional
* Add StateManagerRedis.close method
The close helper method always calls `close_connection_pool=True` so that all
outstanding redis operations can be stopped before changing event loops.
---------
Co-authored-by: Masen Furer <m_github@0x26.net>
2023-12-12 10:54:10 -08:00
Masen Furer
e52267477c
[REF-1417] Convert underscore-prefixed style props to pseudo selector ( #2266 )
2023-12-11 13:37:57 -08:00
Alek Petuskey
421be5748b
Warning if newer reflex/reflex-hosting-cli available ( #2271 )
...
* Check to see if there are new reflex version avaliable if so throw a warning
* precommit
* request -> httpx
* Fix pr comments
* Forgot import
* Generalize check_latest_package_version
---------
Co-authored-by: Alek Petuskey <alekpetuskey@aleks-mbp.lan>
Co-authored-by: Alek Petuskey <alekpetuskey@Aleks-MBP.attlocal.net>
2023-12-08 21:21:12 -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
Tom Gotsman
d6374ca3f0
update var join function to use empty string ( #2270 )
2023-12-06 16:51:13 -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
Martin Xu
93e9e39aeb
fix condition for creating requirements.txt ( #2260 )
2023-12-06 11:28:58 -08:00
Masen Furer
e0a1b39231
[REF-1425] Always capitalize tag of StatefulComponent ( #2264 )
2023-12-06 09:41:09 -08:00
Masen Furer
21000d9889
state.js: do not connect unless a state subclass is defined ( #2259 )
2023-12-05 17:14:47 -08:00
Martin Xu
77405d1701
Only check requirements update in interactive mode ( #2258 )
2023-12-05 15:57:41 -08:00
Martin Xu
0fff63a52e
Pass export function with more args to hosting CLI ( #2254 )
2023-12-04 17:13:38 -08:00
Nikhil Rao
19c01492be
Update sidebar tutorial for new substates ( #2256 )
2023-12-04 16:49:28 -08:00
Masen Furer
0bbae2d3d5
[REF-1404] router_data not updated when processing events ( #2255 )
2023-12-04 16:45:22 -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
Thomas Brandého
1109f8f508
deprecate state arg in App() ( #2237 )
2023-12-01 09:50:40 -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
60147dec65
[REF-201] Separate on_load handler from initial hydration ( #1847 )
2023-11-30 12:21:15 -08:00
Masen Furer
3c7af9fad4
Support hooks in custom components (state, addEvents) ( #2234 )
2023-11-30 09:59:09 -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
Elijah Ahianyo
e3ee98098a
RED-1052/rx.State as Base State ( #2146 )
2023-11-29 09:43:33 -08:00
Martin Xu
f8395b1fd6
Separate out the hosting CLI from main repo ( #2165 )
2023-11-28 15:20:06 -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
ee87e62efa
[REF-1035] Track ComputedVar dependency per class ( #2067 )
2023-11-27 18:17:53 -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
8fc254041b
fix name for import var when is default and add tests ( #2214 )
2023-11-26 12:46:43 -08:00
Elijah Ahianyo
7f75571e67
Deprecate event namespace config knob ( #2218 )
2023-11-26 12:45:50 -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