Package-level declarations
State holders and configuration: CountryPickerConfig (how a picker behaves), CountryPickerState (the sheet's transient state) with rememberCountryPickerState, and PhoneNumberFieldState with rememberPhoneNumberFieldState.
Types
How the country list is doing.
Everything about what a picker offers and how selection behaves, in one value.
Owns the picker's transient UI state: sheet visibility, search query, region filter, and the pending selection.
A country offered as a one-tap shortcut, and why.
One titled group of countries in the sheet.
The kinds of section the sheet can show, in the order they appear.
State for a phone number field: the selected country, the digits typed, and everything derived from them.
Where a CountryQuickPick came from.
Functions
Records a confirmed selection into store whenever it changes.
Creates and remembers a CountryPickerState, wiring data loading, restoration, country detection and the recents store.
Remembers a PhoneNumberFieldState, restoring the country and digits across configuration change and process death.