Package-level declarations
Legacy model types used by PhoneNumberInput: Phone, Country, SelectedCountry, CCPConfig, CCPColors.
Types
Link copied to clipboard
data class CCPColors(val containerColor: Color, val cursorColor: Color, val borderColor: Color, val errorBorderColor: Color, val inputTextColor: Color, val phoneHintColor: Color, val countryCodeTextColor: Color, val countryChevronColor: Color, val errorColor: Color, val ccpSheetColor: CCPSheetColor)
Defines the color scheme for the Country Code Picker (CCP) component.
Link copied to clipboard
data class CCPConfig(val phoneInputCornerRadius: Dp, val phoneHintStyle: TextStyle, val borderWidth: Dp, val autoDetectCountry: Boolean, val showHeader: Boolean, val showCountryFlag: Boolean, val countriesSheetShape: Shape, val searchBorderWidth: Dp, val searchCornerRadius: Dp, val searchHintStyle: TextStyle, val headerStyle: TextStyle, val showDialCodeCountryItem: Boolean, val showFlagCountryItem: Boolean, val countryItemDialCodeTextStyle: TextStyle, val countryItemNameTextStyle: TextStyle, val countryItemShape: Shape, val phoneInputShape: Shape, val showCountriesHeaderDivider: Boolean, val readOnly: Boolean, val showClearButton: Boolean, val enforceMaxLength: Boolean, val defaultCountryListStyle: CountryListStyle, val countryPickerStyle: CountryPickerStyle, val showLabel: Boolean, val showPhonePrefixDivider: Boolean, val phoneFieldSize: PhoneFieldSize)
Configuration options for customizing the appearance and behavior of the CCP component.
Link copied to clipboard
Controls whether countries are displayed as a scrollable list or a compact grid.
Link copied to clipboard
Controls how the country picker is presented when the user taps the country selector.
Link copied to clipboard
data class PhoneValidationResult(val formattedNumber: String, val unformattedNumber: String, val formattedWithoutCountryCode: String, val isValid: Boolean)
Represents the result of parsing, formatting, and validating a phone number.
Link copied to clipboard
data class SelectedCountry(val name: String, val code: String, val dialCode: String, val flag: String)
Data class representing a country.