diff --git a/chatkit/icons.py b/chatkit/icons.py index 0b91f64..5e6c4a1 100644 --- a/chatkit/icons.py +++ b/chatkit/icons.py @@ -3,6 +3,7 @@ from pydantic import StringConstraints VendorIconName = Annotated[str, StringConstraints(pattern=r"^vendor:")] +LucideIconName = Annotated[str, StringConstraints(pattern=r"^lucide:")] IconName = ( Literal[ @@ -72,5 +73,6 @@ "write-alt2", ] | VendorIconName + | LucideIconName ) """Allowed icon names.""" diff --git a/chatkit/widgets.py b/chatkit/widgets.py index a2d80d1..80492d1 100644 --- a/chatkit/widgets.py +++ b/chatkit/widgets.py @@ -703,6 +703,8 @@ class Select(WidgetComponentBase): """Show a clear control to unset the value.""" disabled: bool | None = None """Disable interactions and apply disabled styles.""" + searchable: bool | None = None + """Enables the search input. Defaults to enabling search when there are more than 15 options.""" @_direct_usage_of_named_widget_types_deprecated diff --git a/pyproject.toml b/pyproject.toml index 90e5de8..459f2e5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "openai-chatkit" -version = "1.5.1" +version = "1.5.2" description = "A ChatKit backend SDK." readme = "README.md" requires-python = ">=3.10" diff --git a/uv.lock b/uv.lock index 47b19a5..36a2b58 100644 --- a/uv.lock +++ b/uv.lock @@ -819,7 +819,7 @@ wheels = [ [[package]] name = "openai-chatkit" -version = "1.5.1" +version = "1.5.2" source = { virtual = "." } dependencies = [ { name = "jinja2" },