reflex/reflex/components
Masen Furer bb44d51f2f
[REF-2879] Make client_state work without global refs (local only) (#3379)
* Make client_state work without global refs (local only)

* client_state: if the default is str, mark _var_is_string=True

Ensure that a string default is not rendered literally

* add `to_int` as a Var operation

* Allow an event handler lambda to return a Var in some cases

If an lambda is passed to an event trigger and it returns a single Var, then
treat it like the Var was directly passed for the event trigger.

This allows ClientState.set_var to be used within a lambda.
2024-06-07 13:29:52 -07:00
..
base [REF-2821]Improve Dynamic Imports (#3345) 2024-05-31 16:43:10 +00:00
chakra add toast component (#3186) 2024-05-03 12:09:11 -07:00
core fix warning about props (#3451) 2024-06-06 13:45:22 -07:00
datadisplay clean up hooks and update component to use add_hooks (#3439) 2024-06-06 10:26:04 -07:00
el clean up hooks and update component to use add_hooks (#3439) 2024-06-06 10:26:04 -07:00
gridjs [REF-2787] add_hooks supports Var-wrapped hooks (#3248) 2024-05-15 14:59:45 -07:00
lucide Remove deprecations for 0.5.0 (#3222) 2024-05-07 08:55:42 -07:00
markdown [REF-3006] Inline code rendered in rx.markdown has extra trailing space (#3426) 2024-06-05 16:55:02 +02:00
media Refactor chakra components into separate folder (#2315) 2023-12-21 09:52:08 -08:00
moment [REF-2821]Improve Dynamic Imports (#3345) 2024-05-31 16:43:10 +00:00
next [REF-2524] Tuple unpacking should apply at component level (#3062) 2024-04-11 14:04:19 -07:00
plotly [REF-2977] [REF-2982] Merge layout prop and automatic darkmode (#3442) 2024-06-07 09:42:50 -07:00
radix clean up hooks and update component to use add_hooks (#3439) 2024-06-06 10:26:04 -07:00
react_player [REF-2524] Tuple unpacking should apply at component level (#3062) 2024-04-11 14:04:19 -07:00
recharts Recharts supporting radix color, add event triggers (#3430) 2024-06-07 09:47:12 -07:00
sonner promote toast to main namespace (#3422) 2024-06-06 10:38:35 -07:00
suneditor generate pyi files when building/publishing 3rd party component (#2945) 2024-03-29 09:54:21 -07:00
tags [REF-2682] Foreach over dict uses Tuple arg value (#3160) 2024-04-25 09:10:55 -07:00
__init__.py [REF-2821]Improve Dynamic Imports (#3345) 2024-05-31 16:43:10 +00:00
__init__.pyi [REF-2821]Improve Dynamic Imports (#3345) 2024-05-31 16:43:10 +00:00
component.py [REF-2879] Make client_state work without global refs (local only) (#3379) 2024-06-07 13:29:52 -07:00
literals.py Chakra input component type_ prop literal (#2292) 2023-12-18 15:43:51 -08:00
props.py Get action, cancel, on_dismiss and on_auto_close working for rx.toast (#3216) 2024-05-15 11:54:52 +02:00