@adyen/kyc-components 2.58.0 → 2.59.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/adyen-kyc-components.es.js +17927 -17464
- package/dist/es/cross-CzBW8i1Z.js +5 -0
- package/dist/es/hide-CWI5yHxd.js +9 -0
- package/dist/es/show-Cm_JGm0K.js +8 -0
- package/dist/style.css +127 -214
- package/dist/types/components/AdditionalInformation/types.d.ts +2 -2
- package/dist/types/components/AutoResizer.d.ts +50 -0
- package/dist/types/components/BankDocument/component/BankDocumentComponent.d.ts +1 -1
- package/dist/types/components/BankDocument/types.d.ts +1 -1
- package/dist/types/components/BankVerification/types.d.ts +3 -13
- package/dist/types/components/BankVerification/verification/widget/component/BankVerificationWidget.d.ts +7 -19
- package/dist/types/components/BasicInformation/types.d.ts +1 -1
- package/dist/types/components/BusinessDetails/types.d.ts +2 -3
- package/dist/types/components/Company/component/CompanyComponent.d.ts +1 -1
- package/dist/types/components/Company/types.d.ts +1 -1
- package/dist/types/components/CompanyNameAndCountry/component/CompanyNameAndCountryComponent.d.ts +1 -1
- package/dist/types/components/CompanyNameAndCountry/types.d.ts +1 -1
- package/dist/types/components/CompanyRegistrationDetails/types.d.ts +1 -1
- package/dist/types/components/CompanyStructure/types.d.ts +1 -1
- package/dist/types/components/CompanyType/types.d.ts +1 -1
- package/dist/types/components/ConstitutionalDocument/ConstitutionalDocumentComponent.d.ts +1 -1
- package/dist/types/components/ContactDetails/component/ContactDetailsComponent.d.ts +1 -1
- package/dist/types/components/ContactDetails/types.d.ts +1 -1
- package/dist/types/components/DocumentUpload/DocumentUpload.d.ts +1 -1
- package/dist/types/components/DocumentUpload/types.d.ts +1 -1
- package/dist/types/components/Dropins/BusinessDetailsDropin/types.d.ts +2 -2
- package/dist/types/components/Dropins/BusinessDetailsDropin/utils.d.ts +1 -1
- package/dist/types/components/Dropins/HighExposureDropin/types.d.ts +1 -1
- package/dist/types/components/Dropins/ServiceAgreementDropinComponent/components/useServiceAgreement.d.ts +1 -1
- package/dist/types/components/Dropins/types.d.ts +2 -1
- package/dist/types/components/FinancialInformation/types.d.ts +1 -1
- package/dist/types/components/IdDocumentUpload/component/IdDocumentInstantVerificationComponent.d.ts +1 -1
- package/dist/types/components/IdDocumentUpload/component/IdDocumentManualUpload.d.ts +1 -1
- package/dist/types/components/IdDocumentUpload/types.d.ts +3 -3
- package/dist/types/components/IdVerification/types.d.ts +3 -3
- package/dist/types/components/IdVerificationMethod/types.d.ts +3 -3
- package/dist/types/components/IdentityNumber/type.d.ts +1 -1
- package/dist/types/components/Individual/component/IndividualComponent.d.ts +1 -2
- package/dist/types/components/Individual/types.d.ts +1 -1
- package/dist/types/components/PayoutAccount/component/PayoutAccountComponent.d.ts +1 -1
- package/dist/types/components/PayoutAccount/types.d.ts +3 -3
- package/dist/types/components/PayoutDetails/component/PayoutDetailsComponent.d.ts +2 -5
- package/dist/types/components/PayoutDetails/rules.d.ts +4 -5
- package/dist/types/components/PayoutDetails/types.d.ts +4 -4
- package/dist/types/components/PayoutVerificationMethod/component/PayoutVerificationMethod.d.ts +2 -1
- package/dist/types/components/PayoutVerificationMethod/component/PreferInstantVerificationMethod/PreferInstantVerificationMethod.d.ts +18 -3
- package/dist/types/components/PayoutVerificationMethod/types.d.ts +15 -5
- package/dist/types/components/PersonalDetails/component/IdentityComponent/types.d.ts +1 -1
- package/dist/types/components/PersonalDetails/types.d.ts +4 -5
- package/dist/types/components/ProofOfRelationship/index.d.ts +1 -1
- package/dist/types/components/ProofOfResidency/ProofOfResidencyComponent.d.ts +1 -1
- package/dist/types/components/RegistrationAddress/types.d.ts +1 -1
- package/dist/types/components/SingpassSelection/types.d.ts +1 -1
- package/dist/types/components/SoleProp/component/SolePropComponent.d.ts +1 -1
- package/dist/types/components/SoleProp/types.d.ts +1 -1
- package/dist/types/components/Trust/types.d.ts +1 -1
- package/dist/types/components/TrustRegistrationDetails/types.d.ts +1 -1
- package/dist/types/components/TrustRoleAndEntityType/types.d.ts +1 -1
- package/dist/types/components/internal/Address/types.d.ts +1 -1
- package/dist/types/components/internal/Alert/components/VerificationErrorAlert.d.ts +0 -1
- package/dist/types/components/internal/BankAccountNumber/types.d.ts +1 -1
- package/dist/types/components/internal/BankCity/types.d.ts +1 -1
- package/dist/types/components/internal/BankCode/types.d.ts +1 -1
- package/dist/types/components/internal/BankName/types.d.ts +1 -1
- package/dist/types/components/internal/BranchCode/types.d.ts +1 -1
- package/dist/types/components/internal/BusinessNameField/types.d.ts +1 -1
- package/dist/types/components/internal/BusinessRegistrationNumber/types.d.ts +1 -1
- package/dist/types/components/internal/Button/Button.d.ts +0 -1
- package/dist/types/components/internal/ContractViewer/types.d.ts +1 -1
- package/dist/types/components/internal/CountryField/types.d.ts +1 -5
- package/dist/types/components/internal/CountryOfGoverningLawField/types.d.ts +1 -1
- package/dist/types/components/internal/Currency/types.d.ts +1 -1
- package/dist/types/components/internal/DBANameField/types.d.ts +1 -1
- package/dist/types/components/internal/DecisionMakerRole/types.d.ts +1 -1
- package/dist/types/components/internal/FinancialReportingDate/types.d.ts +1 -1
- package/dist/types/components/internal/FormFields/InputDate/utils.d.ts +4 -5
- package/dist/types/components/internal/FormFields/MaskedInputText/MaskedInputText.d.ts +1 -1
- package/dist/types/components/internal/FormFields/Select/types.d.ts +0 -1
- package/dist/types/components/internal/FormFields/utils.d.ts +1 -2
- package/dist/types/components/internal/Iban/types.d.ts +1 -1
- package/dist/types/components/internal/Icon/Icon.d.ts +3 -7
- package/dist/types/components/internal/LegalFormField/LegalFormField.d.ts +1 -2
- package/dist/types/components/internal/LegalFormField/types.d.ts +3 -2
- package/dist/types/components/internal/Modal/Modal.d.ts +2 -1
- package/dist/types/components/internal/NaceCodeField/NaceCodeField.d.ts +1 -2
- package/dist/types/components/internal/NaceCodeField/types.d.ts +3 -2
- package/dist/types/components/internal/Name/Name.d.ts +1 -1
- package/dist/types/components/internal/Name/types.d.ts +1 -1
- package/dist/types/components/internal/NumberOfEmployees/types.d.ts +1 -1
- package/dist/types/components/internal/PhoneInput/PhoneInput.d.ts +1 -1
- package/dist/types/components/internal/PhoneInput/types.d.ts +1 -1
- package/dist/types/components/internal/StateField/types.d.ts +1 -1
- package/dist/types/components/internal/StockTickerSymbol/types.d.ts +1 -1
- package/dist/types/components/internal/Svg/Svg.d.ts +2 -2
- package/dist/types/components/internal/Svg/svgs.d.ts +73 -71
- package/dist/types/components/internal/SwiftCode/types.d.ts +1 -1
- package/dist/types/components/internal/TaxId/types.d.ts +1 -1
- package/dist/types/components/internal/TaxInformationField/TaxInformationField.d.ts +1 -1
- package/dist/types/components/internal/VatNumberField/VatNumberField.d.ts +2 -2
- package/dist/types/core/Context/ExperimentContext/types.d.ts +3 -1
- package/dist/types/core/Context/ToastContext/ToastContext.d.ts +1 -1
- package/dist/types/core/Services/componentApi/get-bankVerification-vendor.d.ts +2 -1
- package/dist/types/core/hooks/useBankConfigurationHandlers.d.ts +6 -6
- package/dist/types/core/hooks/useBusinessData/constants.d.ts +4 -0
- package/dist/types/core/hooks/useBusinessData/types.d.ts +10 -3
- package/dist/types/core/hooks/useBusinessData/useBusinessData.d.ts +0 -3
- package/dist/types/core/hooks/useScenarioConfiguration.d.ts +0 -2
- package/dist/types/core/models/api/get-bankVerification-providers.d.ts +1 -2
- package/dist/types/core/models/api/get-configuration.d.ts +2 -1
- package/dist/types/core/models/api/legal-arrangement.d.ts +0 -1
- package/dist/types/core/models/country-config.d.ts +1 -1
- package/dist/types/core/models/errors/error-message.d.ts +0 -5
- package/dist/types/core/models/errors/maintenance-mode-error.d.ts +0 -6
- package/dist/types/core/models/identity.d.ts +6 -0
- package/dist/types/core/models/province-code.d.ts +2 -1
- package/dist/types/core/process-field-configurations.d.ts +1 -1
- package/dist/types/utils/api/processCapabilitites.d.ts +2 -6
- package/dist/types/utils/debounce.d.ts +1 -0
- package/dist/types/utils/entity-association-util.d.ts +1 -8
- package/dist/types/utils/formUtils.d.ts +1 -1
- package/dist/types/utils/get-props.d.ts +1 -1
- package/dist/types/utils/isEmpty.d.ts +1 -0
- package/dist/types/utils/logger.d.ts +0 -1
- package/dist/types/utils/perState.d.ts +0 -3
- package/dist/types/utils/range.d.ts +8 -0
- package/dist/types/utils/validation/ValidationResult.d.ts +0 -2
- package/dist/types/utils/validation/types.d.ts +2 -16
- package/package.json +19 -17
- package/dist/es/cross-small-C1cWZC1v.js +0 -5
- package/dist/types/components/BankDocument/index.d.ts +0 -2
- package/dist/types/components/internal/BankAccountNumber/index.d.ts +0 -1
- package/dist/types/components/internal/BankCity/index.d.ts +0 -1
- package/dist/types/components/internal/BankCode/index.d.ts +0 -1
- package/dist/types/components/internal/BankName/index.d.ts +0 -1
- package/dist/types/components/internal/BranchCode/index.d.ts +0 -1
- package/dist/types/components/internal/BusinessRegistrationNumber/index.d.ts +0 -1
- package/dist/types/components/internal/DecisionMakerRole/index.d.ts +0 -2
- package/dist/types/components/internal/Iban/index.d.ts +0 -1
- package/dist/types/components/internal/Name/index.d.ts +0 -1
- package/dist/types/components/internal/SwiftCode/index.d.ts +0 -1
- package/dist/types/components/internal/Toast/index.d.ts +0 -2
- package/dist/types/components/internal/VatNumberField/index.d.ts +0 -2
- package/dist/types/core/Services/componentApi/index.d.ts +0 -12
- package/dist/types/core/Services/kycExternalApi/index.d.ts +0 -5
- package/dist/types/core/hooks/useForm/index.d.ts +0 -3
- package/dist/types/utils/LoadedValue.d.ts +0 -2
- package/dist/types/utils/mapping/businessDetails/index.d.ts +0 -3
- package/dist/types/utils/regex/index.d.ts +0 -7
|
@@ -1,23 +1,33 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { Dispatch, StateUpdater } from 'preact/hooks';
|
|
2
|
+
import type { BaseInnerFormProps } from '../../core/hooks/useForm/types';
|
|
3
|
+
import type { ExistingLegalEntity, LegalEntity } from '../../core/models/api/legal-entity';
|
|
4
|
+
import type { BankVerificationErrorResponse } from '../../core/models/api/trusted-transferInstrument';
|
|
3
5
|
import type { CountryCode } from '../../core/models/country-code';
|
|
4
6
|
import type { FormModel } from '../../core/models/form';
|
|
5
|
-
import type {
|
|
7
|
+
import type { AccountVerificationSchema, BankVerificationVendor, InstantVerificationErrorNotification } from '../BankVerification/types';
|
|
6
8
|
import type { LoadingStatus } from '../internal/LoaderWrapper/constants';
|
|
9
|
+
import type { PayoutDetailsProps } from '../PayoutDetails/types';
|
|
7
10
|
export declare const payoutVerificationMethods: readonly ["instantVerification", "manualVerification"];
|
|
8
11
|
export type VerificationMethod = (typeof payoutVerificationMethods)[number];
|
|
9
|
-
export interface PayoutVerificationMethodSchema {
|
|
12
|
+
export interface PayoutVerificationMethodSchema extends AccountVerificationSchema {
|
|
10
13
|
payoutVerificationMethod: VerificationMethod | undefined;
|
|
11
14
|
bankCountry: CountryCode;
|
|
12
15
|
}
|
|
13
16
|
export interface PayoutVerificationMethodProps extends BaseInnerFormProps<PayoutVerificationMethodSchema> {
|
|
14
17
|
country: CountryCode;
|
|
15
18
|
accountHolder: string;
|
|
16
|
-
|
|
19
|
+
provider?: BankVerificationVendor;
|
|
17
20
|
bankVendorsLoadingStatus: LoadingStatus;
|
|
18
21
|
instantVerificationAllowed: boolean;
|
|
19
22
|
bankInfoValidated: boolean;
|
|
20
23
|
legalEntityResponse: ExistingLegalEntity;
|
|
21
24
|
handleNextClick: () => void;
|
|
22
25
|
forms?: FormModel[];
|
|
26
|
+
isActiveForm: boolean;
|
|
27
|
+
setBankInfoValidated: Dispatch<StateUpdater<boolean>>;
|
|
28
|
+
createTrustedTransferInstrument?: PayoutDetailsProps['createTrustedTransferInstrument'];
|
|
29
|
+
refreshLegalEntity?: () => Promise<LegalEntity>;
|
|
30
|
+
handleBankVerificationError?: (errorCode: string, errorMessage: string, state: string, metadata?: Map<string, string>) => Promise<BankVerificationErrorResponse>;
|
|
31
|
+
setBankVerificationError: Dispatch<StateUpdater<InstantVerificationErrorNotification | null>>;
|
|
32
|
+
setHideFooter?: Dispatch<StateUpdater<boolean>>;
|
|
23
33
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseInnerFormProps } from '../../../../core/hooks/useForm';
|
|
1
|
+
import type { BaseInnerFormProps } from '../../../../core/hooks/useForm/types';
|
|
2
2
|
import type { IdentityNumberSchema } from '../../../IdentityNumber/type';
|
|
3
3
|
import type { IndividualIdNumberType } from '../../../internal/IdFieldTypeSelector/countryIdNumberTypes';
|
|
4
4
|
export interface AdditionalIdentityInfoSchema {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseInnerFormProps
|
|
1
|
+
import type { BaseInnerFormProps } from '../../core/hooks/useForm/types';
|
|
2
2
|
import type { DecisionMakerType } from '../../core/models/api/decision-maker-type';
|
|
3
3
|
import type { ExistingLegalEntity } from '../../core/models/api/legal-entity';
|
|
4
4
|
import type { LegalEntityAssociation, LegalRepresentativeRelationshipType } from '../../core/models/api/legal-entity-association';
|
|
@@ -7,7 +7,7 @@ import type { TranslationKey } from '../../language/types';
|
|
|
7
7
|
import type { ValidationRuleResults } from '../../utils/validation/types';
|
|
8
8
|
import type { ContactDetailsSchema } from '../ContactDetails/types';
|
|
9
9
|
import type { IdentityNumberSchema } from '../IdentityNumber/type';
|
|
10
|
-
import type { DecisionMakerRoleSchema } from '../internal/DecisionMakerRole';
|
|
10
|
+
import type { DecisionMakerRoleSchema } from '../internal/DecisionMakerRole/types';
|
|
11
11
|
import type { IndividualIdNumberType } from '../internal/IdFieldTypeSelector/countryIdNumberTypes';
|
|
12
12
|
import type { NameSchema } from '../internal/Name/types';
|
|
13
13
|
import type { TaskTypes } from '../TaskList/types';
|
|
@@ -20,11 +20,11 @@ export interface PersonalDetailsSchema extends NameSchema, IdentityNumberSchema,
|
|
|
20
20
|
relationship?: LegalRepresentativeRelationshipType;
|
|
21
21
|
}
|
|
22
22
|
export interface PersonalDetailsProps extends BaseInnerFormProps<PersonalDetailsSchema> {
|
|
23
|
-
taskType
|
|
23
|
+
taskType?: TaskTypes;
|
|
24
24
|
allowedRoles?: DecisionMakerType[];
|
|
25
25
|
onResidencyCountryChange?(country: string): void;
|
|
26
26
|
parentLegalEntity?: ExistingLegalEntity;
|
|
27
|
-
trustedRoles
|
|
27
|
+
trustedRoles?: Array<LegalEntityAssociation['type']>;
|
|
28
28
|
}
|
|
29
29
|
export interface IdSchema {
|
|
30
30
|
idNumber: string;
|
|
@@ -38,4 +38,3 @@ export interface IdentityComponentProps {
|
|
|
38
38
|
idNumberType?: IndividualIdNumberType;
|
|
39
39
|
registrationNumberType?: TranslationKey;
|
|
40
40
|
}
|
|
41
|
-
export type IdFormState = FormState<IdSchema>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ProofOfRelationshipProps } from './types';
|
|
2
|
-
declare function ProofOfRelationship({ id, ...props }: ProofOfRelationshipProps): import("preact
|
|
2
|
+
declare function ProofOfRelationship({ id, ...props }: ProofOfRelationshipProps): import("preact").JSX.Element;
|
|
3
3
|
declare const _default: typeof ProofOfRelationship;
|
|
4
4
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ProofOfResidencyProps } from './types';
|
|
2
|
-
declare function ProofOfResidencyComponent({ id, ...props }: ProofOfResidencyProps): import("preact
|
|
2
|
+
declare function ProofOfResidencyComponent({ id, ...props }: ProofOfResidencyProps): import("preact").JSX.Element;
|
|
3
3
|
declare const ProofOfResidencyUpload: typeof ProofOfResidencyComponent;
|
|
4
4
|
export default ProofOfResidencyUpload;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseOuterFormProps } from '../../core/hooks/useForm';
|
|
1
|
+
import type { BaseOuterFormProps } from '../../core/hooks/useForm/types';
|
|
2
2
|
import type { CountryCode } from '../../core/models/country-code';
|
|
3
3
|
import type { FormModel } from '../../core/models/form';
|
|
4
4
|
import type { TranslationKey } from '../../language/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseInnerFormProps } from '../../core/hooks/useForm';
|
|
1
|
+
import type { BaseInnerFormProps } from '../../core/hooks/useForm/types';
|
|
2
2
|
import type { LegalEntityType } from '../../core/models/api/legal-entity-type';
|
|
3
3
|
import type { AccountHolderOption } from '../internal/AccountHolder/types';
|
|
4
4
|
export declare const setupAccountMethods: readonly ["singpass", "manual"];
|
|
@@ -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: ("dateOfIncorporation" | "stockExchangeMIC" | "stockISIN" | "stockTickerSymbol" | keyof import("../../internal/
|
|
11
|
+
readonly fields: ("dateOfIncorporation" | "stockExchangeMIC" | "stockISIN" | "stockTickerSymbol" | keyof import("../../internal/BusinessRegistrationNumberField/types").BusinessRegistrationNumberFieldSchema | keyof import("../../internal/VatNumberField/types").VatNumberFieldSchema | keyof import("../../internal/TaxInformationField/types").TaxInformationFieldSchema | keyof import("../../internal/TradingNameField/types").TradingNameFieldSchema)[];
|
|
12
12
|
};
|
|
13
13
|
readonly solePropRegistrationAddress: {
|
|
14
14
|
readonly formId: "solePropRegistrationAddress";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseOuterFormProps } from '../../core/hooks/useForm';
|
|
1
|
+
import type { BaseOuterFormProps } from '../../core/hooks/useForm/types';
|
|
2
2
|
import type { CapabilityName } from '../../core/models/api/capability';
|
|
3
3
|
import type { ExistingLegalEntity } from '../../core/models/api/legal-entity';
|
|
4
4
|
import type { CountryCode } from '../../core/models/country-code';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseOuterFormProps } from '../../core/hooks/useForm';
|
|
1
|
+
import type { BaseOuterFormProps } from '../../core/hooks/useForm/types';
|
|
2
2
|
import type { CapabilityName } from '../../core/models/api/capability';
|
|
3
3
|
import type { ExistingLegalEntity, LegalEntity } from '../../core/models/api/legal-entity';
|
|
4
4
|
import type { CountryCode } from '../../core/models/country-code';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseInnerFormProps } from '../../core/hooks/useForm';
|
|
1
|
+
import type { BaseInnerFormProps } from '../../core/hooks/useForm/types';
|
|
2
2
|
import { TrustTypes } from '../../core/models/api/trust-types-value';
|
|
3
3
|
import type { CountryCode } from '../../core/models/country-code';
|
|
4
4
|
import type { TranslationKey } from '../../language/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseInnerFormProps } from '../../core/hooks/useForm';
|
|
1
|
+
import type { BaseInnerFormProps } from '../../core/hooks/useForm/types';
|
|
2
2
|
import type { ExistingLegalEntity } from '../../core/models/api/legal-entity';
|
|
3
3
|
import { LegalEntityType } from '../../core/models/api/legal-entity-type';
|
|
4
4
|
import type { TrustMemberType } from '../../core/models/api/trust-member-type';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseInnerFormProps } from '../../../core/hooks/useForm';
|
|
1
|
+
import type { BaseInnerFormProps } from '../../../core/hooks/useForm/types';
|
|
2
2
|
import type { CompanyDatasetResponse } from '../../../core/models/api/company-search';
|
|
3
3
|
import type { CountryCode } from '../../../core/models/country-code';
|
|
4
4
|
import type { TranslationKey } from '../../../language/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseInnerFormProps } from '../../../core/hooks/useForm';
|
|
1
|
+
import type { BaseInnerFormProps } from '../../../core/hooks/useForm/types';
|
|
2
2
|
import type { CountryCode } from '../../../core/models/country-code';
|
|
3
3
|
import type { defaultFieldConfig } from './fieldConfig';
|
|
4
4
|
export interface BankAccountNumberSchema {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseInnerFormProps } from '../../../core/hooks/useForm';
|
|
1
|
+
import type { BaseInnerFormProps } from '../../../core/hooks/useForm/types';
|
|
2
2
|
import type { CountryCode } from '../../../core/models/country-code';
|
|
3
3
|
import type { defaultFieldConfig } from './fieldConfig';
|
|
4
4
|
export interface BankCodeSchema {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseInnerFormProps } from '../../../core/hooks/useForm';
|
|
1
|
+
import type { BaseInnerFormProps } from '../../../core/hooks/useForm/types';
|
|
2
2
|
import type { CountryCode } from '../../../core/models/country-code';
|
|
3
3
|
import type { defaultFieldConfig } from './fieldConfig';
|
|
4
4
|
export interface BranchCodeSchema {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseInnerFormProps } from '../../../core/hooks/useForm';
|
|
1
|
+
import type { BaseInnerFormProps } from '../../../core/hooks/useForm/types';
|
|
2
2
|
import type { CompanyTypesValue } from '../../../core/models/api/company-types-value';
|
|
3
3
|
import type { CountryCode } from '../../../core/models/country-code';
|
|
4
4
|
import type { defaultFieldConfig } from './fieldConfig';
|
|
@@ -3,4 +3,3 @@ import '../Link/_link.component.scss';
|
|
|
3
3
|
import type { JSX } from 'preact';
|
|
4
4
|
import type { ButtonProps } from './types';
|
|
5
5
|
export declare const Button: ({ showAsLink, secondary, tertiary, className, role, small, block, critical, shaded, label, icon, iconPosition, title, disabled, type, onClick, onKeyDown, loading, testId, underline, }: ButtonProps) => JSX.Element;
|
|
6
|
-
export default Button;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseFormFieldProps } from '../../../core/hooks/useForm';
|
|
1
|
+
import type { BaseFormFieldProps } from '../../../core/hooks/useForm/types';
|
|
2
2
|
import type { CountryCode } from '../../../core/models/country-code';
|
|
3
3
|
export interface CountryFieldSchema {
|
|
4
4
|
country?: CountryCode | undefined;
|
|
@@ -6,7 +6,3 @@ export interface CountryFieldSchema {
|
|
|
6
6
|
export interface CountryFieldProps extends BaseFormFieldProps<CountryFieldSchema> {
|
|
7
7
|
allowedCountries?: readonly CountryCode[];
|
|
8
8
|
}
|
|
9
|
-
export interface CountryFieldItem {
|
|
10
|
-
id: CountryCode;
|
|
11
|
-
name: string;
|
|
12
|
-
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseFormFieldProps } from '../../../core/hooks/useForm';
|
|
1
|
+
import type { BaseFormFieldProps } from '../../../core/hooks/useForm/types';
|
|
2
2
|
import type { CountryCode } from '../../../core/models/country-code';
|
|
3
3
|
export interface CountryOfGoverningLawFieldSchema {
|
|
4
4
|
countryOfGoverningLaw?: CountryCode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseFormFieldProps } from '../../../core/hooks/useForm';
|
|
1
|
+
import type { BaseFormFieldProps } from '../../../core/hooks/useForm/types';
|
|
2
2
|
import type { CountryCode } from '../../../core/models/country-code';
|
|
3
3
|
import type { Currency } from '../../../core/models/currency';
|
|
4
4
|
export interface CurrencySchema {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseInnerFormProps } from '../../../core/hooks/useForm';
|
|
1
|
+
import type { BaseInnerFormProps } from '../../../core/hooks/useForm/types';
|
|
2
2
|
import type { DecisionMakerType } from '../../../core/models/api/decision-maker-type';
|
|
3
3
|
import type { LegalEntityAssociation } from '../../../core/models/api/legal-entity-association';
|
|
4
4
|
import type { TaskTypes } from '../../TaskList/types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Returns either the date input is supported or not in the current browser
|
|
3
3
|
*/
|
|
4
|
-
declare const checkDateInputSupport: () => boolean;
|
|
4
|
+
export declare const checkDateInputSupport: () => boolean;
|
|
5
5
|
/**
|
|
6
6
|
* Returns a formatted date
|
|
7
7
|
* @param value -
|
|
@@ -9,7 +9,7 @@ declare const checkDateInputSupport: () => boolean;
|
|
|
9
9
|
* formatDate('22111990');
|
|
10
10
|
* // '22/11/1990'
|
|
11
11
|
*/
|
|
12
|
-
declare const formatDate: (value: string) => string;
|
|
12
|
+
export declare const formatDate: (value: string) => string;
|
|
13
13
|
/**
|
|
14
14
|
* Receives a formatted date and returns it as the API expects it
|
|
15
15
|
* @param value -
|
|
@@ -17,6 +17,5 @@ declare const formatDate: (value: string) => string;
|
|
|
17
17
|
* unformatDate('22/11/1990');
|
|
18
18
|
* // '1990-11-22'
|
|
19
19
|
*/
|
|
20
|
-
declare const unformatDate: (value?: string) => string | null;
|
|
21
|
-
declare const formatDateObj: (date: Date) => string;
|
|
22
|
-
export { checkDateInputSupport, formatDate, formatDateObj, unformatDate };
|
|
20
|
+
export declare const unformatDate: (value?: string) => string | null;
|
|
21
|
+
export declare const formatDateObj: (date: Date) => string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './MaskedInputText.scss';
|
|
2
2
|
import type { JSX } from 'preact';
|
|
3
|
-
import type { MaskSettings } from '../../../../core/hooks/useForm';
|
|
3
|
+
import type { MaskSettings } from '../../../../core/hooks/useForm/types';
|
|
4
4
|
import type { MismatchResult } from '../../../../utils/masking/matchAgainstMask';
|
|
5
5
|
export interface MaskedInputTextProps extends MaskSettings {
|
|
6
6
|
value: string;
|
|
@@ -51,7 +51,6 @@ export interface SingleSelectOnChangeProps {
|
|
|
51
51
|
export interface MultiSelectOnChangeProps {
|
|
52
52
|
target: MultiSelectOnChangeTarget;
|
|
53
53
|
}
|
|
54
|
-
export type SelectOnChangeProps = SingleSelectOnChangeProps | MultiSelectOnChangeProps;
|
|
55
54
|
interface SingleSelectProps extends BaseSelectProps {
|
|
56
55
|
isMulti?: false;
|
|
57
56
|
onChange: (e: SingleSelectOnChangeProps) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseInnerFormProps } from '../../../core/hooks/useForm';
|
|
1
|
+
import type { BaseInnerFormProps } from '../../../core/hooks/useForm/types';
|
|
2
2
|
import type { CountryCode } from '../../../core/models/country-code';
|
|
3
3
|
import type { defaultFieldConfig } from './fieldConfig';
|
|
4
4
|
export interface IbanSchema {
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import type { SvgName } from '../Svg/Svg';
|
|
1
|
+
import type { SvgName, SvgProps } from '../Svg/Svg';
|
|
2
2
|
export type IconName = SvgName;
|
|
3
|
-
|
|
4
|
-
className?: string;
|
|
5
|
-
testId?: string;
|
|
6
|
-
name: IconName;
|
|
7
|
-
}
|
|
3
|
+
type IconProps = Omit<SvgProps, 'type'>;
|
|
8
4
|
export declare const Icon: ({ name, className, ...props }: IconProps) => import("preact").JSX.Element;
|
|
9
|
-
export
|
|
5
|
+
export {};
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import type { LegalFormFieldProps
|
|
2
|
-
export declare const LEGAL_FORM_FIELD: Array<keyof LegalFormFieldSchema>;
|
|
1
|
+
import type { LegalFormFieldProps } from './types';
|
|
3
2
|
export declare function LegalFormField({ name, data, valid, errorMessage, label, readonly, handleChangeFor, helperText, countryCode, classNameModifiers, }: LegalFormFieldProps): import("preact").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { JSX } from 'preact';
|
|
2
|
-
import type { BaseFormFieldProps } from '../../../core/hooks/useForm';
|
|
2
|
+
import type { BaseFormFieldProps } from '../../../core/hooks/useForm/types';
|
|
3
3
|
import type { CountryCode } from '../../../core/models/country-code';
|
|
4
|
-
|
|
4
|
+
interface LegalFormFieldSchema {
|
|
5
5
|
legalForm?: string;
|
|
6
6
|
}
|
|
7
7
|
export interface LegalFormFieldProps extends Omit<BaseFormFieldProps<LegalFormFieldSchema>, 'errors' | 'labels'> {
|
|
@@ -9,3 +9,4 @@ export interface LegalFormFieldProps extends Omit<BaseFormFieldProps<LegalFormFi
|
|
|
9
9
|
countryCode?: CountryCode;
|
|
10
10
|
label?: string;
|
|
11
11
|
}
|
|
12
|
+
export {};
|
|
@@ -5,7 +5,8 @@ export interface ModalProps {
|
|
|
5
5
|
children: ComponentChildren;
|
|
6
6
|
footer?: ComponentChildren;
|
|
7
7
|
size?: 'small' | 'medium' | 'large' | 'fullscreen';
|
|
8
|
+
movableHeader?: boolean;
|
|
8
9
|
onBack?: () => void;
|
|
9
10
|
onClose?: () => void;
|
|
10
11
|
}
|
|
11
|
-
export declare const Modal: ({ header, children, footer, size, onBack, onClose, }: ModalProps) => import("preact").JSX.Element;
|
|
12
|
+
export declare const Modal: ({ header, children, footer, size, movableHeader, onBack, onClose, }: ModalProps) => import("preact").JSX.Element;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import type { NaceCodeFieldProps
|
|
2
|
-
export declare const NACE_CODE_FIELD: Array<keyof NaceCodeFieldSchema>;
|
|
1
|
+
import type { NaceCodeFieldProps } from './types';
|
|
3
2
|
export declare function NaceCodeField({ name, data, valid, errorMessage, label, readonly, handleChangeFor, helperText, classNameModifiers, }: NaceCodeFieldProps): import("preact").JSX.Element;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { JSX } from 'preact';
|
|
2
|
-
import type { BaseFormFieldProps } from '../../../core/hooks/useForm';
|
|
3
|
-
|
|
2
|
+
import type { BaseFormFieldProps } from '../../../core/hooks/useForm/types';
|
|
3
|
+
interface NaceCodeFieldSchema {
|
|
4
4
|
naceCode?: string;
|
|
5
5
|
}
|
|
6
6
|
export interface NaceCodeFieldProps extends Omit<BaseFormFieldProps<NaceCodeFieldSchema>, 'errors' | 'labels'> {
|
|
7
7
|
errorMessage?: string | boolean | JSX.Element | null;
|
|
8
8
|
label?: string;
|
|
9
9
|
}
|
|
10
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NameProps, NameSchema } from './types';
|
|
2
2
|
export declare const nameFields: Array<keyof NameSchema>;
|
|
3
|
-
declare function NameComponent(props: NameProps): import("preact
|
|
3
|
+
declare function NameComponent(props: NameProps): import("preact").JSX.Element;
|
|
4
4
|
declare namespace NameComponent {
|
|
5
5
|
var defaultProps: {
|
|
6
6
|
data: {};
|
|
@@ -2,7 +2,7 @@ import type { CountryCode } from '../../../core/models/country-code';
|
|
|
2
2
|
import type { PhoneInputProps, PhoneInputSchema } from './types';
|
|
3
3
|
export declare const phoneFields: (keyof PhoneInputSchema)[];
|
|
4
4
|
export type PhonePrefixes = Partial<Record<CountryCode, string>>;
|
|
5
|
-
declare function PhoneInputComponent(props: PhoneInputProps): import("preact
|
|
5
|
+
declare function PhoneInputComponent(props: PhoneInputProps): import("preact").JSX.Element;
|
|
6
6
|
declare namespace PhoneInputComponent {
|
|
7
7
|
var defaultProps: {
|
|
8
8
|
phoneLabel: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseInnerFormProps } from '../../../core/hooks/useForm';
|
|
1
|
+
import type { BaseInnerFormProps } from '../../../core/hooks/useForm/types';
|
|
2
2
|
import type { CountryCode } from '../../../core/models/country-code';
|
|
3
3
|
export interface PhoneInputSchema {
|
|
4
4
|
phoneNumber?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseFormFieldProps } from '../../../core/hooks/useForm';
|
|
1
|
+
import type { BaseFormFieldProps } from '../../../core/hooks/useForm/types';
|
|
2
2
|
import type { CountryCode } from '../../../core/models/country-code';
|
|
3
3
|
import type { ProvinceCode } from '../../../core/models/province-code';
|
|
4
4
|
import type { StateCode } from '../../../core/models/state-code';
|
|
@@ -9,5 +9,5 @@ export interface SvgProps {
|
|
|
9
9
|
className?: string;
|
|
10
10
|
testId?: string;
|
|
11
11
|
}
|
|
12
|
-
export declare const Svg: ({ className, name, testId, alt, type }: SvgProps) => import("preact
|
|
13
|
-
export
|
|
12
|
+
export declare const Svg: ({ className, name, testId, alt, type }: SvgProps) => import("preact").JSX.Element;
|
|
13
|
+
export {};
|