react-country-kit-core 2.1.0 → 2.1.2
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/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1601 -693
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.d.ts +9 -0
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export interface IPhoneFormat {
|
|
|
5
5
|
possibleLengths: string;
|
|
6
6
|
example: string | number;
|
|
7
7
|
countryCode: string;
|
|
8
|
+
nationalPrefix?: string;
|
|
8
9
|
}
|
|
9
10
|
export interface ICurrency {
|
|
10
11
|
code: string;
|
|
@@ -47,6 +48,12 @@ export interface ICountry {
|
|
|
47
48
|
tax_id_placeholder: string;
|
|
48
49
|
/** Label for postal/zip code (e.g. "ZIP Code", "Postcode", "PIN Code") */
|
|
49
50
|
postal_code_label: string;
|
|
51
|
+
/** Preferred date format, e.g. "DD/MM/YYYY", "MM/DD/YYYY", "YYYY-MM-DD" */
|
|
52
|
+
date_format: string;
|
|
53
|
+
/** Preferred date separator, e.g. "/", "-", "." */
|
|
54
|
+
date_separator: string;
|
|
55
|
+
/** First day of the week (0 = Sunday, 1 = Monday, 6 = Saturday) */
|
|
56
|
+
week_start: number;
|
|
50
57
|
}
|
|
51
58
|
export interface ILanguage {
|
|
52
59
|
code: string;
|
|
@@ -148,6 +155,8 @@ export interface IPhoneValidation {
|
|
|
148
155
|
example?: string;
|
|
149
156
|
/** Placeholder text for the phone input */
|
|
150
157
|
placeholder?: string;
|
|
158
|
+
/** National prefix that can optionally be typed in front, e.g. "0" */
|
|
159
|
+
nationalPrefix?: string;
|
|
151
160
|
}
|
|
152
161
|
/**
|
|
153
162
|
* Value object returned by PhoneInput.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-country-kit-core",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Core datasets, utilities, and hooks for react-country-kit. Comprehensive data for countries, currencies, timezones, languages, and divisions.",
|
|
6
6
|
"author": "Kishor Mainali",
|