diff --git a/src/features/content/components/search/ContentSearchBar.tsx b/src/features/content/components/search/ContentSearchBar.tsx
index a0362c6..a717fe4 100644
--- a/src/features/content/components/search/ContentSearchBar.tsx
+++ b/src/features/content/components/search/ContentSearchBar.tsx
@@ -1,3 +1,51 @@
import React from "react";
-import { TextInput, View } from "react-native";
-export function ContentSearchBar({value,onChangeText}:{value:string;onChangeText:(v:string)=>void}){return }
+import { StyleSheet, TextInput, View } from "react-native";
+import { Ionicons } from "@expo/vector-icons";
+import { Colors } from "@/theme";
+
+export function ContentSearchBar({
+ value,
+ onChangeText,
+}: {
+ value: string;
+ onChangeText: (v: string) => void;
+}) {
+ return (
+
+
+
+
+
+
+ );
+}
+
+const styles = StyleSheet.create({
+ container: {
+ padding: 16,
+ },
+ searchBox: {
+ flexDirection: "row",
+ alignItems: "center",
+ gap: 8,
+ borderWidth: 1,
+ borderColor: Colors.border,
+ borderRadius: 10,
+ paddingHorizontal: 12,
+ backgroundColor: "#FAFAFA",
+ },
+ input: {
+ flex: 1,
+ paddingVertical: 10,
+ fontSize: 14,
+ color: Colors.textPrimary,
+ },
+});
diff --git a/src/features/content/components/search/SearchHeader.tsx b/src/features/content/components/search/SearchHeader.tsx
index c2b2120..562e5b4 100644
--- a/src/features/content/components/search/SearchHeader.tsx
+++ b/src/features/content/components/search/SearchHeader.tsx
@@ -1,3 +1,52 @@
import React from "react";
-import { TextInput, View } from "react-native";
-export function SearchHeader({value,onChangeText,placeholder="Search…"}:{value:string;onChangeText:(v:string)=>void;placeholder?:string}){ return ; }
+import { StyleSheet, TextInput, View } from "react-native";
+import { Ionicons } from "@expo/vector-icons";
+import { Colors } from "@/theme";
+
+export function SearchHeader({
+ value,
+ onChangeText,
+ placeholder = "Search…",
+}: {
+ value: string;
+ onChangeText: (v: string) => void;
+ placeholder?: string;
+}) {
+ return (
+
+
+
+
+
+
+ );
+}
+
+const styles = StyleSheet.create({
+ container: {
+ padding: 12,
+ },
+ searchBox: {
+ flexDirection: "row",
+ alignItems: "center",
+ gap: 8,
+ borderWidth: 1,
+ borderColor: Colors.border,
+ borderRadius: 10,
+ paddingHorizontal: 12,
+ backgroundColor: "#FAFAFA",
+ },
+ input: {
+ flex: 1,
+ paddingVertical: 10,
+ fontSize: 16,
+ color: Colors.textPrimary,
+ },
+});
diff --git a/src/features/content/screens/CollectionTemplateScreen.tsx b/src/features/content/screens/CollectionTemplateScreen.tsx
index 47bbf61..c284425 100644
--- a/src/features/content/screens/CollectionTemplateScreen.tsx
+++ b/src/features/content/screens/CollectionTemplateScreen.tsx
@@ -100,7 +100,7 @@ export function CollectionTemplateScreen({
}
style={({ pressed }) => [styles.iconButton, pressed && styles.pressed]}
>
-
+
{hasSort ? (
diff --git a/src/features/search/components/FacetValueTypeaheadModal.tsx b/src/features/search/components/FacetValueTypeaheadModal.tsx
index bc7cd87..1bcbfd8 100644
--- a/src/features/search/components/FacetValueTypeaheadModal.tsx
+++ b/src/features/search/components/FacetValueTypeaheadModal.tsx
@@ -18,7 +18,7 @@ export function FacetValueTypeaheadModal({ visible, facet, scope, activeFilters,
const apply = () => { if(!selected.size) return; onApply({ facet_code: facet.code, values:[...selected.keys()], value_mode:"any", display_values:[...selected.values()] }); close(); };
return
{facet.label}Select {facet.allow_multiple_values ? "one or more values" : "a value"}
-
+
{values.isLoading ? : values.data?.items.map((item) => { const active=selected.has(item.value_key); return toggle(item.value_key,item.label)}>{item.label}{item.result_count} matching item{item.result_count===1?"":"s"}; })}
CancelAdd {selected.size ? `(${selected.size})` : ""}
;
diff --git a/src/features/search/screens/FacetedSearchScreen.tsx b/src/features/search/screens/FacetedSearchScreen.tsx
index 7e4ebb0..382eba2 100644
--- a/src/features/search/screens/FacetedSearchScreen.tsx
+++ b/src/features/search/screens/FacetedSearchScreen.tsx
@@ -78,6 +78,7 @@ export default function FacetedSearchScreen({
const [facetPickerVisible, setFacetPickerVisible] = useState(false);
const [selectedFacet, setSelectedFacet] =
useState(null);
+ const [isSearchFocused, setIsSearchFocused] = useState(false);
useEffect(() => {
if (!isModuleMode || !normalizedModuleCode) return;
@@ -176,15 +177,22 @@ export default function FacetedSearchScreen({
) : null}
-
+
setIsSearchFocused(true)}
+ onBlur={() => setIsSearchFocused(false)}
placeholder={
isModuleMode
? `Search within ${resolvedModuleName}…`
@@ -373,6 +381,10 @@ const styles = StyleSheet.create({
paddingHorizontal: 13,
backgroundColor: "#FAFAFA",
},
+ searchBoxFocused: {
+ borderColor: Colors.primary,
+ backgroundColor: "#FFFFFF",
+ },
input: {
flex: 1,
minHeight: 46,