Skip to content

Commit

Permalink
Merge pull request #119 from tarkalabs/raja/versionupdate
Browse files Browse the repository at this point in the history
version update : Minor optimisation
  • Loading branch information
rajajawahar authored Sep 11, 2023
2 parents 34c6099 + 3e51627 commit 2a84f99
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion tarkaui/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 = "0.41-alpha"
version = "0.42-alpha"
artifact("$buildDir/outputs/aar/${getLibraryArtifactId()}-release.aar")
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,6 @@ object TUIAttachmentUpload {

@Preview @Composable fun PreviewTUIAttachmentUpload() {
TUITheme {
var progress by remember {
mutableStateOf(10)
}
Box(
modifier = Modifier
.background(color = TUITheme.colors.surface)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ enum class FloatingActionButtonSize(val size: Dp) {
* @param fabSize The size of the FAB. Default is [FloatingActionButtonSize.S].
* @param icon The icon of the button. It should be TarkIcon
* @param onClick The callback function to be executed when the button is clicked.
* @param testTag The test tag for the TUIFloatingActionButton.
* @param tags The test tag for the TUIFloatingActionButton.
* How to use TUIFloatingActionButton() composable function
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ import com.tarkalabs.uicomponents.components.base.IconButtonStyle.PRIMARY
import com.tarkalabs.uicomponents.components.base.IconButtonStyle.SECONDARY
import com.tarkalabs.uicomponents.theme.TUITheme

// Created by Nilesh Rathod on 12/05/23.

enum class IconButtonSize(val size: Dp) {
XS(20.dp),
S(24.dp),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import com.tarkalabs.uicomponents.theme.TUITheme
* @param style The style of the toggle row. Can be [ToggleRowStyle.Title] or [ToggleRowStyle.TitleWithDescription].
* @param modifier A [Modifier] to apply custom styling and layout modifications to the toggle row.
*
* @sample TUIToggleRowSample
* @sample TUIToggleRow
*
* TUIToggleRow(title = "Title", style = Title)
* TUIToggleRow(title = "Title", style = TitleWithDescription("Description"))
Expand All @@ -30,10 +30,13 @@ import com.tarkalabs.uicomponents.theme.TUITheme
@Composable fun TUIToggleRow(
title: String,
style: ToggleRowStyle = Title,
modifier: Modifier = Modifier.fillMaxWidth(),
modifier: Modifier = Modifier,
) {
Row(
modifier.defaultMinSize(minHeight = 40.dp), verticalAlignment = Alignment.CenterVertically
modifier
.fillMaxWidth()
.defaultMinSize(minHeight = 40.dp),
verticalAlignment = Alignment.CenterVertically
) {
Column(Modifier.weight(1f)) {
when (style) {
Expand Down

0 comments on commit 2a84f99

Please sign in to comment.