Utility module for handling ISO-style country codes used in the AvardaUi.PhoneSelectInput.
This module defines a CountryCode type representing supported countries and provides
helpers to convert between the CountryCode type and its two-letter string code.
Parses a two-letter ISO country code string into a CountryCode value.
Returns Unknown if the string does not match any supported code.
Converts a CountryCode value into its corresponding two-letter ISO string code.
Returns an empty string for Unknown.
Converts a CountryCode value into its corresponding two-letter ISO string code wrapped in Maybe.
Returns Nothing for Unknown.
Parses a three-letter ISO country code string into a CountryCode value.
Returns Unknown if the string does not match any supported code.
Converts a CountryCode value into its corresponding three-letter ISO string code.
Returns an empty string for Unknown and XI.
Converts a CountryCode value into its corresponding three-letter ISO string code wrapped in Maybe.
Returns Nothing for Unknown and XI.
Supported country codes.