diff --git a/example/src/main/java/com/tarkalabs/ui/UIComponentListActivity.kt b/example/src/main/java/com/tarkalabs/ui/UIComponentListActivity.kt index a51e4d33..8802ac3f 100644 --- a/example/src/main/java/com/tarkalabs/ui/UIComponentListActivity.kt +++ b/example/src/main/java/com/tarkalabs/ui/UIComponentListActivity.kt @@ -17,10 +17,10 @@ import androidx.compose.runtime.setValue import androidx.compose.ui.Modifier import androidx.compose.ui.unit.dp import com.tarkalabs.tarkaui.components.TUIAppTopBar +import com.tarkalabs.tarkaui.components.TUISearchBar import com.tarkalabs.tarkaui.components.VerticalSpacer import com.tarkalabs.tarkaui.components.base.TUIButton import com.tarkalabs.tarkaui.icons.ChevronRight20 -import com.tarkalabs.tarkaui.icons.Search24 import com.tarkalabs.tarkaui.icons.TarkaIcons import com.tarkalabs.tarkaui.theme.TUITheme @@ -47,15 +47,7 @@ class UIComponentListActivity : ComponentActivity() { menuItemIconOne = TarkaIcons.Regular.ChevronRight20, menuItemIconTwo = TarkaIcons.Regular.ChevronRight20, menuItemIconThree = TarkaIcons.Regular.ChevronRight20, - searchIcon = TarkaIcons.Regular.Search24, - searchQuery = query, - searchQueryHint = "Search something", - onSearchQuery = { - query = it - }, - showSearchBar = showSearchbar ) - }) { paddingValues -> Column( modifier = Modifier @@ -65,10 +57,9 @@ class UIComponentListActivity : ComponentActivity() { .padding(horizontal = 8.dp) ) { VerticalSpacer(space = 20) - TUIButton(label = "Show Searchbar") { - query = "Hello there" - showSearchbar = true - } + TUISearchBar(query = query, placeholder = "Search here", onQueryTextChange = { + query = it + }) VerticalSpacer(space = 20) TUIButton(label = "Hide Searchbar") { query = "" diff --git a/tarka-ui/build.gradle.kts b/tarka-ui/build.gradle.kts index 58763559..7fbf4171 100644 --- a/tarka-ui/build.gradle.kts +++ b/tarka-ui/build.gradle.kts @@ -66,7 +66,7 @@ publishing { run { groupId = "com.tarkalabs" artifactId = getLibraryArtifactId() - version = "1.1.15" + version = "1.1.16" artifact("$buildDir/outputs/aar/tarka-ui-release.aar") } } diff --git a/tarka-ui/src/main/java/com/tarkalabs/tarkaui/components/TUISearchBar.kt b/tarka-ui/src/main/java/com/tarkalabs/tarkaui/components/TUISearchBar.kt index 56487366..d4b03348 100644 --- a/tarka-ui/src/main/java/com/tarkalabs/tarkaui/components/TUISearchBar.kt +++ b/tarka-ui/src/main/java/com/tarkalabs/tarkaui/components/TUISearchBar.kt @@ -83,7 +83,7 @@ import kotlinx.coroutines.delay .height(48.dp), singleLine = true, interactionSource = interactionSource, - textStyle = TUITheme.typography.body6, + textStyle = TUITheme.typography.body6.copy(color = TUITheme.colors.inputText), keyboardActions = keyboardAction, keyboardOptions = keyboardOption ) { innerTextField ->