Country Picker Sheet
The country picker, presented over the current screen.
How it is presented follows the style's com.ezzy.ccp.countrypicker.theme.CountryPickerLayout.presentation: by default a bottom sheet on phones and a centered dialog once the window is wide enough to make a sheet look stranded — tablets, foldables, desktop. The content is the same CountryPickerPanel either way.
Single vs. multiple selection
In single selection a tap commits immediately and — per com.ezzy.ccp.countrypicker.state.CountryPickerConfig.closeOnSingleSelection — the picker closes a beat later, so the check mark visibly lands first. In multiple selection a confirmation bar appears, and nothing reaches the caller until Confirm.
Reusable on its own: a host that wants the picker without a CountrySelector field can call this with its own CountryPickerState.
Parameters
Single-selection commit.
Multiple-selection commit, from Confirm only.
Close, back, scrim tap or drag down. Pending changes are discarded.