Updated on 2026-08-14
This commit is contained in:
parent
e5876470de
commit
91c52c039c
17 changed files with 398 additions and 13 deletions
|
|
@ -104,9 +104,9 @@ fun TextInputDialog(
|
|||
confirmButton: DialogButton,
|
||||
onDismissDialog: () -> Unit,
|
||||
onValueChange: (TextFieldValue) -> Unit,
|
||||
textFieldParams: AdditionalTextInputDialogParams,
|
||||
title: String? = null,
|
||||
dismissButton: DialogButton? = null,
|
||||
textFieldParams: AdditionalTextInputDialogParams,
|
||||
) {
|
||||
TangemDialog(
|
||||
type = DialogType.TextInput(
|
||||
|
|
@ -160,8 +160,8 @@ private fun TangemDialog(
|
|||
|
||||
@Composable
|
||||
private fun DialogContent(
|
||||
modifier: Modifier = Modifier,
|
||||
type: DialogType,
|
||||
modifier: Modifier = Modifier,
|
||||
) {
|
||||
Column(
|
||||
modifier = modifier,
|
||||
|
|
@ -197,9 +197,9 @@ private fun DialogContent(
|
|||
|
||||
@Composable
|
||||
private fun DialogButtons(
|
||||
modifier: Modifier = Modifier,
|
||||
confirmButton: DialogButton,
|
||||
dismissButton: DialogButton?,
|
||||
modifier: Modifier = Modifier,
|
||||
) {
|
||||
Row(
|
||||
modifier = modifier.fillMaxWidth(),
|
||||
|
|
@ -227,11 +227,11 @@ private fun DialogButtons(
|
|||
|
||||
@Composable
|
||||
private fun DialogButton(
|
||||
modifier: Modifier = Modifier,
|
||||
text: String,
|
||||
warning: Boolean,
|
||||
enabled: Boolean,
|
||||
onClick: () -> Unit,
|
||||
modifier: Modifier = Modifier,
|
||||
) {
|
||||
Box(modifier = modifier) {
|
||||
if (warning) {
|
||||
|
|
|
|||
|
|
@ -22,8 +22,10 @@ import com.tangem.core.ui.res.TangemTheme
|
|||
/**
|
||||
* App bar with back button and optional title
|
||||
*
|
||||
* @param text optional title
|
||||
* @param onBackClick the lambda to be invoked when this icon is pressed
|
||||
* @param modifier modifier
|
||||
* @param text optional title
|
||||
* @param iconRes icon res id
|
||||
*
|
||||
* @see <a href = "https://www.figma.com/file/14ISV23YB1yVW1uNVwqrKv/Android?node-id=123%3A287&t=WdN5XpixzZLlQAZO-4"
|
||||
* >Figma component</a>
|
||||
|
|
@ -31,11 +33,12 @@ import com.tangem.core.ui.res.TangemTheme
|
|||
@Composable
|
||||
fun AppBarWithBackButton(
|
||||
onBackClick: () -> Unit,
|
||||
modifier: Modifier = Modifier,
|
||||
text: String? = null,
|
||||
@DrawableRes iconRes: Int? = null,
|
||||
) {
|
||||
Row(
|
||||
modifier = Modifier
|
||||
modifier = modifier
|
||||
.background(color = TangemTheme.colors.background.secondary)
|
||||
.fillMaxWidth()
|
||||
.padding(all = dimensionResource(R.dimen.spacing16)),
|
||||
|
|
|
|||
|
|
@ -74,6 +74,7 @@ data class TangemDimens internal constructor(
|
|||
val spacing12: Dp = 12.dp,
|
||||
val spacing14: Dp = 14.dp,
|
||||
val spacing16: Dp = 16.dp,
|
||||
val spacing18: Dp = 18.dp,
|
||||
val spacing20: Dp = 20.dp,
|
||||
val spacing24: Dp = 24.dp,
|
||||
val spacing28: Dp = 28.dp,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue