@adyen/kyc-components 3.0.0-beta.9 → 3.0.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/{HK-0561cac3.mjs → HK-675b8651.mjs} +0 -6
- package/dist/es/NZ-d7a003bc.mjs +24 -0
- package/dist/es/adyen-kyc-components.es.js +15123 -9196
- package/dist/style.css +11406 -1958
- package/dist/types/components/BusinessTypeSelection/BusinessTypeSelection.d.ts +16 -0
- package/dist/types/components/BusinessTypeSelection/types.d.ts +38 -0
- package/dist/types/components/BusinessTypeSelection/utils.d.ts +25 -0
- package/dist/types/components/Company/rules.d.ts +21 -1
- package/dist/types/components/Company/types.d.ts +1 -0
- package/dist/types/components/CompanyBasics/component/CompanyBasicsComponent.d.ts +8 -0
- package/dist/types/components/CompanyBasics/index.d.ts +1 -0
- package/dist/types/components/CompanyBasics/types.d.ts +20 -0
- package/dist/types/components/CompanyBasics/validate.d.ts +4 -0
- package/dist/types/components/CompanyLookup/CompanyLookupResultsHeader.d.ts +2 -0
- package/dist/types/components/CompanyLookup/CompanyLookupResultsList.d.ts +2 -0
- package/dist/types/components/CompanyLookup/LookupResult.d.ts +3 -0
- package/dist/types/components/CompanyLookup/component/CompanyLookupComponent.d.ts +5 -0
- package/dist/types/components/CompanyLookup/index.d.ts +1 -0
- package/dist/types/components/CompanyLookup/types.d.ts +67 -0
- package/dist/types/components/CompanyNameAndCountry/types.d.ts +1 -0
- package/dist/types/components/CompanyOtherDetails/component/CompanyOtherDetailsComponent.d.ts +8 -0
- package/dist/types/components/CompanyOtherDetails/index.d.ts +1 -0
- package/dist/types/components/CompanyOtherDetails/types.d.ts +17 -0
- package/dist/types/components/CompanyOtherDetails/validate.d.ts +8 -0
- package/dist/types/components/CompanyRegistrationDetails/component/labels.d.ts +6 -0
- package/dist/types/components/CompanySearch/component/CompanySearchComponent.d.ts +2 -0
- package/dist/types/components/CompanySearch/forms.d.ts +38 -0
- package/dist/types/components/CompanySearch/index.d.ts +1 -0
- package/dist/types/components/CompanySearch/types.d.ts +29 -0
- package/dist/types/components/CompanyStructure/component/CompanyStructureComponent.d.ts +8 -0
- package/dist/types/components/CompanyStructure/index.d.ts +1 -0
- package/dist/types/components/CompanyStructure/types.d.ts +6 -0
- package/dist/types/components/CompanyStructure/validate.d.ts +3 -0
- package/dist/types/components/ConstitutionalDocument/ConstitutionalDocumentComponent.d.ts +4 -10
- package/dist/types/components/ConstitutionalDocument/types.d.ts +4 -0
- package/dist/types/components/ContactDetails/component/ContactDetailsComponent.d.ts +7 -1
- package/dist/types/components/DocumentUpload/types.d.ts +2 -1
- package/dist/types/components/Dropins/CompanyDropin/types.d.ts +3 -3
- package/dist/types/components/Dropins/CompanySearchDropin/components/CompanySearchDropinComponent.d.ts +2 -0
- package/dist/types/components/Dropins/CompanySearchDropin/index.d.ts +1 -0
- package/dist/types/components/Dropins/CompanySearchDropin/types.d.ts +10 -0
- package/dist/types/components/Dropins/CompanySearchDropin/utils.d.ts +8 -0
- package/dist/types/components/Dropins/FormWrapper/FormWrapper.d.ts +1 -1
- package/dist/types/components/Dropins/IndividualDropin/components/IndividualDropinComponent.d.ts +1 -1
- package/dist/types/components/Dropins/PayoutDetailsDropin/components/PayoutDetailsDropinComponent.d.ts +2 -2
- package/dist/types/components/Dropins/PciDropin/types.d.ts +1 -1
- package/dist/types/components/Dropins/RoleAndTypeDropin/components/RoleAndTypeDropinComponent.d.ts +1 -1
- package/dist/types/components/Dropins/RoleAndTypeDropin/types.d.ts +3 -0
- package/dist/types/components/Dropins/ServiceAgreementDropinComponent/components/useServiceAgreement.d.ts +2 -2
- package/dist/types/components/Dropins/ServiceAgreementDropinComponent/types.d.ts +1 -1
- package/dist/types/components/Dropins/types.d.ts +8 -1
- package/dist/types/components/EmbeddedDropins/CreateIndividualComponent/CreateIndividualComponent.d.ts +16 -0
- package/dist/types/components/EmbeddedDropins/CreateTransferInstrumentComponent/CreateTransferInstrumentComponent.d.ts +12 -0
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentComponent.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverview/ManageTransferInstrumentOverview.d.ts +12 -0
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItem/ManageTransferInstrumentOverviewItem.d.ts +12 -0
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItemSummary/ManageTransferInstrumentOverviewItemSummary.d.ts +8 -0
- package/dist/types/components/IdDocumentUpload/types.d.ts +4 -3
- package/dist/types/components/IdentityNumber/component/IdentityNumberComponent.d.ts +3 -1
- package/dist/types/components/IdentityNumber/formats.d.ts +3 -0
- package/dist/types/components/IdentityNumber/type.d.ts +2 -0
- package/dist/types/components/IdentityNumber/validate.d.ts +2 -1
- package/dist/types/components/IdentityNumber/validate.helper.d.ts +3 -5
- package/dist/types/components/Individual/types.d.ts +4 -3
- package/dist/types/components/Introduction/Introduction.d.ts +10 -0
- package/dist/types/components/Introduction/IntroductionScreen.d.ts +8 -0
- package/dist/types/components/Introduction/constants.d.ts +3 -0
- package/dist/types/components/Introduction/copy.d.ts +14 -0
- package/dist/types/components/Introduction/types.d.ts +12 -0
- package/dist/types/components/LegalEntityTypeSwitcher/type.d.ts +5 -2
- package/dist/types/components/PayoutAccount/helpers/mapPayoutAccountSchemaToApiBankAccount.d.ts +2 -0
- package/dist/types/components/PayoutAccount/types.d.ts +3 -2
- package/dist/types/components/PayoutBankStatement/component/BankDocumentRequirements.d.ts +3 -1
- package/dist/types/components/PayoutBankStatement/types.d.ts +4 -2
- package/dist/types/components/PayoutDetails/component/PayoutDetailsComponent.d.ts +2 -2
- package/dist/types/components/PayoutDetails/types.d.ts +5 -3
- package/dist/types/components/PayoutVerificationMethod/component/AccountHolderDescriptionFragment.d.ts +7 -0
- package/dist/types/components/PayoutVerificationMethod/types.d.ts +2 -2
- package/dist/types/components/PersonalDetails/component/IdentityComponent/identityUS/component/IdentityUSComponent.d.ts +1 -1
- package/dist/types/components/PersonalDetails/component/labels.d.ts +4 -0
- package/dist/types/components/PersonalDetails/types.d.ts +4 -0
- package/dist/types/components/RegistrationAddress/types.d.ts +1 -0
- package/dist/types/components/SoleProp/types.d.ts +2 -2
- package/dist/types/components/TaskList/component/PayoutAccountTaskListItem.d.ts +2 -2
- package/dist/types/components/TaskList/component/TaskItemStatus.d.ts +1 -1
- package/dist/types/components/TaskList/component/TaskListItem.d.ts +1 -1
- package/dist/types/components/TaskList/types.d.ts +10 -1
- package/dist/types/components/Trust/types.d.ts +2 -2
- package/dist/types/components/TrustMembers/component/RootTrusteeTaskItem.d.ts +2 -1
- package/dist/types/components/TrustMembers/types.d.ts +7 -3
- package/dist/types/components/TrustRoleAndEntityType/convertExistingTrustMember.d.ts +2 -1
- package/dist/types/components/TrustRoleAndEntityType/getAvailableRoles.d.ts +2 -0
- package/dist/types/components/TrustRoleAndEntityType/types.d.ts +10 -0
- package/dist/types/components/index.d.ts +6 -2
- package/dist/types/components/internal/Accordion/types.d.ts +1 -1
- package/dist/types/components/internal/AccordionItem/AccordionItem.d.ts +1 -1
- package/dist/types/components/internal/AccordionItem/types.d.ts +3 -2
- package/dist/types/components/internal/AccountHolder/types.d.ts +2 -1
- package/dist/types/components/internal/Address/components/SearchAddress.d.ts +1 -1
- package/dist/types/components/internal/Address/types.d.ts +5 -3
- package/dist/types/components/internal/Address/utils.d.ts +1 -1
- package/dist/types/components/internal/Alert/Alert.d.ts +1 -3
- package/dist/types/components/internal/Alert/components/VerificationErrorAlert.d.ts +1 -1
- package/dist/types/components/internal/Alert/index.d.ts +1 -1
- package/dist/types/components/internal/Alert/types.d.ts +2 -0
- package/dist/types/components/internal/BankAccountNumber/types.d.ts +4 -1
- package/dist/types/components/internal/BusinessRegistrationNumber/fieldConfig.d.ts +12 -0
- package/dist/types/components/internal/BusinessRegistrationNumber/types.d.ts +5 -3
- package/dist/types/components/internal/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +3 -0
- package/dist/types/components/internal/BusinessRegistrationNumberField/index.d.ts +1 -0
- package/dist/types/components/internal/BusinessRegistrationNumberField/types.d.ts +8 -0
- package/dist/types/components/internal/Button/types.d.ts +2 -2
- package/dist/types/components/internal/Card/Card.d.ts +1 -1
- package/dist/types/components/internal/Card/types.d.ts +2 -0
- package/dist/types/components/internal/ContractViewer/ContractViewer.d.ts +1 -0
- package/dist/types/components/internal/ContractViewer/types.d.ts +4 -83
- package/dist/types/components/internal/CountryField/CountryField.d.ts +2 -2
- package/dist/types/components/internal/CountryField/types.d.ts +1 -1
- package/dist/types/components/internal/CountryField/validate.d.ts +3 -0
- package/dist/types/components/internal/DateOfIncorporationField/DateOfIncorporationField.d.ts +3 -0
- package/dist/types/components/internal/DateOfIncorporationField/index.d.ts +1 -0
- package/dist/types/components/internal/DateOfIncorporationField/types.d.ts +5 -0
- package/dist/types/components/internal/DateOfIncorporationField/validate.d.ts +3 -0
- package/dist/types/components/internal/ErrorPanel/components/NavigateToFieldLink.d.ts +5 -4
- package/dist/types/components/internal/FormFields/Dropzone/FilePicker.d.ts +3 -2
- package/dist/types/components/internal/FormFields/Dropzone/types.d.ts +3 -7
- package/dist/types/components/internal/FormFields/Dropzone/validate.d.ts +2 -1
- package/dist/types/components/internal/FormFields/Field/Field.d.ts +2 -3
- package/dist/types/components/internal/FormFields/Field/types.d.ts +5 -2
- package/dist/types/components/internal/FormFields/InputBase.d.ts +2 -2
- package/dist/types/components/internal/FormFields/InputDate/utils.d.ts +1 -1
- package/dist/types/components/internal/FormFields/InputEmail.d.ts +2 -1
- package/dist/types/components/internal/FormFields/InputTelephone.d.ts +2 -1
- package/dist/types/components/internal/FormFields/InputText.d.ts +1 -1
- package/dist/types/components/internal/FormFields/MaskedInputText/MaskedInputText.d.ts +22 -0
- package/dist/types/components/internal/FormFields/RadioGroup/RadioGroup.d.ts +1 -8
- package/dist/types/components/internal/FormFields/RadioGroup/types.d.ts +3 -2
- package/dist/types/components/internal/FormFields/RadioGroupCard/RadioCard.d.ts +1 -1
- package/dist/types/components/internal/FormFields/RadioGroupCard/RadioCardSelect.d.ts +1 -1
- package/dist/types/components/internal/FormFields/RadioGroupCard/types.d.ts +5 -4
- package/dist/types/components/internal/FormFields/utils.d.ts +6 -1
- package/dist/types/components/internal/Iban/ibanValidator.d.ts +4 -2
- package/dist/types/components/internal/Iban/types.d.ts +2 -1
- package/dist/types/components/internal/IdFieldTypeSelector/CompanyRegistrationNumberTypeSelector.d.ts +11 -0
- package/dist/types/components/internal/IdFieldTypeSelector/IndividualIdNumberTypeSelector.d.ts +9 -0
- package/dist/types/components/internal/IdFieldTypeSelector/VatNumberTypeSelector.d.ts +9 -0
- package/dist/types/components/internal/IdFieldTypeSelector/countryIdNumberTypes.d.ts +90 -0
- package/dist/types/components/internal/LegalCompanyNameField/LegalCompanyNameField.d.ts +2 -3
- package/dist/types/components/internal/LegalCompanyNameField/types.d.ts +1 -1
- package/dist/types/components/internal/LegalCompanyNameField/validate.d.ts +3 -0
- package/dist/types/components/internal/Name/Name.d.ts +13 -1
- package/dist/types/components/internal/Remove/Remove.d.ts +1 -1
- package/dist/types/components/internal/Remove/types.d.ts +6 -4
- package/dist/types/components/internal/StateField/StateField.d.ts +2 -2
- package/dist/types/components/internal/StateField/types.d.ts +3 -1
- package/dist/types/components/internal/StateField/validate.d.ts +3 -0
- package/dist/types/components/internal/Status/Status.d.ts +1 -1
- package/dist/types/components/internal/Status/types.d.ts +2 -0
- package/dist/types/components/internal/StockExchangeMICField/StockExchangeMICField.d.ts +3 -0
- package/dist/types/components/internal/StockExchangeMICField/index.d.ts +1 -0
- package/dist/types/components/internal/StockExchangeMICField/types.d.ts +5 -0
- package/dist/types/components/internal/StockExchangeMICField/validate.d.ts +3 -0
- package/dist/types/components/internal/StockISINField/StockISINField.d.ts +3 -0
- package/dist/types/components/internal/StockISINField/index.d.ts +1 -0
- package/dist/types/components/internal/StockISINField/types.d.ts +5 -0
- package/dist/types/components/internal/StockISINField/validate.d.ts +3 -0
- package/dist/types/components/internal/Summary/Summary.d.ts +1 -1
- package/dist/types/components/internal/Summary/index.d.ts +1 -0
- package/dist/types/components/internal/Summary/types.d.ts +3 -1
- package/dist/types/components/internal/TaxId/rules.d.ts +2 -1
- package/dist/types/components/internal/TaxInformationField/TaxInformationField.d.ts +4 -0
- package/dist/types/components/internal/TaxInformationField/index.d.ts +1 -0
- package/dist/types/components/internal/TaxInformationField/types.d.ts +13 -0
- package/dist/types/components/internal/TaxInformationField/validate.d.ts +4 -0
- package/dist/types/components/internal/TradingNameField/TradingNameField.d.ts +3 -0
- package/dist/types/components/internal/TradingNameField/index.d.ts +1 -0
- package/dist/types/components/internal/TradingNameField/types.d.ts +8 -0
- package/dist/types/components/internal/TradingNameField/validate.d.ts +3 -0
- package/dist/types/components/internal/VatNumber/types.d.ts +3 -6
- package/dist/types/components/internal/VatNumber/validate.d.ts +2 -1
- package/dist/types/components/internal/VatNumber/vatNumberValidation.d.ts +4 -0
- package/dist/types/components/internal/VatNumberField/VatNumberField.d.ts +3 -0
- package/dist/types/components/internal/VatNumberField/index.d.ts +1 -0
- package/dist/types/components/internal/VatNumberField/types.d.ts +11 -0
- package/dist/types/components/internal/VatNumberField/validate.d.ts +4 -0
- package/dist/types/core/Context/AuthContext/AuthContext.d.ts +0 -1
- package/dist/types/core/Context/AuthContext/AuthProvider.d.ts +5 -2
- package/dist/types/core/Context/ConfigurationApiContext/ConfigurationApiContext.d.ts +3 -7
- package/dist/types/core/Context/ConfigurationApiContext/getEmbeddedApi.d.ts +1 -2
- package/dist/types/core/Context/CoreProvider.d.ts +2 -1
- package/dist/types/core/Context/ExperimentContext/types.d.ts +6 -2
- package/dist/types/core/Context/SettingsContext/types.d.ts +6 -2
- package/dist/types/core/Context/StateContext/StateProvider.d.ts +8 -4
- package/dist/types/core/Context/StateContext/types.d.ts +9 -7
- package/dist/types/core/Context/StateContext/useGlobalData.d.ts +7 -5
- package/dist/types/core/SDKValidation/index.d.ts +1 -1
- package/dist/types/core/Services/componentApi/create-legal-entity.d.ts +3 -0
- package/dist/types/core/Services/componentApi/delete-transferInstrument.d.ts +3 -0
- package/dist/types/core/Services/componentApi/get-address.d.ts +3 -0
- package/dist/types/core/Services/componentApi/get-bankVerification-vendor.d.ts +1 -1
- package/dist/types/core/Services/componentApi/get-idverification-token.d.ts +3 -0
- package/dist/types/core/Services/componentApi/get-supported-countries.d.ts +3 -0
- package/dist/types/core/Services/componentApi/idVerification-startcheck.d.ts +3 -0
- package/dist/types/core/Services/componentApi/index.d.ts +4 -1
- package/dist/types/core/Services/componentApi/search-address.d.ts +3 -0
- package/dist/types/core/Services/componentApi/update-legal-entity.d.ts +3 -0
- package/dist/types/core/Services/componentApi/validate-phone-number.d.ts +3 -0
- package/dist/types/core/Services/componentApi/verify-id-number.d.ts +3 -0
- package/dist/types/core/Services/http.d.ts +1 -0
- package/dist/types/core/Services/kycExternalApi/account-identification.d.ts +4 -0
- package/dist/types/core/Services/kycExternalApi/index.d.ts +1 -5
- package/dist/types/core/Services/session.d.ts +5 -0
- package/dist/types/core/Services/types.d.ts +1 -2
- package/dist/types/core/Services/utils.d.ts +3 -0
- package/dist/types/core/constants.d.ts +1 -0
- package/dist/types/core/core.d.ts +2 -1
- package/dist/types/core/errorMapping.d.ts +3 -1
- package/dist/types/core/hooks/introduction/useCanSeeIntroduction.d.ts +5 -0
- package/dist/types/core/hooks/introduction/useHasSeenIntroduction.d.ts +7 -0
- package/dist/types/core/hooks/introduction/useIntroductionScreens.d.ts +8 -0
- package/dist/types/core/hooks/introduction/useShouldShowIntroduction.d.ts +5 -0
- package/dist/types/core/hooks/types.d.ts +1 -0
- package/dist/types/core/hooks/useAccountHolder.d.ts +2 -0
- package/dist/types/core/hooks/useAllowedCountries.d.ts +2 -0
- package/dist/types/core/hooks/useAsyncAccountDetailsValidationRules.d.ts +3 -0
- package/dist/types/core/hooks/useBankConfigurationHandlers.d.ts +1 -1
- package/dist/types/core/hooks/useBusinessSetup.d.ts +22 -0
- package/dist/types/core/hooks/useBusinessTypeSelection.d.ts +2 -0
- package/dist/types/core/hooks/useCompanySearch/index.d.ts +1 -0
- package/dist/types/core/hooks/useCompanySearch/types.d.ts +42 -0
- package/dist/types/core/hooks/useCompanySearch/useCompanySearch.d.ts +5 -0
- package/dist/types/core/hooks/useCompanySearchTaskSubmit.d.ts +33 -0
- package/dist/types/core/hooks/useComponentApi.d.ts +7 -0
- package/dist/types/core/hooks/useDataMissingRemediations.d.ts +18 -0
- package/dist/types/core/hooks/useEnableNewEntryFlow.d.ts +1 -0
- package/dist/types/core/hooks/useExemptSettlor.d.ts +1 -1
- package/dist/types/core/hooks/useForm/types.d.ts +34 -10
- package/dist/types/core/hooks/useForm/useForm.d.ts +2 -1
- package/dist/types/core/hooks/useForm/utils.d.ts +12 -1
- package/dist/types/core/hooks/useFormComposer.d.ts +4 -5
- package/dist/types/core/hooks/useInterval.d.ts +4 -0
- package/dist/types/core/hooks/useIsElementVisible.d.ts +1 -0
- package/dist/types/core/hooks/useLegalEntityType.d.ts +6 -0
- package/dist/types/core/hooks/useLocalStorage.d.ts +5 -2
- package/dist/types/core/hooks/useScenarioConfiguration.d.ts +3 -1
- package/dist/types/core/models/api/accountIdentification.d.ts +1 -1
- package/dist/types/core/models/api/attachment.d.ts +3 -2
- package/dist/types/core/models/api/capability.d.ts +1 -1
- package/dist/types/core/models/api/company-search.d.ts +17 -35
- package/dist/types/core/models/api/individual.d.ts +1 -0
- package/dist/types/core/models/api/legal-entity.d.ts +3 -2
- package/dist/types/core/models/api/organization.d.ts +8 -8
- package/dist/types/core/models/api/transfer-instrument-reference.d.ts +2 -2
- package/dist/types/core/models/api/transfer-instrument.d.ts +5 -0
- package/dist/types/core/models/api/trusted-transferInstrument.d.ts +1 -0
- package/dist/types/core/models/api/verification-error.d.ts +2 -2
- package/dist/types/core/models/company.d.ts +7 -0
- package/dist/types/core/models/country-code.d.ts +1 -1
- package/dist/types/core/models/country-config.d.ts +9 -5
- package/dist/types/core/models/currency.d.ts +6 -3
- package/dist/types/core/models/decision-maker.d.ts +1 -1
- package/dist/types/core/models/errors/entity-problems.d.ts +4 -4
- package/dist/types/core/models/errors/validation-error.d.ts +4 -0
- package/dist/types/core/models/field-configurations.d.ts +5 -3
- package/dist/types/core/models/file.d.ts +8 -0
- package/dist/types/core/models/form-rules.d.ts +1 -0
- package/dist/types/core/models/form.d.ts +1 -0
- package/dist/types/core/models/identity.d.ts +3 -1
- package/dist/types/core/models/payout-account.d.ts +1 -1
- package/dist/types/core/models/province-code.d.ts +47 -0
- package/dist/types/core/models/state-code.d.ts +32 -1
- package/dist/types/core/process-field-configurations.d.ts +4 -2
- package/dist/types/core/types.d.ts +2 -1
- package/dist/types/core/user-events.d.ts +7 -6
- package/dist/types/language/Language.d.ts +3 -5
- package/dist/types/language/config.d.ts +221 -73
- package/dist/types/language/types.d.ts +5 -0
- package/dist/types/utils/accountHolderUtils.d.ts +4 -2
- package/dist/types/utils/api/documentUtils.d.ts +6 -4
- package/dist/types/utils/api/processCapabilitites.d.ts +3 -1
- package/dist/types/utils/company-util.d.ts +2 -1
- package/dist/types/utils/decision-maker-roles.d.ts +10 -19
- package/dist/types/utils/dropin-utils.d.ts +6 -6
- package/dist/types/utils/entity-association-util.d.ts +23 -17
- package/dist/types/utils/entity-status-util.d.ts +1 -3
- package/dist/types/utils/entriesOf.d.ts +1 -0
- package/dist/types/utils/file.d.ts +3 -3
- package/dist/types/utils/formUtils.d.ts +16 -8
- package/dist/types/utils/genUtils.d.ts +13 -10
- package/dist/types/utils/get-name.d.ts +2 -2
- package/dist/types/utils/get-task-status.d.ts +3 -3
- package/dist/types/utils/getFieldsWithExistingData.d.ts +2 -1
- package/dist/types/utils/makeArrayOfRepeatedObjects.d.ts +1 -0
- package/dist/types/utils/makeSelectItemForRole.d.ts +4 -0
- package/dist/types/utils/mapping/companySearch/index.d.ts +3 -0
- package/dist/types/utils/mapping/companySearch/mapCompanyDataResponseToFormSchema.d.ts +3 -0
- package/dist/types/utils/mapping/companySearch/mapCompanySearchSchemaToLegalEntity.d.ts +5 -0
- package/dist/types/utils/mapping/companySearch/mapLegalEntityToCompanySearchSchema.d.ts +4 -0
- package/dist/types/utils/mapping/componentApiMapping.d.ts +576 -14
- package/dist/types/utils/mapping/documentGuidanceMap.d.ts +1 -1
- package/dist/types/utils/mapping/mapping.d.ts +7 -3
- package/dist/types/utils/mapping/trustMembers/getTrustMembers.d.ts +1 -0
- package/dist/types/utils/masking/displayValueToPureValue.d.ts +10 -0
- package/dist/types/utils/masking/maskHelpers.d.ts +6 -0
- package/dist/types/utils/masking/maskTypes.d.ts +15 -0
- package/dist/types/utils/masking/masks/businessRegistrationNumberMasks.d.ts +256 -0
- package/dist/types/utils/masking/masks/vatNumberMasks.d.ts +4 -0
- package/dist/types/utils/masking/matchAgainstMask.d.ts +28 -0
- package/dist/types/utils/masking/transformers/types.d.ts +1 -0
- package/dist/types/utils/masking/transformers/uppercase.d.ts +2 -0
- package/dist/types/utils/payout-account-util.d.ts +9 -0
- package/dist/types/utils/perCountry.d.ts +5 -0
- package/dist/types/utils/regex/basePatterns.d.ts +1 -2
- package/dist/types/utils/regex/businessRegistrationNumberPatterns.d.ts +160 -2
- package/dist/types/utils/regex/countryIdNumberPatterns.d.ts +3 -0
- package/dist/types/utils/regex/index.d.ts +0 -2
- package/dist/types/utils/regex/patternValidators.d.ts +3 -0
- package/dist/types/utils/regex/vatNumberPatterns.d.ts +5 -3
- package/dist/types/utils/remove-object-empty-values.d.ts +1 -1
- package/dist/types/utils/roleMetadata.d.ts +13 -0
- package/dist/types/utils/sanitizeHtml.d.ts +3 -0
- package/dist/types/utils/scroll.d.ts +1 -1
- package/dist/types/utils/trust-util.d.ts +4 -25
- package/dist/types/utils/trustMembers/handlers/addOrUpdateAssociatedTrustMember.d.ts +6 -1
- package/dist/types/utils/trustMembers/handlers/createExemptSettlor.d.ts +4 -0
- package/dist/types/utils/trustMembers/handlers/updateExemptSettlorName.d.ts +4 -0
- package/dist/types/utils/useForwardRef.d.ts +2 -1
- package/dist/types/utils/validation/types.d.ts +10 -13
- package/dist/types/utils/validatorUtils.d.ts +6 -0
- package/package.json +8 -5
- package/dist/es/NZ-12ed2cb9.mjs +0 -47
- package/dist/types/components/EmbeddedDropins/TransferInstrumentComponent/TransferInstrumentComponent.d.ts +0 -10
- package/dist/types/components/PersonalDetails/component/IdentityComponent/IdentityAu/component/ProofOfIdentityCard.d.ts +0 -15
- package/dist/types/components/TaskIntros/TaskIntro.d.ts +0 -8
- package/dist/types/components/TaskIntros/TaskIntros.d.ts +0 -10
- package/dist/types/components/TaskIntros/copy.d.ts +0 -14
- package/dist/types/components/TaskIntros/types.d.ts +0 -8
- package/dist/types/components/internal/BusinessRegistrationNumber/formatters.d.ts +0 -4
- package/dist/types/components/internal/BusinessRegistrationNumber/validate.d.ts +0 -20
- package/dist/types/components/internal/ContractViewer/components/Chapter/Chapter.d.ts +0 -2
- package/dist/types/components/internal/ContractViewer/components/ContentElements/ContentElements.d.ts +0 -2
- package/dist/types/components/internal/ContractViewer/components/InternalReference/InternalReference.d.ts +0 -2
- package/dist/types/components/internal/ContractViewer/components/List/List.d.ts +0 -2
- package/dist/types/components/internal/ContractViewer/components/Paragraph/Paragraph.d.ts +0 -3
- package/dist/types/components/internal/ContractViewer/components/Section/Section.d.ts +0 -3
- package/dist/types/components/internal/ContractViewer/components/Table/Table.d.ts +0 -3
- package/dist/types/components/internal/ContractViewer/components/Text/Text.d.ts +0 -3
- package/dist/types/components/internal/ContractViewer/components/Weblink/Weblink.d.ts +0 -3
- package/dist/types/core/Services/auth/refresh-sdkToken.d.ts +0 -6
- package/dist/types/core/Services/kycExternalApi/company-deep-search.d.ts +0 -5
- package/dist/types/core/Services/kycExternalApi/company-index-search.d.ts +0 -5
- package/dist/types/core/Services/kycExternalApi/get-company-data.d.ts +0 -5
- package/dist/types/core/Services/kycExternalApi/refresh-company-data.d.ts +0 -5
- package/dist/types/core/Services/kycExternalApi/verify-tin.d.ts +0 -5
- package/dist/types/core/hooks/taskIntros.d.ts +0 -10
- package/dist/types/core/hooks/useSdkToken.d.ts +0 -5
- package/dist/types/openbankingsdk/OpenBankingSDK.d.ts +0 -14
- package/dist/types/openbankingsdk/types.d.ts +0 -22
- package/dist/types/utils/escapeHtml.d.ts +0 -3
- package/dist/types/utils/regex/trustRegistrationNumberPatterns.d.ts +0 -2
- package/dist/types/utils/regex/types.d.ts +0 -30
- /package/dist/types/core/Services/componentApi/{get-transfer-intsrument.d.ts → get-transfer-instrument.d.ts} +0 -0
|
@@ -4,17 +4,17 @@ export interface ButtonProps {
|
|
|
4
4
|
secondary?: boolean;
|
|
5
5
|
tertiary?: boolean;
|
|
6
6
|
ghost?: boolean;
|
|
7
|
+
className?: string;
|
|
7
8
|
positive?: boolean;
|
|
8
9
|
negative?: boolean;
|
|
9
|
-
className?: string;
|
|
10
10
|
labelHoverBox?: boolean;
|
|
11
11
|
role?: JSX.AriaRole;
|
|
12
12
|
small?: boolean;
|
|
13
13
|
block?: boolean;
|
|
14
14
|
circle?: boolean;
|
|
15
|
-
iconOnly?: boolean;
|
|
16
15
|
label?: string;
|
|
17
16
|
icon?: string;
|
|
17
|
+
iconOnly?: boolean;
|
|
18
18
|
title?: string;
|
|
19
19
|
disabled?: boolean;
|
|
20
20
|
type?: 'submit' | 'button';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import './_card.component.scss';
|
|
2
2
|
import { JSX } from 'preact';
|
|
3
3
|
import { CardProps } from './types';
|
|
4
|
-
export default function Card({ className, children, stateful, active, disabled, title, subTitle, onClick, onKeyDown, }: CardProps): JSX.Element;
|
|
4
|
+
export default function Card({ className, children, stateful, active, disabled, warning, warningMessage, title, subTitle, onClick, onKeyDown, }: CardProps): JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import './ContractViewer.scss';
|
|
2
|
+
import '@adyen/adyen-document-viewer/dist/adyen-document-viewer.min.css';
|
|
2
3
|
import { ContractViewerProps } from './types';
|
|
3
4
|
export default function ContractViewer({ contract, className, onExpandSection, }: ContractViewerProps): import("preact").JSX.Element;
|
|
@@ -1,85 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
Chapter = "chapter",
|
|
3
|
-
Section = "section",
|
|
4
|
-
Paragraph = "paragraph",
|
|
5
|
-
Text = "text",
|
|
6
|
-
Weblink = "weblink",
|
|
7
|
-
List = "list",
|
|
8
|
-
Table = "table",
|
|
9
|
-
InternalReference = "internalReference"
|
|
10
|
-
}
|
|
11
|
-
export declare enum TextStyle {
|
|
12
|
-
Bold = "BOLD",
|
|
13
|
-
Italic = "ITALIC"
|
|
14
|
-
}
|
|
15
|
-
export interface ContentElements {
|
|
16
|
-
contentElements: Element[];
|
|
17
|
-
}
|
|
18
|
-
export interface Element extends ContentElements {
|
|
19
|
-
type: ElementTypes;
|
|
20
|
-
}
|
|
21
|
-
export interface TopLevelElement {
|
|
22
|
-
isTopLevel?: boolean;
|
|
23
|
-
}
|
|
24
|
-
export type Contract = ContentElements & {
|
|
25
|
-
title: Text;
|
|
26
|
-
};
|
|
27
|
-
type Chapter = ContentElements & {
|
|
28
|
-
title: Text;
|
|
29
|
-
};
|
|
30
|
-
type Section = ContentElements & {
|
|
31
|
-
title: Text;
|
|
32
|
-
label: string;
|
|
33
|
-
};
|
|
34
|
-
type Paragraph = ContentElements;
|
|
35
|
-
type Text = {
|
|
36
|
-
content: string;
|
|
37
|
-
styles?: TextStyle[];
|
|
38
|
-
};
|
|
39
|
-
type Weblink = {
|
|
40
|
-
url: string;
|
|
41
|
-
displayText: Text;
|
|
42
|
-
};
|
|
43
|
-
type List = {
|
|
44
|
-
style: ListStyle;
|
|
45
|
-
items: ListItem[];
|
|
46
|
-
};
|
|
47
|
-
type ListStyle = {
|
|
48
|
-
ordered: boolean;
|
|
49
|
-
};
|
|
50
|
-
type ListItem = {
|
|
51
|
-
content: Element[];
|
|
52
|
-
subList: List;
|
|
53
|
-
};
|
|
54
|
-
type TableCell = {
|
|
55
|
-
elements: Element[];
|
|
56
|
-
};
|
|
57
|
-
type TableRow = TableCell[];
|
|
58
|
-
type Table = {
|
|
59
|
-
rows: TableRow[];
|
|
60
|
-
label: string;
|
|
61
|
-
captions: Element[];
|
|
62
|
-
titlePrefix: Text;
|
|
63
|
-
title: Text;
|
|
64
|
-
};
|
|
65
|
-
type InternalReference = {
|
|
66
|
-
referencedLabel: string;
|
|
67
|
-
displayText: Text;
|
|
68
|
-
};
|
|
69
|
-
type ContractViewerAnalytics = {
|
|
70
|
-
onExpandSection?: (title: string) => void;
|
|
71
|
-
};
|
|
1
|
+
import type { Document } from '@adyen/adyen-document-viewer/dist/types';
|
|
72
2
|
export type ContractViewerProps = {
|
|
73
|
-
contract:
|
|
3
|
+
contract: Document;
|
|
74
4
|
className?: string;
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
export type ChapterProps = Chapter;
|
|
78
|
-
export type SectionProps = Section & TopLevelElement;
|
|
79
|
-
export type ParagraphProps = Paragraph & TopLevelElement;
|
|
80
|
-
export type TextProps = Text;
|
|
81
|
-
export type WeblinkProps = Weblink;
|
|
82
|
-
export type ListProps = List;
|
|
83
|
-
export type TableProps = Table;
|
|
84
|
-
export type InternalReferenceProps = InternalReference;
|
|
85
|
-
export {};
|
|
5
|
+
onExpandSection?: (title: string) => void;
|
|
6
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { CountryFieldProps, CountryFieldSchema } from './types';
|
|
2
|
-
export declare const COUNTRY_FIELD: keyof CountryFieldSchema
|
|
3
|
-
export declare function CountryField({ data, valid,
|
|
2
|
+
export declare const COUNTRY_FIELD: Array<keyof CountryFieldSchema>;
|
|
3
|
+
export declare function CountryField({ data, valid, errors, labels, readonly, handleChangeFor, helperText, allowedCountries, classNameModifiers, }: CountryFieldProps): import("preact").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BaseFormFieldProps } from '../../../core/hooks/useForm';
|
|
2
2
|
import type { CountryCode } from '../../../core/models/country-code';
|
|
3
3
|
export interface CountryFieldSchema {
|
|
4
|
-
country
|
|
4
|
+
country?: CountryCode | undefined;
|
|
5
5
|
}
|
|
6
6
|
export interface CountryFieldProps extends BaseFormFieldProps<CountryFieldSchema> {
|
|
7
7
|
allowedCountries?: readonly CountryCode[];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { DateOfIncorporationFieldProps, DateOfIncorporationFieldSchema } from './types';
|
|
2
|
+
export declare const DATE_OF_INCORPORATION_FIELD: Array<keyof DateOfIncorporationFieldSchema>;
|
|
3
|
+
export declare function DateOfIncorporationField({ data, valid, errors, labels, placeholders, readonly, handleChangeFor, }: DateOfIncorporationFieldProps): import("preact").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DateOfIncorporationField';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { BaseFormFieldProps } from '../../../core/hooks/useForm/types';
|
|
2
|
+
export interface DateOfIncorporationFieldSchema {
|
|
3
|
+
dateOfIncorporation?: string | undefined;
|
|
4
|
+
}
|
|
5
|
+
export type DateOfIncorporationFieldProps = BaseFormFieldProps<DateOfIncorporationFieldSchema>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
fieldName:
|
|
3
|
-
label:
|
|
4
|
-
}
|
|
1
|
+
interface NavigateToFieldLinkProps {
|
|
2
|
+
fieldName: string;
|
|
3
|
+
label: string;
|
|
4
|
+
}
|
|
5
|
+
declare const NavigateToFieldLink: ({ fieldName, label }: NavigateToFieldLinkProps) => import("preact").JSX.Element;
|
|
5
6
|
export default NavigateToFieldLink;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import './Dropzone.scss';
|
|
2
2
|
import { JSX } from 'preact';
|
|
3
|
+
import { FileSchema } from '../../../../core/models/file';
|
|
3
4
|
import { TranslationKey } from '../../../../language/types';
|
|
4
5
|
import { FileValidationOptions } from './validate';
|
|
5
6
|
export interface FilePickerProps extends FileValidationOptions {
|
|
6
|
-
files:
|
|
7
|
-
setFiles: (files:
|
|
7
|
+
files: FileSchema[];
|
|
8
|
+
setFiles: (files: FileSchema[]) => void;
|
|
8
9
|
isValid: boolean;
|
|
9
10
|
errorMessage?: TranslationKey;
|
|
10
11
|
multiple?: boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FileSchema } from '../../../../core/models/file';
|
|
1
2
|
import { TranslationKey } from '../../../../language/types';
|
|
2
3
|
import { FileValidationOptions } from './validate';
|
|
3
4
|
export interface DropzoneProps extends Partial<FileValidationOptions> {
|
|
@@ -8,18 +9,13 @@ export interface DropzoneProps extends Partial<FileValidationOptions> {
|
|
|
8
9
|
defaultData?: any;
|
|
9
10
|
multiple?: boolean;
|
|
10
11
|
required?: boolean;
|
|
11
|
-
onChange?: (files:
|
|
12
|
+
onChange?: (files: File[]) => void;
|
|
12
13
|
id?: string;
|
|
13
14
|
iconPrefix?: string;
|
|
14
15
|
shouldValidate?: boolean;
|
|
15
16
|
}
|
|
16
|
-
export interface DropzoneSchema {
|
|
17
|
-
files?: File[];
|
|
18
|
-
front?: File[];
|
|
19
|
-
back?: File[];
|
|
20
|
-
}
|
|
21
17
|
export interface DropzoneFileProps {
|
|
22
|
-
file:
|
|
18
|
+
file: FileSchema;
|
|
23
19
|
errorMessage?: TranslationKey;
|
|
24
20
|
onDelete: () => void;
|
|
25
21
|
iconPrefix?: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FileSchema } from '../../../../core/models/file';
|
|
1
2
|
import { ValidatorRule } from '../../../../utils/validation/types';
|
|
2
3
|
export interface FileValidationOptions {
|
|
3
4
|
allowedFileTypes: string[];
|
|
@@ -6,4 +7,4 @@ export interface FileValidationOptions {
|
|
|
6
7
|
isOptional: boolean;
|
|
7
8
|
}
|
|
8
9
|
export declare const defaultFileValidationOptions: FileValidationOptions;
|
|
9
|
-
export declare const fileValidationRules: ({ allowedFileTypes, maxNumberOfFiles, maxSize, isOptional, }: FileValidationOptions) => Array<ValidatorRule<
|
|
10
|
+
export declare const fileValidationRules: ({ allowedFileTypes, maxNumberOfFiles, maxSize, isOptional, }: FileValidationOptions) => Array<ValidatorRule<FileSchema[] | undefined, any>>;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import './Field.scss';
|
|
2
|
-
import { ComponentProps } from 'preact';
|
|
3
|
-
import { FC } from 'preact/compat';
|
|
2
|
+
import { ComponentProps, JSX } from 'preact';
|
|
4
3
|
import { FieldProps } from './types';
|
|
5
4
|
export type MaybeLabelElementProps = (ComponentProps<'label'> & {
|
|
6
5
|
useLabelElement: true;
|
|
7
6
|
}) | (ComponentProps<'div'> & {
|
|
8
7
|
useLabelElement: false;
|
|
9
8
|
});
|
|
10
|
-
declare const Field:
|
|
9
|
+
declare const Field: ({ className, classNameModifiers, children, dataPlaceholder, disabled, errorMessage, filled, focused, helper, inputWrapperModifiers, isLoading, isValid, label, name, onBlur, onFieldBlur, onFocus, onFocusField, showErrorIconBottom, useLabelElement, helperPosition, wrapperRef, }: FieldProps) => JSX.Element;
|
|
11
10
|
export default Field;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ComponentChildren } from 'preact';
|
|
1
|
+
import { ComponentChildren, JSX } from 'preact';
|
|
2
2
|
import { ChangeEventHandler } from 'preact/compat';
|
|
3
|
+
import { MutableRef } from 'preact/hooks';
|
|
3
4
|
import { TranslationKey } from '../../../../language/types';
|
|
4
5
|
export interface FieldChildProps {
|
|
5
6
|
isInvalid: boolean;
|
|
@@ -18,7 +19,7 @@ export interface FieldProps {
|
|
|
18
19
|
errorMessage?: TranslationKey | string | boolean | null;
|
|
19
20
|
filled?: boolean;
|
|
20
21
|
focused?: boolean;
|
|
21
|
-
helper?: string;
|
|
22
|
+
helper?: string | JSX.Element;
|
|
22
23
|
inputWrapperModifiers?: string[];
|
|
23
24
|
isLoading?: boolean;
|
|
24
25
|
isValid?: boolean;
|
|
@@ -30,4 +31,6 @@ export interface FieldProps {
|
|
|
30
31
|
onFocusField?: ChangeEventHandler<EventTarget>;
|
|
31
32
|
showErrorIconBottom?: boolean;
|
|
32
33
|
useLabelElement?: boolean;
|
|
34
|
+
helperPosition?: 'above' | 'below';
|
|
35
|
+
wrapperRef?: MutableRef<HTMLDivElement>;
|
|
33
36
|
}
|
|
@@ -13,13 +13,13 @@ export interface InputBaseProps extends ComponentProps<'input'> {
|
|
|
13
13
|
uniqueId?: string;
|
|
14
14
|
className?: string;
|
|
15
15
|
trimOnBlur?: boolean;
|
|
16
|
-
onInput
|
|
16
|
+
onInput: (event: JSX.TargetedEvent<HTMLInputElement>) => void;
|
|
17
17
|
onBlur?: (event: JSX.TargetedFocusEvent<HTMLInputElement>) => void;
|
|
18
18
|
onBlurHandler?: (event: JSX.TargetedFocusEvent<HTMLInputElement>) => void;
|
|
19
19
|
onFocusHandler?: (event: JSX.TargetedFocusEvent<HTMLInputElement>) => void;
|
|
20
20
|
onChange?: never;
|
|
21
21
|
}
|
|
22
|
-
declare const InputBase: import("preact").FunctionalComponent<
|
|
22
|
+
declare const InputBase: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<InputBaseProps> & {
|
|
23
23
|
ref?: import("preact").Ref<HTMLInputElement>;
|
|
24
24
|
}>;
|
|
25
25
|
export default InputBase;
|
|
@@ -17,6 +17,6 @@ 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;
|
|
20
|
+
declare const unformatDate: (value?: string) => string | null;
|
|
21
21
|
declare const formatDateObj: (date: Date) => string;
|
|
22
22
|
export { checkDateInputSupport, formatDate, formatDateObj, unformatDate };
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { InputBaseProps } from './InputBase';
|
|
2
|
+
export default function InputEmail(props: InputBaseProps): import("preact").JSX.Element;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { InputBaseProps } from './InputBase';
|
|
2
|
+
export default function InputTelephone(props: InputBaseProps): import("preact").JSX.Element;
|
|
@@ -2,7 +2,7 @@ import { InputBaseProps } from './InputBase';
|
|
|
2
2
|
interface InputTextProps extends InputBaseProps {
|
|
3
3
|
transformInput?: (input: string) => string;
|
|
4
4
|
}
|
|
5
|
-
declare const InputText: import("preact").FunctionalComponent<
|
|
5
|
+
declare const InputText: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<InputTextProps> & {
|
|
6
6
|
ref?: import("preact").Ref<HTMLInputElement>;
|
|
7
7
|
}>;
|
|
8
8
|
export default InputText;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import './MaskedInputText.scss';
|
|
2
|
+
import { JSX } from 'preact';
|
|
3
|
+
import { MaskSettings } from '../../../../core/hooks/useForm';
|
|
4
|
+
import { MismatchResult } from '../../../../utils/masking/matchAgainstMask';
|
|
5
|
+
export interface MaskedInputTextProps extends MaskSettings {
|
|
6
|
+
value: string;
|
|
7
|
+
onInput: (value: string) => void;
|
|
8
|
+
onBlur?: (event: JSX.TargetedFocusEvent<HTMLInputElement>) => void;
|
|
9
|
+
onMismatch?: (mismatch: MismatchResult) => void;
|
|
10
|
+
isValid: boolean;
|
|
11
|
+
errorMessage?: string | boolean;
|
|
12
|
+
label: string;
|
|
13
|
+
name: string;
|
|
14
|
+
formatGuidance: string;
|
|
15
|
+
readonly?: boolean;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
classNameModifiers?: {
|
|
18
|
+
field?: string[];
|
|
19
|
+
input?: string[];
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export declare const MaskedInputText: ({ value, onInput, onBlur, onMismatch: onMismatchExternal, isValid: validationIsValid, errorMessage, mask, name, label, transformOnType, readonly, disabled, formatGuidance, classNameModifiers, }: MaskedInputTextProps) => JSX.Element;
|
|
@@ -1,10 +1,3 @@
|
|
|
1
1
|
import './RadioGroup.scss';
|
|
2
2
|
import { RadioGroupProps } from './types';
|
|
3
|
-
|
|
4
|
-
declare namespace RadioGroup {
|
|
5
|
-
var defaultProps: {
|
|
6
|
-
onChange: () => void;
|
|
7
|
-
items: any[];
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
export default RadioGroup;
|
|
3
|
+
export default function RadioGroup({ items, i18n, name, onChange, value, isInvalid, uniqueId, className, disabled, }: RadioGroupProps): import("preact").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TargetedEvent } from 'preact/compat';
|
|
1
2
|
import Language from '../../../../language/Language';
|
|
2
3
|
import { TranslationKey } from '../../../../language/types';
|
|
3
4
|
interface RadioGroupItem {
|
|
@@ -7,10 +8,10 @@ interface RadioGroupItem {
|
|
|
7
8
|
export interface RadioGroupProps {
|
|
8
9
|
className?: string;
|
|
9
10
|
isInvalid?: boolean;
|
|
10
|
-
items: RadioGroupItem[];
|
|
11
|
+
items: readonly RadioGroupItem[];
|
|
11
12
|
i18n: Language;
|
|
12
13
|
name?: string;
|
|
13
|
-
onChange: (e:
|
|
14
|
+
onChange: (e: TargetedEvent<HTMLInputElement>) => void;
|
|
14
15
|
value?: string;
|
|
15
16
|
uniqueId?: string;
|
|
16
17
|
disabled?: boolean;
|
|
@@ -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, labelClassName, className, disabled, icon, body, footer, }: RadioCardProps) => import("preact").JSX.Element;
|
|
3
|
+
export declare const RadioCard: ({ optionId, optionName, optionDescription, optionSubtitle, name, uniqueId, isInvalid, isSelected, onSelect, labelClassName, className, disabled, loading, icon, body, footer, }: RadioCardProps) => import("preact").JSX.Element;
|
|
@@ -12,7 +12,7 @@ export interface RadioCardSelectProps<OptionType> {
|
|
|
12
12
|
isOptionDisabled?: (option: OptionType) => boolean;
|
|
13
13
|
optionId: (option: OptionType) => string;
|
|
14
14
|
optionName: (option: OptionType) => TranslationKey;
|
|
15
|
-
optionDescription
|
|
15
|
+
optionDescription?: (option: OptionType) => TranslationKey | undefined;
|
|
16
16
|
optionSubtitle?: (option: OptionType) => TranslationKey | undefined;
|
|
17
17
|
renderOptionIcon?: (option: OptionType) => ComponentChildren;
|
|
18
18
|
renderOptionBody?: (option: OptionType) => ComponentChildren;
|
|
@@ -2,7 +2,7 @@ import { ComponentChildren } from 'preact';
|
|
|
2
2
|
import { TranslationKey } from '../../../../language/types';
|
|
3
3
|
export interface RadioGroupCardItem {
|
|
4
4
|
name: TranslationKey;
|
|
5
|
-
description
|
|
5
|
+
description?: TranslationKey;
|
|
6
6
|
id: string;
|
|
7
7
|
subtitle?: TranslationKey;
|
|
8
8
|
}
|
|
@@ -23,9 +23,9 @@ export interface RadioGroupCardProps {
|
|
|
23
23
|
}
|
|
24
24
|
export interface RadioCardProps {
|
|
25
25
|
optionId: string;
|
|
26
|
-
optionName: TranslationKey;
|
|
27
|
-
optionDescription
|
|
28
|
-
optionSubtitle?: TranslationKey;
|
|
26
|
+
optionName: TranslationKey | string;
|
|
27
|
+
optionDescription?: TranslationKey | string;
|
|
28
|
+
optionSubtitle?: TranslationKey | string;
|
|
29
29
|
name?: string;
|
|
30
30
|
className?: string;
|
|
31
31
|
uniqueId: string;
|
|
@@ -34,6 +34,7 @@ export interface RadioCardProps {
|
|
|
34
34
|
onSelect: () => void;
|
|
35
35
|
labelClassName?: string;
|
|
36
36
|
disabled?: boolean;
|
|
37
|
+
loading?: boolean;
|
|
37
38
|
icon?: ComponentChildren;
|
|
38
39
|
footer?: ComponentChildren;
|
|
39
40
|
body?: ComponentChildren;
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Replaces full-width Latin characters with regular (half-width) characters.
|
|
3
|
+
*
|
|
4
|
+
* E.g. `test@email123.com` -> `test@email123.com`
|
|
5
|
+
*/
|
|
6
|
+
declare const convertFullToHalf: (str: string) => string;
|
|
2
7
|
export { convertFullToHalf };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CountryCode } from '../../../core/models/country-code';
|
|
2
|
+
import { Translatable } from '../../../language/types';
|
|
3
|
+
import { FormatRules } from '../../../utils/validation/types';
|
|
2
4
|
import { IbanSchema } from './types';
|
|
3
|
-
export declare function ibanValidator(input: string | undefined | null, bankCountries:
|
|
5
|
+
export declare function ibanValidator(input: string | undefined | null, bankCountries: CountryCode[]): Translatable | undefined;
|
|
4
6
|
export declare const ibanFormatter: FormatRules<IbanSchema>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { BaseInnerFormProps } from '../../../core/hooks/useForm';
|
|
2
|
+
import { CountryCode } from '../../../core/models/country-code';
|
|
2
3
|
export interface IbanSchema {
|
|
3
4
|
iban?: string;
|
|
4
5
|
}
|
|
5
6
|
export interface IbanProps extends BaseInnerFormProps<IbanSchema> {
|
|
6
|
-
country:
|
|
7
|
+
country: CountryCode;
|
|
7
8
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CompanyTypesValue } from '../../../core/models/api/company-types-value';
|
|
2
|
+
import { CountryCode } from '../../../core/models/country-code';
|
|
3
|
+
import { CompanyRegistrationNumberType } from './countryIdNumberTypes';
|
|
4
|
+
interface CompanyRegistrationNumberTypeSelectorProps {
|
|
5
|
+
country: CountryCode;
|
|
6
|
+
companyType: CompanyTypesValue;
|
|
7
|
+
selected: CompanyRegistrationNumberType;
|
|
8
|
+
setSelected: (type: CompanyRegistrationNumberType) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function CompanyRegistrationNumberTypeSelector({ country, companyType, selected, setSelected, }: CompanyRegistrationNumberTypeSelectorProps): import("preact").JSX.Element;
|
|
11
|
+
export {};
|
package/dist/types/components/internal/IdFieldTypeSelector/IndividualIdNumberTypeSelector.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CountryCode } from '../../../core/models/country-code';
|
|
2
|
+
import { IndividualIdNumberType } from './countryIdNumberTypes';
|
|
3
|
+
interface IndividualIdNumberTypeSelectorProps {
|
|
4
|
+
country: CountryCode;
|
|
5
|
+
selected: IndividualIdNumberType;
|
|
6
|
+
setSelected: (type: IndividualIdNumberType) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function IndividualIdNumberTypeSelector({ country, selected, setSelected, }: IndividualIdNumberTypeSelectorProps): import("preact").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CountryCode } from '../../../core/models/country-code';
|
|
2
|
+
import { TaxIdNumberType } from './countryIdNumberTypes';
|
|
3
|
+
interface TaxIdNumberTypeSelectorProps {
|
|
4
|
+
country: CountryCode;
|
|
5
|
+
selected: TaxIdNumberType;
|
|
6
|
+
setSelected: (type: TaxIdNumberType) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function TaxIdNumberTypeSelector({ country, selected, setSelected, }: TaxIdNumberTypeSelectorProps): import("preact").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { CompanyTypesValue } from '../../../core/models/api/company-types-value';
|
|
2
|
+
import { TranslationKey } from '../../../language/types';
|
|
3
|
+
export interface CompanyRegistrationNumberOption {
|
|
4
|
+
id: string;
|
|
5
|
+
name: TranslationKey;
|
|
6
|
+
applicableOnlyFor?: readonly CompanyTypesValue[];
|
|
7
|
+
}
|
|
8
|
+
export interface IndividualIdNumberOption {
|
|
9
|
+
id: string;
|
|
10
|
+
name: TranslationKey;
|
|
11
|
+
}
|
|
12
|
+
export interface TaxIdNumberOption {
|
|
13
|
+
id: string;
|
|
14
|
+
name: TranslationKey;
|
|
15
|
+
}
|
|
16
|
+
export declare const companyRegistrationNumberOptions: {
|
|
17
|
+
readonly PL: readonly [{
|
|
18
|
+
readonly id: "regon";
|
|
19
|
+
readonly name: "regon";
|
|
20
|
+
}, {
|
|
21
|
+
readonly id: "krsNumber";
|
|
22
|
+
readonly name: "krsNumber";
|
|
23
|
+
}];
|
|
24
|
+
readonly IT: readonly [{
|
|
25
|
+
readonly id: "codiceFiscale";
|
|
26
|
+
readonly name: "codiceFiscale";
|
|
27
|
+
}, {
|
|
28
|
+
readonly id: "CCIAA";
|
|
29
|
+
readonly name: "CCIAA";
|
|
30
|
+
}];
|
|
31
|
+
readonly AT: readonly [{
|
|
32
|
+
readonly id: "firmenbuchnummer";
|
|
33
|
+
readonly name: "firmenbuchnummer";
|
|
34
|
+
}, {
|
|
35
|
+
readonly id: "ZVR";
|
|
36
|
+
readonly name: "zentralesVereinsregisterId";
|
|
37
|
+
readonly applicableOnlyFor: readonly [CompanyTypesValue.NON_PROFIT_OR_CHARITABLE];
|
|
38
|
+
}];
|
|
39
|
+
readonly FR: readonly [{
|
|
40
|
+
readonly id: "SIRET";
|
|
41
|
+
readonly name: "siret";
|
|
42
|
+
}, {
|
|
43
|
+
readonly id: "RNA";
|
|
44
|
+
readonly name: "rnaNumber";
|
|
45
|
+
readonly applicableOnlyFor: readonly [CompanyTypesValue.NON_PROFIT_OR_CHARITABLE];
|
|
46
|
+
}];
|
|
47
|
+
readonly NZ: readonly [{
|
|
48
|
+
readonly id: "NZBN";
|
|
49
|
+
readonly name: "NZBN";
|
|
50
|
+
}, {
|
|
51
|
+
readonly id: "companyNumberNZ";
|
|
52
|
+
readonly name: "companyNumberNZ";
|
|
53
|
+
readonly applicableOnlyFor: readonly [CompanyTypesValue.PRIVATE_COMPANY, CompanyTypesValue.PUBLIC_COMPANY, CompanyTypesValue.UNLISTED_PUBLIC_COMPANY];
|
|
54
|
+
}];
|
|
55
|
+
};
|
|
56
|
+
export type CompanyRegistrationNumberType = (typeof companyRegistrationNumberOptions)[keyof typeof companyRegistrationNumberOptions][number]['id'];
|
|
57
|
+
export declare const individualIdNumberOptions: {
|
|
58
|
+
readonly ES: readonly [{
|
|
59
|
+
readonly id: "dni";
|
|
60
|
+
readonly name: "dni";
|
|
61
|
+
}, {
|
|
62
|
+
readonly id: "nie";
|
|
63
|
+
readonly name: "nie";
|
|
64
|
+
}];
|
|
65
|
+
};
|
|
66
|
+
export type IndividualIdNumberType = (typeof individualIdNumberOptions)[keyof typeof individualIdNumberOptions][number]['id'];
|
|
67
|
+
export declare const taxIdNumberOptions: {
|
|
68
|
+
readonly DK: readonly [{
|
|
69
|
+
readonly id: "momsregistreringsnummerCVR";
|
|
70
|
+
readonly name: "momsregistreringsnummerCVR";
|
|
71
|
+
}, {
|
|
72
|
+
readonly id: "stamregister";
|
|
73
|
+
readonly name: "stamregister";
|
|
74
|
+
}];
|
|
75
|
+
readonly FR: readonly [{
|
|
76
|
+
readonly id: "numeroDIdentificationALATaxe";
|
|
77
|
+
readonly name: "numeroDIdentificationALATaxe";
|
|
78
|
+
}, {
|
|
79
|
+
readonly id: "NumeroDeTVA";
|
|
80
|
+
readonly name: "NumeroDeTVA";
|
|
81
|
+
}];
|
|
82
|
+
readonly SG: readonly [{
|
|
83
|
+
readonly id: "gst";
|
|
84
|
+
readonly name: "gst";
|
|
85
|
+
}, {
|
|
86
|
+
readonly id: "uen";
|
|
87
|
+
readonly name: "uen";
|
|
88
|
+
}];
|
|
89
|
+
};
|
|
90
|
+
export type TaxIdNumberType = (typeof taxIdNumberOptions)[keyof typeof taxIdNumberOptions][number]['id'];
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { JSX } from 'preact';
|
|
2
1
|
import { LegalCompanyNameFieldProps, LegalCompanyNameFieldSchema } from './types';
|
|
3
|
-
export declare const LEGAL_COMPANY_NAME_FIELD: keyof LegalCompanyNameFieldSchema
|
|
4
|
-
export declare function LegalCompanyNameField({ data, valid,
|
|
2
|
+
export declare const LEGAL_COMPANY_NAME_FIELD: Array<keyof LegalCompanyNameFieldSchema>;
|
|
3
|
+
export declare function LegalCompanyNameField({ data, valid, errors, labels, helperText, readonly, handleChangeFor, }: LegalCompanyNameFieldProps): import("preact").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BaseFormFieldProps } from '../../../core/hooks/useForm/types';
|
|
2
2
|
export interface LegalCompanyNameFieldSchema {
|
|
3
|
-
legalCompanyName
|
|
3
|
+
legalCompanyName?: string | undefined;
|
|
4
4
|
}
|
|
5
5
|
export type LegalCompanyNameFieldProps = BaseFormFieldProps<LegalCompanyNameFieldSchema>;
|
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
import { NameProps, NameSchema } from './types';
|
|
2
2
|
export declare const nameFields: Array<keyof NameSchema>;
|
|
3
|
-
declare
|
|
3
|
+
declare function NameComponent(props: NameProps): import("preact/compat").JSX.Element;
|
|
4
|
+
declare namespace NameComponent {
|
|
5
|
+
var defaultProps: {
|
|
6
|
+
data: {};
|
|
7
|
+
onChange: () => void;
|
|
8
|
+
visibility: string;
|
|
9
|
+
validationRules: Partial<{
|
|
10
|
+
firstName?: import("../../../utils/validation/types").ValidatorRule<string, NameSchema> | import("../../../utils/validation/types").ValidatorRule<string, NameSchema>[];
|
|
11
|
+
lastName?: import("../../../utils/validation/types").ValidatorRule<string, NameSchema> | import("../../../utils/validation/types").ValidatorRule<string, NameSchema>[];
|
|
12
|
+
}>;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
declare const Name: typeof NameComponent;
|
|
4
16
|
export default Name;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../Link/_link.component.scss';
|
|
2
2
|
import { JSX } from 'preact';
|
|
3
3
|
import { RemoveProps } from './types';
|
|
4
|
-
export declare const Remove: ({ onRemove, onRemoveStatusChange, isRemoveDisabled, handleIsRemoveDisabled, }: RemoveProps) => JSX.Element;
|
|
4
|
+
export declare const Remove: ({ onRemove, onRemoveStatusChange, isRemoveDisabled, handleIsRemoveDisabled, label, }: RemoveProps) => JSX.Element;
|