What's Changed
Breaking Changes 🛠
- refactor: deprecate kwargs in st.plotly_chart and add config dict instead by @zyfy29 in #12291
- Use
key
as main identity forst.checkbox
&st.toggle
by @lukasmasuch in #12372 - Remove
**kwargs
support fromst.write
by @lukasmasuch in #12375 - Use
key
as main identity forst.number_input
by @lukasmasuch in #12437 - Use
key
as main identity forst.text_area
&st.text_input
by @lukasmasuch in #12397
New Features 🎉
- Add
MultiselectColumn
forst.dataframe
andst.data_editor
by @lukasmasuch in #9223 - Add support for source directly in theming font configs by @mayagbarnes in #12239
- [feat] Add
default
param tost.tabs
by @sfc-gh-bnisco in #12313 - Add
border
parameter tost.table
by @jrieke in #11796 - [feat] Hover, active, focus-visible states for CopyButton by @sfc-gh-bnisco in #12348
- [AdvancedLayouts] Adds a width parameters to
st.line_chart
. by @sfc-gh-lwilby in #11923 - Add main theme color config options by @mayagbarnes in #12288
- Use
key
as main identity for button widgets by @lukasmasuch in #12332 - Add
sort
parameter tost.bar_chart
by @jrieke in #12339 - Add theme background color config options by @mayagbarnes in #12405
- Add theme text color config options by @mayagbarnes in #12438
- Use
key
as main identity forst.time_input
&st.date_input
by @lukasmasuch in #12464 - [feat] Add sample rate parameter to
st.audio_input
component by @sfc-gh-nbellante in #12272 - Metric supports numerics like decimal. by @aebrahim in #12377
- Show slider tick labels on hover by @lukasmasuch in #12367
- [AdvancedLayouts] Add height param to
st.graphviz_chart
by @sfc-gh-lwilby in #12297 - Use
key
as main identity forst.selectbox
&st.multiselect
by @lukasmasuch in #12493 - Support configuring the chart column colors by @lukasmasuch in #12292
Bug Fixes 🐛
- Fix code usage in markdown labels by @lukasmasuch in #12175
- [fix] Fullscreen behaviour for
st.image
with use_container_width=True or width="stretch" by @sfc-gh-lwilby in #12235 - [fix] DateInput: normalize selected dates to start-of-day to honor max by @sfc-gh-bnisco in #12295
- Ensure markdown images keep the aspect ratio by @lukasmasuch in #12343
- Fix issue with typing formatted values into
st.number_input
by @lukasmasuch in #12351 - [fix]
html
with float height. by @sfc-gh-lwilby in #12354 - [fix] Share more code between Selectbox and Multiselect to align behavior by @sfc-gh-bnisco in #12330
- Fix logo pushing out collapse button by @lukasmasuch in #12329
- Fix long-words overflowing markdown container by @lukasmasuch in #12370
- Add MIME type for
.mjs
by @geoextra in #12399 - Fix Pandas styler performance regression by @lukasmasuch in #12422
- [fix] Allow empty section pages in top navigation similar to how we do it for sidebar nav by @nico-bellante in #12247
- [fix] horizontal alignment of st.image in vertical containers by @sfc-gh-lwilby in #12495
- [fix] Setting 0 for height/width on components.html and components.iframe . by @sfc-gh-lwilby in #12479
- Fix duckdb integration test by @lukasmasuch in #12537
- Revert number input component refactoring by @lukasmasuch in #12547
Other Changes
- Add default main colors to theme by @mayagbarnes in #12334
- Release/1.49.0 by @lukasmasuch in #12328
- Release/1.49.1 by @lukasmasuch in #12376
- Add default background colors to theme by @mayagbarnes in #12341
- Make git utilities more robust by @lukasmasuch in #12393
- Update cache headers to include
max-age
andimmutable
by @sfc-gh-gwatters in #12420 - Add default text colors to theme by @mayagbarnes in #12407
- [chore] Adding latest material icons by @sfc-gh-nbellante in #12473
- [chore] Updating material icons by @sfc-gh-nbellante in #12535
New Contributors
- @zyfy29 made their first contribution in #12291
- @geoextra made their first contribution in #12399
- @sfc-gh-gwatters made their first contribution in #12420
- @nico-bellante made their first contribution in #12247
- @aebrahim made their first contribution in #12377
Full Changelog: 1.49.1...1.50.0