Skip to content

Commit

Permalink
[ui] icon_24_xs 추가 및 UI 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
jiwon2724 committed Dec 3, 2024
1 parent f12ba11 commit 80a1a39
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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 { }
)
}
}
)
Expand Down
10 changes: 10 additions & 0 deletions core/ui/src/main/res/drawable/icon_24_xs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:pathData="M6.564,6.563C6.915,6.212 7.485,6.212 7.836,6.563L12,10.727L16.164,6.563C16.515,6.212 17.085,6.212 17.436,6.563C17.788,6.915 17.788,7.485 17.436,7.836L13.273,12L17.436,16.163C17.788,16.515 17.788,17.085 17.436,17.436C17.085,17.788 16.515,17.788 16.164,17.436L12,13.273L7.836,17.436C7.485,17.788 6.915,17.788 6.564,17.436C6.212,17.085 6.212,16.515 6.564,16.163L10.727,12L6.564,7.836C6.212,7.485 6.212,6.915 6.564,6.563Z"
android:fillColor="#9D9D9D"
android:fillType="evenOdd"/>
</vector>

0 comments on commit 80a1a39

Please sign in to comment.