Commit Graph

90 Commits

Author SHA1 Message Date
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
024cb5fa9b
Var field cleanup (#1943) 2023-10-13 14:53:55 -07:00
Thomas Brandého
dcb17103bb
code cleanup (split constants into a folder) (#1866) 2023-09-28 17:27:20 -07:00
Masen Furer
351611ca25
rx.background and StateManager.modify_state provides safe exclusive access to state (#1676) 2023-09-21 11:42:11 -07:00
Thomas Brandého
043648da07
improve pyi files generation (#1765) 2023-09-07 00:23:17 -07:00
Masen Furer
2e014422f5
App: only render default overlay_component when DefaultState is not used (#1744) 2023-09-05 16:22:25 -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
cc89f2b6e7
Proper serialization for chained Event payloads (#1725) 2023-08-31 09:50:15 -07:00
Nikhil Rao
0beb7a409f
Clean up config parameters (#1591) 2023-08-18 14:22:20 -07:00
Elijah Ahianyo
549ab4e708
rx.App state arg should not be required (#1361) 2023-07-21 11:47:38 -07:00
Elijah Ahianyo
ca11b82432
Yield with uploads (#1339) 2023-07-18 14:06:57 -07:00
Siddhant Goel
c6c4410db5
Allow view overrides for registering models with admin (#1249) 2023-06-27 14:08:09 -07:00
Nikhil Rao
139ce38df1
Rename pynecone to reflex (#1236) 2023-06-25 16:56:55 -07:00
Elijah Ahianyo
278222db8f
async tests to test yield functionality (#1163) 2023-06-07 11:50:27 -07:00
Christopher Terrazas
d793e7a4dd
Feat/admin dashboard (#1098) 2023-06-06 11:53:34 -07:00
Nikhil Rao
a18c6880b5
Add async events (#1107) 2023-06-01 21:47:55 -07:00
Nikhil Rao
92b1e241ac
Update dependency versions (#1007) 2023-05-12 00:09:58 -07:00
Nikhil Rao
6af7db42fb
Fix unit tests (#993) 2023-05-10 10:50:32 -07:00
Masen Furer
e887dd143b
Trigger on_load when router completes navigation (#984) 2023-05-10 01:11:54 -07:00
Masen Furer
557097e2ca
ComputedVar dependency tracking: require caller to pass objclass (#963)
Avoid issue where a ComputedVar is added to to a class dynamically, but does
not have a reference to the class its attached to, but requiring callers of the
`deps()` method to provide the objclass for looking up recursive method calls.

This allows for safer and more simplified determination of dependencies, even
in highly dynamic environments.
2023-05-09 14:36:45 -07:00
Masen Furer
b4e534cc97
Cache ComputedVar fixup for dynamic route vars (#952) 2023-05-06 12:44:50 -07:00
Elijah Ahianyo
29945504bc
Dynamic vars initialization unit tests(#880) 2023-04-26 14:41:47 -07:00
Elijah Ahianyo
5ad3882898
Handle upload bugfix (#886) 2023-04-26 12:56:34 -07:00
Alan Mond
73cfd2fdba
Modify some methods in state.py to prevent being overwritten (#856) 2023-04-24 10:45:35 -07:00
Elijah Ahianyo
4b7cc6ddf5
File upload to use single syntax (#811) 2023-04-13 09:27:02 -07:00
Elijah Ahianyo
50d480da1f
Allow upload event handler to have arbitrary arg name (#755) 2023-04-02 15:40:05 -07:00
Elijah Ahianyo
8de2163d84
Create PCDict (#503) 2023-02-12 12:52:45 -08:00
Elijah Ahianyo
69a9c95d73
Make PCList pickleable (#500) 2023-02-10 12:25:58 -08:00
叶子
1529a23c1b
Switch linter to ruff (#450) 2023-02-09 11:33:18 -08:00
PeterYusuke
07289c8735
Solve windows env test fails (#437) 2023-02-06 13:41:59 -08:00
Elijah Ahianyo
00479362df
Allow conditional props (#359) 2023-02-02 00:22:44 -08:00
Nikhil Rao
e578956b0c
Comment out pclist (#407) 2023-01-30 19:25:02 -08:00
Tommy Dew
d5a76f103a
Add pc.list for mutation detection (#339) 2023-01-28 10:50:52 -08:00
Nikhil Rao
6f3d763f82
Rename path to route everywhere (#329) 2023-01-23 21:53:42 -08:00
Nikhil Rao
d93e2cec00
Add decorator for custom components (#193) 2023-01-02 16:08:00 -08:00
Nikhil Rao
974d2b4cbb
Improve event processing performance (#163) 2022-12-21 20:04:13 -08:00
Nikhil Rao
c4b1f2c669
Create Github Action for pytest (#12) 2022-11-21 18:50:59 -08:00
Nikhil Rao
29e37350e5
Add basic unit tests (#7)
* Unit tests for components, state, and utils
2022-11-20 14:34:25 -08:00
Nikhil Rao
e8e8eaa010 Initial commit. 2022-11-18 12:44:06 -08:00