-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(POM-323): (Card Tokenization) Card details (#158)
- Loading branch information
1 parent
abe76b9
commit ac7c610
Showing
34 changed files
with
808 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
ui-core/src/main/kotlin/com/processout/sdk/ui/core/filter/POInputFilter.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.processout.sdk.ui.core.filter | ||
|
||
import androidx.compose.runtime.Immutable | ||
import androidx.compose.ui.text.input.TextFieldValue | ||
import com.processout.sdk.ui.core.annotation.ProcessOutInternalApi | ||
|
||
/** @suppress */ | ||
@ProcessOutInternalApi | ||
@Immutable | ||
interface POInputFilter { | ||
|
||
fun filter(value: TextFieldValue): TextFieldValue | ||
} |
10 changes: 0 additions & 10 deletions
10
ui-core/src/main/kotlin/com/processout/sdk/ui/core/formatter/POFormatter.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
ui-core/src/main/kotlin/com/processout/sdk/ui/core/state/POMutableFieldState.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.processout.sdk.ui.core.state | ||
|
||
import androidx.annotation.DrawableRes | ||
import androidx.compose.foundation.text.KeyboardOptions | ||
import androidx.compose.runtime.MutableState | ||
import androidx.compose.runtime.Stable | ||
import androidx.compose.runtime.mutableStateOf | ||
import androidx.compose.ui.text.input.TextFieldValue | ||
import androidx.compose.ui.text.input.VisualTransformation | ||
import com.processout.sdk.ui.core.annotation.ProcessOutInternalApi | ||
import com.processout.sdk.ui.core.filter.POInputFilter | ||
|
||
/** @suppress */ | ||
@ProcessOutInternalApi | ||
@Stable | ||
data class POMutableFieldState( | ||
val key: String, | ||
val value: MutableState<TextFieldValue> = mutableStateOf(TextFieldValue()), | ||
val title: String? = null, | ||
val description: String? = null, | ||
val placeholder: String? = null, | ||
@DrawableRes | ||
val iconResId: MutableState<Int?> = mutableStateOf(null), | ||
val inputFilter: POInputFilter? = null, | ||
val visualTransformation: VisualTransformation = VisualTransformation.None, | ||
val keyboardOptions: KeyboardOptions = KeyboardOptions.Default, | ||
val enabled: Boolean = true, | ||
val isError: Boolean = false, | ||
val forceTextDirectionLtr: Boolean = false | ||
) |
11 changes: 11 additions & 0 deletions
11
ui-core/src/main/kotlin/com/processout/sdk/ui/core/state/POStableList.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.processout.sdk.ui.core.state | ||
|
||
import androidx.compose.runtime.Stable | ||
import com.processout.sdk.ui.core.annotation.ProcessOutInternalApi | ||
|
||
/** @suppress */ | ||
@ProcessOutInternalApi | ||
@Stable | ||
data class POStableList<E>( | ||
val elements: List<E> | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.