From 80a1a39d174ed091fc083804a01faf681f5b98c8 Mon Sep 17 00:00:00 2001 From: jiwon2724 Date: Tue, 3 Dec 2024 21:01:48 +0900 Subject: [PATCH] =?UTF-8?q?[ui]=20icon=5F24=5Fxs=20=EC=B6=94=EA=B0=80=20?= =?UTF-8?q?=EB=B0=8F=20UI=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pokit/core/ui/components/atom/input/PokitInput.kt | 10 ++++++++++ core/ui/src/main/res/drawable/icon_24_xs.xml | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100644 core/ui/src/main/res/drawable/icon_24_xs.xml diff --git a/core/ui/src/main/java/pokitmons/pokit/core/ui/components/atom/input/PokitInput.kt b/core/ui/src/main/java/pokitmons/pokit/core/ui/components/atom/input/PokitInput.kt index 79e24e41..f08ee19e 100644 --- a/core/ui/src/main/java/pokitmons/pokit/core/ui/components/atom/input/PokitInput.kt +++ b/core/ui/src/main/java/pokitmons/pokit/core/ui/components/atom/input/PokitInput.kt @@ -1,5 +1,7 @@ package pokitmons.pokit.core.ui.components.atom.input +import androidx.compose.foundation.Image +import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.width @@ -16,7 +18,9 @@ import androidx.compose.ui.focus.FocusRequester import androidx.compose.ui.focus.focusRequester import androidx.compose.ui.focus.onFocusChanged import androidx.compose.ui.graphics.Color +import androidx.compose.ui.res.painterResource import androidx.compose.ui.unit.dp +import pokitmons.pokit.core.ui.R import pokitmons.pokit.core.ui.components.atom.input.attributes.PokitInputIcon import pokitmons.pokit.core.ui.components.atom.input.attributes.PokitInputIconPosition import pokitmons.pokit.core.ui.components.atom.input.attributes.PokitInputShape @@ -95,6 +99,12 @@ fun PokitInput( if (icon?.position == PokitInputIconPosition.RIGHT) { PokitInputIcon(state = state, resourceId = icon.resourceId, onClick = onClickIcon) } + + Image( + painter = painterResource(id = R.drawable.icon_24_xs), + contentDescription = "입력된 문자 전체삭제", + Modifier.clickable { } + ) } } ) diff --git a/core/ui/src/main/res/drawable/icon_24_xs.xml b/core/ui/src/main/res/drawable/icon_24_xs.xml new file mode 100644 index 00000000..940737b2 --- /dev/null +++ b/core/ui/src/main/res/drawable/icon_24_xs.xml @@ -0,0 +1,10 @@ + + +