pakdatakit 2.1.2 → 2.2.1

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.
Files changed (84) hide show
  1. package/DATA.md +105 -0
  2. package/README.md +94 -9
  3. package/dist/address.cjs +4 -4
  4. package/dist/address.d.cts +2 -1
  5. package/dist/address.d.ts +2 -1
  6. package/dist/address.js +2 -2
  7. package/dist/{chunk-PHHKIMO2.cjs → chunk-33FXHM2E.cjs} +5 -5
  8. package/dist/{chunk-3COX5FSL.cjs → chunk-34CJGJ67.cjs} +53 -6
  9. package/dist/chunk-3IARSCO6.cjs +317 -0
  10. package/dist/{chunk-BSS4Z7NI.cjs → chunk-3ZA265SK.cjs} +2 -2
  11. package/dist/{chunk-AUATLZA5.cjs → chunk-47P7HILD.cjs} +4 -4
  12. package/dist/{chunk-Q7XHVR3U.cjs → chunk-4VSGCQ6K.cjs} +86 -15
  13. package/dist/{chunk-Y6BUGLXU.js → chunk-6IPPANNX.js} +4 -1
  14. package/dist/{chunk-L45UXUWX.js → chunk-AZV45DMG.js} +1 -1
  15. package/dist/{chunk-QQQKISXT.js → chunk-BR4QLZPX.js} +11 -2
  16. package/dist/{chunk-K6CZFCX6.js → chunk-E6DT2DWQ.js} +53 -6
  17. package/dist/{chunk-P4CGOJEM.js → chunk-EMH4IP2U.js} +1 -1
  18. package/dist/{chunk-JNP27XW2.cjs → chunk-GJENL6VK.cjs} +6 -6
  19. package/dist/{chunk-APXP7OK7.cjs → chunk-HIZQBWNW.cjs} +11 -2
  20. package/dist/{chunk-YS7MOLK2.cjs → chunk-HTERSQGF.cjs} +3 -3
  21. package/dist/{chunk-E7GAK72W.js → chunk-HUQY2WR5.js} +3 -3
  22. package/dist/{chunk-KQKW2ZEK.cjs → chunk-NAJGGUAM.cjs} +2 -2
  23. package/dist/{chunk-YLWZGSFY.cjs → chunk-NTD4JLDW.cjs} +4 -0
  24. package/dist/{chunk-R7UTY3SY.js → chunk-NZQ47NWD.js} +84 -14
  25. package/dist/{chunk-432ZYMYV.js → chunk-PLDVGOKZ.js} +2 -2
  26. package/dist/{chunk-L2BDDM2W.js → chunk-QKH7W2CC.js} +1 -1
  27. package/dist/{chunk-T3E4B5MJ.js → chunk-RXNYY5K5.js} +1 -1
  28. package/dist/chunk-TTARJWGT.js +82 -0
  29. package/dist/chunk-U7MWHXMF.cjs +89 -0
  30. package/dist/chunk-YPPKY5XZ.js +312 -0
  31. package/dist/cli.js +1 -1
  32. package/dist/cnic.d.cts +2 -1
  33. package/dist/cnic.d.ts +2 -1
  34. package/dist/geo.cjs +6 -6
  35. package/dist/geo.js +1 -1
  36. package/dist/hijri.d.cts +2 -1
  37. package/dist/hijri.d.ts +2 -1
  38. package/dist/holidays.d.cts +4 -2
  39. package/dist/holidays.d.ts +4 -2
  40. package/dist/iban.cjs +11 -3
  41. package/dist/iban.d.cts +46 -1
  42. package/dist/iban.d.ts +46 -1
  43. package/dist/iban.js +1 -1
  44. package/dist/index.cjs +76 -37
  45. package/dist/index.d.cts +11 -2
  46. package/dist/index.d.ts +11 -2
  47. package/dist/index.js +16 -10
  48. package/dist/input.cjs +34 -0
  49. package/dist/input.d.cts +68 -0
  50. package/dist/input.d.ts +68 -0
  51. package/dist/input.js +5 -0
  52. package/dist/networks.cjs +3 -3
  53. package/dist/networks.d.cts +2 -1
  54. package/dist/networks.d.ts +2 -1
  55. package/dist/networks.js +2 -2
  56. package/dist/numbers.cjs +6 -6
  57. package/dist/numbers.d.cts +2 -1
  58. package/dist/numbers.d.ts +2 -1
  59. package/dist/numbers.js +2 -2
  60. package/dist/phone.cjs +8 -8
  61. package/dist/phone.d.cts +2 -1
  62. package/dist/phone.d.ts +2 -1
  63. package/dist/phone.js +3 -3
  64. package/dist/raast.cjs +9 -5
  65. package/dist/raast.d.cts +54 -8
  66. package/dist/raast.d.ts +54 -8
  67. package/dist/raast.js +2 -2
  68. package/dist/tax.d.cts +2 -1
  69. package/dist/tax.d.ts +2 -1
  70. package/dist/valibot.cjs +7 -7
  71. package/dist/valibot.js +6 -6
  72. package/dist/whatsapp.cjs +3 -3
  73. package/dist/whatsapp.js +2 -2
  74. package/dist/words.cjs +3 -3
  75. package/dist/words.d.cts +2 -1
  76. package/dist/words.d.ts +2 -1
  77. package/dist/words.js +1 -1
  78. package/dist/yup.cjs +7 -7
  79. package/dist/yup.js +6 -6
  80. package/dist/zod.cjs +7 -7
  81. package/dist/zod.js +6 -6
  82. package/package.json +24 -11
  83. package/dist/chunk-4EUKCSLW.js +0 -221
  84. package/dist/chunk-E47SNBWQ.cjs +0 -224
package/dist/index.cjs CHANGED
@@ -1,77 +1,111 @@
1
1
  'use strict';
2
2
 
3
- var chunkAPXP7OK7_cjs = require('./chunk-APXP7OK7.cjs');
4
- var chunkBSS4Z7NI_cjs = require('./chunk-BSS4Z7NI.cjs');
5
- var chunkPHHKIMO2_cjs = require('./chunk-PHHKIMO2.cjs');
6
- var chunkYS7MOLK2_cjs = require('./chunk-YS7MOLK2.cjs');
7
- var chunkQ7XHVR3U_cjs = require('./chunk-Q7XHVR3U.cjs');
3
+ var chunkNAJGGUAM_cjs = require('./chunk-NAJGGUAM.cjs');
4
+ var chunkHIZQBWNW_cjs = require('./chunk-HIZQBWNW.cjs');
5
+ var chunkU7MWHXMF_cjs = require('./chunk-U7MWHXMF.cjs');
6
+ var chunk3ZA265SK_cjs = require('./chunk-3ZA265SK.cjs');
7
+ var chunk33FXHM2E_cjs = require('./chunk-33FXHM2E.cjs');
8
+ var chunkHTERSQGF_cjs = require('./chunk-HTERSQGF.cjs');
9
+ require('./chunk-NTD4JLDW.cjs');
10
+ var chunk4VSGCQ6K_cjs = require('./chunk-4VSGCQ6K.cjs');
8
11
  var chunkH6M6L26S_cjs = require('./chunk-H6M6L26S.cjs');
9
12
  var chunkKEHCTYLO_cjs = require('./chunk-KEHCTYLO.cjs');
10
- var chunkKQKW2ZEK_cjs = require('./chunk-KQKW2ZEK.cjs');
11
- require('./chunk-YLWZGSFY.cjs');
12
- var chunkAUATLZA5_cjs = require('./chunk-AUATLZA5.cjs');
13
+ var chunk47P7HILD_cjs = require('./chunk-47P7HILD.cjs');
13
14
  var chunk4VVFS6FN_cjs = require('./chunk-4VVFS6FN.cjs');
14
15
  var chunkHTCSHHOR_cjs = require('./chunk-HTCSHHOR.cjs');
15
16
  var chunkLVHTH4P7_cjs = require('./chunk-LVHTH4P7.cjs');
16
- var chunk3COX5FSL_cjs = require('./chunk-3COX5FSL.cjs');
17
+ var chunk34CJGJ67_cjs = require('./chunk-34CJGJ67.cjs');
17
18
  var chunkXCXFGTHW_cjs = require('./chunk-XCXFGTHW.cjs');
18
19
  var chunkCYJJ7KGC_cjs = require('./chunk-CYJJ7KGC.cjs');
19
- var chunkE47SNBWQ_cjs = require('./chunk-E47SNBWQ.cjs');
20
+ var chunk3IARSCO6_cjs = require('./chunk-3IARSCO6.cjs');
20
21
  require('./chunk-VPBMIYO2.cjs');
21
22
 
23
+ // src/data-version.ts
24
+ var dataVersion = "2026-11-07";
22
25
 
23
-
26
+ Object.defineProperty(exports, "createWhatsAppLink", {
27
+ enumerable: true,
28
+ get: function () { return chunkNAJGGUAM_cjs.createWhatsAppLink; }
29
+ });
24
30
  Object.defineProperty(exports, "amountInWords", {
25
31
  enumerable: true,
26
- get: function () { return chunkAPXP7OK7_cjs.amountInWords; }
32
+ get: function () { return chunkHIZQBWNW_cjs.amountInWords; }
27
33
  });
28
34
  Object.defineProperty(exports, "numberToWords", {
29
35
  enumerable: true,
30
- get: function () { return chunkAPXP7OK7_cjs.numberToWords; }
36
+ get: function () { return chunkHIZQBWNW_cjs.numberToWords; }
37
+ });
38
+ Object.defineProperty(exports, "checkCNICInput", {
39
+ enumerable: true,
40
+ get: function () { return chunkU7MWHXMF_cjs.checkCNICInput; }
41
+ });
42
+ Object.defineProperty(exports, "checkIBANInput", {
43
+ enumerable: true,
44
+ get: function () { return chunkU7MWHXMF_cjs.checkIBANInput; }
45
+ });
46
+ Object.defineProperty(exports, "checkPhoneInput", {
47
+ enumerable: true,
48
+ get: function () { return chunkU7MWHXMF_cjs.checkPhoneInput; }
49
+ });
50
+ Object.defineProperty(exports, "formatCNICInput", {
51
+ enumerable: true,
52
+ get: function () { return chunkU7MWHXMF_cjs.formatCNICInput; }
53
+ });
54
+ Object.defineProperty(exports, "formatIBANInput", {
55
+ enumerable: true,
56
+ get: function () { return chunkU7MWHXMF_cjs.formatIBANInput; }
57
+ });
58
+ Object.defineProperty(exports, "formatPhoneInput", {
59
+ enumerable: true,
60
+ get: function () { return chunkU7MWHXMF_cjs.formatPhoneInput; }
31
61
  });
32
62
  Object.defineProperty(exports, "analyzeNumber", {
33
63
  enumerable: true,
34
- get: function () { return chunkBSS4Z7NI_cjs.analyzeNumber; }
64
+ get: function () { return chunk3ZA265SK_cjs.analyzeNumber; }
35
65
  });
36
66
  Object.defineProperty(exports, "getAreaCode", {
37
67
  enumerable: true,
38
- get: function () { return chunkBSS4Z7NI_cjs.getAreaCode; }
68
+ get: function () { return chunk3ZA265SK_cjs.getAreaCode; }
39
69
  });
40
70
  Object.defineProperty(exports, "getNumberType", {
41
71
  enumerable: true,
42
- get: function () { return chunkBSS4Z7NI_cjs.getNumberType; }
72
+ get: function () { return chunk3ZA265SK_cjs.getNumberType; }
43
73
  });
44
74
  Object.defineProperty(exports, "validateLandline", {
45
75
  enumerable: true,
46
- get: function () { return chunkBSS4Z7NI_cjs.validateLandline; }
76
+ get: function () { return chunk3ZA265SK_cjs.validateLandline; }
47
77
  });
48
78
  Object.defineProperty(exports, "analyzePhone", {
49
79
  enumerable: true,
50
- get: function () { return chunkPHHKIMO2_cjs.analyzePhone; }
80
+ get: function () { return chunk33FXHM2E_cjs.analyzePhone; }
51
81
  });
52
82
  Object.defineProperty(exports, "formatPhone", {
53
83
  enumerable: true,
54
- get: function () { return chunkPHHKIMO2_cjs.formatPhone; }
84
+ get: function () { return chunk33FXHM2E_cjs.formatPhone; }
55
85
  });
56
86
  Object.defineProperty(exports, "validatePhone", {
57
87
  enumerable: true,
58
- get: function () { return chunkPHHKIMO2_cjs.validatePhone; }
88
+ get: function () { return chunk33FXHM2E_cjs.validatePhone; }
59
89
  });
60
90
  Object.defineProperty(exports, "getNetwork", {
61
91
  enumerable: true,
62
- get: function () { return chunkYS7MOLK2_cjs.getNetwork; }
92
+ get: function () { return chunkHTERSQGF_cjs.getNetwork; }
63
93
  });
64
94
  Object.defineProperty(exports, "createMerchantQr", {
65
95
  enumerable: true,
66
- get: function () { return chunkQ7XHVR3U_cjs.createMerchantQr; }
96
+ get: function () { return chunk4VSGCQ6K_cjs.createMerchantQr; }
67
97
  });
68
98
  Object.defineProperty(exports, "createRaastP2PQr", {
69
99
  enumerable: true,
70
- get: function () { return chunkQ7XHVR3U_cjs.createRaastP2PQr; }
100
+ get: function () { return chunk4VSGCQ6K_cjs.createRaastP2PQr; }
71
101
  });
72
102
  Object.defineProperty(exports, "parseRaastQr", {
73
103
  enumerable: true,
74
- get: function () { return chunkQ7XHVR3U_cjs.parseRaastQr; }
104
+ get: function () { return chunk4VSGCQ6K_cjs.parseRaastQr; }
105
+ });
106
+ Object.defineProperty(exports, "validateRaastQr", {
107
+ enumerable: true,
108
+ get: function () { return chunk4VSGCQ6K_cjs.validateRaastQr; }
75
109
  });
76
110
  Object.defineProperty(exports, "analyzeNTN", {
77
111
  enumerable: true,
@@ -101,17 +135,13 @@ Object.defineProperty(exports, "toUrduDigits", {
101
135
  enumerable: true,
102
136
  get: function () { return chunkKEHCTYLO_cjs.toUrduDigits; }
103
137
  });
104
- Object.defineProperty(exports, "createWhatsAppLink", {
105
- enumerable: true,
106
- get: function () { return chunkKQKW2ZEK_cjs.createWhatsAppLink; }
107
- });
108
138
  Object.defineProperty(exports, "formatAddress", {
109
139
  enumerable: true,
110
- get: function () { return chunkAUATLZA5_cjs.formatAddress; }
140
+ get: function () { return chunk47P7HILD_cjs.formatAddress; }
111
141
  });
112
142
  Object.defineProperty(exports, "parseAddress", {
113
143
  enumerable: true,
114
- get: function () { return chunkAUATLZA5_cjs.parseAddress; }
144
+ get: function () { return chunk47P7HILD_cjs.parseAddress; }
115
145
  });
116
146
  Object.defineProperty(exports, "getCityByPostalCode", {
117
147
  enumerable: true,
@@ -151,23 +181,23 @@ Object.defineProperty(exports, "formatPKR", {
151
181
  });
152
182
  Object.defineProperty(exports, "getDistrictProvince", {
153
183
  enumerable: true,
154
- get: function () { return chunk3COX5FSL_cjs.getDistrictProvince; }
184
+ get: function () { return chunk34CJGJ67_cjs.getDistrictProvince; }
155
185
  });
156
186
  Object.defineProperty(exports, "getDistrictsByProvince", {
157
187
  enumerable: true,
158
- get: function () { return chunk3COX5FSL_cjs.getDistrictsByProvince; }
188
+ get: function () { return chunk34CJGJ67_cjs.getDistrictsByProvince; }
159
189
  });
160
190
  Object.defineProperty(exports, "getProvince", {
161
191
  enumerable: true,
162
- get: function () { return chunk3COX5FSL_cjs.getProvince; }
192
+ get: function () { return chunk34CJGJ67_cjs.getProvince; }
163
193
  });
164
194
  Object.defineProperty(exports, "searchCities", {
165
195
  enumerable: true,
166
- get: function () { return chunk3COX5FSL_cjs.searchCities; }
196
+ get: function () { return chunk34CJGJ67_cjs.searchCities; }
167
197
  });
168
198
  Object.defineProperty(exports, "searchDistricts", {
169
199
  enumerable: true,
170
- get: function () { return chunk3COX5FSL_cjs.searchDistricts; }
200
+ get: function () { return chunk34CJGJ67_cjs.searchDistricts; }
171
201
  });
172
202
  Object.defineProperty(exports, "getHolidaysOn", {
173
203
  enumerable: true,
@@ -203,9 +233,18 @@ Object.defineProperty(exports, "toHijri", {
203
233
  });
204
234
  Object.defineProperty(exports, "getBankFromIBAN", {
205
235
  enumerable: true,
206
- get: function () { return chunkE47SNBWQ_cjs.getBankFromIBAN; }
236
+ get: function () { return chunk3IARSCO6_cjs.getBankFromIBAN; }
237
+ });
238
+ Object.defineProperty(exports, "getBankInfo", {
239
+ enumerable: true,
240
+ get: function () { return chunk3IARSCO6_cjs.getBankInfo; }
241
+ });
242
+ Object.defineProperty(exports, "getBanks", {
243
+ enumerable: true,
244
+ get: function () { return chunk3IARSCO6_cjs.getBanks; }
207
245
  });
208
246
  Object.defineProperty(exports, "validateIBAN", {
209
247
  enumerable: true,
210
- get: function () { return chunkE47SNBWQ_cjs.validateIBAN; }
248
+ get: function () { return chunk3IARSCO6_cjs.validateIBAN; }
211
249
  });
250
+ exports.dataVersion = dataVersion;
package/dist/index.d.cts CHANGED
@@ -4,7 +4,7 @@ export { NetworkName, getNetwork } from './networks.cjs';
4
4
  export { getDistrictProvince, getDistrictsByProvince, getProvince, searchCities, searchDistricts } from './geo.cjs';
5
5
  export { formatLakh, formatPKR } from './format.cjs';
6
6
  export { createWhatsAppLink } from './whatsapp.cjs';
7
- export { getBankFromIBAN, validateIBAN } from './iban.cjs';
7
+ export { BankInfo, BankType, getBankFromIBAN, getBankInfo, getBanks, validateIBAN } from './iban.cjs';
8
8
  export { getCityByPostalCode, getPostalAreas, getPostalCode, getPostalCodes, searchPostalCodes } from './postal.cjs';
9
9
  export { ParsedAddress, formatAddress, parseAddress } from './address.cjs';
10
10
  export { normalizeRomanUrdu, normalizeText, toEnglishDigits, toUrduDigits } from './text.cjs';
@@ -12,5 +12,14 @@ export { HijriDate, HijriOptions, formatHijri, fromHijri, getHijriMonthName, isR
12
12
  export { AmountInWordsOptions, NumberToWordsOptions, WordsLanguage, amountInWords, numberToWords } from './words.cjs';
13
13
  export { NTNInfo, NTNType, analyzeNTN, validateNTN, validateSTRN } from './tax.cjs';
14
14
  export { NumberInfo, NumberType, analyzeNumber, getAreaCode, getNumberType, validateLandline } from './numbers.cjs';
15
- export { MerchantAccountInfo, MerchantQrOptions, ParsedRaastQr, RaastP2PQrOptions, createMerchantQr, createRaastP2PQr, parseRaastQr } from './raast.cjs';
15
+ export { MerchantAccountInfo, MerchantQrOptions, ParsedRaastQr, RaastDuration, RaastP2PQrOptions, RaastQrError, RaastQrValidation, RaastQrWarning, ValidateRaastQrOptions, createMerchantQr, createRaastP2PQr, parseRaastQr, validateRaastQr } from './raast.cjs';
16
16
  export { Holiday, HolidayId, HolidayOptions, IslamicHolidayId, getHolidaysOn, getPakistanHolidays, isPakistanHoliday } from './holidays.cjs';
17
+ export { InputState, checkCNICInput, checkIBANInput, checkPhoneInput, formatCNICInput, formatIBANInput, formatPhoneInput } from './input.cjs';
18
+
19
+ /**
20
+ * Date (YYYY-MM-DD) the bundled datasets were last checked against their
21
+ * sources. See DATA.md for what each dataset is based on.
22
+ */
23
+ declare const dataVersion = "2026-11-07";
24
+
25
+ export { dataVersion };
package/dist/index.d.ts CHANGED
@@ -4,7 +4,7 @@ export { NetworkName, getNetwork } from './networks.js';
4
4
  export { getDistrictProvince, getDistrictsByProvince, getProvince, searchCities, searchDistricts } from './geo.js';
5
5
  export { formatLakh, formatPKR } from './format.js';
6
6
  export { createWhatsAppLink } from './whatsapp.js';
7
- export { getBankFromIBAN, validateIBAN } from './iban.js';
7
+ export { BankInfo, BankType, getBankFromIBAN, getBankInfo, getBanks, validateIBAN } from './iban.js';
8
8
  export { getCityByPostalCode, getPostalAreas, getPostalCode, getPostalCodes, searchPostalCodes } from './postal.js';
9
9
  export { ParsedAddress, formatAddress, parseAddress } from './address.js';
10
10
  export { normalizeRomanUrdu, normalizeText, toEnglishDigits, toUrduDigits } from './text.js';
@@ -12,5 +12,14 @@ export { HijriDate, HijriOptions, formatHijri, fromHijri, getHijriMonthName, isR
12
12
  export { AmountInWordsOptions, NumberToWordsOptions, WordsLanguage, amountInWords, numberToWords } from './words.js';
13
13
  export { NTNInfo, NTNType, analyzeNTN, validateNTN, validateSTRN } from './tax.js';
14
14
  export { NumberInfo, NumberType, analyzeNumber, getAreaCode, getNumberType, validateLandline } from './numbers.js';
15
- export { MerchantAccountInfo, MerchantQrOptions, ParsedRaastQr, RaastP2PQrOptions, createMerchantQr, createRaastP2PQr, parseRaastQr } from './raast.js';
15
+ export { MerchantAccountInfo, MerchantQrOptions, ParsedRaastQr, RaastDuration, RaastP2PQrOptions, RaastQrError, RaastQrValidation, RaastQrWarning, ValidateRaastQrOptions, createMerchantQr, createRaastP2PQr, parseRaastQr, validateRaastQr } from './raast.js';
16
16
  export { Holiday, HolidayId, HolidayOptions, IslamicHolidayId, getHolidaysOn, getPakistanHolidays, isPakistanHoliday } from './holidays.js';
17
+ export { InputState, checkCNICInput, checkIBANInput, checkPhoneInput, formatCNICInput, formatIBANInput, formatPhoneInput } from './input.js';
18
+
19
+ /**
20
+ * Date (YYYY-MM-DD) the bundled datasets were last checked against their
21
+ * sources. See DATA.md for what each dataset is based on.
22
+ */
23
+ declare const dataVersion = "2026-11-07";
24
+
25
+ export { dataVersion };
package/dist/index.js CHANGED
@@ -1,18 +1,24 @@
1
- export { amountInWords, numberToWords } from './chunk-QQQKISXT.js';
2
- export { analyzeNumber, getAreaCode, getNumberType, validateLandline } from './chunk-T3E4B5MJ.js';
3
- export { analyzePhone, formatPhone, validatePhone } from './chunk-432ZYMYV.js';
4
- export { getNetwork } from './chunk-L45UXUWX.js';
5
- export { createMerchantQr, createRaastP2PQr, parseRaastQr } from './chunk-R7UTY3SY.js';
1
+ export { createWhatsAppLink } from './chunk-EMH4IP2U.js';
2
+ export { amountInWords, numberToWords } from './chunk-BR4QLZPX.js';
3
+ export { checkCNICInput, checkIBANInput, checkPhoneInput, formatCNICInput, formatIBANInput, formatPhoneInput } from './chunk-TTARJWGT.js';
4
+ export { analyzeNumber, getAreaCode, getNumberType, validateLandline } from './chunk-RXNYY5K5.js';
5
+ export { analyzePhone, formatPhone, validatePhone } from './chunk-PLDVGOKZ.js';
6
+ export { getNetwork } from './chunk-AZV45DMG.js';
7
+ import './chunk-6IPPANNX.js';
8
+ export { createMerchantQr, createRaastP2PQr, parseRaastQr, validateRaastQr } from './chunk-NZQ47NWD.js';
6
9
  export { analyzeNTN, validateNTN, validateSTRN } from './chunk-CEPNSHIC.js';
7
10
  export { normalizeRomanUrdu, normalizeText, toEnglishDigits, toUrduDigits } from './chunk-JKE4AMSZ.js';
8
- export { createWhatsAppLink } from './chunk-P4CGOJEM.js';
9
- import './chunk-Y6BUGLXU.js';
10
- export { formatAddress, parseAddress } from './chunk-L2BDDM2W.js';
11
+ export { formatAddress, parseAddress } from './chunk-QKH7W2CC.js';
11
12
  export { getCityByPostalCode, getPostalAreas, getPostalCode, getPostalCodes, searchPostalCodes } from './chunk-LIYNKIKS.js';
12
13
  export { getCNICInfo, validateCNIC } from './chunk-EEVNLTB4.js';
13
14
  export { formatLakh, formatPKR } from './chunk-6TSKA2PH.js';
14
- export { getDistrictProvince, getDistrictsByProvince, getProvince, searchCities, searchDistricts } from './chunk-K6CZFCX6.js';
15
+ export { getDistrictProvince, getDistrictsByProvince, getProvince, searchCities, searchDistricts } from './chunk-E6DT2DWQ.js';
15
16
  export { getHolidaysOn, getPakistanHolidays, isPakistanHoliday } from './chunk-HBOZIITD.js';
16
17
  export { formatHijri, fromHijri, getHijriMonthName, isRamadan, toHijri } from './chunk-Z5JEIQVW.js';
17
- export { getBankFromIBAN, validateIBAN } from './chunk-4EUKCSLW.js';
18
+ export { getBankFromIBAN, getBankInfo, getBanks, validateIBAN } from './chunk-YPPKY5XZ.js';
18
19
  import './chunk-ENQ7O7VW.js';
20
+
21
+ // src/data-version.ts
22
+ var dataVersion = "2026-11-07";
23
+
24
+ export { dataVersion };
package/dist/input.cjs ADDED
@@ -0,0 +1,34 @@
1
+ 'use strict';
2
+
3
+ var chunkU7MWHXMF_cjs = require('./chunk-U7MWHXMF.cjs');
4
+ require('./chunk-NTD4JLDW.cjs');
5
+ require('./chunk-HTCSHHOR.cjs');
6
+ require('./chunk-3IARSCO6.cjs');
7
+ require('./chunk-VPBMIYO2.cjs');
8
+
9
+
10
+
11
+ Object.defineProperty(exports, "checkCNICInput", {
12
+ enumerable: true,
13
+ get: function () { return chunkU7MWHXMF_cjs.checkCNICInput; }
14
+ });
15
+ Object.defineProperty(exports, "checkIBANInput", {
16
+ enumerable: true,
17
+ get: function () { return chunkU7MWHXMF_cjs.checkIBANInput; }
18
+ });
19
+ Object.defineProperty(exports, "checkPhoneInput", {
20
+ enumerable: true,
21
+ get: function () { return chunkU7MWHXMF_cjs.checkPhoneInput; }
22
+ });
23
+ Object.defineProperty(exports, "formatCNICInput", {
24
+ enumerable: true,
25
+ get: function () { return chunkU7MWHXMF_cjs.formatCNICInput; }
26
+ });
27
+ Object.defineProperty(exports, "formatIBANInput", {
28
+ enumerable: true,
29
+ get: function () { return chunkU7MWHXMF_cjs.formatIBANInput; }
30
+ });
31
+ Object.defineProperty(exports, "formatPhoneInput", {
32
+ enumerable: true,
33
+ get: function () { return chunkU7MWHXMF_cjs.formatPhoneInput; }
34
+ });
@@ -0,0 +1,68 @@
1
+ /**
2
+ * State of a form field while the user is typing.
3
+ *
4
+ * - `empty`: nothing entered yet
5
+ * - `incomplete`: what has been typed so far can still become valid
6
+ * - `valid`: complete and valid
7
+ * - `invalid`: cannot become valid by typing more (wrong character, prefix or length)
8
+ */
9
+ type InputState = 'empty' | 'incomplete' | 'valid' | 'invalid';
10
+ /**
11
+ * Formats a CNIC as the user types: `35202-1234567-1`.
12
+ *
13
+ * Keeps up to 13 digits (Urdu digits are converted) and inserts the dashes
14
+ * as the groups fill. Other characters are dropped.
15
+ *
16
+ * @param value - Current input value
17
+ * @returns Value to show in the input
18
+ */
19
+ declare function formatCNICInput(value: string): string;
20
+ /**
21
+ * Checks a CNIC while the user is typing. See {@link InputState}.
22
+ *
23
+ * @example
24
+ * checkCNICInput('35202-12'); // 'incomplete'
25
+ * checkCNICInput('35202-1234567-1'); // 'valid'
26
+ * checkCNICInput('05202'); // 'invalid' (no province starts with 0)
27
+ */
28
+ declare function checkCNICInput(value: string): InputState;
29
+ /**
30
+ * Formats a Pakistani mobile number as the user types: `0300-1234567`, or
31
+ * `+92 300 1234567` when the user starts with the country code.
32
+ *
33
+ * @param value - Current input value
34
+ * @returns Value to show in the input
35
+ */
36
+ declare function formatPhoneInput(value: string): string;
37
+ /**
38
+ * Checks a Pakistani mobile number while the user is typing. The `03XX`
39
+ * prefix is checked as soon as it is complete. See {@link InputState}.
40
+ *
41
+ * @example
42
+ * checkPhoneInput('0300 12'); // 'incomplete'
43
+ * checkPhoneInput('0360'); // 'invalid' (prefix not allocated)
44
+ * checkPhoneInput('03001234567'); // 'valid'
45
+ */
46
+ declare function checkPhoneInput(value: string): InputState;
47
+ /**
48
+ * Formats an IBAN as the user types: uppercase, in groups of four
49
+ * (`PK36 SCBL 0000 0011 2345 6702`), up to 24 characters.
50
+ *
51
+ * @param value - Current input value
52
+ * @returns Value to show in the input
53
+ */
54
+ declare function formatIBANInput(value: string): string;
55
+ /**
56
+ * Checks a Pakistani IBAN while the user is typing: the `PK` prefix, check
57
+ * digits and bank code are checked as they are typed, and the full checksum
58
+ * once all 24 characters are in. See {@link InputState}.
59
+ *
60
+ * @example
61
+ * checkIBANInput('PK36 SC'); // 'incomplete'
62
+ * checkIBANInput('GB29'); // 'invalid'
63
+ * checkIBANInput('PK36 SCBL 0000 0011 2345 6702'); // 'valid'
64
+ */
65
+ declare function checkIBANInput(value: string): InputState;
66
+
67
+ export { checkCNICInput, checkIBANInput, checkPhoneInput, formatCNICInput, formatIBANInput, formatPhoneInput };
68
+ export type { InputState };
@@ -0,0 +1,68 @@
1
+ /**
2
+ * State of a form field while the user is typing.
3
+ *
4
+ * - `empty`: nothing entered yet
5
+ * - `incomplete`: what has been typed so far can still become valid
6
+ * - `valid`: complete and valid
7
+ * - `invalid`: cannot become valid by typing more (wrong character, prefix or length)
8
+ */
9
+ type InputState = 'empty' | 'incomplete' | 'valid' | 'invalid';
10
+ /**
11
+ * Formats a CNIC as the user types: `35202-1234567-1`.
12
+ *
13
+ * Keeps up to 13 digits (Urdu digits are converted) and inserts the dashes
14
+ * as the groups fill. Other characters are dropped.
15
+ *
16
+ * @param value - Current input value
17
+ * @returns Value to show in the input
18
+ */
19
+ declare function formatCNICInput(value: string): string;
20
+ /**
21
+ * Checks a CNIC while the user is typing. See {@link InputState}.
22
+ *
23
+ * @example
24
+ * checkCNICInput('35202-12'); // 'incomplete'
25
+ * checkCNICInput('35202-1234567-1'); // 'valid'
26
+ * checkCNICInput('05202'); // 'invalid' (no province starts with 0)
27
+ */
28
+ declare function checkCNICInput(value: string): InputState;
29
+ /**
30
+ * Formats a Pakistani mobile number as the user types: `0300-1234567`, or
31
+ * `+92 300 1234567` when the user starts with the country code.
32
+ *
33
+ * @param value - Current input value
34
+ * @returns Value to show in the input
35
+ */
36
+ declare function formatPhoneInput(value: string): string;
37
+ /**
38
+ * Checks a Pakistani mobile number while the user is typing. The `03XX`
39
+ * prefix is checked as soon as it is complete. See {@link InputState}.
40
+ *
41
+ * @example
42
+ * checkPhoneInput('0300 12'); // 'incomplete'
43
+ * checkPhoneInput('0360'); // 'invalid' (prefix not allocated)
44
+ * checkPhoneInput('03001234567'); // 'valid'
45
+ */
46
+ declare function checkPhoneInput(value: string): InputState;
47
+ /**
48
+ * Formats an IBAN as the user types: uppercase, in groups of four
49
+ * (`PK36 SCBL 0000 0011 2345 6702`), up to 24 characters.
50
+ *
51
+ * @param value - Current input value
52
+ * @returns Value to show in the input
53
+ */
54
+ declare function formatIBANInput(value: string): string;
55
+ /**
56
+ * Checks a Pakistani IBAN while the user is typing: the `PK` prefix, check
57
+ * digits and bank code are checked as they are typed, and the full checksum
58
+ * once all 24 characters are in. See {@link InputState}.
59
+ *
60
+ * @example
61
+ * checkIBANInput('PK36 SC'); // 'incomplete'
62
+ * checkIBANInput('GB29'); // 'invalid'
63
+ * checkIBANInput('PK36 SCBL 0000 0011 2345 6702'); // 'valid'
64
+ */
65
+ declare function checkIBANInput(value: string): InputState;
66
+
67
+ export { checkCNICInput, checkIBANInput, checkPhoneInput, formatCNICInput, formatIBANInput, formatPhoneInput };
68
+ export type { InputState };
package/dist/input.js ADDED
@@ -0,0 +1,5 @@
1
+ export { checkCNICInput, checkIBANInput, checkPhoneInput, formatCNICInput, formatIBANInput, formatPhoneInput } from './chunk-TTARJWGT.js';
2
+ import './chunk-6IPPANNX.js';
3
+ import './chunk-EEVNLTB4.js';
4
+ import './chunk-YPPKY5XZ.js';
5
+ import './chunk-ENQ7O7VW.js';
package/dist/networks.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunkYS7MOLK2_cjs = require('./chunk-YS7MOLK2.cjs');
4
- require('./chunk-YLWZGSFY.cjs');
3
+ var chunkHTERSQGF_cjs = require('./chunk-HTERSQGF.cjs');
4
+ require('./chunk-NTD4JLDW.cjs');
5
5
  require('./chunk-VPBMIYO2.cjs');
6
6
 
7
7
 
8
8
 
9
9
  Object.defineProperty(exports, "getNetwork", {
10
10
  enumerable: true,
11
- get: function () { return chunkYS7MOLK2_cjs.getNetwork; }
11
+ get: function () { return chunkHTERSQGF_cjs.getNetwork; }
12
12
  });
@@ -17,4 +17,5 @@ type NetworkName = 'Jazz' | 'Zong' | 'Telenor' | 'Ufone' | 'SCO' | 'Unknown';
17
17
  */
18
18
  declare function getNetwork(phone: string): NetworkName;
19
19
 
20
- export { type NetworkName, getNetwork };
20
+ export { getNetwork };
21
+ export type { NetworkName };
@@ -17,4 +17,5 @@ type NetworkName = 'Jazz' | 'Zong' | 'Telenor' | 'Ufone' | 'SCO' | 'Unknown';
17
17
  */
18
18
  declare function getNetwork(phone: string): NetworkName;
19
19
 
20
- export { type NetworkName, getNetwork };
20
+ export { getNetwork };
21
+ export type { NetworkName };
package/dist/networks.js CHANGED
@@ -1,3 +1,3 @@
1
- export { getNetwork } from './chunk-L45UXUWX.js';
2
- import './chunk-Y6BUGLXU.js';
1
+ export { getNetwork } from './chunk-AZV45DMG.js';
2
+ import './chunk-6IPPANNX.js';
3
3
  import './chunk-ENQ7O7VW.js';
package/dist/numbers.cjs CHANGED
@@ -1,24 +1,24 @@
1
1
  'use strict';
2
2
 
3
- var chunkBSS4Z7NI_cjs = require('./chunk-BSS4Z7NI.cjs');
4
- require('./chunk-YLWZGSFY.cjs');
3
+ var chunk3ZA265SK_cjs = require('./chunk-3ZA265SK.cjs');
4
+ require('./chunk-NTD4JLDW.cjs');
5
5
  require('./chunk-VPBMIYO2.cjs');
6
6
 
7
7
 
8
8
 
9
9
  Object.defineProperty(exports, "analyzeNumber", {
10
10
  enumerable: true,
11
- get: function () { return chunkBSS4Z7NI_cjs.analyzeNumber; }
11
+ get: function () { return chunk3ZA265SK_cjs.analyzeNumber; }
12
12
  });
13
13
  Object.defineProperty(exports, "getAreaCode", {
14
14
  enumerable: true,
15
- get: function () { return chunkBSS4Z7NI_cjs.getAreaCode; }
15
+ get: function () { return chunk3ZA265SK_cjs.getAreaCode; }
16
16
  });
17
17
  Object.defineProperty(exports, "getNumberType", {
18
18
  enumerable: true,
19
- get: function () { return chunkBSS4Z7NI_cjs.getNumberType; }
19
+ get: function () { return chunk3ZA265SK_cjs.getNumberType; }
20
20
  });
21
21
  Object.defineProperty(exports, "validateLandline", {
22
22
  enumerable: true,
23
- get: function () { return chunkBSS4Z7NI_cjs.validateLandline; }
23
+ get: function () { return chunk3ZA265SK_cjs.validateLandline; }
24
24
  });
@@ -50,4 +50,5 @@ declare function validateLandline(phone: string): boolean;
50
50
  */
51
51
  declare function getAreaCode(city: string): string | null;
52
52
 
53
- export { type NumberInfo, type NumberType, analyzeNumber, getAreaCode, getNumberType, validateLandline };
53
+ export { analyzeNumber, getAreaCode, getNumberType, validateLandline };
54
+ export type { NumberInfo, NumberType };
package/dist/numbers.d.ts CHANGED
@@ -50,4 +50,5 @@ declare function validateLandline(phone: string): boolean;
50
50
  */
51
51
  declare function getAreaCode(city: string): string | null;
52
52
 
53
- export { type NumberInfo, type NumberType, analyzeNumber, getAreaCode, getNumberType, validateLandline };
53
+ export { analyzeNumber, getAreaCode, getNumberType, validateLandline };
54
+ export type { NumberInfo, NumberType };
package/dist/numbers.js CHANGED
@@ -1,3 +1,3 @@
1
- export { analyzeNumber, getAreaCode, getNumberType, validateLandline } from './chunk-T3E4B5MJ.js';
2
- import './chunk-Y6BUGLXU.js';
1
+ export { analyzeNumber, getAreaCode, getNumberType, validateLandline } from './chunk-RXNYY5K5.js';
2
+ import './chunk-6IPPANNX.js';
3
3
  import './chunk-ENQ7O7VW.js';
package/dist/phone.cjs CHANGED
@@ -1,29 +1,29 @@
1
1
  'use strict';
2
2
 
3
- var chunkPHHKIMO2_cjs = require('./chunk-PHHKIMO2.cjs');
4
- require('./chunk-YS7MOLK2.cjs');
5
- var chunkYLWZGSFY_cjs = require('./chunk-YLWZGSFY.cjs');
3
+ var chunk33FXHM2E_cjs = require('./chunk-33FXHM2E.cjs');
4
+ require('./chunk-HTERSQGF.cjs');
5
+ var chunkNTD4JLDW_cjs = require('./chunk-NTD4JLDW.cjs');
6
6
  require('./chunk-VPBMIYO2.cjs');
7
7
 
8
8
 
9
9
 
10
10
  Object.defineProperty(exports, "analyzePhone", {
11
11
  enumerable: true,
12
- get: function () { return chunkPHHKIMO2_cjs.analyzePhone; }
12
+ get: function () { return chunk33FXHM2E_cjs.analyzePhone; }
13
13
  });
14
14
  Object.defineProperty(exports, "formatPhone", {
15
15
  enumerable: true,
16
- get: function () { return chunkPHHKIMO2_cjs.formatPhone; }
16
+ get: function () { return chunk33FXHM2E_cjs.formatPhone; }
17
17
  });
18
18
  Object.defineProperty(exports, "validatePhone", {
19
19
  enumerable: true,
20
- get: function () { return chunkPHHKIMO2_cjs.validatePhone; }
20
+ get: function () { return chunk33FXHM2E_cjs.validatePhone; }
21
21
  });
22
22
  Object.defineProperty(exports, "getPhonePrefix", {
23
23
  enumerable: true,
24
- get: function () { return chunkYLWZGSFY_cjs.getPhonePrefix; }
24
+ get: function () { return chunkNTD4JLDW_cjs.getPhonePrefix; }
25
25
  });
26
26
  Object.defineProperty(exports, "normalizePhoneDigits", {
27
27
  enumerable: true,
28
- get: function () { return chunkYLWZGSFY_cjs.normalizePhoneDigits; }
28
+ get: function () { return chunkNTD4JLDW_cjs.normalizePhoneDigits; }
29
29
  });
package/dist/phone.d.cts CHANGED
@@ -53,4 +53,5 @@ declare function formatPhone(phone: string): string | null;
53
53
  */
54
54
  declare function analyzePhone(phone: string): PhoneAnalysis;
55
55
 
56
- export { NetworkName, type PhoneAnalysis, analyzePhone, formatPhone, getPhonePrefix, normalizePhoneDigits, validatePhone };
56
+ export { NetworkName, analyzePhone, formatPhone, getPhonePrefix, normalizePhoneDigits, validatePhone };
57
+ export type { PhoneAnalysis };
package/dist/phone.d.ts CHANGED
@@ -53,4 +53,5 @@ declare function formatPhone(phone: string): string | null;
53
53
  */
54
54
  declare function analyzePhone(phone: string): PhoneAnalysis;
55
55
 
56
- export { NetworkName, type PhoneAnalysis, analyzePhone, formatPhone, getPhonePrefix, normalizePhoneDigits, validatePhone };
56
+ export { NetworkName, analyzePhone, formatPhone, getPhonePrefix, normalizePhoneDigits, validatePhone };
57
+ export type { PhoneAnalysis };
package/dist/phone.js CHANGED
@@ -1,4 +1,4 @@
1
- export { analyzePhone, formatPhone, validatePhone } from './chunk-432ZYMYV.js';
2
- import './chunk-L45UXUWX.js';
3
- export { getPhonePrefix, normalizePhoneDigits } from './chunk-Y6BUGLXU.js';
1
+ export { analyzePhone, formatPhone, validatePhone } from './chunk-PLDVGOKZ.js';
2
+ import './chunk-AZV45DMG.js';
3
+ export { getPhonePrefix, normalizePhoneDigits } from './chunk-6IPPANNX.js';
4
4
  import './chunk-ENQ7O7VW.js';