Skip to content

Commit

Permalink
Merge pull request #228 from tarkalabs/nr/text-row
Browse files Browse the repository at this point in the history
- Fixed padding issue in TUITextRow for date style
  • Loading branch information
rajajawahar authored Apr 26, 2024
2 parents 2ac21fb + a4c2c24 commit 7d8fa0d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ 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.TUITextRow
import com.tarkalabs.tarkaui.components.TextRowStyle
import com.tarkalabs.tarkaui.components.VerticalSpacer
import com.tarkalabs.tarkaui.components.base.TUIButton
import com.tarkalabs.tarkaui.icons.ChevronRight20
import com.tarkalabs.tarkaui.icons.TarkaIcons
import com.tarkalabs.tarkaui.theme.TUITheme
Expand Down Expand Up @@ -57,14 +57,9 @@ class UIComponentListActivity : ComponentActivity() {
.padding(horizontal = 8.dp)
) {
VerticalSpacer(space = 20)
TUISearchBar(query = query, placeholder = "Search here", onQueryTextChange = {
query = it
})
TUITextRow(title = "Dates", style = TextRowStyle.DateStyle("26-11-2020","26-11-2200"))
VerticalSpacer(space = 20)
TUIButton(label = "Hide Searchbar") {
query = ""
showSearchbar = false
}
TUITextRow(title = "Dates", style = TextRowStyle.DateStyle("Not Available","Not Available"))
}

}
Expand Down
2 changes: 1 addition & 1 deletion tarka-ui/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ publishing {
run {
groupId = "com.tarkalabs"
artifactId = getLibraryArtifactId()
version = "1.1.16"
version = "1.1.17"
artifact("$buildDir/outputs/aar/tarka-ui-release.aar")
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ import com.tarkalabs.tarkaui.theme.TUITheme
style = TUITheme.typography.body8,
color = TUITheme.colors.inputTextDim
)
VerticalSpacer(space = 4)
Box(modifier = Modifier) {
val color = TUITheme.colors.utilityOutline
val pathEffect = PathEffect.dashPathEffect(floatArrayOf(4f, 4f), 0f)
Expand Down

0 comments on commit 7d8fa0d

Please sign in to comment.