Updated on 2026-08-14

This commit is contained in:
Tangem 2026-06-08 19:11:28 +03:00
parent 427715888d
commit db9ec70213
15 changed files with 115 additions and 328 deletions

View file

@ -80,7 +80,7 @@ private fun ComponentPreview(state: TangemShimmerStory) {
modifier = Modifier
.fillMaxWidth()
.padding(horizontal = 16.dp)
.clip(RoundedCornerShape(TangemTheme.dimens3.borderRadius.b200))
.clip(RoundedCornerShape(16.dp))
.background(TangemTheme.colors3.bg.secondary)
.padding(vertical = 24.dp, horizontal = 16.dp),
) {
@ -145,7 +145,7 @@ private fun ChipSection(label: String, content: @Composable () -> Unit) {
@Composable
private fun <T> ChipGrid(items: List<T>, label: (T) -> String, isSelected: (T) -> Boolean, onSelect: (T) -> Unit) {
val shape = RoundedCornerShape(TangemTheme.dimens3.borderRadius.full)
val shape = RoundedCornerShape(999.dp)
Row(
modifier = Modifier
.fillMaxWidth()
@ -153,7 +153,7 @@ private fun <T> ChipGrid(items: List<T>, label: (T) -> String, isSelected: (T) -
.clip(shape)
.background(TangemTheme.colors3.bg.opaque.primary)
.border(
width = TangemTheme.dimens3.borderWidth.sm,
width = 1.dp,
color = TangemTheme.colors3.border.primary,
shape = shape,
)
@ -173,7 +173,7 @@ private fun <T> ChipGrid(items: List<T>, label: (T) -> String, isSelected: (T) -
@Composable
private fun Chip(label: String, selected: Boolean, onClick: () -> Unit, modifier: Modifier = Modifier) {
val chipShape = RoundedCornerShape(TangemTheme.dimens3.borderRadius.full)
val chipShape = RoundedCornerShape(999.dp)
Box(
contentAlignment = Alignment.Center,
modifier = modifier