Package-level declarations

Types

Link copied to clipboard
@Serializable
data class CountryFieldData(val countryName: String, val countryIsoName: String)
Link copied to clipboard

Interface to provide a custom rendering of the country code picker bottom sheet. This allows to customize the bottom sheet, the search field, and the country row.

Link copied to clipboard
class CountryPickerUiField(val initialValue: String, var label: LbcTextSpec?, var placeholder: LbcTextSpec?, val id: String, val savedStateHandle: SavedStateHandle, val isFieldInError: (String?) -> UiFieldError?, uiFieldStyleData: UiFieldStyleData = DefaultUiFieldStyleData(), val onValueChange: (String) -> Unit, val readOnly: Boolean = false, val enabled: Boolean = true, coroutineScope: CoroutineScope, countryPickerBottomSheetRenderer: CountryPickerBottomSheetRenderer, trailingIcon: @Composable () -> Unit? = null) : TextUiField<String>

A UiField implementation for selecting a country from a list presented in a bottom sheet.

Link copied to clipboard
class CountrySearchDelegate(savedStateHandle: SavedStateHandle, searchFieldLabel: LbcTextSpec?, searchFieldPlaceHolder: LbcTextSpec?, searchFieldStyleData: UiFieldStyleData, coroutineScope: CoroutineScope, context: Context)
Link copied to clipboard
data class CountrySearchItem(val name: String, val countryPhoneCode: String, val flag: LbcImageSpec, val isSelected: Boolean, val isoName: String)

Represents a country search item.

Link copied to clipboard
data class CountrySearchUiState(val countryCodesToDisplay: List<CountrySearchItem>, val searchedText: String, val selectedCountry: SelectedCountry?)
Link copied to clipboard
data class SelectedCountry(val name: String, val flagImage: LbcImageSpec, val countryPhoneCode: String)