@adyen/kyc-components 1.6.2 → 2.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/README.md +56 -50
- package/dist/es/adyen-kyc-components.es.js +26368 -0
- package/dist/es/package.json +3 -0
- package/dist/mockServiceWorker.js +302 -0
- package/dist/style.css +97917 -0
- package/dist/types/components/AutoResizer.d.ts +6 -0
- package/dist/types/components/BankVerification/BankVerification.d.ts +1 -1
- package/dist/types/components/BankVerification/types.d.ts +12 -4
- package/dist/types/components/BankVerification/verification/widget/component/BankVerificationWidget.d.ts +8 -8
- package/dist/types/components/BankVerification/verification/widget/iframeWidget.d.ts +12 -5
- package/dist/types/components/BaseElement.d.ts +12 -33
- package/dist/types/components/Company/component/CompanyComponent.d.ts +1 -1
- package/dist/types/components/Company/labels.d.ts +3 -2
- package/dist/types/components/Company/rules.d.ts +7 -1
- package/dist/types/components/Company/types.d.ts +17 -16
- package/dist/types/components/CompanyDetails/component/CompanyDetailsComponent.d.ts +1 -1
- package/dist/types/components/CompanyDetails/types.d.ts +6 -5
- package/dist/types/components/CompanyDetails/validate.d.ts +1 -1
- package/dist/types/components/CompanyNameAndCountry/types.d.ts +5 -3
- package/dist/types/components/CompanyNameAndCountry/validate.d.ts +1 -1
- package/dist/types/components/CompanyType/component/CompanyTypeComponent.d.ts +1 -1
- package/dist/types/components/CompanyType/types.d.ts +6 -4
- package/dist/types/components/CompanyType/validate.d.ts +1 -1
- package/dist/types/components/ConstitutionalDocument/ConstitutionalDocumentComponent.d.ts +7 -11
- package/dist/types/components/ConstitutionalDocument/types.d.ts +1 -1
- package/dist/types/components/ContactDetails/types.d.ts +3 -2
- package/dist/types/components/ContactDetails/validate.d.ts +1 -1
- package/dist/types/components/DecisionMakers/component/DecisionMakersComponent.d.ts +2 -3
- package/dist/types/components/DecisionMakers/types.d.ts +4 -4
- package/dist/types/components/DocumentUpload/types.d.ts +5 -5
- package/dist/types/components/Dropins/CompanyDropin/index.d.ts +0 -1
- package/dist/types/components/Dropins/DropinLayout/ActionBar/ActionBar.d.ts +1 -1
- package/dist/types/components/Dropins/DropinLayout/ActionBar/type.d.ts +1 -1
- package/dist/types/components/Dropins/FormComposer/FormComposer.d.ts +20 -21
- package/dist/types/components/Dropins/FormComposer/components/FormNavigation/FormNavigation.d.ts +1 -1
- package/dist/types/components/Dropins/FormComposer/components/FormNavigation/components/FormNavigationItem/FormNavigationItem.d.ts +1 -1
- package/dist/types/components/Dropins/FormComposer/components/FormNavigation/types.d.ts +7 -7
- package/dist/types/components/Dropins/FormComposer/types.d.ts +2 -2
- package/dist/types/components/Dropins/IndividualDropin/index.d.ts +0 -1
- package/dist/types/components/Dropins/PayoutDetailsDropin/components/PayoutDetailsDropinComponent.d.ts +2 -2
- package/dist/types/components/Dropins/PciDropin/components/PciDropinComponent.d.ts +1 -1
- package/dist/types/components/Dropins/PciDropin/types.d.ts +1 -1
- package/dist/types/components/Dropins/PciDropin/validate.d.ts +3 -0
- package/dist/types/components/Dropins/RoleAndTypeDropin/components/RoleAndTypeComponent.d.ts +0 -2
- package/dist/types/components/Dropins/RoleAndTypeDropin/types.d.ts +13 -4
- package/dist/types/components/Dropins/ServiceAgreementDropinComponent/components/ServiceAgreementDropinComponent.d.ts +1 -1
- package/dist/types/components/Dropins/ServiceAgreementDropinComponent/components/useServiceAgreement.d.ts +22 -0
- package/dist/types/components/Dropins/ServiceAgreementDropinComponent/types.d.ts +16 -5
- package/dist/types/components/Dropins/ServiceAgreementDropinComponent/validate.d.ts +3 -0
- package/dist/types/components/Dropins/SolePropDropin/index.d.ts +0 -1
- package/dist/types/components/Dropins/TrustDropin/index.d.ts +0 -1
- package/dist/types/components/Dropins/types.d.ts +30 -19
- package/dist/types/components/EventEmitter.d.ts +17 -4
- package/dist/types/components/IdDocumentUpload/component/IdDocumentAlreadyUpload.d.ts +3 -0
- package/dist/types/components/IdDocumentUpload/component/IdDocumentInstantVerificationComponent.d.ts +5 -0
- package/dist/types/components/IdDocumentUpload/component/IdDocumentManualUpload.d.ts +6 -0
- package/dist/types/components/IdDocumentUpload/component/IdDocumentUploadComponent.d.ts +2 -4
- package/dist/types/components/IdDocumentUpload/types.d.ts +22 -19
- package/dist/types/components/IdVerification/component/IdVerificationComponent.d.ts +1 -2
- package/dist/types/components/IdVerification/types.d.ts +4 -16
- package/dist/types/components/IdVerificationMethod/IdVerificationMethodComponent.d.ts +3 -2
- package/dist/types/components/IdVerificationMethod/idVerificationMethodMetadata.d.ts +14 -0
- package/dist/types/components/IdVerificationMethod/types.d.ts +7 -3
- package/dist/types/components/IdentityAu/additionalIdentityInfoSchema.d.ts +2 -2
- package/dist/types/components/IdentityAu/component/DriversLicense.d.ts +3 -3
- package/dist/types/components/IdentityAu/component/IdentityAuComponent.d.ts +1 -1
- package/dist/types/components/IdentityAu/component/PassportNumber.d.ts +3 -3
- package/dist/types/components/IdentityAu/component/ProofOfIdentityCard.d.ts +2 -2
- package/dist/types/components/IdentityAu/component/TypeOfIdentity.d.ts +5 -5
- package/dist/types/components/IdentityAu/types.d.ts +10 -0
- package/dist/types/components/IdentityAu/validate.d.ts +2 -2
- package/dist/types/components/IdentityNumber/component/IdentityNumberComponent.d.ts +2 -3
- package/dist/types/components/IdentityNumber/formats.d.ts +9 -6
- package/dist/types/components/IdentityNumber/type.d.ts +7 -7
- package/dist/types/components/IdentityNumber/validate.d.ts +17 -6
- package/dist/types/components/Individual/component/IndividualComponent.d.ts +1 -1
- package/dist/types/components/Individual/rules.d.ts +6 -4
- package/dist/types/components/Individual/types.d.ts +18 -20
- package/dist/types/components/LegalEntityTypeSwitcher/LegalEntityTypeSwitcher.d.ts +1 -1
- package/dist/types/components/PayoutAccount/types.d.ts +12 -10
- package/dist/types/components/PayoutBankStatement/component/BankDocumentRequirements.d.ts +7 -0
- package/dist/types/components/PayoutBankStatement/types.d.ts +15 -5
- package/dist/types/components/PayoutDetails/component/PayoutDetailsComponent.d.ts +24 -2
- package/dist/types/components/PayoutDetails/rules.d.ts +6 -5
- package/dist/types/components/PayoutDetails/types.d.ts +22 -17
- package/dist/types/components/PayoutVerificationMethod/allowedBankCountriesPerCountry.d.ts +2 -0
- package/dist/types/components/PayoutVerificationMethod/component/PayoutVerificationMethod.d.ts +3 -3
- package/dist/types/components/PayoutVerificationMethod/payoutVerificationMethodMetadata.d.ts +14 -0
- package/dist/types/components/PayoutVerificationMethod/types.d.ts +14 -11
- package/dist/types/components/PersonalDetails/types.d.ts +16 -10
- package/dist/types/components/PersonalDetails/validate.d.ts +1 -1
- package/dist/types/components/ProofOfResidency/ProofOfResidencyComponent.d.ts +2 -2
- package/dist/types/components/ProofOfResidency/types.d.ts +4 -0
- package/dist/types/components/RegistrationAddress/component/RegistrationAddressComponent.d.ts +1 -1
- package/dist/types/components/RegistrationAddress/types.d.ts +12 -10
- package/dist/types/components/RegistrationAddress/validate.d.ts +1 -1
- package/dist/types/components/Review/component/ReviewComponent.d.ts +3 -0
- package/dist/types/components/Review/types.d.ts +6 -0
- package/dist/types/components/SoleProp/labels.d.ts +5 -0
- package/dist/types/components/SoleProp/types.d.ts +16 -13
- package/dist/types/components/TaskList/component/PayoutAccountTaskListItem.d.ts +11 -0
- package/dist/types/components/TaskList/component/TaskListComponent.d.ts +1 -1
- package/dist/types/components/TaskList/component/TaskListGroup.d.ts +1 -1
- package/dist/types/components/TaskList/component/TaskListItem.d.ts +3 -2
- package/dist/types/components/TaskList/types.d.ts +52 -41
- package/dist/types/components/Trust/component/TrustComponent.d.ts +2 -1
- package/dist/types/components/Trust/types.d.ts +15 -10
- package/dist/types/components/TrustMembers/component/TrustMembersComponent.d.ts +2 -3
- package/dist/types/components/TrustMembers/component/UndefinedBeneficiaries.d.ts +8 -0
- package/dist/types/components/TrustMembers/types.d.ts +9 -6
- package/dist/types/components/TrustRegistrationDetails/types.d.ts +6 -6
- package/dist/types/components/TrustRegistrationDetails/validate.d.ts +1 -1
- package/dist/types/components/TrustRoleAndEntityType/getAvailableRoles.d.ts +2 -0
- package/dist/types/components/TrustRoleAndEntityType/types.d.ts +9 -13
- package/dist/types/components/TrustRoleAndEntityType/validate.d.ts +1 -1
- package/dist/types/components/UIElement.d.ts +17 -32
- package/dist/types/components/identityUS/component/IdentityUSComponent.d.ts +1 -2
- package/dist/types/components/index.d.ts +24 -23
- package/dist/types/components/internal/Accordion/Accordion.d.ts +2 -2
- package/dist/types/components/internal/Accordion/types.d.ts +4 -4
- package/dist/types/components/internal/AccordionItem/AccordionItem.d.ts +2 -2
- package/dist/types/components/internal/AccountHolder/index.d.ts +1 -1
- package/dist/types/components/internal/AccountHolder/types.d.ts +5 -11
- package/dist/types/components/internal/AccountHolder/validate.d.ts +1 -1
- package/dist/types/components/internal/Address/Address.d.ts +3 -4
- package/dist/types/components/internal/Address/components/CountryField.d.ts +1 -2
- package/dist/types/components/internal/Address/components/FieldContainer.d.ts +1 -2
- package/dist/types/components/internal/Address/components/SearchAddress.d.ts +2 -1
- package/dist/types/components/internal/Address/components/StateField.d.ts +1 -1
- package/dist/types/components/internal/Address/constants.d.ts +3 -2
- package/dist/types/components/internal/Address/types.d.ts +42 -27
- package/dist/types/components/internal/Address/utils.d.ts +6 -4
- package/dist/types/components/internal/Address/validate.d.ts +1 -1
- package/dist/types/components/internal/Address/validate.formats.d.ts +1 -1
- package/dist/types/components/internal/Alert/Alert.d.ts +1 -1
- package/dist/types/components/internal/Alert/types.d.ts +1 -1
- package/dist/types/components/internal/BankAccountFormat/BankAccountFormat.d.ts +2 -0
- package/dist/types/components/internal/BankAccountFormat/types.d.ts +5 -0
- package/dist/types/components/internal/BankAccountNumber/index.d.ts +1 -1
- package/dist/types/components/internal/BankAccountNumber/types.d.ts +2 -2
- package/dist/types/components/internal/BankCity/index.d.ts +1 -1
- package/dist/types/components/internal/BankCity/types.d.ts +2 -2
- package/dist/types/components/internal/BankCode/index.d.ts +1 -1
- package/dist/types/components/internal/BankCode/types.d.ts +2 -2
- package/dist/types/components/internal/BankName/index.d.ts +1 -1
- package/dist/types/components/internal/BankName/types.d.ts +2 -2
- package/dist/types/components/internal/BranchCode/index.d.ts +1 -1
- package/dist/types/components/internal/BranchCode/types.d.ts +2 -2
- package/dist/types/components/internal/BusinessRegistrationNumber/formatters.d.ts +4 -0
- package/dist/types/components/internal/BusinessRegistrationNumber/index.d.ts +1 -1
- package/dist/types/components/internal/BusinessRegistrationNumber/types.d.ts +7 -6
- package/dist/types/components/internal/BusinessRegistrationNumber/validate.d.ts +16 -11
- package/dist/types/components/internal/Button/Button.d.ts +3 -14
- package/dist/types/components/internal/Button/types.d.ts +6 -6
- package/dist/types/components/internal/Card/Card.d.ts +3 -2
- package/dist/types/components/internal/Card/CardGroup.d.ts +1 -1
- package/dist/types/components/internal/Card/types.d.ts +2 -2
- package/dist/types/components/internal/CollapsibleContainer/CollapsibleContainer.d.ts +2 -2
- package/dist/types/components/internal/ContextGuidance/ContextGuidance.d.ts +1 -1
- package/dist/types/components/internal/ContextGuidance/types.d.ts +3 -3
- package/dist/types/components/internal/ContextHelper/ContextHelper.d.ts +6 -0
- package/dist/types/components/internal/ContractViewer/ContractViewer.d.ts +2 -2
- package/dist/types/components/internal/ContractViewer/components/ContentElements/ContentElements.d.ts +1 -1
- package/dist/types/components/internal/ContractViewer/components/InternalReference/InternalReference.d.ts +1 -1
- package/dist/types/components/internal/ContractViewer/components/Paragraph/Paragraph.d.ts +1 -1
- package/dist/types/components/internal/ContractViewer/components/Section/Section.d.ts +1 -1
- package/dist/types/components/internal/ContractViewer/components/Table/Table.d.ts +1 -1
- package/dist/types/components/internal/ContractViewer/components/Text/Text.d.ts +1 -1
- package/dist/types/components/internal/ContractViewer/types.d.ts +27 -24
- package/dist/types/components/internal/Currency/Currency.d.ts +1 -1
- package/dist/types/components/internal/Currency/index.d.ts +1 -1
- package/dist/types/components/internal/Currency/types.d.ts +6 -7
- package/dist/types/components/internal/DecisionMakerRole/DecisionMakerRoleComponent.d.ts +3 -0
- package/dist/types/components/internal/DecisionMakerRole/index.d.ts +2 -0
- package/dist/types/components/internal/DecisionMakerRole/types.d.ts +10 -0
- package/dist/types/components/internal/DecisionMakerRole/validate.d.ts +3 -0
- package/dist/types/components/internal/Disclaimer/Disclaimer.d.ts +1 -1
- package/dist/types/components/internal/EntityAssociation/EntityAssociation.d.ts +2 -1
- package/dist/types/components/internal/EntityAssociation/types.d.ts +5 -4
- package/dist/types/components/internal/EntityGuidanceStatus/component/EntityGuidanceLegend.d.ts +3 -0
- package/dist/types/components/internal/EntityGuidanceStatus/component/EntityGuidanceStatus.d.ts +4 -0
- package/dist/types/components/internal/EntityGuidanceStatus/component/EntityStatusIcon.d.ts +3 -0
- package/dist/types/components/internal/EntityGuidanceStatus/index.d.ts +3 -0
- package/dist/types/components/internal/EntityGuidanceStatus/types.d.ts +14 -0
- package/dist/types/components/internal/ErrorPanel/ErrorPanel.d.ts +1 -1
- package/dist/types/components/internal/ErrorPanel/components/ServerValidationErrors.d.ts +1 -2
- package/dist/types/components/internal/ErrorPanel/components/VerificationErrors.d.ts +1 -2
- package/dist/types/components/internal/ErrorPanel/types.d.ts +7 -13
- package/dist/types/components/internal/FormFields/Checkbox/Checkbox.d.ts +7 -11
- package/dist/types/components/internal/FormFields/Dropzone/Dropzone.d.ts +1 -15
- package/dist/types/components/internal/FormFields/Dropzone/FilePicker.d.ts +14 -0
- package/dist/types/components/internal/FormFields/Dropzone/types.d.ts +4 -6
- package/dist/types/components/internal/FormFields/Dropzone/validate.d.ts +9 -3
- package/dist/types/components/internal/FormFields/Field/Field.d.ts +9 -39
- package/dist/types/components/internal/FormFields/Field/types.d.ts +21 -17
- package/dist/types/components/internal/FormFields/InputBase.d.ts +2 -2
- package/dist/types/components/internal/FormFields/InputDate/InputDate.d.ts +5 -3
- package/dist/types/components/internal/FormFields/InputDate/utils.d.ts +1 -1
- package/dist/types/components/internal/FormFields/InputRadio/InputRadio.d.ts +4 -1
- package/dist/types/components/internal/FormFields/MultiSelectList/MultiSelectList.d.ts +9 -0
- package/dist/types/components/internal/FormFields/MultiSelectList/index.d.ts +1 -0
- package/dist/types/components/internal/FormFields/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/types/components/internal/FormFields/RadioGroupCard/RadioCard.d.ts +2 -2
- package/dist/types/components/internal/FormFields/RadioGroupCard/RadioCardSelect.d.ts +22 -0
- package/dist/types/components/internal/FormFields/RadioGroupCard/RadioGroupCard.d.ts +1 -8
- package/dist/types/components/internal/FormFields/RadioGroupCard/index.d.ts +3 -1
- package/dist/types/components/internal/FormFields/RadioGroupCard/types.d.ts +23 -15
- package/dist/types/components/internal/FormFields/Select/Select.d.ts +3 -2
- package/dist/types/components/internal/FormFields/Select/components/SelectButton.d.ts +1 -1
- package/dist/types/components/internal/FormFields/Select/components/SelectListItem.d.ts +1 -1
- package/dist/types/components/internal/FormFields/Select/types.d.ts +19 -22
- package/dist/types/components/internal/FormHeader/FormHeader.d.ts +1 -1
- package/dist/types/components/internal/Heading/Heading.d.ts +6 -4
- package/dist/types/components/internal/Iban/ibanValidator.d.ts +4 -1
- package/dist/types/components/internal/Iban/types.d.ts +4 -4
- package/dist/types/components/internal/Icon/Icon.d.ts +2 -1
- package/dist/types/components/internal/LegalCompanyName/types.d.ts +5 -2
- package/dist/types/components/internal/LegalCompanyName/validate.d.ts +1 -1
- package/dist/types/components/internal/Link/Link.d.ts +1 -2
- package/dist/types/components/internal/Link/types.d.ts +3 -1
- package/dist/types/components/internal/Loader/Loader.d.ts +1 -1
- package/dist/types/components/internal/Loader/index.d.ts +1 -1
- package/dist/types/components/internal/LoaderWrapper/LoaderWrapper.d.ts +3 -2
- package/dist/types/components/internal/LoaderWrapper/constants.d.ts +1 -6
- package/dist/types/components/internal/Menu/ActionsMenu.d.ts +14 -0
- package/dist/types/components/internal/Name/types.d.ts +2 -2
- package/dist/types/components/internal/Name/validate.d.ts +1 -1
- package/dist/types/components/internal/PhoneInput/types.d.ts +6 -6
- package/dist/types/components/internal/PhoneInput/validate.d.ts +6 -2
- package/dist/types/components/internal/Status/Status.d.ts +1 -1
- package/dist/types/components/internal/Summary/Summary.d.ts +5 -3
- package/dist/types/components/internal/Summary/types.d.ts +6 -8
- package/dist/types/components/internal/SwiftCode/types.d.ts +2 -2
- package/dist/types/components/internal/Tag/Tag.d.ts +1 -1
- package/dist/types/components/internal/TaxId/types.d.ts +4 -4
- package/dist/types/components/internal/TaxId/validate.d.ts +1 -1
- package/dist/types/components/internal/Toast/Toast.d.ts +2 -8
- package/dist/types/components/internal/Toast/index.d.ts +2 -1
- package/dist/types/components/internal/Toast/types.d.ts +6 -4
- package/dist/types/components/internal/VatNumber/types.d.ts +9 -15
- package/dist/types/components/internal/VatNumber/validate.d.ts +1 -1
- package/dist/types/components/internal/VatNumber/vatNumberValidation.d.ts +2 -1
- package/dist/types/core/Context/CoreContext.d.ts +14 -13
- package/dist/types/core/Context/CoreProvider.d.ts +18 -29
- package/dist/types/core/Context/ExperimentContext/ExperimentsContext.d.ts +2 -0
- package/dist/types/core/Context/ExperimentContext/ExperimentsContextProvider.d.ts +8 -0
- package/dist/types/core/Context/ExperimentContext/types.d.ts +12 -0
- package/dist/types/core/Context/ExperimentContext/useExperimentsContext.d.ts +1 -0
- package/dist/types/core/Context/FormRouterContext/FormRouterContext.d.ts +4 -1
- package/dist/types/core/Context/FormRouterContext/FormRouterContextProvider.d.ts +1 -2
- package/dist/types/core/Context/FormRouterContext/types.d.ts +4 -2
- package/dist/types/core/Context/FormRouterContext/useFormRouterContext.d.ts +4 -2
- package/dist/types/core/Context/SettingsContext/SettingsContext.d.ts +2 -4
- package/dist/types/core/Context/SettingsContext/SettingsContextProvider.d.ts +7 -2
- package/dist/types/core/Context/SettingsContext/types.d.ts +5 -2
- package/dist/types/core/Context/SettingsContext/useSettingsContext.d.ts +1 -4
- package/dist/types/core/Context/StateContext/StateContext.d.ts +1 -1
- package/dist/types/core/Context/StateContext/StateProvider.d.ts +1 -2
- package/dist/types/core/Context/StateContext/StateReducer.d.ts +1 -1
- package/dist/types/core/Context/StateContext/types.d.ts +14 -9
- package/dist/types/core/Context/StateContext/useGlobalData.d.ts +8 -0
- package/dist/types/core/Context/StateContext/useStateContext.d.ts +1 -2
- package/dist/types/core/Context/ToastContext/ToastContext.d.ts +6 -1
- package/dist/types/core/Context/ToastContext/ToastContextProvider.d.ts +3 -3
- package/dist/types/core/Context/ToastContext/useToastContext.d.ts +2 -2
- package/dist/types/core/Context/useCoreContext.d.ts +1 -18
- package/dist/types/core/SDKValidation/index.d.ts +3 -4
- package/dist/types/core/SDKValidation/types.d.ts +17 -12
- package/dist/types/core/Services/get-account-format.d.ts +4 -0
- package/dist/types/core/Services/get-allowed-countries.d.ts +3 -0
- package/dist/types/core/Services/get-allowed-locales.d.ts +3 -0
- package/dist/types/core/Services/get-configuration.d.ts +3 -0
- package/dist/types/core/Services/get-dataset.d.ts +2 -1
- package/dist/types/core/Services/get-images.d.ts +2 -3
- package/dist/types/core/Services/http.d.ts +4 -16
- package/dist/types/core/Services/types.d.ts +16 -0
- package/dist/types/core/Services/utils.d.ts +5 -0
- package/dist/types/core/Services/validate-phone-number.d.ts +3 -0
- package/dist/types/core/Services/verify-id-number.d.ts +3 -2
- package/dist/types/core/constants.d.ts +8 -7
- package/dist/types/core/core.d.ts +9 -32
- package/dist/types/core/error.d.ts +1 -1
- package/dist/types/core/errorMapping.d.ts +2 -1
- package/dist/types/core/hooks/useAsyncValidator.d.ts +11 -0
- package/dist/types/core/hooks/useClickAwayListener.d.ts +9 -0
- package/dist/types/core/hooks/useForm/index.d.ts +3 -0
- package/dist/types/core/hooks/useForm/reducer.d.ts +6 -0
- package/dist/types/{utils → core/hooks}/useForm/types.d.ts +60 -30
- package/dist/types/core/hooks/useForm/useForm.d.ts +13 -0
- package/dist/types/core/hooks/useIdVerificationToken.d.ts +11 -0
- package/dist/types/core/hooks/useKycExternalApi.d.ts +23 -0
- package/dist/types/core/hooks/useScenarioConfiguration.d.ts +25 -0
- package/dist/types/core/models/api/address-search.d.ts +28 -0
- package/dist/types/core/models/api/address.d.ts +3 -12
- package/dist/types/core/models/api/attachment.d.ts +1 -1
- package/dist/types/core/models/api/capability.d.ts +23 -2
- package/dist/types/core/models/api/contracts.d.ts +11 -32
- package/dist/types/core/models/api/data-set.d.ts +1 -1
- package/dist/types/core/models/api/document.d.ts +8 -4
- package/dist/types/core/models/api/documentDetail.d.ts +9 -0
- package/dist/types/core/models/api/entity-type.d.ts +1 -2
- package/dist/types/core/models/api/get-account-format.d.ts +5 -0
- package/dist/types/core/models/api/get-allowed-countries.d.ts +4 -0
- package/dist/types/core/models/api/get-allowed-locales.d.ts +3 -0
- package/dist/types/core/models/api/get-configuration.d.ts +62 -0
- package/dist/types/core/models/api/individual.d.ts +3 -3
- package/dist/types/core/models/api/instant-id-verification.d.ts +7 -0
- package/dist/types/core/models/api/legal-entity-association.d.ts +3 -3
- package/dist/types/core/models/api/legal-entity.d.ts +19 -14
- package/dist/types/core/models/api/organization.d.ts +6 -6
- package/dist/types/core/models/api/phone.d.ts +1 -1
- package/dist/types/core/models/api/problem.d.ts +1 -1
- package/dist/types/core/models/api/review.d.ts +3 -0
- package/dist/types/core/models/api/soleProprietor.d.ts +3 -3
- package/dist/types/core/models/api/transfer-instrument.d.ts +30 -18
- package/dist/types/core/models/api/trust-member-type.d.ts +5 -4
- package/dist/types/core/models/api/trust.d.ts +15 -9
- package/dist/types/core/models/api/verification-error.d.ts +12 -10
- package/dist/types/core/models/api/verify-id-number.d.ts +14 -0
- package/dist/types/core/models/company.d.ts +5 -4
- package/dist/types/core/models/country-code.d.ts +249 -0
- package/dist/types/core/models/country-config.d.ts +4 -5
- package/dist/types/core/models/decision-maker.d.ts +6 -2
- package/dist/types/core/models/errors/capability-problems.d.ts +1 -1
- package/dist/types/core/models/errors/entity-problems.d.ts +7 -3
- package/dist/types/core/models/errors/error-message.d.ts +2 -2
- package/dist/types/core/models/errors/field-errors.d.ts +1 -1
- package/dist/types/core/models/errors/form-verification-errors.d.ts +2 -2
- package/dist/types/core/models/errors/maintenance-mode-error.d.ts +7 -0
- package/dist/types/core/models/errors/remediation-action-context.d.ts +1 -1
- package/dist/types/core/models/errors/remediation.d.ts +2 -2
- package/dist/types/core/models/errors/validation-error.d.ts +5 -0
- package/dist/types/core/models/field-configurations.d.ts +3 -3
- package/dist/types/core/models/form-labels.d.ts +1 -1
- package/dist/types/core/models/form-rules.d.ts +8 -10
- package/dist/types/core/models/form.d.ts +3 -5
- package/dist/types/core/models/id-verification-status.d.ts +3 -3
- package/dist/types/core/models/identity.d.ts +2 -2
- package/dist/types/core/models/payout-account.d.ts +7 -3
- package/dist/types/core/models/scenario-fields.d.ts +5 -4
- package/dist/types/core/models/sole-prop.d.ts +1 -1
- package/dist/types/core/models/trust.d.ts +19 -1
- package/dist/types/core/process-field-configurations.d.ts +6 -6
- package/dist/types/core/types.d.ts +4 -3
- package/dist/types/core/user-events.d.ts +5 -8
- package/dist/types/core/utils.d.ts +5 -5
- package/dist/types/index.d.ts +2 -1
- package/dist/types/language/Language.d.ts +4 -4
- package/dist/types/language/config.d.ts +138 -42
- package/dist/types/language/types.d.ts +4 -3
- package/dist/types/language/utils.d.ts +6 -4
- package/dist/types/types/index.d.ts +3 -3
- package/dist/types/utils/LoadedValue.d.ts +2 -0
- package/dist/types/utils/accountHolderUtils.d.ts +5 -37
- package/dist/types/utils/api/documentUtils.d.ts +8 -7
- package/dist/types/utils/api/processCapabilitites.d.ts +5 -4
- package/dist/types/utils/company-util.d.ts +4 -3
- package/dist/types/utils/datasetUtil.d.ts +12 -10
- package/dist/types/utils/decision-maker-roles.d.ts +11 -16
- package/dist/types/utils/entity-association-util.d.ts +17 -15
- package/dist/types/utils/entity-status-util.d.ts +9 -0
- package/dist/types/utils/escapeHtml.d.ts +3 -0
- package/dist/types/utils/eventHandlers/handleKeys.d.ts +5 -0
- package/dist/types/utils/formUtils.d.ts +12 -17
- package/dist/types/utils/formatting/stripCountryIdFormat.d.ts +2 -0
- package/dist/types/utils/genUtils.d.ts +2 -2
- package/dist/types/utils/get-name.d.ts +8 -1
- package/dist/types/utils/get-props.d.ts +2 -2
- package/dist/types/utils/get-task-status.d.ts +3 -3
- package/dist/types/utils/getNestedPropertyKeys.d.ts +4 -4
- package/dist/types/utils/hasDuplicates.d.ts +1 -0
- package/dist/types/utils/logger.d.ts +15 -0
- package/dist/types/utils/mapping/componentApiMapping.d.ts +43 -35
- package/dist/types/utils/mapping/mapping.d.ts +12 -11
- package/dist/types/utils/payout-account-util.d.ts +6 -0
- package/dist/types/utils/payout-account.d.ts +1 -1
- package/dist/types/utils/recordWithDefault.d.ts +3 -0
- package/dist/types/utils/regex/basePatterns.d.ts +3 -0
- package/dist/types/utils/regex/businessRegistrationNumberPatterns.d.ts +2 -0
- package/dist/types/utils/regex/countryIdNumberPatterns.d.ts +13 -0
- package/dist/types/utils/regex/index.d.ts +5 -0
- package/dist/types/utils/regex/types.d.ts +25 -0
- package/dist/types/utils/regex/vatNumberPatterns.d.ts +17 -0
- package/dist/types/utils/trust-util.d.ts +30 -17
- package/dist/types/utils/useForwardRef.d.ts +2 -0
- package/dist/types/utils/useStateFromProp.d.ts +9 -0
- package/dist/types/utils/validation/ValidationResult.d.ts +13 -0
- package/dist/types/utils/validation/Validator.d.ts +15 -0
- package/dist/types/utils/validation/commonValidators.d.ts +3 -0
- package/dist/types/utils/validation/types.d.ts +61 -0
- package/dist/types/utils/validatorUtils.d.ts +4 -4
- package/dist/types/utils/verification/helpers/verify-id-number-helper.d.ts +3 -0
- package/dist/types/utils/verification/verificationUtils.d.ts +5 -5
- package/package.json +132 -109
- package/dist/adyen-kyc-components.cjs.css +0 -65
- package/dist/adyen-kyc-components.cjs.js +0 -1
- package/dist/adyen-kyc-components.esm.css +0 -65
- package/dist/adyen-kyc-components.esm.js +0 -1
- package/dist/types/components/Address/Address.d.ts +0 -7
- package/dist/types/components/Address/index.d.ts +0 -1
- package/dist/types/components/Company/Company.d.ts +0 -5
- package/dist/types/components/Company/index.d.ts +0 -1
- package/dist/types/components/CompanyDetails/CompanyDetails.d.ts +0 -5
- package/dist/types/components/CompanyDetails/index.d.ts +0 -1
- package/dist/types/components/CompanyNameAndCountry/CompanyNameAndCountry.d.ts +0 -5
- package/dist/types/components/CompanyNameAndCountry/index.d.ts +0 -1
- package/dist/types/components/CompanyType/CompanyType.d.ts +0 -5
- package/dist/types/components/CompanyType/index.d.ts +0 -1
- package/dist/types/components/ContactDetails/ContactDetails.d.ts +0 -5
- package/dist/types/components/ContactDetails/index.d.ts +0 -1
- package/dist/types/components/DecisionMakers/DecisionMakers.d.ts +0 -5
- package/dist/types/components/DecisionMakers/component/DecisionMakerTypeGuidance.d.ts +0 -7
- package/dist/types/components/DecisionMakers/index.d.ts +0 -1
- package/dist/types/components/Dropins/CompanyDropin/CompanyDropin.d.ts +0 -6
- package/dist/types/components/Dropins/Dropin.d.ts +0 -25
- package/dist/types/components/Dropins/DropinComposer/DropinComposer.d.ts +0 -6
- package/dist/types/components/Dropins/FormComposer/components/StepProgressIndicator/StepProgressIndicator.d.ts +0 -6
- package/dist/types/components/Dropins/FormComposer/components/StepProgressIndicator/index.d.ts +0 -1
- package/dist/types/components/Dropins/IndividualDropin/IndividualDropin.d.ts +0 -6
- package/dist/types/components/Dropins/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +0 -6
- package/dist/types/components/Dropins/RoleAndTypeDropin/RoleAndTypeDropin.d.ts +0 -6
- package/dist/types/components/Dropins/SolePropDropin/SolePropDropin.d.ts +0 -6
- package/dist/types/components/Dropins/TrustDropin/TrustDropin.d.ts +0 -6
- package/dist/types/components/Dropins/index.d.ts +0 -1
- package/dist/types/components/IdDocumentUpload/IdDocumentUpload.d.ts +0 -5
- package/dist/types/components/IdDocumentUpload/component/index.d.ts +0 -1
- package/dist/types/components/IdDocumentUpload/index.d.ts +0 -1
- package/dist/types/components/IdVerification/IdVerification.d.ts +0 -6
- package/dist/types/components/IdVerification/component/index.d.ts +0 -1
- package/dist/types/components/IdVerification/index.d.ts +0 -1
- package/dist/types/components/IdVerificationMethod/constants.d.ts +0 -17
- package/dist/types/components/IdentityAu/IdentityAu.d.ts +0 -16
- package/dist/types/components/IdentityAu/index.d.ts +0 -1
- package/dist/types/components/IdentityNumber/IdentityNumber.d.ts +0 -5
- package/dist/types/components/IdentityNumber/index.d.ts +0 -1
- package/dist/types/components/Individual/Individual.d.ts +0 -5
- package/dist/types/components/Individual/index.d.ts +0 -1
- package/dist/types/components/PayoutAccount/PayoutAccount.d.ts +0 -5
- package/dist/types/components/PayoutAccount/index.d.ts +0 -1
- package/dist/types/components/PayoutBankStatement/PayoutBankStatement.d.ts +0 -5
- package/dist/types/components/PayoutBankStatement/index.d.ts +0 -1
- package/dist/types/components/PayoutDetails/PayoutDetails.d.ts +0 -5
- package/dist/types/components/PayoutDetails/index.d.ts +0 -1
- package/dist/types/components/PersonalDetails/PersonalDetails.d.ts +0 -5
- package/dist/types/components/PersonalDetails/index.d.ts +0 -1
- package/dist/types/components/RegistrationAddress/RegistrationAddress.d.ts +0 -5
- package/dist/types/components/RegistrationAddress/index.d.ts +0 -1
- package/dist/types/components/SoleProp/SoleProp.d.ts +0 -5
- package/dist/types/components/SoleProp/index.d.ts +0 -1
- package/dist/types/components/TaskList/TaskList.d.ts +0 -5
- package/dist/types/components/TaskList/index.d.ts +0 -1
- package/dist/types/components/Trust/Trust.d.ts +0 -5
- package/dist/types/components/Trust/index.d.ts +0 -1
- package/dist/types/components/TrustDocumentUpload/TrustDocumentUpload.d.ts +0 -5
- package/dist/types/components/TrustDocumentUpload/component/TrustDocumentUploadComponent.d.ts +0 -6
- package/dist/types/components/TrustDocumentUpload/index.d.ts +0 -1
- package/dist/types/components/TrustDocumentUpload/types.d.ts +0 -5
- package/dist/types/components/TrustMembers/TrustMembers.d.ts +0 -5
- package/dist/types/components/TrustMembers/index.d.ts +0 -1
- package/dist/types/components/TrustRegistrationDetails/TrustRegistrationDetails.d.ts +0 -5
- package/dist/types/components/TrustRegistrationDetails/index.d.ts +0 -1
- package/dist/types/components/TrustRoleAndEntityType/TrustRoleAndEntityType.d.ts +0 -5
- package/dist/types/components/TrustRoleAndEntityType/index.d.ts +0 -1
- package/dist/types/components/internal/Address/components/ReadOnlyAddress.d.ts +0 -3
- package/dist/types/components/internal/Address/index.d.ts +0 -1
- package/dist/types/components/internal/BusinessRegistrationNumber/registrationNoValidator.d.ts +0 -369
- package/dist/types/components/internal/CardLayout/CardLayout.d.ts +0 -3
- package/dist/types/components/internal/CardLayout/index.d.ts +0 -1
- package/dist/types/components/internal/Currency/validate.d.ts +0 -5
- package/dist/types/components/internal/FormFields/ConsentCheckbox/ConsentCheckbox.d.ts +0 -6
- package/dist/types/components/internal/FormFields/ConsentCheckbox/index.d.ts +0 -1
- package/dist/types/components/internal/FormFields/Fieldset/Fieldset.d.ts +0 -11
- package/dist/types/components/internal/FormFields/Fieldset/index.d.ts +0 -1
- package/dist/types/components/internal/FormFields/InputFile.d.ts +0 -1
- package/dist/types/components/internal/FormFields/index.d.ts +0 -3
- package/dist/types/components/internal/Modal/Modal.d.ts +0 -17
- package/dist/types/components/internal/PartOfTrust/PartOfTrust.d.ts +0 -3
- package/dist/types/components/internal/PartOfTrust/index.d.ts +0 -1
- package/dist/types/components/internal/PartOfTrust/types.d.ts +0 -21
- package/dist/types/components/internal/Role/Role.d.ts +0 -3
- package/dist/types/components/internal/Role/index.d.ts +0 -1
- package/dist/types/components/internal/Role/types.d.ts +0 -11
- package/dist/types/components/internal/Role/validate.d.ts +0 -3
- package/dist/types/components/internal/Summary/index.d.ts +0 -1
- package/dist/types/components/internal/VatNumber/rules.d.ts +0 -181
- package/dist/types/core/Context/StateContext/useGlobalStateSlice.d.ts +0 -5
- package/dist/types/core/Services/fetch.d.ts +0 -2
- package/dist/types/core/Services/get-configuration-data.d.ts +0 -20
- package/dist/types/core/models/api/configuration.d.ts +0 -17
- package/dist/types/core/models/api/id-verification-data.d.ts +0 -5
- package/dist/types/debug/progress-indicator.d.ts +0 -4
- package/dist/types/utils/Script.d.ts +0 -22
- package/dist/types/utils/Validator/Validator.d.ts +0 -34
- package/dist/types/utils/Validator/commonValidators.d.ts +0 -3
- package/dist/types/utils/Validator/defaultRules.d.ts +0 -10
- package/dist/types/utils/Validator/index.d.ts +0 -1
- package/dist/types/utils/Validator/types.d.ts +0 -53
- package/dist/types/utils/bankVerification/function.d.ts +0 -1
- package/dist/types/utils/debounce.d.ts +0 -1
- package/dist/types/utils/get-image.d.ts +0 -11
- package/dist/types/utils/regex.d.ts +0 -8
- package/dist/types/utils/typeUtils.d.ts +0 -1
- package/dist/types/utils/useForm/index.d.ts +0 -1
- package/dist/types/utils/useForm/reducer.d.ts +0 -18
- package/dist/types/utils/useForm/useForm.d.ts +0 -12
- package/dist/types/utils/verification/helpers/verifyIDNumber.d.ts +0 -17
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { BaseInnerFormProps } from '../../../
|
|
1
|
+
import type { BaseInnerFormProps } from '../../../core/hooks/useForm';
|
|
2
|
+
import { CountryCode } from '../../../core/models/country-code';
|
|
2
3
|
import { Currency } from '../../../core/models/currency';
|
|
3
|
-
export interface CurrencyProps extends BaseInnerFormProps<CurrencySchema> {
|
|
4
|
-
country: string;
|
|
5
|
-
}
|
|
6
4
|
export interface CurrencySchema {
|
|
7
5
|
currency?: string;
|
|
8
6
|
}
|
|
9
|
-
export
|
|
10
|
-
|
|
11
|
-
}
|
|
7
|
+
export interface CurrencyProps extends BaseInnerFormProps<CurrencySchema> {
|
|
8
|
+
country: CountryCode;
|
|
9
|
+
}
|
|
10
|
+
export declare const currencyByCountry: Partial<Record<CountryCode, Array<Currency>>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { BaseInnerFormProps } from '../../../core/hooks/useForm';
|
|
2
|
+
import { DecisionMakerType } from '../../../core/models/api/decision-maker-type';
|
|
3
|
+
import type { TaskTypes } from '../../TaskList/types';
|
|
4
|
+
export interface DecisionMakerRoleSchema {
|
|
5
|
+
role?: DecisionMakerType[];
|
|
6
|
+
}
|
|
7
|
+
export interface DecisionMakerRoleProps extends BaseInnerFormProps<DecisionMakerRoleSchema> {
|
|
8
|
+
taskType: TaskTypes;
|
|
9
|
+
allowedRoles?: DecisionMakerType[];
|
|
10
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import './_entity-association.component.scss';
|
|
1
2
|
import { EntityAssociationProps } from './types';
|
|
2
|
-
declare const EntityAssociation: ({ name, types, status, actions,
|
|
3
|
+
declare const EntityAssociation: ({ name, types, status, actions, problems, infoContent, onNavigateToEntity, }: EntityAssociationProps) => import("preact").JSX.Element;
|
|
3
4
|
export default EntityAssociation;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { ComponentChild } from 'preact';
|
|
2
|
+
import { LegalEntityAssociation } from '../../../core/models/api/legal-entity-association';
|
|
2
3
|
import { LegalEntityType } from '../../../core/models/api/legal-entity-type';
|
|
3
4
|
import { EntityProblems } from '../../../core/models/errors/entity-problems';
|
|
4
|
-
import LegalEntityAssociation from '../../../core/models/api/legal-entity-association';
|
|
5
5
|
import { TaskStatus } from '../../TaskList/types';
|
|
6
|
+
import { ActionsMenuOption } from '../Menu/ActionsMenu';
|
|
6
7
|
export interface EntityAssociationProps extends UniqueEntityAssociation {
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
onNavigateToEntity?: () => void;
|
|
9
|
+
actions?: ActionsMenuOption[];
|
|
9
10
|
infoContent?: ComponentChild;
|
|
10
11
|
}
|
|
11
12
|
export interface UniqueEntityAssociation {
|
|
12
|
-
legalEntityId
|
|
13
|
+
legalEntityId: string;
|
|
13
14
|
jobTitle?: string;
|
|
14
15
|
types: Array<LegalEntityAssociation['type']>;
|
|
15
16
|
status: TaskStatus;
|
package/dist/types/components/internal/EntityGuidanceStatus/component/EntityGuidanceStatus.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import '../EntityGuidanceStatus.scss';
|
|
2
|
+
import { EntityGuidanceStatusProps } from '../types';
|
|
3
|
+
declare const EntityGuidanceStatus: ({ country, currentTask, entityLabel, status, }: EntityGuidanceStatusProps) => import("preact").JSX.Element;
|
|
4
|
+
export default EntityGuidanceStatus;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DecisionMakerType } from '../../../core/models/api/decision-maker-type';
|
|
2
|
+
import { CountryCode } from '../../../core/models/country-code';
|
|
3
|
+
import { TrustMemberGuidanceLabel } from '../../../core/models/trust';
|
|
4
|
+
import { TaskTypes } from '../../TaskList/types';
|
|
5
|
+
export type EntityStatus = 'obligatoryEmpty' | 'conditionalEmpty' | 'obligatoryFinished' | 'conditionalFinished';
|
|
6
|
+
export interface EntityGuidanceStatusProps {
|
|
7
|
+
country: CountryCode;
|
|
8
|
+
currentTask: TaskTypes;
|
|
9
|
+
entityLabel: TrustMemberGuidanceLabel | DecisionMakerType;
|
|
10
|
+
status: EntityStatus;
|
|
11
|
+
}
|
|
12
|
+
export interface EntityStatusProps {
|
|
13
|
+
status: EntityStatus;
|
|
14
|
+
}
|
|
@@ -10,4 +10,4 @@ import { ErrorPanelProps } from './types';
|
|
|
10
10
|
* @param formUtils - form utilities use to translate errors and field names.
|
|
11
11
|
* @param heading - customisation for the alert header.
|
|
12
12
|
*/
|
|
13
|
-
export declare function ErrorPanel({ id, verificationErrors, validationErrors, formUtils }: ErrorPanelProps): import("preact").JSX.Element;
|
|
13
|
+
export declare function ErrorPanel<Schema>({ id, verificationErrors, validationErrors, formUtils, }: ErrorPanelProps<Schema>): import("preact").JSX.Element;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import { ServerValidationErrorsProps } from '../types';
|
|
2
|
-
declare
|
|
3
|
-
export default ServerValidationErrors;
|
|
2
|
+
export declare function ServerValidationErrors<Schema>({ validationErrors, formUtils, }: ServerValidationErrorsProps<Schema>): import("preact").JSX.Element;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import { VerificationErrorsProps } from '../types';
|
|
2
|
-
declare
|
|
3
|
-
export default VerificationErrors;
|
|
2
|
+
export declare function VerificationErrors<Schema>({ verificationErrors, formUtils, }: VerificationErrorsProps<Schema>): import("preact").JSX.Element;
|
|
@@ -1,33 +1,27 @@
|
|
|
1
|
-
import { FormUtils } from '../../../utils/formUtils';
|
|
2
1
|
import { FormVerificationErrors } from '../../../core/models/errors/form-verification-errors';
|
|
3
2
|
import { Remediation } from '../../../core/models/errors/remediation';
|
|
4
|
-
|
|
3
|
+
import { FormUtils } from '../../../utils/formUtils';
|
|
4
|
+
export interface ErrorPanelProps<Schema> {
|
|
5
5
|
id?: string;
|
|
6
|
-
formUtils
|
|
6
|
+
formUtils: FormUtils<Schema>;
|
|
7
7
|
verificationErrors?: FormVerificationErrors;
|
|
8
8
|
validationErrors?: {
|
|
9
9
|
[fieldName: string]: boolean;
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
|
-
export declare enum VerificationErrorCase {
|
|
13
|
-
ONE_ERROR_ONE_REMEDIATION = 0,
|
|
14
|
-
ONE_ERROR_MULTIPLE_REMEDIATION = 1,
|
|
15
|
-
TWO_ERRORS = 2,
|
|
16
|
-
MAX_ERRORS = 3
|
|
17
|
-
}
|
|
18
12
|
export interface ErrorPanelFieldFormCollection {
|
|
19
13
|
[fieldName: string]: {
|
|
20
14
|
formName: string;
|
|
21
15
|
remediation: Remediation;
|
|
22
16
|
};
|
|
23
17
|
}
|
|
24
|
-
export interface ServerValidationErrorsProps {
|
|
25
|
-
formUtils: FormUtils<
|
|
18
|
+
export interface ServerValidationErrorsProps<Schema> {
|
|
19
|
+
formUtils: FormUtils<Schema>;
|
|
26
20
|
validationErrors?: {
|
|
27
21
|
[fieldName: string]: boolean;
|
|
28
22
|
};
|
|
29
23
|
}
|
|
30
|
-
export interface VerificationErrorsProps {
|
|
31
|
-
formUtils: FormUtils<
|
|
24
|
+
export interface VerificationErrorsProps<Schema> {
|
|
25
|
+
formUtils: FormUtils<Schema>;
|
|
32
26
|
verificationErrors?: FormVerificationErrors;
|
|
33
27
|
}
|
|
@@ -1,21 +1,17 @@
|
|
|
1
|
-
import { ComponentChild } from 'preact';
|
|
2
1
|
import './Checkbox.scss';
|
|
2
|
+
import { ComponentChild } from 'preact';
|
|
3
3
|
interface CheckboxProps {
|
|
4
|
-
checked
|
|
4
|
+
checked: boolean;
|
|
5
|
+
onChange: (isChecked: boolean) => void;
|
|
5
6
|
classNameModifiers?: string[];
|
|
6
7
|
label: string | ComponentChild;
|
|
7
8
|
name?: string;
|
|
8
9
|
isInvalid?: boolean;
|
|
9
|
-
onChange?: any;
|
|
10
|
-
onInput?: any;
|
|
11
10
|
className?: string;
|
|
12
11
|
value?: string;
|
|
13
12
|
helper?: string;
|
|
13
|
+
readonly?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
14
15
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
var defaultProps: {
|
|
18
|
-
onChange: () => void;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
export default Checkbox;
|
|
16
|
+
export default function Checkbox({ classNameModifiers, label, isInvalid, onChange, helper, checked, disabled, ...props }: CheckboxProps): import("preact").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -1,17 +1,3 @@
|
|
|
1
1
|
import './Dropzone.scss';
|
|
2
2
|
import { DropzoneProps } from './types';
|
|
3
|
-
|
|
4
|
-
declare namespace Dropzone {
|
|
5
|
-
var defaultProps: {
|
|
6
|
-
defaultData: any[];
|
|
7
|
-
label: string;
|
|
8
|
-
required: boolean;
|
|
9
|
-
multiple: boolean;
|
|
10
|
-
maxNumberOfFiles: number;
|
|
11
|
-
maxSize: number;
|
|
12
|
-
allowedFiletypes: string;
|
|
13
|
-
iconPrefix: string;
|
|
14
|
-
onChange: () => void;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
export default Dropzone;
|
|
3
|
+
export default function Dropzone(props: DropzoneProps): import("preact").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import './Dropzone.scss';
|
|
2
|
+
import { JSX } from 'preact';
|
|
3
|
+
import { TranslationKey } from '../../../../language/types';
|
|
4
|
+
import { FileValidationOptions } from './validate';
|
|
5
|
+
export interface FilePickerProps extends FileValidationOptions {
|
|
6
|
+
files: File[];
|
|
7
|
+
setFiles: (files: File[]) => void;
|
|
8
|
+
isValid: boolean;
|
|
9
|
+
errorMessage?: TranslationKey;
|
|
10
|
+
multiple?: boolean;
|
|
11
|
+
label?: string;
|
|
12
|
+
iconPrefix?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function FilePicker({ files, setFiles, isValid, errorMessage, multiple, label, iconPrefix, allowedFileTypes, maxSize, isOptional, maxNumberOfFiles, }: FilePickerProps): JSX.Element;
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
import { TranslationKey } from '../../../../language/types';
|
|
2
|
-
|
|
2
|
+
import { FileValidationOptions } from './validate';
|
|
3
|
+
export interface DropzoneProps extends Partial<FileValidationOptions> {
|
|
3
4
|
name: string;
|
|
4
5
|
label?: string;
|
|
5
6
|
ref?: any;
|
|
6
7
|
data?: any[];
|
|
7
8
|
defaultData?: any;
|
|
8
|
-
allowedFiletypes?: string;
|
|
9
9
|
multiple?: boolean;
|
|
10
10
|
required?: boolean;
|
|
11
|
-
maxNumberOfFiles?: number;
|
|
12
|
-
maxSize?: number;
|
|
13
11
|
onChange?: (files: any) => void;
|
|
14
12
|
id?: string;
|
|
15
|
-
isOptional?: boolean;
|
|
16
13
|
iconPrefix?: string;
|
|
14
|
+
shouldValidate?: boolean;
|
|
17
15
|
}
|
|
18
16
|
export interface DropzoneSchema {
|
|
19
17
|
files?: File[];
|
|
@@ -23,6 +21,6 @@ export interface DropzoneSchema {
|
|
|
23
21
|
export interface DropzoneFileProps {
|
|
24
22
|
file: File;
|
|
25
23
|
errorMessage?: TranslationKey;
|
|
26
|
-
onDelete: (
|
|
24
|
+
onDelete: () => void;
|
|
27
25
|
iconPrefix?: string;
|
|
28
26
|
}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { ValidatorRule } from '../../../../utils/validation/types';
|
|
2
|
+
export interface FileValidationOptions {
|
|
3
|
+
allowedFileTypes: string[];
|
|
4
|
+
maxNumberOfFiles: number;
|
|
5
|
+
maxSize: number;
|
|
6
|
+
isOptional: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const defaultFileValidationOptions: FileValidationOptions;
|
|
9
|
+
export declare const fileValidationRules: ({ allowedFileTypes, maxNumberOfFiles, maxSize, isOptional, }: FileValidationOptions) => Array<ValidatorRule<File[] | undefined, any>>;
|
|
@@ -1,41 +1,11 @@
|
|
|
1
|
-
import { Component } from 'preact';
|
|
2
1
|
import './Field.scss';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} | {
|
|
13
|
-
filled: any;
|
|
14
|
-
focused?: undefined;
|
|
15
|
-
};
|
|
16
|
-
renderContent({ name, children, errorMessage, helper, inputWrapperModifiers, isLoading, isValid, label }: {
|
|
17
|
-
name: any;
|
|
18
|
-
children: any;
|
|
19
|
-
errorMessage: any;
|
|
20
|
-
helper: any;
|
|
21
|
-
inputWrapperModifiers: any;
|
|
22
|
-
isLoading: any;
|
|
23
|
-
isValid: any;
|
|
24
|
-
label: any;
|
|
25
|
-
}): import("preact").JSX.Element;
|
|
26
|
-
render({ name, className, classNameModifiers, children, errorMessage, helper, inputWrapperModifiers, isLoading, isValid, label, useLabelElement, dataPlaceholder }: {
|
|
27
|
-
name: any;
|
|
28
|
-
className?: string;
|
|
29
|
-
classNameModifiers?: any[];
|
|
30
|
-
children: any;
|
|
31
|
-
errorMessage: any;
|
|
32
|
-
helper: any;
|
|
33
|
-
inputWrapperModifiers?: any[];
|
|
34
|
-
isLoading: any;
|
|
35
|
-
isValid: any;
|
|
36
|
-
label: any;
|
|
37
|
-
useLabelElement?: boolean;
|
|
38
|
-
dataPlaceholder: any;
|
|
39
|
-
}): import("preact").JSX.Element;
|
|
40
|
-
}
|
|
2
|
+
import { ComponentProps } from 'preact';
|
|
3
|
+
import { FC } from 'preact/compat';
|
|
4
|
+
import { FieldProps } from './types';
|
|
5
|
+
export type MaybeLabelElementProps = (ComponentProps<'label'> & {
|
|
6
|
+
useLabelElement: true;
|
|
7
|
+
}) | (ComponentProps<'div'> & {
|
|
8
|
+
useLabelElement: false;
|
|
9
|
+
});
|
|
10
|
+
declare const Field: FC<FieldProps>;
|
|
41
11
|
export default Field;
|
|
@@ -1,29 +1,33 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentChildren } from 'preact';
|
|
2
|
+
import { ChangeEventHandler } from 'preact/compat';
|
|
3
|
+
import { TranslationKey } from '../../../../language/types';
|
|
4
|
+
export interface FieldChildProps {
|
|
5
|
+
isInvalid: boolean;
|
|
6
|
+
isValid: boolean;
|
|
7
|
+
onBlurHandler: ChangeEventHandler<EventTarget>;
|
|
8
|
+
onFocusHandler: ChangeEventHandler<EventTarget>;
|
|
9
|
+
uniqueId: string;
|
|
10
|
+
}
|
|
2
11
|
export interface FieldProps {
|
|
3
|
-
|
|
12
|
+
children: (props: FieldChildProps) => ComponentChildren;
|
|
4
13
|
className?: string;
|
|
5
14
|
classNameModifiers?: string[];
|
|
6
|
-
|
|
15
|
+
dataPlaceholder?: string;
|
|
7
16
|
disabled?: boolean;
|
|
8
|
-
|
|
17
|
+
dualBrandingElements?: any;
|
|
18
|
+
errorMessage?: TranslationKey | string | boolean | null;
|
|
9
19
|
filled?: boolean;
|
|
10
20
|
focused?: boolean;
|
|
11
21
|
helper?: string;
|
|
12
22
|
inputWrapperModifiers?: string[];
|
|
13
23
|
isLoading?: boolean;
|
|
14
24
|
isValid?: boolean;
|
|
15
|
-
label?: string
|
|
16
|
-
|
|
17
|
-
onBlur?:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
25
|
+
label?: string;
|
|
26
|
+
name: string;
|
|
27
|
+
onBlur?: ChangeEventHandler<EventTarget>;
|
|
28
|
+
onFieldBlur?: ChangeEventHandler<EventTarget>;
|
|
29
|
+
onFocus?: ChangeEventHandler<EventTarget>;
|
|
30
|
+
onFocusField?: ChangeEventHandler<EventTarget>;
|
|
31
|
+
showErrorIconBottom?: boolean;
|
|
22
32
|
useLabelElement?: boolean;
|
|
23
|
-
dataPlaceholder?: string;
|
|
24
|
-
}
|
|
25
|
-
export interface FieldState {
|
|
26
|
-
disabled?: boolean;
|
|
27
|
-
filled?: boolean;
|
|
28
|
-
focused?: boolean;
|
|
29
33
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import './FormFields.scss';
|
|
1
2
|
import { ComponentProps, JSX } from 'preact';
|
|
2
3
|
export interface InputBaseProps extends ComponentProps<'input'> {
|
|
3
4
|
autoCorrect?: string;
|
|
@@ -9,11 +10,10 @@ export interface InputBaseProps extends ComponentProps<'input'> {
|
|
|
9
10
|
spellCheck?: boolean;
|
|
10
11
|
type?: string;
|
|
11
12
|
disabled?: boolean;
|
|
12
|
-
showInlineErrors?: boolean;
|
|
13
13
|
uniqueId?: string;
|
|
14
14
|
className?: string;
|
|
15
15
|
trimOnBlur?: boolean;
|
|
16
|
-
onInput?: (event: JSX.
|
|
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;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { JSX } from 'preact';
|
|
2
|
+
import { InputBaseProps } from '../InputBase';
|
|
3
|
+
interface InputDateProps extends InputBaseProps {
|
|
4
|
+
onInput: (e: JSX.TargetedEvent<HTMLInputElement>) => void;
|
|
3
5
|
}
|
|
4
|
-
export default function InputDate(props: InputDateProps):
|
|
6
|
+
export default function InputDate(props: InputDateProps): JSX.Element;
|
|
5
7
|
export {};
|
|
@@ -19,4 +19,4 @@ declare const formatDate: (value: string) => string;
|
|
|
19
19
|
*/
|
|
20
20
|
declare const unformatDate: (value?: string) => string;
|
|
21
21
|
declare const formatDateObj: (date: Date) => string;
|
|
22
|
-
export { checkDateInputSupport, formatDate,
|
|
22
|
+
export { checkDateInputSupport, formatDate, formatDateObj, unformatDate };
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import './_input-radio.scss';
|
|
2
|
-
|
|
2
|
+
import { ComponentProps } from 'preact';
|
|
3
|
+
export declare const InputRadio: ({ className, ...props }: import("preact").JSX.HTMLAttributes<HTMLInputElement> & {
|
|
4
|
+
className?: string;
|
|
5
|
+
}) => import("preact").JSX.Element;
|
|
3
6
|
export default InputRadio;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SelectItem } from '../Select/types';
|
|
2
|
+
interface MultiSelectListProps<OptionType> {
|
|
3
|
+
options: readonly OptionType[];
|
|
4
|
+
selected: OptionType[];
|
|
5
|
+
onSelect: (options: OptionType[]) => void;
|
|
6
|
+
mapToSelectItem: (option: OptionType) => SelectItem;
|
|
7
|
+
}
|
|
8
|
+
export declare const MultiSelectList: <OptionType>({ options, selected, onSelect, mapToSelectItem, }: MultiSelectListProps<OptionType>) => import("preact").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MultiSelectList';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './RadioGroup.scss';
|
|
2
2
|
import { RadioGroupProps } from './types';
|
|
3
|
-
declare function RadioGroup(
|
|
3
|
+
declare function RadioGroup({ items, i18n, name, onChange, value, isInvalid, uniqueId, className, disabled, }: RadioGroupProps): import("preact").JSX.Element;
|
|
4
4
|
declare namespace RadioGroup {
|
|
5
5
|
var defaultProps: {
|
|
6
6
|
onChange: () => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import './RadioCard.scss';
|
|
2
|
-
|
|
3
|
-
export
|
|
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;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import './RadioGroupCard.scss';
|
|
2
|
+
import { ComponentChildren } from 'preact';
|
|
3
|
+
import { TranslationKey } from '../../../../language/types';
|
|
4
|
+
export interface RadioCardSelectProps<OptionType> {
|
|
5
|
+
className?: string;
|
|
6
|
+
isInvalid?: boolean;
|
|
7
|
+
options: readonly OptionType[];
|
|
8
|
+
name?: string;
|
|
9
|
+
onSelect: (option: OptionType) => void;
|
|
10
|
+
selected: OptionType | undefined;
|
|
11
|
+
uniqueId?: string;
|
|
12
|
+
isOptionDisabled?: (option: OptionType) => boolean;
|
|
13
|
+
optionId: (option: OptionType) => string;
|
|
14
|
+
optionName: (option: OptionType) => TranslationKey;
|
|
15
|
+
optionDescription: (option: OptionType) => TranslationKey;
|
|
16
|
+
optionSubtitle?: (option: OptionType) => TranslationKey | undefined;
|
|
17
|
+
renderOptionIcon?: (option: OptionType) => ComponentChildren;
|
|
18
|
+
renderOptionBody?: (option: OptionType) => ComponentChildren;
|
|
19
|
+
renderOptionFooter?: (option: OptionType) => ComponentChildren;
|
|
20
|
+
optionLabelClassName?: (option: OptionType) => string;
|
|
21
|
+
}
|
|
22
|
+
export declare function RadioCardSelect<OptionType>({ options, name, onSelect, selected, isInvalid, uniqueId, className, optionId, optionName, optionDescription, optionSubtitle, optionLabelClassName, renderOptionIcon, renderOptionBody, renderOptionFooter, isOptionDisabled, }: RadioCardSelectProps<OptionType>): import("preact").JSX.Element;
|
|
@@ -1,10 +1,3 @@
|
|
|
1
1
|
import './RadioGroupCard.scss';
|
|
2
2
|
import { RadioGroupCardProps } from './types';
|
|
3
|
-
declare function RadioGroupCard(
|
|
4
|
-
declare namespace RadioGroupCard {
|
|
5
|
-
var defaultProps: {
|
|
6
|
-
onChange: () => void;
|
|
7
|
-
items: any[];
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
export default RadioGroupCard;
|
|
3
|
+
export declare function RadioGroupCard({ items, name, onSelect, selected, isInvalid, uniqueId, className, itemLabelClassName, itemIcon, itemBody, itemFooter, isItemDisabled, }: RadioGroupCardProps): import("preact").JSX.Element;
|
|
@@ -1,32 +1,40 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentChildren } from 'preact';
|
|
2
2
|
import { TranslationKey } from '../../../../language/types';
|
|
3
|
-
import { ComponentChildren, JSX } from 'preact';
|
|
4
3
|
export interface RadioGroupCardItem {
|
|
5
4
|
name: TranslationKey;
|
|
6
5
|
description: TranslationKey;
|
|
7
|
-
info?: string;
|
|
8
6
|
id: string;
|
|
7
|
+
subtitle?: TranslationKey;
|
|
9
8
|
}
|
|
10
9
|
export interface RadioGroupCardProps {
|
|
11
10
|
className?: string;
|
|
12
11
|
isInvalid?: boolean;
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
readonly?: boolean;
|
|
13
|
+
items: readonly RadioGroupCardItem[];
|
|
15
14
|
name?: string;
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
onSelect: (item: RadioGroupCardItem) => void;
|
|
16
|
+
selected: RadioGroupCardItem | undefined;
|
|
18
17
|
uniqueId?: string;
|
|
18
|
+
isItemDisabled?: (item: RadioGroupCardItem) => boolean;
|
|
19
|
+
itemIcon?: (item: RadioGroupCardItem) => ComponentChildren;
|
|
20
|
+
itemFooter?: (item: RadioGroupCardItem) => ComponentChildren;
|
|
21
|
+
itemBody?: (item: RadioGroupCardItem) => ComponentChildren;
|
|
22
|
+
itemLabelClassName?: (item: RadioGroupCardItem) => string;
|
|
19
23
|
}
|
|
20
24
|
export interface RadioCardProps {
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
optionId: string;
|
|
26
|
+
optionName: TranslationKey;
|
|
27
|
+
optionDescription: TranslationKey;
|
|
28
|
+
optionSubtitle?: TranslationKey;
|
|
29
|
+
name?: string;
|
|
23
30
|
className?: string;
|
|
24
31
|
uniqueId: string;
|
|
25
|
-
i18n: Language;
|
|
26
32
|
isInvalid?: boolean;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
33
|
+
isSelected: boolean;
|
|
34
|
+
onSelect: () => void;
|
|
35
|
+
labelClassName?: string;
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
icon?: ComponentChildren;
|
|
38
|
+
footer?: ComponentChildren;
|
|
39
|
+
body?: ComponentChildren;
|
|
32
40
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { SelectProps } from './types';
|
|
2
1
|
import './Select.scss';
|
|
3
|
-
|
|
2
|
+
import { JSX } from 'preact';
|
|
3
|
+
import { SelectProps } from './types';
|
|
4
|
+
declare const Select: ({ items, className, classNameModifiers, filterable, readonly, onChange, selected, name, isInvalid, isValid, placeholder, isMulti, uniqueId, showSelectedItemsAsTags, isSearch, onSearch, resetSearch, loading, getSearchItem, searchText, showSearchList, }: SelectProps) => JSX.Element;
|
|
4
5
|
export default Select;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { SelectButtonProps } from '../types';
|
|
2
|
-
declare function SelectButton({ active, readonly, showList, isInvalid, isValid, toggleList, onButtonKeyDown, filterable, placeholder, toggleButtonRef, ariaDescribedBy, selectListId, filterInputRef, onInput, isMulti, id, isSearch, loading, textFilter }: SelectButtonProps): import("preact").JSX.Element;
|
|
2
|
+
declare function SelectButton({ active, readonly, showList, isInvalid, isValid, toggleList, onButtonKeyDown, filterable, placeholder, toggleButtonRef, ariaDescribedBy, selectListId, filterInputRef, onInput, isMulti, id, isSearch, loading, textFilter, }: SelectButtonProps): import("preact").JSX.Element;
|
|
3
3
|
export default SelectButton;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { SelectItemProps } from '../types';
|
|
2
|
-
declare const SelectListItem: ({ item, selected, isMulti, isSearch, children,
|
|
2
|
+
declare const SelectListItem: ({ item, selected, isMulti, isSearch, children, onSelect, onKeyDown, className, }: SelectItemProps) => import("preact").JSX.Element;
|
|
3
3
|
export default SelectListItem;
|