v0.3.8
Deprecations
app.compile()
boilerplate is no longer required
- apps should no longer call "app.compile()" by @jackie-pc in #2291
- Remove
app.compile()
from templates by @masenf in #2327
New Features
rx.match
construct
rx.match
acts as a switch
statement, mapping multiple values to components or props.
rx.button(
State.mood,
background_color=rx.match(
State.mood,
("happy", "yellow"),
("sad", "blue"),
("angry", "red"),
("tickled", "pink"),
"", # last value provided is the default
)
)
- rx.match component by @ElijahAhianyo in #2318
Add rx.time_picker
component
- add time_picker component by @macmoritz in #2343
Improvements
- add size prop to the number input by @dodeca-6-tope in #2311
- Add darkMode for Tailwind config by @romain-bury in #2312
- Add reflex init app name validator, prevent import failure during reflex run by @Jishnu-Nandhiath in #2336
- Support Bare SQLAlchemy DeclarativeBase models access via State
- support parsing type args of DeclarativeBase subclasses by @benedikt-bartscher in #2348
Bug Fixes
- REF-1476/Create .web only after template selection by @ElijahAhianyo in #2288
- Chakra input component type_ prop literal by @ElijahAhianyo in #2292
- Bug fix: Export should only excludes assets folder if it's in the top level by @martinxu9 in #2308
- fix tailwind for stateful components imported from utils by @Lendemor in #2328
- Fix browser warning when rendering lists via
rx.markdown
- fix editable property of columns being ignored in data_editor by @Lendemor in #2338
- Allow tailwind to be completely disabled
- Handle VarData roundtrip when encoded value contains newline by @masenf in #2350
Radix UI Preview
- Add high-level API for accordion by @picklelo in #2285
- color_scheme props added and updated pyi files by @Lendemor in #2279
- Fixing bugs in radix by @tgberkeley in #2316
- Apply default theme to apps by @picklelo in #2320
- Lendemor/radix form primitive by @Lendemor in #2306
- adding cancel and action sub components for alert dialog and rename alert dialog root by @tgberkeley in #2352
Other
- Update outdated
docs/tr/README.md
with some fixes. by @hasansezertasan in #2303 #2341 - Refactor chakra components into separate folder by @picklelo in #2315
- Update README.md by @kalyani2003 in #2330
- update inline so all props have comments by @tgberkeley in #2353
- Enable real app AppHarness tests to not specify
state=
by @masenf in #2358
New Contributors
- @hasansezertasan made their first contribution in #2303
- @romain-bury made their first contribution in #2312
- @kalyani2003 made their first contribution in #2330
- @Jishnu-Nandhiath made their first contribution in #2336
- @macmoritz made their first contribution in #2343
Full Changelog: v0.3.7...v0.3.8