Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
457 changes: 130 additions & 327 deletions docs/app/reflex.lock/bun.lock

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion docs/app/reflex.lock/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"@glideapps/glide-data-grid": "6.0.3",
"@hugeicons/core-free-icons": "4.2.3",
"@hugeicons/react": "1.1.9",
"@inkeep/cxkit-react": "0.5.119",
"@mantine/core": "8.3.9",
"@masenf/hello-react": "github:masenf/hello-react",
"@radix-ui/react-accordion": "1.2.18",
Expand Down
5 changes: 5 additions & 0 deletions docs/app/reflex_docs/views/algolia.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"""Compatibility import for the shared Algolia search component."""

from reflex_site_shared.components.algolia import AlgoliaSearch, Search, algolia_search

__all__ = ["AlgoliaSearch", "Search", "algolia_search"]
2 changes: 1 addition & 1 deletion docs/app/reflex_docs/views/inkeep.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Compatibility import for the shared Inkeep search component."""
"""Backward-compatible aliases for the former Inkeep search module."""

from reflex_site_shared.components.inkeep import InkeepSearchBar, Search, inkeep

Expand Down
4 changes: 2 additions & 2 deletions docs/app/reflex_docs/views/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import reflex as rx

from .inkeep import inkeep
from .algolia import algolia_search


@rx.memo
def search_bar() -> rx.Component:
return inkeep()
return algolia_search()
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
"""Keyword-only Algolia search shared by Reflex sites."""

import reflex as rx


class AlgoliaSearch(rx.NoSSRComponent):
"""Client-only search component backed by Algolia's Search API."""

library = "$/public/components/AlgoliaSearch"
lib_dependencies = [
"@hugeicons/react",
"@hugeicons/core-free-icons",
]
tag = "AlgoliaSearch"
is_default = True


class Search(rx.el.Div):
"""Wrap the shared search component for navbar compatibility."""

@classmethod
def create(cls, **props) -> rx.Component:
"""Create the shared keyword-search control.

Args:
props: Props applied to the wrapper element.

Returns:
The Algolia search control inside its navbar wrapper.
"""
return super().create(AlgoliaSearch.create(), **props)


algolia_search = Search.create

__all__ = ["AlgoliaSearch", "Search", "algolia_search"]
Loading
Loading