Package-level declarations

Types

Link copied to clipboard

Represents different formats for card expiration date input. This enum defines the supported formats for entering card expiration dates, including both short (MM/YY) and long (MM/YYYY) formats. It provides the necessary input length and mask for each format type.

Link copied to clipboard

Sealed interface representing events triggered by the expiration date text field. This interface defines various events that can occur during expiration date input, providing real-time feedback about the input state and validation.

Functions

Link copied to clipboard
fun ExpirationDateTextField(modifier: Modifier = Modifier, state: PCIFieldState, onEvent: (ExpirationDateTextFieldEvent) -> Unit, dateFormat: ExpirationDateFormat = ExpirationDateFormat.ShortFormat, enabled: Boolean = true, readOnly: Boolean = false, decorationBox: @Composable (innerTextField: @Composable () -> Unit) -> Unit = @Composable { innerTextField -> innerTextField() }, textStyle: TextStyle = MaterialTheme.typography.bodyLarge, keyboardOptions: KeyboardOptions = KeyboardOptions.Default, cursorBrush: Brush = SolidColor(MaterialTheme.colorScheme.primary))

A PCI-compliant text field component for entering card expiration dates. This component provides a secure input field that handles card expiration dates with automatic formatting and validation.