Skip to content

Commit

Permalink
v0.1.14 wrapper styles; streamlit dependencies (#53)
Browse files Browse the repository at this point in the history
* add wrapper styles; disallow !=1.37;

* add version comments;
  • Loading branch information
m-wrzr authored Jul 27, 2024
1 parent 6263ab3 commit a32a06a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setuptools.setup(
name="streamlit-searchbox",
version="0.1.13",
version="0.1.14",
author="m-wrzr",
description="Autocomplete Searchbox",
long_description="Streamlit searchbox that dynamically updates "
Expand All @@ -14,7 +14,9 @@
classifiers=[],
python_requires=">=3.8, !=3.9.7",
install_requires=[
"streamlit >= 1.0",
# version 1.37 reruns lead to constant iFrame resets
# version 1.35/1.36 also have reset issues but less frequent
"streamlit >= 1.0, != 1.37.0",
],
extras_require={
"tests": [
Expand Down
1 change: 1 addition & 0 deletions streamlit_searchbox/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ class SearchboxStyle(TypedDict, total=False):


class StyleOverrides(TypedDict, total=False):
wrapper: dict | None
clear: ClearStyle | None
dropdown: DropdownStyle | None
searchbox: SearchboxStyle | None
Expand Down
4 changes: 2 additions & 2 deletions streamlit_searchbox/frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion streamlit_searchbox/frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "streamlit_searchbox",
"version": "0.1.13",
"version": "0.1.14",
"private": true,
"dependencies": {
"react": "^16.13.1",
Expand Down
2 changes: 1 addition & 1 deletion streamlit_searchbox/frontend/src/Searchbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class Searchbox extends StreamlitComponentBase<State> {
};

return (
<div>
<div style={this.props.args.style_overrides?.wrapper || {}}>
{this.props.args.label && (
<div style={this.style.label}>{this.props.args.label}</div>
)}
Expand Down

0 comments on commit a32a06a

Please sign in to comment.