@adyen/kyc-components 3.23.0 → 3.23.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/es/adyen-kyc-components.es.js +1712 -1697
- package/dist/style.css +7 -4
- package/dist/types/components/AdditionalInformation/types.d.ts +1 -1
- package/dist/types/components/BasicInformation/types.d.ts +1 -1
- package/dist/types/components/BusinessDetails/forms.d.ts +1 -1
- package/dist/types/components/Company/component/CompanyComponent.d.ts +1 -2
- package/dist/types/components/CompanyRegistrationDetails/types.d.ts +9 -11
- package/dist/types/components/SoleProp/component/SolePropComponent.d.ts +1 -1
- package/dist/types/components/internal/DateOfIncorporationField/fieldConfig.d.ts +3 -0
- package/dist/types/components/internal/TaxInformationField/index.d.ts +0 -1
- package/dist/types/components/internal/TradingNameField/fieldConfig.d.ts +3 -0
- package/dist/types/core/models/company.d.ts +0 -3
- package/dist/types/utils/mapping/componentApiMapping.d.ts +2 -0
- package/package.json +1 -1
- package/dist/types/components/CompanyRegistrationDetails/validate.d.ts +0 -16
- package/dist/types/components/internal/DateOfIncorporationField/validate.d.ts +0 -3
- package/dist/types/components/internal/TradingNameField/validate.d.ts +0 -3
package/dist/style.css
CHANGED
|
@@ -1220,10 +1220,13 @@ button[disabled]:hover {
|
|
|
1220
1220
|
}
|
|
1221
1221
|
.adyen-layout-md .adyen-kyc-field-wrapper > .adyen-kyc-field:nth-child(2) {
|
|
1222
1222
|
margin-left: var(--adyen-sdk-spacer-040, 8px);
|
|
1223
|
-
}.adyen-kyc-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
margin
|
|
1223
|
+
}.adyen-kyc-company-registration-details fieldset {
|
|
1224
|
+
border: 0;
|
|
1225
|
+
padding: 0;
|
|
1226
|
+
margin: 0;
|
|
1227
|
+
}
|
|
1228
|
+
.adyen-kyc-company-registration-details .adyen-kyc-field-wrapper {
|
|
1229
|
+
flex-direction: column;
|
|
1227
1230
|
}.adyen-kyc-input--mismatch {
|
|
1228
1231
|
animation: mismatchShake 300ms;
|
|
1229
1232
|
border-color: var(--adyen-sdk-color-outline-critical, #e22d2d) !important;
|
|
@@ -9,7 +9,7 @@ import type { LegalCompanyNameFieldSchema } from '../internal/LegalCompanyNameFi
|
|
|
9
9
|
import type { StockExchangeMICFieldSchema } from '../internal/StockExchangeMICField/types';
|
|
10
10
|
import type { StockISINFieldSchema } from '../internal/StockISINField/types';
|
|
11
11
|
import type { StockTickerSymbolFieldSchema } from '../internal/StockTickerSymbol/types';
|
|
12
|
-
import type { TaxInformationFieldSchema } from '../internal/TaxInformationField';
|
|
12
|
+
import type { TaxInformationFieldSchema } from '../internal/TaxInformationField/types';
|
|
13
13
|
import type { VatNumberFieldSchema } from '../internal/VatNumberField';
|
|
14
14
|
export interface AdditionalInformationSchema extends LegalCompanyNameFieldSchema, DBANameFieldSchema, VatNumberFieldSchema, TaxInformationFieldSchema, BusinessRegistrationNumberFieldSchema, DateOfIncorporationFieldSchema, StockISINFieldSchema, StockExchangeMICFieldSchema, StockTickerSymbolFieldSchema {
|
|
15
15
|
legalFormDescription?: string;
|
|
@@ -8,7 +8,7 @@ import type { BusinessNameFieldSchema } from '../internal/BusinessNameField/type
|
|
|
8
8
|
import type { BusinessRegistrationNumberFieldSchema } from '../internal/BusinessRegistrationNumberField/types';
|
|
9
9
|
import type { CountryFieldSchema } from '../internal/CountryField/types';
|
|
10
10
|
import type { StateFieldSchema } from '../internal/StateField/types';
|
|
11
|
-
import type { TaxInformationFieldSchema } from '../internal/TaxInformationField';
|
|
11
|
+
import type { TaxInformationFieldSchema } from '../internal/TaxInformationField/types';
|
|
12
12
|
export type BasicInformationSchema = CountryFieldSchema & BusinessNameFieldSchema & StateFieldSchema & BusinessRegistrationNumberFieldSchema & TaxInformationFieldSchema;
|
|
13
13
|
export interface BasicInformationProps extends BaseInnerFormProps<BasicInformationSchema> {
|
|
14
14
|
country: CountryCode;
|
|
@@ -7,7 +7,7 @@ export declare const getForms: (country: CountryCode) => {
|
|
|
7
7
|
readonly formId: "basicInformation";
|
|
8
8
|
readonly formName: "basicInformationFormName";
|
|
9
9
|
readonly formHeading: "basicInformationFormHeading";
|
|
10
|
-
readonly fields: ("country" | "businessName" | "stateOrProvince" | keyof import("../internal/
|
|
10
|
+
readonly fields: ("country" | "businessName" | "stateOrProvince" | keyof import("../internal/BusinessRegistrationNumberField/types").BusinessRegistrationNumberFieldSchema | keyof import("../internal/TaxInformationField/types").TaxInformationFieldSchema)[];
|
|
11
11
|
};
|
|
12
12
|
readonly companyStructure: {
|
|
13
13
|
readonly formId: "companyStructure";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import './CompanyComponent.scss';
|
|
2
|
-
import type { CompanyRegistrationDetailsSchema } from '../../CompanyRegistrationDetails/types';
|
|
3
2
|
import type { CompanyTypeSchema } from '../../CompanyType/types';
|
|
4
3
|
import type { CompanyProps } from '../types';
|
|
5
4
|
export declare const companyForms: {
|
|
@@ -16,7 +15,7 @@ export declare const companyForms: {
|
|
|
16
15
|
readonly companyRegistrationDetails: {
|
|
17
16
|
readonly formId: "companyRegistrationDetails";
|
|
18
17
|
readonly formName: "registrationDetails";
|
|
19
|
-
readonly fields: (keyof
|
|
18
|
+
readonly fields: ("dateOfIncorporation" | "stockExchangeMIC" | "stockISIN" | "stockTickerSymbol" | keyof import("../../internal/VatNumberField").VatNumberFieldSchema | keyof import("../../internal/BusinessRegistrationNumberField/types").BusinessRegistrationNumberFieldSchema | keyof import("../../internal/TaxInformationField/types").TaxInformationFieldSchema | keyof import("../../internal/TradingNameField/types").TradingNameFieldSchema)[];
|
|
20
19
|
};
|
|
21
20
|
readonly companyRegistrationAddress: {
|
|
22
21
|
readonly formId: "companyRegistrationAddress";
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
import type { BaseInnerFormProps } from '../../core/hooks/useForm';
|
|
2
2
|
import type { CompanyTypesValue } from '../../core/models/api/company-types-value';
|
|
3
3
|
import type { CountryCode } from '../../core/models/country-code';
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
4
|
+
import type { BusinessRegistrationNumberFieldSchema } from '../internal/BusinessRegistrationNumberField/types';
|
|
5
|
+
import type { DateOfIncorporationFieldSchema } from '../internal/DateOfIncorporationField/types';
|
|
6
|
+
import type { StockExchangeMICFieldSchema } from '../internal/StockExchangeMICField/types';
|
|
7
|
+
import type { StockISINFieldSchema } from '../internal/StockISINField/types';
|
|
8
|
+
import type { StockTickerSymbolFieldSchema } from '../internal/StockTickerSymbol/types';
|
|
9
|
+
import type { TaxInformationFieldSchema } from '../internal/TaxInformationField/types';
|
|
10
|
+
import type { TradingNameFieldSchema } from '../internal/TradingNameField/types';
|
|
6
11
|
import type { VatNumberFieldSchema } from '../internal/VatNumberField/types';
|
|
7
|
-
export
|
|
8
|
-
tradingName?: string;
|
|
9
|
-
sameNameAsLegalName?: boolean;
|
|
10
|
-
stockExchangeMIC?: string;
|
|
11
|
-
stockISIN?: string;
|
|
12
|
-
stockTickerSymbol?: string;
|
|
13
|
-
dateOfIncorporation?: string;
|
|
14
|
-
isUen?: boolean;
|
|
15
|
-
}
|
|
12
|
+
export type CompanyRegistrationDetailsSchema = TradingNameFieldSchema & BusinessRegistrationNumberFieldSchema & TaxInformationFieldSchema & VatNumberFieldSchema & StockExchangeMICFieldSchema & StockISINFieldSchema & StockTickerSymbolFieldSchema & DateOfIncorporationFieldSchema;
|
|
16
13
|
export interface CompanyRegistrationDetailsProps extends BaseInnerFormProps<CompanyRegistrationDetailsSchema> {
|
|
17
14
|
companyType?: CompanyTypesValue;
|
|
18
15
|
country?: CountryCode;
|
|
16
|
+
legalName?: string;
|
|
19
17
|
}
|
|
@@ -8,7 +8,7 @@ export declare const solePropForms: {
|
|
|
8
8
|
readonly solePropRegistrationDetails: {
|
|
9
9
|
readonly formId: "solePropRegistrationDetails";
|
|
10
10
|
readonly formName: "registrationDetails";
|
|
11
|
-
readonly fields: (keyof import("../../
|
|
11
|
+
readonly fields: ("dateOfIncorporation" | "stockExchangeMIC" | "stockISIN" | "stockTickerSymbol" | keyof import("../../internal/VatNumberField").VatNumberFieldSchema | keyof import("../../internal/BusinessRegistrationNumberField/types").BusinessRegistrationNumberFieldSchema | keyof import("../../internal/TaxInformationField/types").TaxInformationFieldSchema | keyof import("../../internal/TradingNameField/types").TradingNameFieldSchema)[];
|
|
12
12
|
};
|
|
13
13
|
readonly solePropRegistrationAddress: {
|
|
14
14
|
readonly formId: "solePropRegistrationAddress";
|
|
@@ -16,9 +16,6 @@ export declare const companySearchBase: {
|
|
|
16
16
|
export declare const businessDetailsBase: {
|
|
17
17
|
[key: string]: ScenarioFieldSettings;
|
|
18
18
|
};
|
|
19
|
-
export declare const taxIdBase: {
|
|
20
|
-
[key: string]: ScenarioFieldSettings;
|
|
21
|
-
};
|
|
22
19
|
export declare const taxInformationBase: {
|
|
23
20
|
[key: string]: ScenarioFieldSettings;
|
|
24
21
|
};
|
|
@@ -84,6 +84,7 @@ export declare const companyComponentsKeyMapping: {
|
|
|
84
84
|
'companyType.entityType': string;
|
|
85
85
|
'companyRegistrationDetails.tradingName': string;
|
|
86
86
|
'companyRegistrationDetails.registrationNumber': string;
|
|
87
|
+
'companyRegistrationDetails.taxInformation': string;
|
|
87
88
|
'companyRegistrationDetails.vatNumber': string;
|
|
88
89
|
'companyRegistrationDetails.vatAbsenceReason': string;
|
|
89
90
|
'companyRegistrationDetails.dateOfIncorporation': string;
|
|
@@ -701,6 +702,7 @@ export declare const solePropComponentsKeyMapping: {
|
|
|
701
702
|
'solePropRegistrationDetails.vatAbsenceReason': string;
|
|
702
703
|
'solePropRegistrationDetails.exemptedFromTax': string;
|
|
703
704
|
'solePropRegistrationDetails.registrationNumber': string;
|
|
705
|
+
'solePropRegistrationDetails.taxInformation': string;
|
|
704
706
|
'solePropRegistrationDetails.dateOfIncorporation': string;
|
|
705
707
|
'solePropRegistrationAddress.registrationAddress.city': string;
|
|
706
708
|
'solePropRegistrationAddress.registrationAddress.country': string;
|
package/package.json
CHANGED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare const companyRegistrationDetailsValidationRules: {
|
|
2
|
-
tradingName: {
|
|
3
|
-
modes: "blur"[];
|
|
4
|
-
validate: (tradingName: string) => boolean;
|
|
5
|
-
errorMessage: "fieldIsRequired";
|
|
6
|
-
};
|
|
7
|
-
dateOfIncorporation: ({
|
|
8
|
-
modes: "blur"[];
|
|
9
|
-
validate: (dateOfIncorporation: string) => boolean;
|
|
10
|
-
errorMessage: "fieldIsRequired";
|
|
11
|
-
} | {
|
|
12
|
-
modes: "blur"[];
|
|
13
|
-
validate: (dateOfIncorporation: string) => boolean;
|
|
14
|
-
errorMessage: "invalidDateOfIncorporation";
|
|
15
|
-
})[];
|
|
16
|
-
};
|