@adyen/kyc-components 2.36.3 → 2.37.0
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/AT-0q_5SJBQ.js +24 -0
- package/dist/es/AT-BgQV6hNb.js +29 -0
- package/dist/es/AT-njBxlQEe.js +25 -0
- package/dist/es/AU-C8Ubk0YW.js +19 -0
- package/dist/es/AU-DFQDmtVS.js +22 -0
- package/dist/es/AU-Dqj7rU9m.js +31 -0
- package/dist/es/BE-B9YzjIbl.js +21 -0
- package/dist/es/BE-C2-55587.js +20 -0
- package/dist/es/BE-DXN0rypg.js +25 -0
- package/dist/es/BR-B9ECFEsA.js +30 -0
- package/dist/es/BR-Cm5wlqzu.js +26 -0
- package/dist/es/BR-DRRnRMe_.js +24 -0
- package/dist/es/CA-CcUb1PsZ.js +28 -0
- package/dist/es/CA-DF_5NHUp.js +16 -0
- package/dist/es/CA-GPzRNbT4.js +19 -0
- package/dist/es/CH-BN1IKzah.js +20 -0
- package/dist/es/CH-DQ7wM16k.js +20 -0
- package/dist/es/CH-DS_pPGGY.js +20 -0
- package/dist/es/CZ-BC067qOt.js +24 -0
- package/dist/es/CZ-BC6mPfpV.js +28 -0
- package/dist/es/CZ-CGN19Iaf.js +24 -0
- package/dist/es/DE-BPXDYsIg.js +31 -0
- package/dist/es/DE-C2b48uc9.js +26 -0
- package/dist/es/DE-CWIcy4sf.js +25 -0
- package/dist/es/DK-CUV7SrN_.js +23 -0
- package/dist/es/DK-DQdJTd7G.js +24 -0
- package/dist/es/DK-DzkpuGcK.js +22 -0
- package/dist/es/ES-CXBTHBlj.js +24 -0
- package/dist/es/ES-DlS7RO1p.js +24 -0
- package/dist/es/ES-kwu_f0TB.js +33 -0
- package/dist/es/FI-D9lkf5Ag.js +20 -0
- package/dist/es/FI-DJJ7pR5Q.js +22 -0
- package/dist/es/FI-DrPckuaI.js +25 -0
- package/dist/es/FR-C62B055T.js +22 -0
- package/dist/es/FR-CgtCG2F8.js +28 -0
- package/dist/es/FR-CmqiYchK.js +26 -0
- package/dist/es/GB-BsDyOPB2.js +19 -0
- package/dist/es/GB-C3gyya0v.js +23 -0
- package/dist/es/GB-CyOmxXhp.js +31 -0
- package/dist/es/HK-BHvvteyC.js +16 -0
- package/dist/es/HK-DL3Ev2gw.js +22 -0
- package/dist/es/HK-aqSN9boX.js +19 -0
- package/dist/es/HR-BYmZgEjN.js +22 -0
- package/dist/es/HR-BuR2eqt5.js +23 -0
- package/dist/es/HR-lqt3S_K0.js +24 -0
- package/dist/es/HU-BeWCk1sl.js +21 -0
- package/dist/es/HU-CXniaSYg.js +21 -0
- package/dist/es/HU-Cy7JJAmz.js +24 -0
- package/dist/es/IE-BqkOpYi0.js +29 -0
- package/dist/es/IE-DY6xU4Nq.js +16 -0
- package/dist/es/IE-ncc5PJTM.js +19 -0
- package/dist/es/IT-DIpVZHWq.js +25 -0
- package/dist/es/IT-DUpC-s62.js +24 -0
- package/dist/es/IT-o8X0Ep0w.js +24 -0
- package/dist/es/LT-DYEMsFLH.js +25 -0
- package/dist/es/LT-YEft7Aof.js +27 -0
- package/dist/es/LT-vsmh_veZ.js +16 -0
- package/dist/es/NL-Bl-zh21O.js +24 -0
- package/dist/es/NL-C0CXV7LQ.js +26 -0
- package/dist/es/NL-D4GPWO-k.js +18 -0
- package/dist/es/NO-6kmy-zV2.js +24 -0
- package/dist/es/NO-BWDB_9Zh.js +28 -0
- package/dist/es/NO-C2rMiNW_.js +16 -0
- package/dist/es/PL-B6DmYhdz.js +23 -0
- package/dist/es/PL-Cci2LxIN.js +24 -0
- package/dist/es/PL-DfF0yMD3.js +25 -0
- package/dist/es/PT-CiWuVvP4.js +23 -0
- package/dist/es/PT-ClgahH9J.js +25 -0
- package/dist/es/PT-_SJeajc_.js +29 -0
- package/dist/es/RO-B_4Ca0mt.js +20 -0
- package/dist/es/RO-CbO4Kr4f.js +16 -0
- package/dist/es/RO-DzjKAzZD.js +24 -0
- package/dist/es/SE-BJB_aDpP.js +26 -0
- package/dist/es/SE-ClnBSAdx.js +21 -0
- package/dist/es/SE-L3pYtteT.js +24 -0
- package/dist/es/SG-BCG6hbHH.js +19 -0
- package/dist/es/SG-Bys5Yryz.js +25 -0
- package/dist/es/SG-CQ7yymJt.js +21 -0
- package/dist/es/SI-CKmjaPXK.js +22 -0
- package/dist/es/SI-Dba9CKmF.js +25 -0
- package/dist/es/SI-DdcTeBdP.js +24 -0
- package/dist/es/SK-BHbQeHKV.js +21 -0
- package/dist/es/SK-DOx6jvRF.js +24 -0
- package/dist/es/SK-DdRSQwOF.js +28 -0
- package/dist/es/US-BfGmXLD9.js +19 -0
- package/dist/es/US-CtLttEVX.js +26 -0
- package/dist/es/US-Dxp45Utb.js +17 -0
- package/dist/es/adyen-kyc-components.es.js +928 -506
- package/dist/es/company-2-JG34IScE.js +8 -0
- package/dist/es/user-D6swzlYs.js +11 -0
- package/dist/es/user-business-CwS5j1qX.js +11 -0
- package/dist/es/users-3-BdjQ9rEA.js +8 -0
- package/dist/style.css +7777 -5851
- package/dist/types/components/BankVerification/BankVerification.d.ts +1 -1
- package/dist/types/components/BankVerification/types.d.ts +5 -5
- package/dist/types/components/BusinessTypeSelection/component/EntityTypeRadioGroupCard.d.ts +11 -0
- package/dist/types/components/BusinessTypeSelection/utils.d.ts +6 -3
- package/dist/types/components/Company/component/CompanyComponent.d.ts +4 -0
- package/dist/types/components/Company/types.d.ts +2 -1
- package/dist/types/components/CompanyBasics/types.d.ts +3 -3
- package/dist/types/components/CompanyLookup/types.d.ts +4 -4
- package/dist/types/components/CompanySearch/forms.d.ts +2 -0
- package/dist/types/components/DocumentUpload/types.d.ts +4 -0
- package/dist/types/components/Dropins/PayoutDetailsDropin/components/PayoutDetailsDropinComponent.d.ts +0 -3
- package/dist/types/components/Dropins/ServiceAgreementDropinComponent/components/ServiceAgreementDropinComponent.d.ts +2 -1
- package/dist/types/components/Dropins/ServiceAgreementDropinComponent/components/useServiceAgreement.d.ts +1 -0
- package/dist/types/components/Dropins/ServiceAgreementDropinComponent/types.d.ts +6 -2
- package/dist/types/components/Dropins/types.d.ts +4 -2
- package/dist/types/components/Individual/types.d.ts +2 -3
- package/dist/types/components/PayoutAccount/types.d.ts +2 -1
- package/dist/types/components/PayoutDetails/types.d.ts +4 -3
- package/dist/types/components/RegistrationDocument/RegistrationDocumentComponent.d.ts +2 -0
- package/dist/types/components/RegistrationDocument/config.d.ts +3 -0
- package/dist/types/components/RegistrationDocument/index.d.ts +1 -0
- package/dist/types/components/RegistrationDocument/types.d.ts +15 -0
- package/dist/types/components/SoleProp/types.d.ts +2 -1
- package/dist/types/components/TaskList/types.d.ts +2 -2
- package/dist/types/components/TaxDocument/TaxDocumentComponent.d.ts +2 -0
- package/dist/types/components/TaxDocument/config.d.ts +3 -0
- package/dist/types/components/TaxDocument/index.d.ts +1 -0
- package/dist/types/components/TaxDocument/types.d.ts +15 -0
- package/dist/types/components/Trust/types.d.ts +2 -1
- package/dist/types/components/internal/BusinessRegistrationNumberField/types.d.ts +2 -2
- package/dist/types/components/internal/EntityAssociation/types.d.ts +2 -2
- package/dist/types/components/internal/FormFields/RadioGroupCard/RadioCard.d.ts +1 -1
- package/dist/types/components/internal/FormFields/RadioGroupCard/RadioCardSelect.d.ts +3 -2
- package/dist/types/components/internal/FormFields/RadioGroupCard/RadioGroupCard.d.ts +1 -1
- package/dist/types/components/internal/FormFields/RadioGroupCard/types.d.ts +9 -3
- package/dist/types/components/internal/Icon/Icon.d.ts +4 -0
- package/dist/types/components/internal/Remove/types.d.ts +3 -3
- package/dist/types/components/internal/Summary/Summary.d.ts +1 -1
- package/dist/types/components/internal/Summary/types.d.ts +1 -0
- package/dist/types/components/internal/TaxInformationField/types.d.ts +2 -2
- package/dist/types/components/internal/VatNumberField/types.d.ts +2 -2
- package/dist/types/core/hooks/introduction/useHasSeenIntroduction.d.ts +1 -1
- package/dist/types/core/hooks/useBankConfigurationHandlers.d.ts +2 -1
- package/dist/types/core/hooks/useCompanySearch/types.d.ts +2 -2
- package/dist/types/core/hooks/useCompanySearchTaskSubmit.d.ts +3 -3
- package/dist/types/core/hooks/useForm/types.d.ts +11 -10
- package/dist/types/core/hooks/useFormComposer.d.ts +2 -2
- package/dist/types/core/hooks/useLocalStorage.d.ts +2 -2
- package/dist/types/core/models/api/contracts.d.ts +6 -0
- package/dist/types/core/models/api/get-configuration.d.ts +2 -1
- package/dist/types/core/models/form-rules.d.ts +2 -0
- package/dist/types/core/models/form.d.ts +1 -0
- package/dist/types/datasets/localized/companyTypeExamples/getCompanyTypeExamplesForCountry.d.ts +5 -0
- package/dist/types/datasets/localized/legalArrangementTypeExamples/getLegalArrangementTypeExamplesForCountry.d.ts +5 -0
- package/dist/types/datasets/localized/legalEntityTypeExamples/getBusinessTypeExamplesForCountry.d.ts +5 -0
- package/dist/types/utils/accountHolderUtils.d.ts +2 -0
- package/dist/types/utils/api/processCapabilitites.d.ts +4 -2
- package/dist/types/utils/getLegalEntityCountry.d.ts +3 -0
- package/dist/types/utils/useStateFromProp.d.ts +2 -2
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import './BankVerification.scss';
|
|
|
2
2
|
import { AccountVerificationSchema, InstantVerificationErrorNotification, PayoutAccountVerificationProps } from './types';
|
|
3
3
|
export declare const accountVerificationFields: Array<keyof AccountVerificationSchema>;
|
|
4
4
|
export declare const InstantVerificationErrorContext: import("preact").Context<InstantVerificationErrorNotification>;
|
|
5
|
-
export declare const useInstantVerificationErrorNotification: (notificationVisibilityDuration: number) => readonly [InstantVerificationErrorNotification, import("preact/hooks").
|
|
5
|
+
export declare const useInstantVerificationErrorNotification: (notificationVisibilityDuration: number) => readonly [InstantVerificationErrorNotification, import("preact/hooks").StateUpdater<InstantVerificationErrorNotification>];
|
|
6
6
|
declare function BankVerification(props: PayoutAccountVerificationProps): import("preact").JSX.Element;
|
|
7
7
|
declare const _default: typeof BankVerification;
|
|
8
8
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StateUpdater } from 'preact/hooks';
|
|
2
2
|
import { BaseInnerFormProps } from '../../core/hooks/useForm';
|
|
3
3
|
import { BankVerificationVendorsResponse } from '../../core/models/api/get-bankVerification-providers';
|
|
4
4
|
import { LegalEntity } from '../../core/models/api/legal-entity';
|
|
@@ -22,13 +22,13 @@ export interface AccountVerificationSchema {
|
|
|
22
22
|
}
|
|
23
23
|
export interface PayoutAccountVerificationProps extends BaseInnerFormProps<AccountVerificationSchema> {
|
|
24
24
|
getBankVerificationVendors: DropinAPIHandlers['handleGetBankVerificationVendors'];
|
|
25
|
-
setBankVerificationError:
|
|
25
|
+
setBankVerificationError: StateUpdater<InstantVerificationErrorNotification | null>;
|
|
26
26
|
onBack?: () => void;
|
|
27
27
|
country: CountryCode;
|
|
28
|
-
hideDropinLayout?:
|
|
28
|
+
hideDropinLayout?: StateUpdater<boolean>;
|
|
29
29
|
bankInfoValidated?: boolean;
|
|
30
|
-
setBankInfoValidated?:
|
|
31
|
-
hideOnHomeButton?:
|
|
30
|
+
setBankInfoValidated?: StateUpdater<boolean>;
|
|
31
|
+
hideOnHomeButton?: StateUpdater<boolean>;
|
|
32
32
|
formIsActive: boolean;
|
|
33
33
|
refreshLegalEntity?(): Promise<LegalEntity>;
|
|
34
34
|
createTrustedTransferInstrument?: (code: string, state: string) => Promise<CreateTrustedTransferInstrumentResponse>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import './EntityTypeRadioGroupCard.scss';
|
|
2
|
+
import { CompanyTypeExamples } from '../../../datasets/localized/companyTypeExamples/getCompanyTypeExamplesForCountry';
|
|
3
|
+
import { LegalArrangementTypeExamples } from '../../../datasets/localized/legalArrangementTypeExamples/getLegalArrangementTypeExamplesForCountry';
|
|
4
|
+
import { BusinessTypeExamples } from '../../../datasets/localized/legalEntityTypeExamples/getBusinessTypeExamplesForCountry';
|
|
5
|
+
import { RadioGroupCardProps } from '../../internal/FormFields/RadioGroupCard/types';
|
|
6
|
+
type Examples = BusinessTypeExamples | CompanyTypeExamples | LegalArrangementTypeExamples;
|
|
7
|
+
interface EntityTypeSelectionRadioGroupCardProps<T extends Examples> extends RadioGroupCardProps {
|
|
8
|
+
examples: T | undefined;
|
|
9
|
+
}
|
|
10
|
+
export declare const EntityTypeRadioGroupCard: <T extends Examples>({ examples, ...baseProps }: EntityTypeSelectionRadioGroupCardProps<T>) => import("preact").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CapabilityName } from '../../core/models/api/capability';
|
|
2
2
|
import { CompanyTypesValue } from '../../core/models/api/company-types-value';
|
|
3
3
|
import { ExistingLegalEntity } from '../../core/models/api/legal-entity';
|
|
4
4
|
import { LegalEntityType } from '../../core/models/api/legal-entity-type';
|
|
5
|
+
import { CountryCode } from '../../core/models/country-code';
|
|
5
6
|
import { AccountHolderOption, LegalArrangementOption } from '../internal/AccountHolder/types';
|
|
7
|
+
import { IconName } from '../internal/Icon/Icon';
|
|
6
8
|
import { BusinessType, BusinessTypeModel, LegalArrangementModel, TrusteeType } from './types';
|
|
7
9
|
/**
|
|
8
10
|
* this is messy business logic
|
|
@@ -18,9 +20,10 @@ import { BusinessType, BusinessTypeModel, LegalArrangementModel, TrusteeType } f
|
|
|
18
20
|
* @param companyTypesValue - the subtype of an organization see CompanyValuesType
|
|
19
21
|
*/
|
|
20
22
|
export declare const organizationTypesToSkipCompanyStructureForm: string[];
|
|
21
|
-
export declare const getBusinessType: (businessTypeItems: BusinessTypeModel[], accountHolder?: AccountHolderOption, legalEntityType?: LegalEntityType, companyTypesValue?: CompanyTypesValue | '') => BusinessTypeModel | undefined;
|
|
23
|
+
export declare const getBusinessType: (businessTypeItems: BusinessTypeModel[], country: CountryCode, accountHolder?: AccountHolderOption, legalEntityType?: LegalEntityType, companyTypesValue?: CompanyTypesValue | '', capabilities?: CapabilityName[]) => BusinessTypeModel | undefined;
|
|
22
24
|
export declare const businessTypes: readonly BusinessTypeModel[];
|
|
23
|
-
export declare const
|
|
25
|
+
export declare const businessTypeIcons: Record<BusinessType, IconName>;
|
|
26
|
+
export declare const useSelectionOptions: (legalEntityResponse: ExistingLegalEntity) => {
|
|
24
27
|
businessTypeOptions: BusinessTypeModel[];
|
|
25
28
|
legalArrangementOptions: LegalArrangementModel[];
|
|
26
29
|
};
|
|
@@ -26,11 +26,15 @@ export declare const companyForms: {
|
|
|
26
26
|
readonly companyRegistrationDocument: {
|
|
27
27
|
readonly formId: "companyRegistrationDocument";
|
|
28
28
|
readonly formName: "registrationDocument";
|
|
29
|
+
readonly formHeading: "companyRegistrationDocumentHeading";
|
|
30
|
+
readonly formDescription: "companyRegistrationDocumentFormDescription";
|
|
29
31
|
readonly fields: readonly ["registrationDocument"];
|
|
30
32
|
};
|
|
31
33
|
readonly companyTaxDocument: {
|
|
32
34
|
readonly formId: "companyTaxDocument";
|
|
33
35
|
readonly formName: "taxDocument";
|
|
36
|
+
readonly formHeading: "companyTaxDocumentFormHeading";
|
|
37
|
+
readonly formDescription: "companyTaxDocumentFormDescription";
|
|
34
38
|
readonly fields: readonly ["taxDocument"];
|
|
35
39
|
};
|
|
36
40
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { BaseOuterFormProps } from '../../core/hooks/useForm';
|
|
2
|
+
import { CapabilityName } from '../../core/models/api/capability';
|
|
2
3
|
import type { LegalEntityType } from '../../core/models/api/legal-entity-type';
|
|
3
4
|
import type { CountryCode } from '../../core/models/country-code';
|
|
4
5
|
import type { FormModel } from '../../core/models/form';
|
|
@@ -17,7 +18,7 @@ export interface CompanySchema {
|
|
|
17
18
|
companyTaxDocument?: DocumentUploadSchema;
|
|
18
19
|
}
|
|
19
20
|
export interface CompanyProps extends BaseOuterFormProps<CompanySchema> {
|
|
20
|
-
capabilities?:
|
|
21
|
+
capabilities?: CapabilityName[];
|
|
21
22
|
activeForm?: FormModel;
|
|
22
23
|
forms?: FormModel[];
|
|
23
24
|
onTypeSwitch?: (legalEntityType: LegalEntityType) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { StateUpdater } from 'preact/hooks';
|
|
2
2
|
import type { BaseInnerFormProps } from '../../core/hooks/useForm';
|
|
3
3
|
import type { CompanyTypesValue } from '../../core/models/api/company-types-value';
|
|
4
4
|
import type { CountryCode } from '../../core/models/country-code';
|
|
@@ -17,8 +17,8 @@ export interface CompanyBasicsProps extends BaseInnerFormProps<CompanyBasicsSche
|
|
|
17
17
|
isTopLevelEntity: boolean;
|
|
18
18
|
baseTrackingPayload: BaseTrackingPayload;
|
|
19
19
|
kompanyVerifiedData: CompanySearchSchema | undefined;
|
|
20
|
-
setKompanyAddress:
|
|
21
|
-
setKompanyVerifiedData:
|
|
20
|
+
setKompanyAddress: StateUpdater<string | undefined>;
|
|
21
|
+
setKompanyVerifiedData: StateUpdater<CompanySearchSchema | undefined>;
|
|
22
22
|
handleCompanyIndexSearch: DropinAPIHandlers['handleCompanyIndexSearch'];
|
|
23
23
|
handleCompanyDeepSearch: DropinAPIHandlers['handleCompanyDeepSearch'];
|
|
24
24
|
handleGetCompanyDataset: DropinAPIHandlers['handleGetCompanyDataset'];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { StateUpdater } from 'preact/hooks';
|
|
2
2
|
import type { HookStatus } from '../../core/hooks/types';
|
|
3
3
|
import type { CompanyDatasetResponse, CompanySearchResult } from '../../core/models/api/company-search';
|
|
4
4
|
import type { CountryCode } from '../../core/models/country-code';
|
|
@@ -59,9 +59,9 @@ export interface CompanyLookupComponentProps {
|
|
|
59
59
|
baseTrackingPayload: BaseTrackingPayload;
|
|
60
60
|
stateOrProvince?: StateCode | ProvinceCode;
|
|
61
61
|
taxInformationNumber?: string;
|
|
62
|
-
setLoading:
|
|
63
|
-
setKompanyAddress:
|
|
64
|
-
setKompanyVerifiedData:
|
|
62
|
+
setLoading: StateUpdater<boolean>;
|
|
63
|
+
setKompanyAddress: StateUpdater<string | undefined>;
|
|
64
|
+
setKompanyVerifiedData: StateUpdater<CompanySearchSchema | undefined>;
|
|
65
65
|
handleCompanyIndexSearch: DropinAPIHandlers['handleCompanyIndexSearch'];
|
|
66
66
|
handleCompanyDeepSearch: DropinAPIHandlers['handleCompanyDeepSearch'];
|
|
67
67
|
handleGetCompanyDataset: DropinAPIHandlers['handleGetCompanyDataset'];
|
|
@@ -25,12 +25,14 @@ export declare const forms: {
|
|
|
25
25
|
readonly companyRegistrationDocument: {
|
|
26
26
|
readonly formId: keyof CompanySearchSchema;
|
|
27
27
|
readonly formName: "companyRegistrationDocumentFormName";
|
|
28
|
+
readonly formHeading: "companyRegistrationDocumentHeading";
|
|
28
29
|
readonly formDescription: "companyRegistrationDocumentFormDescription";
|
|
29
30
|
readonly fields: readonly ["registrationDocument"];
|
|
30
31
|
};
|
|
31
32
|
readonly companyTaxDocument: {
|
|
32
33
|
readonly formId: keyof CompanySearchSchema;
|
|
33
34
|
readonly formName: "companyTaxDocumentFormName";
|
|
35
|
+
readonly formHeading: "companyTaxDocumentFormHeading";
|
|
34
36
|
readonly formDescription: "companyTaxDocumentFormDescription";
|
|
35
37
|
readonly fields: readonly ["taxDocument"];
|
|
36
38
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ComponentChild } from 'preact';
|
|
2
2
|
import type { BaseInnerFormProps } from '../../core/hooks/useForm';
|
|
3
|
+
import { CompanyTypesValue } from '../../core/models/api/company-types-value';
|
|
3
4
|
import { DocumentType } from '../../core/models/api/document';
|
|
5
|
+
import { CountryCode } from '../../core/models/country-code';
|
|
4
6
|
import { FileSchema } from '../../core/models/file';
|
|
5
7
|
import { TranslationKey } from '../../language/types';
|
|
6
8
|
export type DocumentUploadSchema = Record<string, FileSchema[] | undefined>;
|
|
@@ -18,4 +20,6 @@ export interface DocumentUploadProps extends BaseInnerFormProps<DocumentUploadSc
|
|
|
18
20
|
}>;
|
|
19
21
|
};
|
|
20
22
|
requiredFields?: (keyof DocumentUploadSchema)[];
|
|
23
|
+
companyType?: CompanyTypesValue;
|
|
24
|
+
country?: CountryCode;
|
|
21
25
|
}
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import { LegalEntity } from '../../../../core/models/api/legal-entity';
|
|
2
|
-
import { CountryCode } from '../../../../core/models/country-code';
|
|
3
1
|
import { PayoutDetailsDropinProps } from '../../../PayoutDetails/types';
|
|
4
|
-
export declare const getRegistrationCountry: (legalEntityResponse: LegalEntity) => CountryCode;
|
|
5
2
|
export declare function PayoutDetailsDropinComponent({ transferInstrument, setTransferInstrument, handleCreateDocument, handleGetDocument, handleUpdateDocument, handleUpdateTransferInstrument, handleCreateTransferInstrument, handleGetBankVerificationVendors, legalEntityResponse, associatedLegalArrangement, trackingConfig, accountHolder, problems: propProblems, onSubmit: externalOnSubmit, onChange, taskType: propTaskType, taskName, eventEmitter, capabilities, handleHomeClick, homeButtonLabel, hideNavigation, refreshLegalEntity, navigateBackToTaskList, createTrustedTransferInstrument, handleBankVerificationError, handleBackClick: externalBackClick, }: PayoutDetailsDropinProps): import("preact").JSX.Element;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import './ServiceAgreementDropinComponent.scss';
|
|
1
2
|
import { ServiceAgreementDropinProps } from '../types';
|
|
2
|
-
export declare function ServiceAgreementDropinComponent({ legalEntityResponse, handleGetServiceAgreement, handleHomeClick, handleSign, taskType, serviceAgreementTypes, serviceAgreementAcceptanceInfos, trackingConfig, }: ServiceAgreementDropinProps): import("preact").JSX.Element;
|
|
3
|
+
export declare function ServiceAgreementDropinComponent({ legalEntityResponse, handleGetServiceAgreement, handleDownloadAcceptedTermsOfServiceDocument, handleHomeClick, handleSign, taskType, serviceAgreementTypes, serviceAgreementAcceptanceInfos, trackingConfig, }: ServiceAgreementDropinProps): import("preact").JSX.Element;
|
|
@@ -5,6 +5,7 @@ import { ServiceAgreementType } from '../types';
|
|
|
5
5
|
export type ServiceAgreement = {
|
|
6
6
|
id: string;
|
|
7
7
|
contract: Document;
|
|
8
|
+
type: ServiceAgreementType;
|
|
8
9
|
};
|
|
9
10
|
interface UseServiceAgreementArgs {
|
|
10
11
|
handleGetServiceAgreement: (legalEntityId: string, data: ServiceAgreementRequest) => Promise<ServiceAgreementResponse>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ServiceAgreementRequest, ServiceAgreementResponse, ServiceAgreementSignRequest } from '../../../core/models/api/contracts';
|
|
2
2
|
import { ExistingLegalEntity } from '../../../core/models/api/legal-entity';
|
|
3
3
|
import { TaskTypes } from '../../TaskList/types';
|
|
4
|
-
import { DropinProps } from '../types';
|
|
4
|
+
import { type DropinAPIHandlers, DropinProps } from '../types';
|
|
5
5
|
export type ServiceAgreementType = 'adyenForPlatformsManage' | 'adyenIssuing' | 'adyenForPlatformsAdvanced' | 'adyenCapital' | 'adyenAccount' | 'adyenCard' | 'adyenFranchisee' | 'adyenPccr';
|
|
6
6
|
export interface ServiceAgreementAcceptanceInfo {
|
|
7
7
|
acceptedBy: string;
|
|
@@ -10,6 +10,9 @@ export interface ServiceAgreementAcceptanceInfo {
|
|
|
10
10
|
id: string;
|
|
11
11
|
type: ServiceAgreementType;
|
|
12
12
|
}
|
|
13
|
+
export interface ServiceAgreementAcceptanceInfoWithName extends ServiceAgreementAcceptanceInfo {
|
|
14
|
+
acceptedByName: string;
|
|
15
|
+
}
|
|
13
16
|
export interface ServiceAgreementSchema {
|
|
14
17
|
signer?: string;
|
|
15
18
|
acceptServiceAgreement?: boolean;
|
|
@@ -18,8 +21,9 @@ export interface ServiceAgreementDropinProps extends DropinProps {
|
|
|
18
21
|
legalEntityResponse: ExistingLegalEntity;
|
|
19
22
|
taskType: TaskTypes.SERVICE_AGREEMENT;
|
|
20
23
|
serviceAgreementTypes: ServiceAgreementType[];
|
|
21
|
-
serviceAgreementAcceptanceInfos:
|
|
24
|
+
serviceAgreementAcceptanceInfos: ServiceAgreementAcceptanceInfoWithName[];
|
|
22
25
|
handleHomeClick(): void;
|
|
23
26
|
handleGetServiceAgreement(legalEntityId: string, data: ServiceAgreementRequest): Promise<ServiceAgreementResponse>;
|
|
27
|
+
handleDownloadAcceptedTermsOfServiceDocument: DropinAPIHandlers['handleDownloadAcceptedTermsOfServiceDocument'];
|
|
24
28
|
handleSign(legalEntityId: string, termsOfServiceDocumentId: string, signedBy: ServiceAgreementSignRequest): void;
|
|
25
29
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { State, TopLevelDataSchema } from '../../core/Context/StateContext/types';
|
|
2
2
|
import type { Address, AddressSearchRequest, AddressSearchResponse } from '../../core/models/api/address-search';
|
|
3
|
+
import { CapabilityName } from '../../core/models/api/capability';
|
|
3
4
|
import type { CompanyDatasetRequest, CompanyDatasetResponse, CompanySearchRequest, CompanySearchResponse, TinVerificationRequest, TinVerificationResponse } from '../../core/models/api/company-search';
|
|
4
|
-
import type { DownloadPci, PciQuestionnaireIds, PciQuestionnaires, PciStatus, PciStatusRequest, PciTemplateRequest, PciTemplateResponse, ServiceAgreementAcceptanceInfos, ServiceAgreementRequest, ServiceAgreementResponse, ServiceAgreementSignRequest, ServiceAgreementSignResponse, ServiceAgreementStatus, SignedBy } from '../../core/models/api/contracts';
|
|
5
|
+
import type { DownloadPci, PciQuestionnaireIds, PciQuestionnaires, PciStatus, PciStatusRequest, PciTemplateRequest, PciTemplateResponse, ServiceAgreementAcceptanceInfos, ServiceAgreementAcceptedDocumentResponse, ServiceAgreementRequest, ServiceAgreementResponse, ServiceAgreementSignRequest, ServiceAgreementSignResponse, ServiceAgreementStatus, SignedBy } from '../../core/models/api/contracts';
|
|
5
6
|
import { Document, ExistingDocument } from '../../core/models/api/document';
|
|
6
7
|
import { BankVerificationVendorsResponse } from '../../core/models/api/get-bankVerification-providers';
|
|
7
8
|
import type { InstantIdVerificationStartCheckRequest, InstantIdVerificationStartCheckResponse, InstantIdVerificationTokenRequest, InstantIdVerificationTokenResponse } from '../../core/models/api/instant-id-verification';
|
|
@@ -16,7 +17,7 @@ import EventEmitter from '../EventEmitter';
|
|
|
16
17
|
import { TaskTypes } from '../TaskList/types';
|
|
17
18
|
import type { BasicComponentProps } from '../UIElement';
|
|
18
19
|
export interface DropinComposerProps extends DropinAPIHandlers, BasicComponentProps {
|
|
19
|
-
capabilities?:
|
|
20
|
+
capabilities?: CapabilityName[];
|
|
20
21
|
legalEntityResponse: ExistingLegalEntity;
|
|
21
22
|
onChange?: (state: State<TopLevelDataSchema>) => void;
|
|
22
23
|
onSubmit?: (data: unknown) => void;
|
|
@@ -44,6 +45,7 @@ export interface DropinAPIHandlers {
|
|
|
44
45
|
handleGetServiceAgreement?(legalEntityId: string, data: ServiceAgreementRequest): Promise<ServiceAgreementResponse>;
|
|
45
46
|
handleSignServiceAgreement?(legalEntityId: string, termsOfServiceDocumentId: string, data: ServiceAgreementSignRequest): Promise<ServiceAgreementSignResponse>;
|
|
46
47
|
handleGetServiceAgreementStatus?(legalEntityId: string): Promise<ServiceAgreementStatus>;
|
|
48
|
+
handleDownloadAcceptedTermsOfServiceDocument?(legalEntityId: string, termsOfServiceAcceptanceReference: string): Promise<ServiceAgreementAcceptedDocumentResponse>;
|
|
47
49
|
handleGetServiceAgreementAcceptanceInfos?(legalEntityId: string): Promise<ServiceAgreementAcceptanceInfos>;
|
|
48
50
|
handleAddressSearch?(data: AddressSearchRequest, legalEntityId: string): Promise<AddressSearchResponse>;
|
|
49
51
|
handleFindAddress?(addressId: string): Promise<Address>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StateUpdater } from 'preact/hooks';
|
|
2
2
|
import type { BaseOuterFormProps } from '../../core/hooks/useForm';
|
|
3
3
|
import { DecisionMakerType } from '../../core/models/api/decision-maker-type';
|
|
4
4
|
import { InstantIdVerificationTokenRequest, InstantIdVerificationTokenResponse } from '../../core/models/api/instant-id-verification';
|
|
@@ -28,7 +28,6 @@ export interface IndividualProps extends BaseOuterFormProps<IndividualSchema> {
|
|
|
28
28
|
handleAddressSearch?: DropinAPIHandlers['handleAddressSearch'];
|
|
29
29
|
handleFindAddress?: DropinAPIHandlers['handleFindAddress'];
|
|
30
30
|
handleGetIdVerificationToken?(legalEntityId: string, data: InstantIdVerificationTokenRequest): Promise<InstantIdVerificationTokenResponse>;
|
|
31
|
-
capabilities?: string[];
|
|
32
31
|
activeForm?: FormModel;
|
|
33
32
|
forms?: FormModel[];
|
|
34
33
|
problems?: any;
|
|
@@ -36,7 +35,7 @@ export interface IndividualProps extends BaseOuterFormProps<IndividualSchema> {
|
|
|
36
35
|
taskType?: TaskTypes;
|
|
37
36
|
allowedRoles?: DecisionMakerType[];
|
|
38
37
|
onTypeSwitch?(legalEntityType: LegalEntityType): void;
|
|
39
|
-
onCountryChange?:
|
|
38
|
+
onCountryChange?: StateUpdater<CountryCode>;
|
|
40
39
|
onNext?(e: any, callbacks: any, isValid: any): void;
|
|
41
40
|
onBack?(): void;
|
|
42
41
|
hideNavigation?: boolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { BaseInnerFormProps } from '../../core/hooks/useForm';
|
|
2
|
+
import { CapabilityName } from '../../core/models/api/capability';
|
|
2
3
|
import { LegalEntity } from '../../core/models/api/legal-entity';
|
|
3
4
|
import { CountryCode } from '../../core/models/country-code';
|
|
4
5
|
import { FormModel } from '../../core/models/form';
|
|
@@ -20,7 +21,7 @@ export interface PayoutAccountSchema extends CurrencySchema, BankAccountNumberSc
|
|
|
20
21
|
}
|
|
21
22
|
export interface PayoutAccountProps extends BaseInnerFormProps<PayoutAccountSchema> {
|
|
22
23
|
eventEmitter?: EventEmitter;
|
|
23
|
-
capabilities?:
|
|
24
|
+
capabilities?: CapabilityName[];
|
|
24
25
|
activeForm?: FormModel;
|
|
25
26
|
forms?: FormModel[];
|
|
26
27
|
country: CountryCode;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StateUpdater } from 'preact/hooks';
|
|
2
2
|
import type { BaseOuterFormProps } from '../../core/hooks/useForm';
|
|
3
|
+
import { CapabilityName } from '../../core/models/api/capability';
|
|
3
4
|
import { ExistingLegalEntity, LegalEntity } from '../../core/models/api/legal-entity';
|
|
4
5
|
import { TransferInstrument } from '../../core/models/api/transfer-instrument';
|
|
5
6
|
import { BankVerificationErrorResponse, CreateTrustedTransferInstrumentResponse } from '../../core/models/api/trusted-transferInstrument';
|
|
@@ -20,7 +21,7 @@ export interface PayoutDetailsSchema {
|
|
|
20
21
|
payoutAccountVerification?: AccountVerificationSchema;
|
|
21
22
|
}
|
|
22
23
|
export interface PayoutDetailsProps extends BaseOuterFormProps<PayoutDetailsSchema> {
|
|
23
|
-
capabilities?:
|
|
24
|
+
capabilities?: CapabilityName[];
|
|
24
25
|
eventEmitter: EventEmitter;
|
|
25
26
|
activeForm?: FormModel;
|
|
26
27
|
forms?: FormModel[];
|
|
@@ -43,7 +44,7 @@ export type PayoutDropinApiHandlers = Required<Pick<DropinAPIHandlers, 'handleCr
|
|
|
43
44
|
export interface PayoutDetailsDropinProps extends Omit<PayoutDetailsProps, 'country' | 'accountHolder'>, Omit<DropinProps, 'legalEntityResponse'>, PayoutDropinApiHandlers {
|
|
44
45
|
accountHolder?: string;
|
|
45
46
|
transferInstrument?: TransferInstrument;
|
|
46
|
-
setTransferInstrument?:
|
|
47
|
+
setTransferInstrument?: StateUpdater<TransferInstrument>;
|
|
47
48
|
navigateBackToTaskList?(): void;
|
|
48
49
|
hideNavigation?: boolean;
|
|
49
50
|
onSubmit?: (data: PayoutDetailsSchema & {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './RegistrationDocumentComponent';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { CompanyTypesValue } from '../../core/models/api/company-types-value';
|
|
2
|
+
import type { CountryCode } from '../../core/models/country-code';
|
|
3
|
+
import type { TranslationKey } from '../../language/types';
|
|
4
|
+
import type { DocumentUploadProps } from '../DocumentUpload/types';
|
|
5
|
+
export interface RegistrationDocumentProps extends DocumentUploadProps {
|
|
6
|
+
country: CountryCode;
|
|
7
|
+
companyType: CompanyTypesValue | undefined;
|
|
8
|
+
heading?: TranslationKey;
|
|
9
|
+
description?: TranslationKey;
|
|
10
|
+
}
|
|
11
|
+
export interface CompanyTypeDocuments {
|
|
12
|
+
header: TranslationKey;
|
|
13
|
+
documents: Array<TranslationKey>;
|
|
14
|
+
}
|
|
15
|
+
export type AcceptedDocuments = Partial<Record<CompanyTypesValue, CompanyTypeDocuments>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { BaseOuterFormProps } from '../../core/hooks/useForm';
|
|
2
|
+
import { CapabilityName } from '../../core/models/api/capability';
|
|
2
3
|
import { ExistingLegalEntity } from '../../core/models/api/legal-entity';
|
|
3
4
|
import { CountryCode } from '../../core/models/country-code';
|
|
4
5
|
import { FormModel } from '../../core/models/form';
|
|
@@ -16,7 +17,7 @@ export interface SolePropSchema {
|
|
|
16
17
|
solePropConstitutionalDocument?: DocumentUploadSchema;
|
|
17
18
|
}
|
|
18
19
|
export interface SolePropProps extends BaseOuterFormProps<SolePropSchema> {
|
|
19
|
-
capabilities?:
|
|
20
|
+
capabilities?: CapabilityName[];
|
|
20
21
|
activeForm?: FormModel;
|
|
21
22
|
forms?: FormModel[];
|
|
22
23
|
country: CountryCode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StateUpdater } from 'preact/hooks';
|
|
2
2
|
import type { PciStatus } from '../../core/models/api/contracts';
|
|
3
3
|
import type { ExistingLegalEntity } from '../../core/models/api/legal-entity';
|
|
4
4
|
import type { CapabilityProblems } from '../../core/models/errors/capability-problems';
|
|
@@ -87,5 +87,5 @@ export interface TaskListItemProps extends TaskStatusProps {
|
|
|
87
87
|
warningMessage?: string;
|
|
88
88
|
removeEntity?: () => void;
|
|
89
89
|
isRemoveDisabled?: boolean;
|
|
90
|
-
handleIsRemoveDisabled?:
|
|
90
|
+
handleIsRemoveDisabled?: StateUpdater<boolean>;
|
|
91
91
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TaxDocumentComponent';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { CompanyTypesValue } from '../../core/models/api/company-types-value';
|
|
2
|
+
import type { CountryCode } from '../../core/models/country-code';
|
|
3
|
+
import type { TranslationKey } from '../../language/types';
|
|
4
|
+
import type { DocumentUploadProps } from '../DocumentUpload/types';
|
|
5
|
+
export interface TaxDocumentProps extends DocumentUploadProps {
|
|
6
|
+
country: CountryCode;
|
|
7
|
+
companyType: CompanyTypesValue | undefined;
|
|
8
|
+
heading?: TranslationKey;
|
|
9
|
+
description?: TranslationKey;
|
|
10
|
+
}
|
|
11
|
+
export interface CompanyTypeDocuments {
|
|
12
|
+
header: TranslationKey;
|
|
13
|
+
documents: Array<TranslationKey>;
|
|
14
|
+
}
|
|
15
|
+
export type AcceptedDocuments = Partial<Record<CompanyTypesValue, CompanyTypeDocuments>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { BaseOuterFormProps } from '../../core/hooks/useForm';
|
|
2
|
+
import { CapabilityName } from '../../core/models/api/capability';
|
|
2
3
|
import { ExistingLegalEntity, LegalEntity } from '../../core/models/api/legal-entity';
|
|
3
4
|
import { CountryCode } from '../../core/models/country-code';
|
|
4
5
|
import { FormModel } from '../../core/models/form';
|
|
@@ -12,7 +13,7 @@ export interface TrustSchema {
|
|
|
12
13
|
trustConstitutionalDocument?: DocumentUploadSchema;
|
|
13
14
|
}
|
|
14
15
|
export interface TrustProps extends BaseOuterFormProps<TrustSchema> {
|
|
15
|
-
capabilities?:
|
|
16
|
+
capabilities?: CapabilityName[];
|
|
16
17
|
activeForm?: FormModel;
|
|
17
18
|
forms?: FormModel[];
|
|
18
19
|
country: CountryCode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { StateUpdater } from 'preact/hooks';
|
|
2
2
|
import type { BaseFormFieldProps } from '../../../core/hooks/useForm/types';
|
|
3
3
|
import type { CompanyTypesValue } from '../../../core/models/api/company-types-value';
|
|
4
4
|
import type { CountryCode } from '../../../core/models/country-code';
|
|
@@ -13,5 +13,5 @@ export interface BusinessRegistrationNumberFieldProps extends BaseFormFieldProps
|
|
|
13
13
|
companyType?: CompanyTypesValue | 'trust';
|
|
14
14
|
registrationNumberOptions: readonly CompanyRegistrationNumberOption[] | undefined;
|
|
15
15
|
registrationNumberType: CompanyRegistrationNumberType | undefined;
|
|
16
|
-
setRegistrationNumberType:
|
|
16
|
+
setRegistrationNumberType: StateUpdater<CompanyRegistrationNumberType | undefined>;
|
|
17
17
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentChild } from 'preact';
|
|
2
|
-
import {
|
|
2
|
+
import { StateUpdater } from 'preact/hooks';
|
|
3
3
|
import { LegalEntityAssociation } from '../../../core/models/api/legal-entity-association';
|
|
4
4
|
import { LegalEntityType } from '../../../core/models/api/legal-entity-type';
|
|
5
5
|
import { EntityProblems } from '../../../core/models/errors/entity-problems';
|
|
@@ -15,7 +15,7 @@ export interface EntityAssociationProps {
|
|
|
15
15
|
onNavigateToEntity?: () => void;
|
|
16
16
|
removeEntity?: () => void;
|
|
17
17
|
isRemoveDisabled?: boolean;
|
|
18
|
-
handleIsRemoveDisabled?:
|
|
18
|
+
handleIsRemoveDisabled?: StateUpdater<boolean>;
|
|
19
19
|
}
|
|
20
20
|
export interface UniqueEntityAssociation {
|
|
21
21
|
/**
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import './RadioCard.scss';
|
|
2
2
|
import { RadioCardProps } from './types';
|
|
3
|
-
export declare const RadioCard: ({ optionId, optionName, optionDescription, optionSubtitle, name, uniqueId, isInvalid, isSelected, onSelect,
|
|
3
|
+
export declare const RadioCard: ({ optionId, optionName, optionDescription, optionSubtitle, name, uniqueId, isInvalid, isSelected, onSelect, classNames, disabled, loading, icon, body, footer, }: RadioCardProps) => import("preact").JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import './RadioGroupCard.scss';
|
|
2
2
|
import { ComponentChildren } from 'preact';
|
|
3
3
|
import { TranslationKey } from '../../../../language/types';
|
|
4
|
+
import { RadioCardClassnames } from './types';
|
|
4
5
|
export interface RadioCardSelectProps<OptionType> {
|
|
5
6
|
className?: string;
|
|
6
7
|
isInvalid?: boolean;
|
|
@@ -17,6 +18,6 @@ export interface RadioCardSelectProps<OptionType> {
|
|
|
17
18
|
renderOptionIcon?: (option: OptionType) => ComponentChildren;
|
|
18
19
|
renderOptionBody?: (option: OptionType) => ComponentChildren;
|
|
19
20
|
renderOptionFooter?: (option: OptionType) => ComponentChildren;
|
|
20
|
-
|
|
21
|
+
optionClassNames?: (option: OptionType) => RadioCardClassnames;
|
|
21
22
|
}
|
|
22
|
-
export declare function RadioCardSelect<OptionType>({ options, name, onSelect, selected, isInvalid, uniqueId, className, optionId, optionName, optionDescription, optionSubtitle,
|
|
23
|
+
export declare function RadioCardSelect<OptionType>({ options, name, onSelect, selected, isInvalid, uniqueId, className, optionId, optionName, optionDescription, optionSubtitle, optionClassNames, renderOptionIcon, renderOptionBody, renderOptionFooter, isOptionDisabled, }: RadioCardSelectProps<OptionType>): import("preact").JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import './RadioGroupCard.scss';
|
|
2
2
|
import { RadioGroupCardProps } from './types';
|
|
3
|
-
export declare function RadioGroupCard({ items, name, onSelect, selected, isInvalid, uniqueId, className,
|
|
3
|
+
export declare function RadioGroupCard({ items, name, onSelect, selected, isInvalid, uniqueId, className, itemClassNames, itemIcon, itemBody, itemFooter, isItemDisabled, }: RadioGroupCardProps): import("preact").JSX.Element;
|
|
@@ -19,7 +19,7 @@ export interface RadioGroupCardProps {
|
|
|
19
19
|
itemIcon?: (item: RadioGroupCardItem) => ComponentChildren;
|
|
20
20
|
itemFooter?: (item: RadioGroupCardItem) => ComponentChildren;
|
|
21
21
|
itemBody?: (item: RadioGroupCardItem) => ComponentChildren;
|
|
22
|
-
|
|
22
|
+
itemClassNames?: (item: RadioGroupCardItem) => RadioCardClassnames;
|
|
23
23
|
}
|
|
24
24
|
export interface RadioCardProps {
|
|
25
25
|
optionId: string;
|
|
@@ -27,15 +27,21 @@ export interface RadioCardProps {
|
|
|
27
27
|
optionDescription?: TranslationKey | string;
|
|
28
28
|
optionSubtitle?: TranslationKey | string;
|
|
29
29
|
name?: string;
|
|
30
|
-
className?: string;
|
|
31
30
|
uniqueId: string;
|
|
32
31
|
isInvalid?: boolean;
|
|
33
32
|
isSelected: boolean;
|
|
34
33
|
onSelect: () => void;
|
|
35
|
-
labelClassName?: string;
|
|
36
34
|
disabled?: boolean;
|
|
37
35
|
loading?: boolean;
|
|
38
36
|
icon?: ComponentChildren;
|
|
39
37
|
footer?: ComponentChildren;
|
|
40
38
|
body?: ComponentChildren;
|
|
39
|
+
classNames?: RadioCardClassnames;
|
|
40
|
+
}
|
|
41
|
+
export interface RadioCardClassnames {
|
|
42
|
+
header?: string;
|
|
43
|
+
body?: string;
|
|
44
|
+
footer?: string;
|
|
45
|
+
label?: string;
|
|
46
|
+
icon?: string;
|
|
41
47
|
}
|
|
@@ -10,6 +10,7 @@ declare const icons: {
|
|
|
10
10
|
readonly 'chevron-right': import("preact").FunctionComponent<import("preact/compat").JSX.SVGAttributes<SVGSVGElement>>;
|
|
11
11
|
readonly 'chevron-up': import("preact").FunctionComponent<import("preact/compat").JSX.SVGAttributes<SVGSVGElement>>;
|
|
12
12
|
readonly company: import("preact").FunctionComponent<import("preact/compat").JSX.SVGAttributes<SVGSVGElement>>;
|
|
13
|
+
readonly 'company-2': import("preact").FunctionComponent<import("preact/compat").JSX.SVGAttributes<SVGSVGElement>>;
|
|
13
14
|
readonly contract: import("preact").FunctionComponent<import("preact/compat").JSX.SVGAttributes<SVGSVGElement>>;
|
|
14
15
|
readonly 'controlling-person': import("preact").FunctionComponent<import("preact/compat").JSX.SVGAttributes<SVGSVGElement>>;
|
|
15
16
|
readonly cross: import("preact").FunctionComponent<import("preact/compat").JSX.SVGAttributes<SVGSVGElement>>;
|
|
@@ -33,6 +34,9 @@ declare const icons: {
|
|
|
33
34
|
readonly signatory: import("preact").FunctionComponent<import("preact/compat").JSX.SVGAttributes<SVGSVGElement>>;
|
|
34
35
|
readonly store: import("preact").FunctionComponent<import("preact/compat").JSX.SVGAttributes<SVGSVGElement>>;
|
|
35
36
|
readonly trust: import("preact").FunctionComponent<import("preact/compat").JSX.SVGAttributes<SVGSVGElement>>;
|
|
37
|
+
readonly user: import("preact").FunctionComponent<import("preact/compat").JSX.SVGAttributes<SVGSVGElement>>;
|
|
38
|
+
readonly 'user-business': import("preact").FunctionComponent<import("preact/compat").JSX.SVGAttributes<SVGSVGElement>>;
|
|
39
|
+
readonly 'users-3': import("preact").FunctionComponent<import("preact/compat").JSX.SVGAttributes<SVGSVGElement>>;
|
|
36
40
|
readonly warning: import("preact").FunctionComponent<import("preact/compat").JSX.SVGAttributes<SVGSVGElement>>;
|
|
37
41
|
readonly wrong: import("preact").FunctionComponent<import("preact/compat").JSX.SVGAttributes<SVGSVGElement>>;
|
|
38
42
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StateUpdater } from 'preact/hooks';
|
|
2
2
|
import { TranslationKey } from '../../../language/types';
|
|
3
3
|
export interface RemoveProps {
|
|
4
4
|
onRemove: () => void | Promise<void>;
|
|
5
|
-
onRemoveStatusChange?:
|
|
5
|
+
onRemoveStatusChange?: StateUpdater<boolean>;
|
|
6
6
|
isRemoveDisabled?: boolean;
|
|
7
|
-
handleIsRemoveDisabled?:
|
|
7
|
+
handleIsRemoveDisabled?: StateUpdater<boolean>;
|
|
8
8
|
label?: TranslationKey;
|
|
9
9
|
}
|
|
@@ -4,4 +4,4 @@ import { TopLevelDataSchema } from '../../../core/Context/StateContext/types';
|
|
|
4
4
|
import { FormModel } from '../../../core/models/form';
|
|
5
5
|
import { SummaryProps } from './types';
|
|
6
6
|
export declare const summaryStep: FormModel;
|
|
7
|
-
export declare function Summary<TLDS extends PartialDeep<TopLevelDataSchema>>({ data, forms, omittedKeys, gotoForm, labels, problems, trackNavigation, omittedForms, }: SummaryProps<TLDS>): import("preact").JSX.Element;
|
|
7
|
+
export declare function Summary<TLDS extends PartialDeep<TopLevelDataSchema>>({ data, forms, omittedKeys, gotoForm, labels, problems, trackNavigation, omittedForms, showLegalCaption, }: SummaryProps<TLDS>): import("preact").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { StateUpdater } from 'preact/hooks';
|
|
2
2
|
import type { BaseFormFieldProps } from '../../../core/hooks/useForm/types';
|
|
3
3
|
import type { CompanyTypesValue } from '../../../core/models/api/company-types-value';
|
|
4
4
|
import { LegalEntityType } from '../../../core/models/api/legal-entity-type';
|
|
@@ -14,7 +14,7 @@ export interface TaxInformationFieldProps extends BaseFormFieldProps<TaxInformat
|
|
|
14
14
|
country: CountryCode;
|
|
15
15
|
canExempt: boolean;
|
|
16
16
|
taxIdNumberType: TaxIdNumberType | undefined;
|
|
17
|
-
setTaxIdNumberType:
|
|
17
|
+
setTaxIdNumberType: StateUpdater<TaxIdNumberType | undefined>;
|
|
18
18
|
companyType?: CompanyTypesValue | LegalEntityType.TRUST;
|
|
19
19
|
isUen?: boolean;
|
|
20
20
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { StateUpdater } from 'preact/hooks';
|
|
2
2
|
import type { BaseFormFieldProps } from '../../../core/hooks/useForm/types';
|
|
3
3
|
import type { CountryCode } from '../../../core/models/country-code';
|
|
4
4
|
import type { TaxIdNumberType } from '../IdFieldTypeSelector/countryIdNumberTypes';
|
|
@@ -11,5 +11,5 @@ export interface VatNumberFieldProps extends BaseFormFieldProps<VatNumberFieldSc
|
|
|
11
11
|
country: CountryCode;
|
|
12
12
|
canExempt: boolean;
|
|
13
13
|
vatNumberType: TaxIdNumberType | undefined;
|
|
14
|
-
setVatNumberType:
|
|
14
|
+
setVatNumberType: StateUpdater<TaxIdNumberType | undefined>;
|
|
15
15
|
}
|