@adyen/kyc-components 3.0.1 → 3.0.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.
|
@@ -6187,6 +6187,7 @@ const nonInputs = (str, options) => Array.from(str).map((char) => ({
|
|
|
6187
6187
|
includeInValue: (options == null ? void 0 : options.includeInValue) ?? false,
|
|
6188
6188
|
displayEagerly: (options == null ? void 0 : options.displayEagerly) ?? true
|
|
6189
6189
|
}));
|
|
6190
|
+
const spacer = nonInputs(" ")[0];
|
|
6190
6191
|
const alphaInputs = (length, optional = false) => makeArrayOfRepeatedObjects(length, {
|
|
6191
6192
|
type: "input",
|
|
6192
6193
|
allow: /[A-Za-z]/,
|
|
@@ -6374,7 +6375,15 @@ const businessRegistrationNumberMasks = {
|
|
|
6374
6375
|
default: {
|
|
6375
6376
|
mask: makeMask(...nonInputs("FL", {
|
|
6376
6377
|
includeInValue: true
|
|
6377
|
-
}),
|
|
6378
|
+
}), spacer, ...nonInputs("-", {
|
|
6379
|
+
includeInValue: true
|
|
6380
|
+
}), spacer, ...numericInputs(4), spacer, ...nonInputs(".", {
|
|
6381
|
+
includeInValue: true
|
|
6382
|
+
}), spacer, ...numericInputs(3), spacer, ...nonInputs(".", {
|
|
6383
|
+
includeInValue: true
|
|
6384
|
+
}), spacer, ...numericInputs(3), spacer, ...nonInputs("-", {
|
|
6385
|
+
includeInValue: true
|
|
6386
|
+
}), spacer, ...numericInputs(1))
|
|
6378
6387
|
}
|
|
6379
6388
|
},
|
|
6380
6389
|
[CountryCodes.Lithuania]: {
|
|
@@ -6438,7 +6447,11 @@ const businessRegistrationNumberMasks = {
|
|
|
6438
6447
|
},
|
|
6439
6448
|
[CountryCodes.Romania]: {
|
|
6440
6449
|
default: {
|
|
6441
|
-
mask: makeMask(...alphaInputs(1), ...numericInputs(2),
|
|
6450
|
+
mask: makeMask(...alphaInputs(1), ...numericInputs(2), spacer, ...nonInputs("/", {
|
|
6451
|
+
includeInValue: true
|
|
6452
|
+
}), spacer, ...numericInputs(1), ...numericInputs(8, true), spacer, ...nonInputs("/", {
|
|
6453
|
+
includeInValue: true
|
|
6454
|
+
}), spacer, ...numericInputs(4)),
|
|
6442
6455
|
transformOnType: uppercase
|
|
6443
6456
|
}
|
|
6444
6457
|
},
|
|
@@ -6528,7 +6541,7 @@ const businessRegistrationNumberPatterns = {
|
|
|
6528
6541
|
soleProprietorship: /^\d{8}$/
|
|
6529
6542
|
},
|
|
6530
6543
|
[CountryCodes.Cyprus]: {
|
|
6531
|
-
default: /^[
|
|
6544
|
+
default: /^[A-Z]{1,2}\d{1,8}$/
|
|
6532
6545
|
},
|
|
6533
6546
|
[CountryCodes.CzechRepublic]: {
|
|
6534
6547
|
default: /^\d{8,10}$/
|
|
@@ -6635,7 +6648,7 @@ const businessRegistrationNumberPatterns = {
|
|
|
6635
6648
|
default: /^\d{9}$/
|
|
6636
6649
|
},
|
|
6637
6650
|
[CountryCodes.Romania]: {
|
|
6638
|
-
default: /^
|
|
6651
|
+
default: /^[A-Z]\d{2}\/\d{1,9}\/\d{4}$/
|
|
6639
6652
|
},
|
|
6640
6653
|
[CountryCodes.Singapore]: {
|
|
6641
6654
|
default: /^[a-zA-Z0-9]{9,10}$/
|
|
@@ -6810,7 +6823,7 @@ const defaultFieldConfig = {
|
|
|
6810
6823
|
helperText: {
|
|
6811
6824
|
key: "enterAMaximumOfNCharactersWithAMixForExample",
|
|
6812
6825
|
values: {
|
|
6813
|
-
|
|
6826
|
+
maxChars: "9",
|
|
6814
6827
|
example: "T1001a, FN89060n"
|
|
6815
6828
|
}
|
|
6816
6829
|
}
|
|
@@ -7310,7 +7323,7 @@ const defaultFieldConfig = {
|
|
|
7310
7323
|
helperText: {
|
|
7311
7324
|
key: "enterAMaximumOfNMoreDigitsForExample",
|
|
7312
7325
|
values: {
|
|
7313
|
-
|
|
7326
|
+
maxDigits: "15",
|
|
7314
7327
|
example: "J40/8302/1997"
|
|
7315
7328
|
}
|
|
7316
7329
|
}
|
|
@@ -7322,8 +7335,8 @@ const defaultFieldConfig = {
|
|
|
7322
7335
|
helperText: {
|
|
7323
7336
|
key: "enterXToYCharactersWithAMixForExample",
|
|
7324
7337
|
values: {
|
|
7325
|
-
|
|
7326
|
-
|
|
7338
|
+
minChars: "9",
|
|
7339
|
+
maxChars: "10",
|
|
7327
7340
|
example: "200312345A"
|
|
7328
7341
|
}
|
|
7329
7342
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { InputToken, Mask, MaskToken, NonInputToken } from './maskTypes';
|
|
2
2
|
export declare const nonInputs: (str: string, options?: Partial<NonInputToken>) => NonInputToken[];
|
|
3
|
+
export declare const spacer: NonInputToken;
|
|
3
4
|
export declare const alphaInputs: (length: number, optional?: boolean) => InputToken[];
|
|
4
5
|
export declare const numericInputs: (length: number, optional?: boolean) => InputToken[];
|
|
5
6
|
export declare const alphanumericInputs: (length: number, optional?: boolean) => InputToken[];
|