@react-fabric/utilities 1.0.0-beta.60 → 1.0.0-beta.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/_countries.js +23 -2749
- package/dist/cjs/_format.js +1 -1
- package/dist/esm/_countries.js +23 -2749
- package/dist/esm/_format.js +1 -1
- package/dist/types/_countries.d.ts +49 -40
- package/package.json +3 -2
- package/src/_countries.ts +25 -2966
- package/src/_format.ts +2 -2
package/src/_format.ts
CHANGED
|
@@ -34,7 +34,7 @@ import { isEmpty, isNil } from "./_isType";
|
|
|
34
34
|
* Format utility functions for various data types.
|
|
35
35
|
* This namespace provides methods to format phone numbers, numbers, bytes, percentages, dates, and durations.
|
|
36
36
|
*/
|
|
37
|
-
|
|
37
|
+
|
|
38
38
|
export namespace Format {
|
|
39
39
|
const getPhone = (value: string, country: string) => {
|
|
40
40
|
const phone =
|
|
@@ -90,7 +90,7 @@ export namespace Format {
|
|
|
90
90
|
/* istanbul ignore next */
|
|
91
91
|
return `${
|
|
92
92
|
useCss
|
|
93
|
-
? `<span class="
|
|
93
|
+
? `<span class="icon-[circle-flags--${phone.country}"></span>`
|
|
94
94
|
: Countries.emoji(phone.country ?? "")
|
|
95
95
|
} ${phone.formatInternational()}`;
|
|
96
96
|
};
|