@adyen/kyc-components 2.29.1 → 2.29.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.
|
@@ -18944,6 +18944,23 @@ const defaultFieldConfig$2 = {
|
|
|
18944
18944
|
}
|
|
18945
18945
|
}
|
|
18946
18946
|
},
|
|
18947
|
+
[CountryCodes.Sweden]: {
|
|
18948
|
+
label: "branchCode",
|
|
18949
|
+
validators: validatePatternOnBlur(/^\d{4,5}$/),
|
|
18950
|
+
mask: {
|
|
18951
|
+
mask: makeMask(...numericInputs(4), ...nonInputs(" - ", {
|
|
18952
|
+
displayEagerly: false
|
|
18953
|
+
}), ...numericInputs(1, true))
|
|
18954
|
+
},
|
|
18955
|
+
guidanceText: {
|
|
18956
|
+
key: "enterXToYDigitsForExample",
|
|
18957
|
+
values: {
|
|
18958
|
+
minDigits: "4",
|
|
18959
|
+
maxDigits: "5",
|
|
18960
|
+
example: "5678 or 7635-2"
|
|
18961
|
+
}
|
|
18962
|
+
}
|
|
18963
|
+
},
|
|
18947
18964
|
// Not yet implemented
|
|
18948
18965
|
[CountryCodes.Indonesia]: {
|
|
18949
18966
|
label: "clearingCode",
|
|
@@ -19134,18 +19151,20 @@ const ibanMask = (country2, inputLength, includesBankCode) => {
|
|
|
19134
19151
|
const tokens = [];
|
|
19135
19152
|
tokens.push(...nonInputs(country2, {
|
|
19136
19153
|
includeInValue: true
|
|
19137
|
-
}), ...numericInputs(2)
|
|
19154
|
+
}), ...numericInputs(2));
|
|
19138
19155
|
inputLength -= 2;
|
|
19139
19156
|
if (includesBankCode) {
|
|
19140
|
-
tokens.push(...alphaInputs(4)
|
|
19157
|
+
tokens.push(spacer, ...alphaInputs(4));
|
|
19141
19158
|
inputLength -= 4;
|
|
19142
19159
|
}
|
|
19143
19160
|
const numGroups = Math.floor(inputLength / 4);
|
|
19144
19161
|
const remainder = inputLength % 4;
|
|
19145
19162
|
for (let i = 0; i < numGroups; i += 1) {
|
|
19146
|
-
tokens.push(...numericInputs(4)
|
|
19163
|
+
tokens.push(spacer, ...numericInputs(4));
|
|
19164
|
+
}
|
|
19165
|
+
if (remainder > 0) {
|
|
19166
|
+
tokens.push(spacer, ...numericInputs(remainder));
|
|
19147
19167
|
}
|
|
19148
|
-
tokens.push(...numericInputs(remainder));
|
|
19149
19168
|
return {
|
|
19150
19169
|
mask: {
|
|
19151
19170
|
tokens
|
|
@@ -19183,21 +19202,24 @@ const defaultFieldConfig$1 = {
|
|
|
19183
19202
|
[CountryCodes.Croatia]: ibanMetadata(CountryCodes.Croatia, 19, "HR51 2484 0083 5929 6973 8"),
|
|
19184
19203
|
[CountryCodes.Cyprus]: ibanMetadata(CountryCodes.Cyprus, 26, "CY16 5183 1221 8756 5858 5388 7678"),
|
|
19185
19204
|
[CountryCodes.CzechRepublic]: ibanMetadata(CountryCodes.CzechRepublic, 22, "CZ23 5051 3674 5924 5233 3465"),
|
|
19205
|
+
[CountryCodes.Denmark]: ibanMetadata(CountryCodes.Denmark, 16, "DK95 2000 0123 4567 89"),
|
|
19186
19206
|
[CountryCodes.Estonia]: ibanMetadata(CountryCodes.Estonia, 18, "EE26 1291 5123 1542 6371"),
|
|
19187
19207
|
[CountryCodes.Finland]: ibanMetadata(CountryCodes.Finland, 16, "FI03 9319 8995 3742 51"),
|
|
19188
19208
|
[CountryCodes.Germany]: ibanMetadata(CountryCodes.Germany, 20, "DE91 1000 0000 0123 4567 89"),
|
|
19189
19209
|
[CountryCodes.Greece]: ibanMetadata(CountryCodes.Greece, 25, "GR57 0107 7142 7681 6687 9575 217"),
|
|
19190
19210
|
[CountryCodes.Hungary]: ibanMetadata(CountryCodes.Hungary, 26, "HU68 1070 0024 3428 4128 3192 4812"),
|
|
19191
|
-
[CountryCodes.Italy]: ibanMetadata(CountryCodes.Italy, 25, "IT06 L030 0203 2809 8485 8934 882"),
|
|
19192
19211
|
[CountryCodes.Lithuania]: ibanMetadata(CountryCodes.Lithuania, 18, "LT59 9244 6228 2176 2762"),
|
|
19193
19212
|
[CountryCodes.Luxembourg]: ibanMetadata(CountryCodes.Luxembourg, 18, "LU71 0106 9242 5365 8562"),
|
|
19194
|
-
[CountryCodes.
|
|
19213
|
+
[CountryCodes.Norway]: ibanMetadata(CountryCodes.Norway, 13, "NO83 3000 1234 567"),
|
|
19214
|
+
[CountryCodes.Poland]: ibanMetadata(CountryCodes.Poland, 26, "PL98 1090 2402 7474 4662 2173 1624"),
|
|
19195
19215
|
[CountryCodes.Portugal]: ibanMetadata(CountryCodes.Portugal, 23, "PT42 0035 0651 8646 9119 5263 5"),
|
|
19196
19216
|
[CountryCodes.Slovakia]: ibanMetadata(CountryCodes.Slovakia, 22, "SK25 5173 1333 4916 3219 3521"),
|
|
19217
|
+
[CountryCodes.Slovenia]: ibanMetadata(CountryCodes.Slovenia, 17, "SI56 1920 0123 4567 892"),
|
|
19197
19218
|
[CountryCodes.Spain]: ibanMetadata(CountryCodes.Spain, 22, "ES76 1465 5599 9226 7623 2635"),
|
|
19219
|
+
[CountryCodes.Sweden]: ibanMetadata(CountryCodes.Sweden, 22, "SE72 8000 0810 3400 0978 3242"),
|
|
19198
19220
|
// These include 4-letter bank codes
|
|
19199
|
-
[CountryCodes.Bulgaria]: ibanMetadata(CountryCodes.Bulgaria, 20, "
|
|
19200
|
-
[CountryCodes.Gibraltar]: ibanMetadata(CountryCodes.Gibraltar, 21, "
|
|
19221
|
+
[CountryCodes.Bulgaria]: ibanMetadata(CountryCodes.Bulgaria, 20, "BG17 BNPA 9440 4432 7749 93", true),
|
|
19222
|
+
[CountryCodes.Gibraltar]: ibanMetadata(CountryCodes.Gibraltar, 21, "GI96 JYJT 9899 9587 8655 898", true),
|
|
19201
19223
|
[CountryCodes.Ireland]: ibanMetadata(CountryCodes.Ireland, 20, "IE64 IRCE 9205 0112 3456 78", true),
|
|
19202
19224
|
[CountryCodes.Latvia]: ibanMetadata(CountryCodes.Latvia, 19, "LV80 BANK 0000 4351 9500 1", true),
|
|
19203
19225
|
[CountryCodes.Malta]: ibanMetadata(CountryCodes.Malta, 29, "MT03 VIXW 2487 8926 8575 8586 8929 858", true),
|
|
@@ -19215,21 +19237,43 @@ const defaultFieldConfig$1 = {
|
|
|
19215
19237
|
mask: {
|
|
19216
19238
|
mask: makeMask(...nonInputs("FR", {
|
|
19217
19239
|
includeInValue: true
|
|
19218
|
-
}), ...numericInputs(2), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(
|
|
19240
|
+
}), ...numericInputs(2), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(2), ...alphanumericInputs(2), spacer, ...alphanumericInputs(4), spacer, ...alphanumericInputs(4), spacer, ...alphanumericInputs(1), ...numericInputs(2)),
|
|
19219
19241
|
transformOnType: uppercase
|
|
19220
19242
|
},
|
|
19221
19243
|
guidanceText: ibanGuidance("characters", 25, "FR64 1009 6000 4035 3425 9742 Y90")
|
|
19222
19244
|
},
|
|
19245
|
+
[CountryCodes.Italy]: {
|
|
19246
|
+
label: "iban",
|
|
19247
|
+
validators: validateIbanOnBlurAndInput(CountryCodes.Italy),
|
|
19248
|
+
mask: {
|
|
19249
|
+
mask: makeMask(...nonInputs("IT", {
|
|
19250
|
+
includeInValue: true
|
|
19251
|
+
}), ...numericInputs(2), spacer, ...alphaInputs(1), ...numericInputs(3), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(3)),
|
|
19252
|
+
transformOnType: uppercase
|
|
19253
|
+
},
|
|
19254
|
+
guidanceText: ibanGuidance("characters", 25, "IT06 L030 0203 2809 8485 8934 882")
|
|
19255
|
+
},
|
|
19223
19256
|
[CountryCodes.Liechtenstein]: {
|
|
19224
19257
|
label: "iban",
|
|
19225
19258
|
validators: validateIbanOnBlurAndInput(CountryCodes.Liechtenstein),
|
|
19226
19259
|
mask: {
|
|
19227
|
-
mask: makeMask(...nonInputs("
|
|
19260
|
+
mask: makeMask(...nonInputs("LI", {
|
|
19228
19261
|
includeInValue: true
|
|
19229
|
-
}), ...numericInputs(2), spacer, ...numericInputs(4), spacer, ...numericInputs(
|
|
19262
|
+
}), ...numericInputs(2), spacer, ...numericInputs(4), spacer, ...numericInputs(1), ...alphanumericInputs(3), spacer, ...alphanumericInputs(4), spacer, ...alphanumericInputs(3), ...alphanumericInputs(1), spacer, ...alphanumericInputs(1)),
|
|
19230
19263
|
transformOnType: uppercase
|
|
19231
19264
|
},
|
|
19232
19265
|
guidanceText: ibanGuidance("characters", 19, "LI21 0881 0000 2324 013A A")
|
|
19266
|
+
},
|
|
19267
|
+
[CountryCodes.Monaco]: {
|
|
19268
|
+
label: "iban",
|
|
19269
|
+
validators: validateIbanOnBlurAndInput(CountryCodes.Monaco),
|
|
19270
|
+
mask: {
|
|
19271
|
+
mask: makeMask(...nonInputs("MC", {
|
|
19272
|
+
includeInValue: true
|
|
19273
|
+
}), ...numericInputs(2), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(2), ...alphanumericInputs(2), spacer, ...alphanumericInputs(4), spacer, ...alphanumericInputs(4), spacer, ...alphanumericInputs(1), ...numericInputs(2)),
|
|
19274
|
+
transformOnType: uppercase
|
|
19275
|
+
},
|
|
19276
|
+
guidanceText: ibanGuidance("characters", 25, "MC58 1122 2000 0101 2345 6789 030")
|
|
19233
19277
|
}
|
|
19234
19278
|
};
|
|
19235
19279
|
const ibanFields = ["iban"];
|