@redneckz/wildless-cms-uni-blocks 0.7.9 → 0.8.1
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/bundle/ProjectSettings.d.ts +4 -4
- package/bundle/api/CorporateLeadAPI.d.ts +15 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +559 -328
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationForm.d.ts +5 -0
- package/bundle/components/ApplicationForm/ApplicationFormAcquiring.d.ts +12 -0
- package/bundle/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +9 -0
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +18 -0
- package/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +20 -0
- package/bundle/components/ApplicationForm/ApplicationFormDeposit.d.ts +6 -0
- package/bundle/components/ApplicationForm/ApplicationFormWed.d.ts +12 -0
- package/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +7 -0
- package/bundle/components/ApplicationForm/Footnote.d.ts +6 -0
- package/bundle/components/ApplicationForm/ResponseNotification.d.ts +5 -0
- package/bundle/components/ApplicationForm/WrapperSelect.d.ts +11 -0
- package/bundle/components/ApplicationForm/acquiringTypes.d.ts +2 -0
- package/bundle/components/ApplicationForm/models.d.ts +6 -0
- package/bundle/components/ApplicationForm/normalizeSelectedRegion.d.ts +2 -0
- package/bundle/components/ApplicationForm/renderBankOffices.d.ts +13 -0
- package/bundle/components/ApplicationForm/renderContacts.d.ts +2 -0
- package/bundle/components/ApplicationForm/renderCreditParameters.d.ts +10 -0
- package/bundle/components/ApplicationForm/renderDataOrganization.d.ts +14 -0
- package/bundle/components/ApplicationForm/renderQuestionsInterested.d.ts +12 -0
- package/bundle/components/ApplicationForm/renderSelects.d.ts +11 -0
- package/bundle/components/ApplicationForm/renderSlideCheckboxes.d.ts +10 -0
- package/bundle/components/ApplicationForm/renderSubmitButton.d.ts +3 -0
- package/bundle/components/ApplicationForm/useFormHandlers.d.ts +13 -0
- package/bundle/components/SafeDepositRental/SafeDepositRentalFields.d.ts +2 -2
- package/bundle/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +1 -1
- package/bundle/icons/IconName.d.ts +10 -2
- package/bundle/services/sitemap/isHrefActive.d.ts +1 -2
- package/bundle/services/sitemap/isSubItemActive.d.ts +3 -2
- package/bundle/services/sitemap/isTopItemActive.d.ts +3 -2
- package/bundle/ui-kit/TopItem/TopItem.d.ts +0 -1
- package/bundle/utils/adjustHref.d.ts +1 -4
- package/bundle/utils/url.d.ts +4 -2
- package/cosmos-static/icons/MailIcon.svg +1 -0
- package/cosmos-static/icons/PhoneIcon.svg +1 -0
- package/cosmos-static/icons/ResponceFailIcon.svg +1 -0
- package/cosmos-static/icons/ResponceOKIcon.svg +1 -0
- package/dist/ProjectSettings.d.ts +4 -4
- package/dist/ProjectSettings.js +3 -5
- package/dist/ProjectSettings.js.map +1 -1
- package/dist/api/CorporateLeadAPI.d.ts +15 -0
- package/dist/api/CorporateLeadAPI.js +24 -0
- package/dist/api/CorporateLeadAPI.js.map +1 -0
- package/dist/components/ApplicationForm/ApplicationForm.d.ts +5 -0
- package/dist/components/ApplicationForm/ApplicationForm.js +30 -0
- package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -0
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.d.ts +12 -0
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +55 -0
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -0
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +9 -0
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +39 -0
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -0
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +18 -0
- package/dist/components/ApplicationForm/ApplicationFormContent.js +2 -0
- package/dist/components/ApplicationForm/ApplicationFormContent.js.map +1 -0
- package/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +20 -0
- package/dist/components/ApplicationForm/ApplicationFormCredit.js +59 -0
- package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -0
- package/dist/components/ApplicationForm/ApplicationFormDeposit.d.ts +6 -0
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js +26 -0
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -0
- package/dist/components/ApplicationForm/ApplicationFormWed.d.ts +12 -0
- package/dist/components/ApplicationForm/ApplicationFormWed.js +41 -0
- package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -0
- package/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +7 -0
- package/dist/components/ApplicationForm/ApplicationFormsProps.js +2 -0
- package/dist/components/ApplicationForm/ApplicationFormsProps.js.map +1 -0
- package/dist/components/ApplicationForm/Footnote.d.ts +6 -0
- package/dist/components/ApplicationForm/Footnote.js +9 -0
- package/dist/components/ApplicationForm/Footnote.js.map +1 -0
- package/dist/components/ApplicationForm/ResponseNotification.d.ts +5 -0
- package/dist/components/ApplicationForm/ResponseNotification.js +13 -0
- package/dist/components/ApplicationForm/ResponseNotification.js.map +1 -0
- package/dist/components/ApplicationForm/WrapperSelect.d.ts +11 -0
- package/dist/components/ApplicationForm/WrapperSelect.js +13 -0
- package/dist/components/ApplicationForm/WrapperSelect.js.map +1 -0
- package/dist/components/ApplicationForm/acquiringTypes.d.ts +2 -0
- package/dist/components/ApplicationForm/acquiringTypes.js +25 -0
- package/dist/components/ApplicationForm/acquiringTypes.js.map +1 -0
- package/dist/components/ApplicationForm/models.d.ts +6 -0
- package/dist/components/ApplicationForm/models.js +2 -0
- package/dist/components/ApplicationForm/models.js.map +1 -0
- package/dist/components/ApplicationForm/normalizeSelectedRegion.d.ts +2 -0
- package/dist/components/ApplicationForm/normalizeSelectedRegion.js +5 -0
- package/dist/components/ApplicationForm/normalizeSelectedRegion.js.map +1 -0
- package/dist/components/ApplicationForm/renderBankOffices.d.ts +13 -0
- package/dist/components/ApplicationForm/renderBankOffices.js +7 -0
- package/dist/components/ApplicationForm/renderBankOffices.js.map +1 -0
- package/dist/components/ApplicationForm/renderContacts.d.ts +2 -0
- package/dist/components/ApplicationForm/renderContacts.js +7 -0
- package/dist/components/ApplicationForm/renderContacts.js.map +1 -0
- package/dist/components/ApplicationForm/renderCreditParameters.d.ts +10 -0
- package/dist/components/ApplicationForm/renderCreditParameters.js +24 -0
- package/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -0
- package/dist/components/ApplicationForm/renderDataOrganization.d.ts +14 -0
- package/dist/components/ApplicationForm/renderDataOrganization.js +7 -0
- package/dist/components/ApplicationForm/renderDataOrganization.js.map +1 -0
- package/dist/components/ApplicationForm/renderQuestionsInterested.d.ts +12 -0
- package/dist/components/ApplicationForm/renderQuestionsInterested.js +7 -0
- package/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -0
- package/dist/components/ApplicationForm/renderSelects.d.ts +11 -0
- package/dist/components/ApplicationForm/renderSelects.js +8 -0
- package/dist/components/ApplicationForm/renderSelects.js.map +1 -0
- package/dist/components/ApplicationForm/renderSlideCheckboxes.d.ts +10 -0
- package/dist/components/ApplicationForm/renderSlideCheckboxes.js +7 -0
- package/dist/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -0
- package/dist/components/ApplicationForm/renderSubmitButton.d.ts +3 -0
- package/dist/components/ApplicationForm/renderSubmitButton.js +13 -0
- package/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -0
- package/dist/components/ApplicationForm/useFormHandlers.d.ts +13 -0
- package/dist/components/ApplicationForm/useFormHandlers.js +16 -0
- package/dist/components/ApplicationForm/useFormHandlers.js.map +1 -0
- package/dist/components/Blocks.js +2 -0
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Header/Header.js +1 -2
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/Header/HeaderSecondaryMenu.js +1 -2
- package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/dist/components/Header/HeaderSubMenu.js +2 -1
- package/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/dist/components/Header/HeaderSubMenuItem.js +2 -2
- package/dist/components/Header/HeaderSubMenuItem.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalFields.d.ts +2 -2
- package/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +1 -1
- package/dist/hooks/useLink.js +21 -22
- package/dist/hooks/useLink.js.map +1 -1
- package/dist/icons/IconName.d.ts +10 -2
- package/dist/icons/IconName.js +9 -1
- package/dist/icons/IconName.js.map +1 -1
- package/dist/services/sitemap/isHrefActive.d.ts +1 -2
- package/dist/services/sitemap/isHrefActive.js +2 -2
- package/dist/services/sitemap/isHrefActive.js.map +1 -1
- package/dist/services/sitemap/isSubItemActive.d.ts +3 -2
- package/dist/services/sitemap/isSubItemActive.js.map +1 -1
- package/dist/services/sitemap/isTopItemActive.d.ts +3 -2
- package/dist/services/sitemap/isTopItemActive.js +1 -6
- package/dist/services/sitemap/isTopItemActive.js.map +1 -1
- package/dist/setup-fixture.js +13 -6
- package/dist/setup-fixture.js.map +1 -1
- package/dist/ui-kit/HeaderItem/HeaderItem.js +1 -2
- package/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js +1 -2
- package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
- package/dist/ui-kit/TopItem/TopItem.d.ts +0 -1
- package/dist/ui-kit/TopItem/TopItem.js +2 -2
- package/dist/ui-kit/TopItem/TopItem.js.map +1 -1
- package/dist/utils/adjustHref.d.ts +1 -4
- package/dist/utils/adjustHref.js +4 -8
- package/dist/utils/adjustHref.js.map +1 -1
- package/dist/utils/url.d.ts +4 -2
- package/dist/utils/url.js +15 -28
- package/dist/utils/url.js.map +1 -1
- package/lib/ProjectSettings.d.ts +4 -4
- package/lib/ProjectSettings.js +3 -5
- package/lib/ProjectSettings.js.map +1 -1
- package/lib/api/CorporateLeadAPI.d.ts +15 -0
- package/lib/api/CorporateLeadAPI.js +21 -0
- package/lib/api/CorporateLeadAPI.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.d.ts +5 -0
- package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +12 -0
- package/lib/components/ApplicationForm/ApplicationForm.js +28 -0
- package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -0
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.d.ts +12 -0
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +53 -0
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -0
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +9 -0
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +37 -0
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -0
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +18 -0
- package/lib/components/ApplicationForm/ApplicationFormContent.js +2 -0
- package/lib/components/ApplicationForm/ApplicationFormContent.js.map +1 -0
- package/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +20 -0
- package/lib/components/ApplicationForm/ApplicationFormCredit.js +57 -0
- package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -0
- package/lib/components/ApplicationForm/ApplicationFormDeposit.d.ts +6 -0
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js +24 -0
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -0
- package/lib/components/ApplicationForm/ApplicationFormWed.d.ts +12 -0
- package/lib/components/ApplicationForm/ApplicationFormWed.js +39 -0
- package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -0
- package/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +7 -0
- package/lib/components/ApplicationForm/ApplicationFormsProps.js +2 -0
- package/lib/components/ApplicationForm/ApplicationFormsProps.js.map +1 -0
- package/lib/components/ApplicationForm/Footnote.d.ts +6 -0
- package/lib/components/ApplicationForm/Footnote.js +7 -0
- package/lib/components/ApplicationForm/Footnote.js.map +1 -0
- package/lib/components/ApplicationForm/ResponseNotification.d.ts +5 -0
- package/lib/components/ApplicationForm/ResponseNotification.js +11 -0
- package/lib/components/ApplicationForm/ResponseNotification.js.map +1 -0
- package/lib/components/ApplicationForm/WrapperSelect.d.ts +11 -0
- package/lib/components/ApplicationForm/WrapperSelect.js +11 -0
- package/lib/components/ApplicationForm/WrapperSelect.js.map +1 -0
- package/lib/components/ApplicationForm/acquiringTypes.d.ts +2 -0
- package/lib/components/ApplicationForm/acquiringTypes.js +23 -0
- package/lib/components/ApplicationForm/acquiringTypes.js.map +1 -0
- package/lib/components/ApplicationForm/models.d.ts +6 -0
- package/lib/components/ApplicationForm/models.js +2 -0
- package/lib/components/ApplicationForm/models.js.map +1 -0
- package/lib/components/ApplicationForm/normalizeSelectedRegion.d.ts +2 -0
- package/lib/components/ApplicationForm/normalizeSelectedRegion.js +2 -0
- package/lib/components/ApplicationForm/normalizeSelectedRegion.js.map +1 -0
- package/lib/components/ApplicationForm/renderBankOffices.d.ts +13 -0
- package/lib/components/ApplicationForm/renderBankOffices.js +4 -0
- package/lib/components/ApplicationForm/renderBankOffices.js.map +1 -0
- package/lib/components/ApplicationForm/renderContacts.d.ts +2 -0
- package/lib/components/ApplicationForm/renderContacts.js +4 -0
- package/lib/components/ApplicationForm/renderContacts.js.map +1 -0
- package/lib/components/ApplicationForm/renderCreditParameters.d.ts +10 -0
- package/lib/components/ApplicationForm/renderCreditParameters.js +21 -0
- package/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -0
- package/lib/components/ApplicationForm/renderDataOrganization.d.ts +14 -0
- package/lib/components/ApplicationForm/renderDataOrganization.js +4 -0
- package/lib/components/ApplicationForm/renderDataOrganization.js.map +1 -0
- package/lib/components/ApplicationForm/renderQuestionsInterested.d.ts +12 -0
- package/lib/components/ApplicationForm/renderQuestionsInterested.js +4 -0
- package/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -0
- package/lib/components/ApplicationForm/renderSelects.d.ts +11 -0
- package/lib/components/ApplicationForm/renderSelects.js +5 -0
- package/lib/components/ApplicationForm/renderSelects.js.map +1 -0
- package/lib/components/ApplicationForm/renderSlideCheckboxes.d.ts +10 -0
- package/lib/components/ApplicationForm/renderSlideCheckboxes.js +4 -0
- package/lib/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -0
- package/lib/components/ApplicationForm/renderSubmitButton.d.ts +3 -0
- package/lib/components/ApplicationForm/renderSubmitButton.js +10 -0
- package/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -0
- package/lib/components/ApplicationForm/useFormHandlers.d.ts +13 -0
- package/lib/components/ApplicationForm/useFormHandlers.js +13 -0
- package/lib/components/ApplicationForm/useFormHandlers.js.map +1 -0
- package/lib/components/Blocks.js +2 -0
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Header/Header.js +1 -2
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/HeaderSecondaryMenu.js +1 -2
- package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/lib/components/Header/HeaderSubMenu.js +2 -1
- package/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/lib/components/Header/HeaderSubMenuItem.js +2 -2
- package/lib/components/Header/HeaderSubMenuItem.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalFields.d.ts +2 -2
- package/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +1 -1
- package/lib/hooks/useLink.js +22 -23
- package/lib/hooks/useLink.js.map +1 -1
- package/lib/icons/IconName.d.ts +10 -2
- package/lib/icons/IconName.js +9 -1
- package/lib/icons/IconName.js.map +1 -1
- package/lib/services/sitemap/isHrefActive.d.ts +1 -2
- package/lib/services/sitemap/isHrefActive.js +2 -2
- package/lib/services/sitemap/isHrefActive.js.map +1 -1
- package/lib/services/sitemap/isSubItemActive.d.ts +3 -2
- package/lib/services/sitemap/isSubItemActive.js.map +1 -1
- package/lib/services/sitemap/isTopItemActive.d.ts +3 -2
- package/lib/services/sitemap/isTopItemActive.js +1 -6
- package/lib/services/sitemap/isTopItemActive.js.map +1 -1
- package/lib/setup-fixture.js +14 -7
- package/lib/setup-fixture.js.map +1 -1
- package/lib/ui-kit/HeaderItem/HeaderItem.js +1 -2
- package/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js +1 -2
- package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
- package/lib/ui-kit/TopItem/TopItem.d.ts +0 -1
- package/lib/ui-kit/TopItem/TopItem.js +2 -2
- package/lib/ui-kit/TopItem/TopItem.js.map +1 -1
- package/lib/utils/adjustHref.d.ts +1 -4
- package/lib/utils/adjustHref.js +5 -9
- package/lib/utils/adjustHref.js.map +1 -1
- package/lib/utils/url.d.ts +4 -2
- package/lib/utils/url.js +12 -26
- package/lib/utils/url.js.map +1 -1
- package/mobile/bundle/ProjectSettings.d.ts +4 -4
- package/mobile/bundle/api/CorporateLeadAPI.d.ts +15 -0
- package/mobile/bundle/bundle.umd.js +45 -79
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationForm.d.ts +5 -0
- package/mobile/bundle/components/ApplicationForm/ApplicationFormAcquiring.d.ts +12 -0
- package/mobile/bundle/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +9 -0
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +18 -0
- package/mobile/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +20 -0
- package/mobile/bundle/components/ApplicationForm/ApplicationFormDeposit.d.ts +6 -0
- package/mobile/bundle/components/ApplicationForm/ApplicationFormWed.d.ts +12 -0
- package/mobile/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +7 -0
- package/mobile/bundle/components/ApplicationForm/Footnote.d.ts +6 -0
- package/mobile/bundle/components/ApplicationForm/ResponseNotification.d.ts +5 -0
- package/mobile/bundle/components/ApplicationForm/WrapperSelect.d.ts +11 -0
- package/mobile/bundle/components/ApplicationForm/acquiringTypes.d.ts +2 -0
- package/mobile/bundle/components/ApplicationForm/models.d.ts +6 -0
- package/mobile/bundle/components/ApplicationForm/normalizeSelectedRegion.d.ts +2 -0
- package/mobile/bundle/components/ApplicationForm/renderBankOffices.d.ts +13 -0
- package/mobile/bundle/components/ApplicationForm/renderContacts.d.ts +2 -0
- package/mobile/bundle/components/ApplicationForm/renderCreditParameters.d.ts +10 -0
- package/mobile/bundle/components/ApplicationForm/renderDataOrganization.d.ts +14 -0
- package/mobile/bundle/components/ApplicationForm/renderQuestionsInterested.d.ts +12 -0
- package/mobile/bundle/components/ApplicationForm/renderSelects.d.ts +11 -0
- package/mobile/bundle/components/ApplicationForm/renderSlideCheckboxes.d.ts +10 -0
- package/mobile/bundle/components/ApplicationForm/renderSubmitButton.d.ts +3 -0
- package/mobile/bundle/components/ApplicationForm/useFormHandlers.d.ts +13 -0
- package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalFields.d.ts +2 -2
- package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +1 -1
- package/mobile/bundle/icons/IconName.d.ts +10 -2
- package/mobile/bundle/services/sitemap/isHrefActive.d.ts +1 -2
- package/mobile/bundle/services/sitemap/isSubItemActive.d.ts +3 -2
- package/mobile/bundle/services/sitemap/isTopItemActive.d.ts +3 -2
- package/mobile/bundle/ui-kit/TopItem/TopItem.d.ts +0 -1
- package/mobile/bundle/utils/adjustHref.d.ts +1 -4
- package/mobile/bundle/utils/url.d.ts +4 -2
- package/mobile/dist/ProjectSettings.d.ts +4 -4
- package/mobile/dist/ProjectSettings.js +3 -5
- package/mobile/dist/ProjectSettings.js.map +1 -1
- package/mobile/dist/api/CorporateLeadAPI.d.ts +15 -0
- package/mobile/dist/api/CorporateLeadAPI.js +24 -0
- package/mobile/dist/api/CorporateLeadAPI.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationForm.d.ts +5 -0
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js +30 -0
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.d.ts +12 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +55 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +9 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +39 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +18 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.js +2 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +20 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +59 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.d.ts +6 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +26 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.d.ts +12 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +41 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +7 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.js +2 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/Footnote.d.ts +6 -0
- package/mobile/dist/components/ApplicationForm/Footnote.js +9 -0
- package/mobile/dist/components/ApplicationForm/Footnote.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ResponseNotification.d.ts +5 -0
- package/mobile/dist/components/ApplicationForm/ResponseNotification.js +13 -0
- package/mobile/dist/components/ApplicationForm/ResponseNotification.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/WrapperSelect.d.ts +11 -0
- package/mobile/dist/components/ApplicationForm/WrapperSelect.js +13 -0
- package/mobile/dist/components/ApplicationForm/WrapperSelect.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/acquiringTypes.d.ts +2 -0
- package/mobile/dist/components/ApplicationForm/acquiringTypes.js +25 -0
- package/mobile/dist/components/ApplicationForm/acquiringTypes.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/models.d.ts +6 -0
- package/mobile/dist/components/ApplicationForm/models.js +2 -0
- package/mobile/dist/components/ApplicationForm/models.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/normalizeSelectedRegion.d.ts +2 -0
- package/mobile/dist/components/ApplicationForm/normalizeSelectedRegion.js +5 -0
- package/mobile/dist/components/ApplicationForm/normalizeSelectedRegion.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderBankOffices.d.ts +13 -0
- package/mobile/dist/components/ApplicationForm/renderBankOffices.js +7 -0
- package/mobile/dist/components/ApplicationForm/renderBankOffices.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderContacts.d.ts +2 -0
- package/mobile/dist/components/ApplicationForm/renderContacts.js +7 -0
- package/mobile/dist/components/ApplicationForm/renderContacts.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.d.ts +10 -0
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.js +24 -0
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderDataOrganization.d.ts +14 -0
- package/mobile/dist/components/ApplicationForm/renderDataOrganization.js +7 -0
- package/mobile/dist/components/ApplicationForm/renderDataOrganization.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.d.ts +12 -0
- package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js +7 -0
- package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderSelects.d.ts +11 -0
- package/mobile/dist/components/ApplicationForm/renderSelects.js +8 -0
- package/mobile/dist/components/ApplicationForm/renderSelects.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderSlideCheckboxes.d.ts +10 -0
- package/mobile/dist/components/ApplicationForm/renderSlideCheckboxes.js +7 -0
- package/mobile/dist/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderSubmitButton.d.ts +3 -0
- package/mobile/dist/components/ApplicationForm/renderSubmitButton.js +13 -0
- package/mobile/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/useFormHandlers.d.ts +13 -0
- package/mobile/dist/components/ApplicationForm/useFormHandlers.js +16 -0
- package/mobile/dist/components/ApplicationForm/useFormHandlers.js.map +1 -0
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js +1 -2
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSubMenu.js +2 -1
- package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSubMenuItem.js +2 -2
- package/mobile/dist/components/Header/HeaderSubMenuItem.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.d.ts +2 -2
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +1 -1
- package/mobile/dist/hooks/useLink.js +21 -22
- package/mobile/dist/hooks/useLink.js.map +1 -1
- package/mobile/dist/icons/IconName.d.ts +10 -2
- package/mobile/dist/icons/IconName.js +9 -1
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/services/sitemap/isHrefActive.d.ts +1 -2
- package/mobile/dist/services/sitemap/isHrefActive.js +2 -2
- package/mobile/dist/services/sitemap/isHrefActive.js.map +1 -1
- package/mobile/dist/services/sitemap/isSubItemActive.d.ts +3 -2
- package/mobile/dist/services/sitemap/isSubItemActive.js.map +1 -1
- package/mobile/dist/services/sitemap/isTopItemActive.d.ts +3 -2
- package/mobile/dist/services/sitemap/isTopItemActive.js +1 -6
- package/mobile/dist/services/sitemap/isTopItemActive.js.map +1 -1
- package/mobile/dist/setup-fixture.js +13 -6
- package/mobile/dist/setup-fixture.js.map +1 -1
- package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js +1 -2
- package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/mobile/dist/ui-kit/TopItem/TopItem.d.ts +0 -1
- package/mobile/dist/ui-kit/TopItem/TopItem.js +2 -2
- package/mobile/dist/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/dist/utils/adjustHref.d.ts +1 -4
- package/mobile/dist/utils/adjustHref.js +4 -8
- package/mobile/dist/utils/adjustHref.js.map +1 -1
- package/mobile/dist/utils/url.d.ts +4 -2
- package/mobile/dist/utils/url.js +15 -28
- package/mobile/dist/utils/url.js.map +1 -1
- package/mobile/lib/ProjectSettings.d.ts +4 -4
- package/mobile/lib/ProjectSettings.js +3 -5
- package/mobile/lib/ProjectSettings.js.map +1 -1
- package/mobile/lib/api/CorporateLeadAPI.d.ts +15 -0
- package/mobile/lib/api/CorporateLeadAPI.js +21 -0
- package/mobile/lib/api/CorporateLeadAPI.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ApplicationForm.d.ts +5 -0
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js +28 -0
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.d.ts +12 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +53 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +9 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +37 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +18 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.js +2 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +20 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +57 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.d.ts +6 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +24 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.d.ts +12 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +39 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +7 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.js +2 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/Footnote.d.ts +6 -0
- package/mobile/lib/components/ApplicationForm/Footnote.js +7 -0
- package/mobile/lib/components/ApplicationForm/Footnote.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ResponseNotification.d.ts +5 -0
- package/mobile/lib/components/ApplicationForm/ResponseNotification.js +11 -0
- package/mobile/lib/components/ApplicationForm/ResponseNotification.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/WrapperSelect.d.ts +11 -0
- package/mobile/lib/components/ApplicationForm/WrapperSelect.js +11 -0
- package/mobile/lib/components/ApplicationForm/WrapperSelect.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/acquiringTypes.d.ts +2 -0
- package/mobile/lib/components/ApplicationForm/acquiringTypes.js +23 -0
- package/mobile/lib/components/ApplicationForm/acquiringTypes.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/models.d.ts +6 -0
- package/mobile/lib/components/ApplicationForm/models.js +2 -0
- package/mobile/lib/components/ApplicationForm/models.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/normalizeSelectedRegion.d.ts +2 -0
- package/mobile/lib/components/ApplicationForm/normalizeSelectedRegion.js +2 -0
- package/mobile/lib/components/ApplicationForm/normalizeSelectedRegion.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderBankOffices.d.ts +13 -0
- package/mobile/lib/components/ApplicationForm/renderBankOffices.js +4 -0
- package/mobile/lib/components/ApplicationForm/renderBankOffices.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderContacts.d.ts +2 -0
- package/mobile/lib/components/ApplicationForm/renderContacts.js +4 -0
- package/mobile/lib/components/ApplicationForm/renderContacts.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.d.ts +10 -0
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.js +21 -0
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderDataOrganization.d.ts +14 -0
- package/mobile/lib/components/ApplicationForm/renderDataOrganization.js +4 -0
- package/mobile/lib/components/ApplicationForm/renderDataOrganization.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.d.ts +12 -0
- package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js +4 -0
- package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderSelects.d.ts +11 -0
- package/mobile/lib/components/ApplicationForm/renderSelects.js +5 -0
- package/mobile/lib/components/ApplicationForm/renderSelects.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderSlideCheckboxes.d.ts +10 -0
- package/mobile/lib/components/ApplicationForm/renderSlideCheckboxes.js +4 -0
- package/mobile/lib/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderSubmitButton.d.ts +3 -0
- package/mobile/lib/components/ApplicationForm/renderSubmitButton.js +10 -0
- package/mobile/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/useFormHandlers.d.ts +13 -0
- package/mobile/lib/components/ApplicationForm/useFormHandlers.js +13 -0
- package/mobile/lib/components/ApplicationForm/useFormHandlers.js.map +1 -0
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js +1 -2
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSubMenu.js +2 -1
- package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSubMenuItem.js +2 -2
- package/mobile/lib/components/Header/HeaderSubMenuItem.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.d.ts +2 -2
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +1 -1
- package/mobile/lib/hooks/useLink.js +22 -23
- package/mobile/lib/hooks/useLink.js.map +1 -1
- package/mobile/lib/icons/IconName.d.ts +10 -2
- package/mobile/lib/icons/IconName.js +9 -1
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/services/sitemap/isHrefActive.d.ts +1 -2
- package/mobile/lib/services/sitemap/isHrefActive.js +2 -2
- package/mobile/lib/services/sitemap/isHrefActive.js.map +1 -1
- package/mobile/lib/services/sitemap/isSubItemActive.d.ts +3 -2
- package/mobile/lib/services/sitemap/isSubItemActive.js.map +1 -1
- package/mobile/lib/services/sitemap/isTopItemActive.d.ts +3 -2
- package/mobile/lib/services/sitemap/isTopItemActive.js +1 -6
- package/mobile/lib/services/sitemap/isTopItemActive.js.map +1 -1
- package/mobile/lib/setup-fixture.js +14 -7
- package/mobile/lib/setup-fixture.js.map +1 -1
- package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js +1 -2
- package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/mobile/lib/ui-kit/TopItem/TopItem.d.ts +0 -1
- package/mobile/lib/ui-kit/TopItem/TopItem.js +2 -2
- package/mobile/lib/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/lib/utils/adjustHref.d.ts +1 -4
- package/mobile/lib/utils/adjustHref.js +5 -9
- package/mobile/lib/utils/adjustHref.js.map +1 -1
- package/mobile/lib/utils/url.d.ts +4 -2
- package/mobile/lib/utils/url.js +12 -26
- package/mobile/lib/utils/url.js.map +1 -1
- package/mobile/src/ProjectSettings.ts +6 -7
- package/mobile/src/api/CorporateLeadAPI.ts +36 -0
- package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +45 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +138 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +134 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +19 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +91 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +74 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +143 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormsProps.ts +8 -0
- package/mobile/src/components/ApplicationForm/Footnote.tsx +25 -0
- package/mobile/src/components/ApplicationForm/ResponseNotification.tsx +33 -0
- package/mobile/src/components/ApplicationForm/WrapperSelect.tsx +32 -0
- package/mobile/src/components/ApplicationForm/acquiringTypes.ts +24 -0
- package/mobile/src/components/ApplicationForm/models.ts +7 -0
- package/mobile/src/components/ApplicationForm/normalizeSelectedRegion.ts +4 -0
- package/mobile/src/components/ApplicationForm/renderBankOffices.tsx +45 -0
- package/mobile/src/components/ApplicationForm/renderContacts.tsx +22 -0
- package/mobile/src/components/ApplicationForm/renderCreditParameters.tsx +61 -0
- package/mobile/src/components/ApplicationForm/renderDataOrganization.tsx +78 -0
- package/mobile/src/components/ApplicationForm/renderQuestionsInterested.tsx +45 -0
- package/mobile/src/components/ApplicationForm/renderSelects.tsx +38 -0
- package/mobile/src/components/ApplicationForm/renderSlideCheckboxes.tsx +28 -0
- package/mobile/src/components/ApplicationForm/renderSubmitButton.tsx +15 -0
- package/mobile/src/components/ApplicationForm/useFormHandlers.ts +32 -0
- package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +1 -21
- package/mobile/src/components/Header/HeaderSubMenu.tsx +2 -1
- package/mobile/src/components/Header/HeaderSubMenuItem.tsx +2 -4
- package/mobile/src/components/SafeDepositRental/SafeDepositRental.tsx +2 -2
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +4 -4
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalTypes.ts +1 -1
- package/mobile/src/hooks/useLink.ts +23 -25
- package/mobile/src/icons/IconName.ts +5 -5
- package/mobile/src/icons/MailIcon.svg +1 -0
- package/mobile/src/icons/PhoneIcon.svg +1 -0
- package/mobile/src/icons/ResponceFailIcon.svg +1 -0
- package/mobile/src/icons/ResponceOKIcon.svg +1 -0
- package/mobile/src/services/sitemap/isHrefActive.ts +4 -10
- package/mobile/src/services/sitemap/isSubItemActive.ts +1 -2
- package/mobile/src/services/sitemap/isTopItemActive.ts +2 -8
- package/mobile/src/setup-fixture.ts +19 -7
- package/mobile/src/ui-kit/HeaderItem/HeaderItem.tsx +7 -8
- package/mobile/src/ui-kit/TopItem/TopItem.tsx +16 -19
- package/mobile/src/utils/adjustHref.ts +6 -14
- package/mobile/src/utils/url.ts +18 -33
- package/package.json +2 -2
- package/src/ProjectSettings.ts +6 -7
- package/src/api/CorporateLeadAPI.ts +36 -0
- package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +43 -0
- package/src/components/ApplicationForm/ApplicationForm.tsx +45 -0
- package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +138 -0
- package/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +134 -0
- package/src/components/ApplicationForm/ApplicationFormContent.ts +19 -0
- package/src/components/ApplicationForm/ApplicationFormCredit.tsx +91 -0
- package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +74 -0
- package/src/components/ApplicationForm/ApplicationFormWed.tsx +143 -0
- package/src/components/ApplicationForm/ApplicationFormsProps.ts +8 -0
- package/src/components/ApplicationForm/Footnote.tsx +25 -0
- package/src/components/ApplicationForm/ResponseNotification.tsx +33 -0
- package/src/components/ApplicationForm/WrapperSelect.tsx +32 -0
- package/src/components/ApplicationForm/acquiringTypes.ts +24 -0
- package/src/components/ApplicationForm/models.ts +7 -0
- package/src/components/ApplicationForm/normalizeSelectedRegion.ts +4 -0
- package/src/components/ApplicationForm/renderBankOffices.tsx +45 -0
- package/src/components/ApplicationForm/renderContacts.tsx +22 -0
- package/src/components/ApplicationForm/renderCreditParameters.tsx +61 -0
- package/src/components/ApplicationForm/renderDataOrganization.tsx +78 -0
- package/src/components/ApplicationForm/renderQuestionsInterested.tsx +45 -0
- package/src/components/ApplicationForm/renderSelects.tsx +38 -0
- package/src/components/ApplicationForm/renderSlideCheckboxes.tsx +28 -0
- package/src/components/ApplicationForm/renderSubmitButton.tsx +15 -0
- package/src/components/ApplicationForm/useFormHandlers.ts +32 -0
- package/src/components/Blocks.ts +2 -0
- package/src/components/Header/Header.tsx +3 -5
- package/src/components/Header/HeaderSecondaryMenu.tsx +1 -21
- package/src/components/Header/HeaderSubMenu.tsx +2 -1
- package/src/components/Header/HeaderSubMenuItem.tsx +2 -4
- package/src/components/SafeDepositRental/SafeDepositRental.tsx +2 -2
- package/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +4 -4
- package/src/components/SafeDepositRental/SafeDepositRentalTypes.ts +1 -1
- package/src/hooks/useLink.ts +23 -25
- package/src/icons/IconName.ts +5 -5
- package/src/icons/MailIcon.svg +1 -0
- package/src/icons/PhoneIcon.svg +1 -0
- package/src/icons/ResponceFailIcon.svg +1 -0
- package/src/icons/ResponceOKIcon.svg +1 -0
- package/src/services/sitemap/isHrefActive.ts +4 -10
- package/src/services/sitemap/isSubItemActive.ts +1 -2
- package/src/services/sitemap/isTopItemActive.ts +2 -8
- package/src/setup-fixture.ts +19 -7
- package/src/ui-kit/HeaderItem/HeaderItem.mobile.tsx +7 -8
- package/src/ui-kit/HeaderItem/HeaderItem.tsx +7 -8
- package/src/ui-kit/TopItem/TopItem.tsx +16 -19
- package/src/utils/adjustHref.ts +6 -14
- package/src/utils/url.ts +18 -33
- package/tailwind.config.cjs +5 -0
- package/bundle/services/sitemap/checkIsHrefSameOrigin.d.ts +0 -2
- package/bundle/utils/normalizeURLPath.d.ts +0 -1
- package/dist/services/sitemap/checkIsHrefSameOrigin.d.ts +0 -2
- package/dist/services/sitemap/checkIsHrefSameOrigin.js +0 -6
- package/dist/services/sitemap/checkIsHrefSameOrigin.js.map +0 -1
- package/dist/utils/normalizeURLPath.d.ts +0 -1
- package/dist/utils/normalizeURLPath.js +0 -12
- package/dist/utils/normalizeURLPath.js.map +0 -1
- package/lib/services/sitemap/checkIsHrefSameOrigin.d.ts +0 -2
- package/lib/services/sitemap/checkIsHrefSameOrigin.js +0 -3
- package/lib/services/sitemap/checkIsHrefSameOrigin.js.map +0 -1
- package/lib/utils/normalizeURLPath.d.ts +0 -1
- package/lib/utils/normalizeURLPath.js +0 -9
- package/lib/utils/normalizeURLPath.js.map +0 -1
- package/mobile/bundle/services/sitemap/checkIsHrefSameOrigin.d.ts +0 -2
- package/mobile/bundle/utils/normalizeURLPath.d.ts +0 -1
- package/mobile/dist/services/sitemap/checkIsHrefSameOrigin.d.ts +0 -2
- package/mobile/dist/services/sitemap/checkIsHrefSameOrigin.js +0 -6
- package/mobile/dist/services/sitemap/checkIsHrefSameOrigin.js.map +0 -1
- package/mobile/dist/utils/normalizeURLPath.d.ts +0 -1
- package/mobile/dist/utils/normalizeURLPath.js +0 -12
- package/mobile/dist/utils/normalizeURLPath.js.map +0 -1
- package/mobile/lib/services/sitemap/checkIsHrefSameOrigin.d.ts +0 -2
- package/mobile/lib/services/sitemap/checkIsHrefSameOrigin.js +0 -3
- package/mobile/lib/services/sitemap/checkIsHrefSameOrigin.js.map +0 -1
- package/mobile/lib/utils/normalizeURLPath.d.ts +0 -1
- package/mobile/lib/utils/normalizeURLPath.js +0 -9
- package/mobile/lib/utils/normalizeURLPath.js.map +0 -1
- package/mobile/src/services/sitemap/checkIsHrefSameOrigin.ts +0 -7
- package/mobile/src/utils/normalizeURLPath.ts +0 -10
- package/src/services/sitemap/checkIsHrefSameOrigin.ts +0 -7
- package/src/utils/normalizeURLPath.ts +0 -10
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
4
|
+
import { Input } from '../../ui-kit/Input/Input';
|
|
5
|
+
import { useGetRegions } from '../SafeDepositRental/useGetRegions';
|
|
6
|
+
import { ACQUIRING_TYPES } from './acquiringTypes';
|
|
7
|
+
import type { ApplicationFormsProps } from './ApplicationFormsProps';
|
|
8
|
+
import { Footnote } from './Footnote';
|
|
9
|
+
import type { HandleFormStateChange } from './models';
|
|
10
|
+
import { normalizeSelectedRegion } from './normalizeSelectedRegion';
|
|
11
|
+
import { renderSelects } from './renderSelects';
|
|
12
|
+
import { renderSlideCheckboxes } from './renderSlideCheckboxes';
|
|
13
|
+
import { renderSubmitButton } from './renderSubmitButton';
|
|
14
|
+
import { useFormHandlers } from './useFormHandlers';
|
|
15
|
+
|
|
16
|
+
export interface AcquiringFormState {
|
|
17
|
+
acquiringType: string;
|
|
18
|
+
region: string;
|
|
19
|
+
fullName: string;
|
|
20
|
+
inn: string;
|
|
21
|
+
name: string;
|
|
22
|
+
phone: string;
|
|
23
|
+
onlineСheckout: boolean;
|
|
24
|
+
posTerminal: boolean;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export const ApplicationFormAcquiring = JSX<ApplicationFormsProps>((props) => {
|
|
28
|
+
const { button, link, handleSubmit } = props;
|
|
29
|
+
|
|
30
|
+
const [formState, setFormState] = useState<AcquiringFormState>({
|
|
31
|
+
acquiringType: '',
|
|
32
|
+
region: '',
|
|
33
|
+
fullName: '',
|
|
34
|
+
inn: '',
|
|
35
|
+
name: '',
|
|
36
|
+
phone: '',
|
|
37
|
+
onlineСheckout: false,
|
|
38
|
+
posTerminal: false,
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
const { acquiringType, region, fullName, inn, name, phone, onlineСheckout, posTerminal } =
|
|
42
|
+
formState;
|
|
43
|
+
|
|
44
|
+
const regions = useGetRegions();
|
|
45
|
+
|
|
46
|
+
const { handleChange, onSubmit } = useFormHandlers<AcquiringFormState>({
|
|
47
|
+
formState,
|
|
48
|
+
handleSubmit,
|
|
49
|
+
setFormState,
|
|
50
|
+
typeForm: 'acqr',
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
const selectedRegion = normalizeSelectedRegion(region, regions);
|
|
54
|
+
|
|
55
|
+
useEffect(() => {
|
|
56
|
+
setFormState((oldState) => ({
|
|
57
|
+
...oldState,
|
|
58
|
+
acquiringType:
|
|
59
|
+
ACQUIRING_TYPES?.length && ACQUIRING_TYPES[0]?.code ? ACQUIRING_TYPES[0].code : '',
|
|
60
|
+
}));
|
|
61
|
+
}, []);
|
|
62
|
+
|
|
63
|
+
return (
|
|
64
|
+
<form onSubmit={onSubmit} className="container">
|
|
65
|
+
<Heading headingType="h6" title="Вид эквайринга и регион" className="text-center mb-4" />
|
|
66
|
+
{renderSelects({
|
|
67
|
+
acquiringType,
|
|
68
|
+
regions,
|
|
69
|
+
region: selectedRegion,
|
|
70
|
+
handleChange,
|
|
71
|
+
})}
|
|
72
|
+
<Heading headingType="h6" title="Данные организации" className="text-center mb-4" />
|
|
73
|
+
{renderDataOrganization({ fullName, inn, name, phone, handleChange })}
|
|
74
|
+
{renderSlideCheckboxes({
|
|
75
|
+
onlineСheckout,
|
|
76
|
+
posTerminal,
|
|
77
|
+
handleChange,
|
|
78
|
+
})}
|
|
79
|
+
{renderSubmitButton(button, 'mb-4')}
|
|
80
|
+
<Footnote link={link} />
|
|
81
|
+
</form>
|
|
82
|
+
);
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
interface RenderDataOrganizationProps {
|
|
86
|
+
fullName: string;
|
|
87
|
+
inn: string;
|
|
88
|
+
name: string;
|
|
89
|
+
phone: string;
|
|
90
|
+
handleChange: HandleFormStateChange<AcquiringFormState>;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
const renderDataOrganization = ({
|
|
94
|
+
fullName,
|
|
95
|
+
inn,
|
|
96
|
+
name,
|
|
97
|
+
phone,
|
|
98
|
+
handleChange,
|
|
99
|
+
}: RenderDataOrganizationProps) => (
|
|
100
|
+
<div className="flex justify-between gap-5 mb-5">
|
|
101
|
+
<div className="w-1/2">
|
|
102
|
+
<Input
|
|
103
|
+
className="shrink-0 text-l w-full mb-5"
|
|
104
|
+
type="text"
|
|
105
|
+
aria-label="Наименование организации"
|
|
106
|
+
label="Наименование организации"
|
|
107
|
+
value={fullName}
|
|
108
|
+
onChange={(value) => handleChange({ fullName: value })}
|
|
109
|
+
/>
|
|
110
|
+
<Input
|
|
111
|
+
className="shrink-0 text-l w-full"
|
|
112
|
+
type="text"
|
|
113
|
+
aria-label="Контактное лицо"
|
|
114
|
+
label="Контактное лицо"
|
|
115
|
+
value={name}
|
|
116
|
+
onChange={(value) => handleChange({ name: value })}
|
|
117
|
+
/>
|
|
118
|
+
</div>
|
|
119
|
+
<div className="w-1/2">
|
|
120
|
+
<Input
|
|
121
|
+
className="shrink-0 text-l w-full mb-5"
|
|
122
|
+
type="text"
|
|
123
|
+
label="ИНН"
|
|
124
|
+
aria-label="ИНН"
|
|
125
|
+
value={inn}
|
|
126
|
+
onChange={(value) => handleChange({ inn: value })}
|
|
127
|
+
/>
|
|
128
|
+
<Input
|
|
129
|
+
className="shrink-0 text-l w-full"
|
|
130
|
+
type="text"
|
|
131
|
+
label="Телефон"
|
|
132
|
+
aria-label="Телефон"
|
|
133
|
+
value={phone}
|
|
134
|
+
onChange={(value) => handleChange({ phone: value })}
|
|
135
|
+
/>
|
|
136
|
+
</div>
|
|
137
|
+
</div>
|
|
138
|
+
);
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import type { Region } from '../../hooks/useRegions';
|
|
4
|
+
import { Input } from '../../ui-kit/Input/Input';
|
|
5
|
+
import { useGetRegions } from '../SafeDepositRental/useGetRegions';
|
|
6
|
+
import type { ApplicationFormsProps } from './ApplicationFormsProps';
|
|
7
|
+
import { Footnote } from './Footnote';
|
|
8
|
+
import type { HandleFormStateChange } from './models';
|
|
9
|
+
import { normalizeSelectedRegion } from './normalizeSelectedRegion';
|
|
10
|
+
import { renderSubmitButton } from './renderSubmitButton';
|
|
11
|
+
import { useFormHandlers } from './useFormHandlers';
|
|
12
|
+
import { WrapperSelect } from './WrapperSelect';
|
|
13
|
+
|
|
14
|
+
export interface BusinessCardFormState {
|
|
15
|
+
region: string;
|
|
16
|
+
name: string;
|
|
17
|
+
phone: string;
|
|
18
|
+
inn: string;
|
|
19
|
+
mail: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export const ApplicationFormBusinessCard = JSX<ApplicationFormsProps>((props) => {
|
|
23
|
+
const { button, link, handleSubmit } = props;
|
|
24
|
+
const [formState, setFormState] = useState<BusinessCardFormState>({
|
|
25
|
+
region: '',
|
|
26
|
+
name: '',
|
|
27
|
+
phone: '',
|
|
28
|
+
inn: '',
|
|
29
|
+
mail: '',
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
const { name, phone, inn, mail } = formState;
|
|
33
|
+
|
|
34
|
+
const regions = useGetRegions();
|
|
35
|
+
|
|
36
|
+
const { handleChange, onSubmit } = useFormHandlers<BusinessCardFormState>({
|
|
37
|
+
formState,
|
|
38
|
+
handleSubmit,
|
|
39
|
+
setFormState,
|
|
40
|
+
typeForm: 'bcrd',
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
const selectedRegion = normalizeSelectedRegion(formState.region, regions);
|
|
44
|
+
|
|
45
|
+
return (
|
|
46
|
+
<form onSubmit={onSubmit} className="container">
|
|
47
|
+
{renderRegion({
|
|
48
|
+
regions,
|
|
49
|
+
region: selectedRegion,
|
|
50
|
+
handleChange,
|
|
51
|
+
})}
|
|
52
|
+
{renderDataOrganization({ name, phone, inn, mail, handleChange })}
|
|
53
|
+
{renderSubmitButton(button, 'mb-4')}
|
|
54
|
+
<Footnote link={link} />
|
|
55
|
+
</form>
|
|
56
|
+
);
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
interface RenderDataOrganizationProps {
|
|
60
|
+
name: string;
|
|
61
|
+
phone: string;
|
|
62
|
+
mail: string;
|
|
63
|
+
inn: string;
|
|
64
|
+
handleChange: HandleFormStateChange<BusinessCardFormState>;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
const renderDataOrganization = ({
|
|
68
|
+
name,
|
|
69
|
+
phone,
|
|
70
|
+
mail,
|
|
71
|
+
inn,
|
|
72
|
+
handleChange,
|
|
73
|
+
}: RenderDataOrganizationProps) => (
|
|
74
|
+
<div className="flex justify-between gap-5">
|
|
75
|
+
<div className="w-1/2">
|
|
76
|
+
<Input
|
|
77
|
+
className="shrink-0 text-l w-full mb-5"
|
|
78
|
+
type="text"
|
|
79
|
+
aria-label="Контактное лицо"
|
|
80
|
+
label="Контактное лицо"
|
|
81
|
+
value={name}
|
|
82
|
+
onChange={(value) => handleChange({ name: value })}
|
|
83
|
+
/>
|
|
84
|
+
<Input
|
|
85
|
+
className="shrink-0 text-l w-full mb-5"
|
|
86
|
+
type="text"
|
|
87
|
+
aria-label="ИНН"
|
|
88
|
+
label="ИНН"
|
|
89
|
+
value={inn}
|
|
90
|
+
onChange={(value) => handleChange({ inn: value })}
|
|
91
|
+
/>
|
|
92
|
+
</div>
|
|
93
|
+
<div className="w-1/2">
|
|
94
|
+
<Input
|
|
95
|
+
className="shrink-0 text-l w-full mb-5"
|
|
96
|
+
type="text"
|
|
97
|
+
aria-label="Телефон"
|
|
98
|
+
label="Телефон"
|
|
99
|
+
value={phone}
|
|
100
|
+
onChange={(value) => handleChange({ phone: value })}
|
|
101
|
+
/>
|
|
102
|
+
<Input
|
|
103
|
+
className="shrink-0 text-l w-full "
|
|
104
|
+
type="text"
|
|
105
|
+
aria-label="Электронная почта"
|
|
106
|
+
label="Электронная почта"
|
|
107
|
+
value={mail}
|
|
108
|
+
onChange={(value) => handleChange({ mail: value })}
|
|
109
|
+
/>
|
|
110
|
+
</div>
|
|
111
|
+
</div>
|
|
112
|
+
);
|
|
113
|
+
|
|
114
|
+
interface RenderRegionProps {
|
|
115
|
+
regions: Region[];
|
|
116
|
+
region: string;
|
|
117
|
+
handleChange: HandleFormStateChange<BusinessCardFormState>;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
const renderRegion = ({ regions, region, handleChange }: RenderRegionProps) => (
|
|
121
|
+
<div className="flex justify-between gap-5 mb-5">
|
|
122
|
+
<div className="w-full">
|
|
123
|
+
<WrapperSelect
|
|
124
|
+
data={regions}
|
|
125
|
+
fieldValue="code"
|
|
126
|
+
fieldLabel="name"
|
|
127
|
+
selected={region}
|
|
128
|
+
setSelected={(value) => handleChange({ region: value })}
|
|
129
|
+
label="Регион"
|
|
130
|
+
placeholder="Выберите регион"
|
|
131
|
+
/>
|
|
132
|
+
</div>
|
|
133
|
+
</div>
|
|
134
|
+
);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { HeadlineCommonProps } from '../../model/HeadlineType';
|
|
2
|
+
import type { LinkProps } from '../../model/LinkProps';
|
|
3
|
+
import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @title Форма заявки
|
|
7
|
+
*/
|
|
8
|
+
export type ApplicationFormContent = HeadlineCommonProps & {
|
|
9
|
+
/**
|
|
10
|
+
* @title Вид заявки
|
|
11
|
+
* @default credit
|
|
12
|
+
* @enumNames ["Бизнес-карта", "ВЭД", "Депозит", "Кредит", "Эквайринг"]
|
|
13
|
+
*/
|
|
14
|
+
typeForm?: 'business-card' | 'wed' | 'deposit' | 'credit' | 'acquiring';
|
|
15
|
+
/** @title Кнопка */
|
|
16
|
+
button?: ButtonProps;
|
|
17
|
+
/** @title Условия передачи данных */
|
|
18
|
+
link?: LinkProps;
|
|
19
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { useSafeBoxes } from '../../hooks/useSafeBoxes';
|
|
4
|
+
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
5
|
+
import { useGetRegions } from '../SafeDepositRental/useGetRegions';
|
|
6
|
+
import type { ApplicationFormsProps } from './ApplicationFormsProps';
|
|
7
|
+
import { Footnote } from './Footnote';
|
|
8
|
+
import { normalizeSelectedRegion } from './normalizeSelectedRegion';
|
|
9
|
+
import { renderBankOffices } from './renderBankOffices';
|
|
10
|
+
import { renderCreditParameters } from './renderCreditParameters';
|
|
11
|
+
import { renderDataOrganization } from './renderDataOrganization';
|
|
12
|
+
import { renderSubmitButton } from './renderSubmitButton';
|
|
13
|
+
import { useFormHandlers } from './useFormHandlers';
|
|
14
|
+
|
|
15
|
+
export interface CreditFormState {
|
|
16
|
+
amount: number;
|
|
17
|
+
term: number;
|
|
18
|
+
fullName: string;
|
|
19
|
+
inn: string;
|
|
20
|
+
name: string;
|
|
21
|
+
phone: string;
|
|
22
|
+
mail: string;
|
|
23
|
+
region: string;
|
|
24
|
+
department: string;
|
|
25
|
+
annualRevenue: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export const MIN_CREDIT_AMOUNT = 50000;
|
|
29
|
+
export const MAX_CREDIT_AMOUNT = 3000000;
|
|
30
|
+
export const ITEMS_CREDIT_AMOUNT = ['От 50 000 ₽', 'До 3 000 000 ₽'];
|
|
31
|
+
|
|
32
|
+
export const MIN_CREDIT_TERM = 1;
|
|
33
|
+
export const MAX_CREDIT_TERM = 60;
|
|
34
|
+
export const ITEMS_CREDIT_TERM = ['От 1 года', 'До 5 лет'];
|
|
35
|
+
|
|
36
|
+
export const ApplicationFormCredit = JSX<ApplicationFormsProps>((props) => {
|
|
37
|
+
const { button, link, handleSubmit } = props;
|
|
38
|
+
const [formState, setFormState] = useState<CreditFormState>({
|
|
39
|
+
amount: MIN_CREDIT_AMOUNT,
|
|
40
|
+
term: MIN_CREDIT_TERM,
|
|
41
|
+
fullName: '',
|
|
42
|
+
inn: '',
|
|
43
|
+
name: '',
|
|
44
|
+
phone: '',
|
|
45
|
+
mail: '',
|
|
46
|
+
region: '',
|
|
47
|
+
department: '',
|
|
48
|
+
annualRevenue: '',
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
const { amount, term, fullName, inn, name, phone, mail, region, department, annualRevenue } =
|
|
52
|
+
formState;
|
|
53
|
+
|
|
54
|
+
const regions = useGetRegions();
|
|
55
|
+
|
|
56
|
+
const { handleChange, onSubmit } = useFormHandlers<CreditFormState>({
|
|
57
|
+
formState,
|
|
58
|
+
handleSubmit,
|
|
59
|
+
setFormState,
|
|
60
|
+
typeForm: 'cred',
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
const selectedRegion = normalizeSelectedRegion(formState.region, regions);
|
|
64
|
+
|
|
65
|
+
const branches = useSafeBoxes(region);
|
|
66
|
+
|
|
67
|
+
useEffect(() => {
|
|
68
|
+
handleChange({
|
|
69
|
+
department: '',
|
|
70
|
+
});
|
|
71
|
+
}, [formState.region, handleChange]);
|
|
72
|
+
|
|
73
|
+
return (
|
|
74
|
+
<form onSubmit={onSubmit} className="container">
|
|
75
|
+
<Heading headingType="h6" title="Параметры кредита" className="text-center mb-4" />
|
|
76
|
+
{renderCreditParameters({ amount, term, handleChange })}
|
|
77
|
+
<Heading headingType="h6" title="Данные организации" className="text-center mb-4" />
|
|
78
|
+
{renderDataOrganization({ fullName, inn, name, phone, mail, annualRevenue, handleChange })}
|
|
79
|
+
<Heading headingType="h6" title="Офис банка" className="text-center mb-4" />
|
|
80
|
+
{renderBankOffices({
|
|
81
|
+
regions,
|
|
82
|
+
region: selectedRegion,
|
|
83
|
+
branches,
|
|
84
|
+
department,
|
|
85
|
+
handleChange,
|
|
86
|
+
})}
|
|
87
|
+
{renderSubmitButton(button, 'mb-4')}
|
|
88
|
+
<Footnote link={link} />
|
|
89
|
+
</form>
|
|
90
|
+
);
|
|
91
|
+
});
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
4
|
+
import { Input } from '../../ui-kit/Input/Input';
|
|
5
|
+
import type { ApplicationFormsProps } from './ApplicationFormsProps';
|
|
6
|
+
import { Footnote } from './Footnote';
|
|
7
|
+
import type { HandleFormStateChange } from './models';
|
|
8
|
+
import { renderSubmitButton } from './renderSubmitButton';
|
|
9
|
+
import { useFormHandlers } from './useFormHandlers';
|
|
10
|
+
|
|
11
|
+
export interface DepositFormState {
|
|
12
|
+
name: string;
|
|
13
|
+
phone: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const ApplicationFormDeposit = JSX<ApplicationFormsProps>((props) => {
|
|
17
|
+
const { button, link, handleSubmit } = props;
|
|
18
|
+
|
|
19
|
+
const [formState, setFormState] = useState<DepositFormState>({
|
|
20
|
+
name: '',
|
|
21
|
+
phone: '',
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
const { handleChange, onSubmit } = useFormHandlers<DepositFormState>({
|
|
25
|
+
formState,
|
|
26
|
+
handleSubmit,
|
|
27
|
+
setFormState,
|
|
28
|
+
typeForm: 'dpst',
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
return (
|
|
32
|
+
<form onSubmit={onSubmit} className="container">
|
|
33
|
+
<Heading
|
|
34
|
+
headingType="h6"
|
|
35
|
+
title="Оставьте заявку и мы ответим на любые вопросы по депозитам"
|
|
36
|
+
className="text-center mb-4"
|
|
37
|
+
/>
|
|
38
|
+
{renderDataOrganization({ name: formState.name, phone: formState.phone, handleChange })}
|
|
39
|
+
<div className="flex justify-between items-center max-w-[560px] m-auto">
|
|
40
|
+
<div className="flex-1">
|
|
41
|
+
<Footnote link={link} />
|
|
42
|
+
</div>
|
|
43
|
+
{renderSubmitButton(button)}
|
|
44
|
+
</div>
|
|
45
|
+
</form>
|
|
46
|
+
);
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
interface RenderDataOrganizationProps {
|
|
50
|
+
name: string;
|
|
51
|
+
phone: string;
|
|
52
|
+
handleChange: HandleFormStateChange<DepositFormState>;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
const renderDataOrganization = ({ name, phone, handleChange }: RenderDataOrganizationProps) => (
|
|
56
|
+
<div className="max-w-[560px] m-auto">
|
|
57
|
+
<Input
|
|
58
|
+
className="shrink-0 text-l w-full mb-5"
|
|
59
|
+
type="text"
|
|
60
|
+
aria-label="Имя"
|
|
61
|
+
label="Имя"
|
|
62
|
+
value={name}
|
|
63
|
+
onChange={(value) => handleChange({ name: value })}
|
|
64
|
+
/>
|
|
65
|
+
<Input
|
|
66
|
+
className="shrink-0 text-l w-full mb-5"
|
|
67
|
+
type="text"
|
|
68
|
+
aria-label="Телефон"
|
|
69
|
+
label="Телефон"
|
|
70
|
+
value={phone}
|
|
71
|
+
onChange={(value) => handleChange({ phone: value })}
|
|
72
|
+
/>
|
|
73
|
+
</div>
|
|
74
|
+
);
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
4
|
+
import { Input } from '../../ui-kit/Input/Input';
|
|
5
|
+
import type { ApplicationFormsProps } from './ApplicationFormsProps';
|
|
6
|
+
import { Footnote } from './Footnote';
|
|
7
|
+
import type { HandleFormStateChange } from './models';
|
|
8
|
+
import { renderContacts } from './renderContacts';
|
|
9
|
+
import { renderQuestionsInterested } from './renderQuestionsInterested';
|
|
10
|
+
import { renderSubmitButton } from './renderSubmitButton';
|
|
11
|
+
import { useFormHandlers } from './useFormHandlers';
|
|
12
|
+
|
|
13
|
+
export interface WedFormState {
|
|
14
|
+
fullName: string;
|
|
15
|
+
name: string;
|
|
16
|
+
phone: string;
|
|
17
|
+
mail: string;
|
|
18
|
+
currencyControl: boolean;
|
|
19
|
+
documentaryOperations: boolean;
|
|
20
|
+
conversionOperations: boolean;
|
|
21
|
+
text: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export const ApplicationFormWed = JSX<ApplicationFormsProps>((props) => {
|
|
25
|
+
const { button, link, handleSubmit } = props;
|
|
26
|
+
|
|
27
|
+
const [formState, setFormState] = useState<WedFormState>({
|
|
28
|
+
fullName: '',
|
|
29
|
+
name: '',
|
|
30
|
+
phone: '',
|
|
31
|
+
mail: '',
|
|
32
|
+
currencyControl: false,
|
|
33
|
+
documentaryOperations: false,
|
|
34
|
+
conversionOperations: false,
|
|
35
|
+
text: '',
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
const {
|
|
39
|
+
fullName,
|
|
40
|
+
name,
|
|
41
|
+
phone,
|
|
42
|
+
mail,
|
|
43
|
+
currencyControl,
|
|
44
|
+
documentaryOperations,
|
|
45
|
+
conversionOperations,
|
|
46
|
+
text,
|
|
47
|
+
} = formState;
|
|
48
|
+
|
|
49
|
+
const { handleChange, onSubmit } = useFormHandlers<WedFormState>({
|
|
50
|
+
formState,
|
|
51
|
+
handleSubmit,
|
|
52
|
+
setFormState,
|
|
53
|
+
typeForm: 'kved',
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
return (
|
|
57
|
+
<form onSubmit={onSubmit} className="container">
|
|
58
|
+
<Heading headingType="h6" title="Данные организации" className="text-center mb-4" />
|
|
59
|
+
{renderDataOrganization({ fullName, name, phone, mail, handleChange })}
|
|
60
|
+
<Heading headingType="h6" title="Интересующий вопрос" className="text-center mb-4" />
|
|
61
|
+
{renderQuestionsInterested({
|
|
62
|
+
currencyControl,
|
|
63
|
+
documentaryOperations,
|
|
64
|
+
conversionOperations,
|
|
65
|
+
text,
|
|
66
|
+
handleChange,
|
|
67
|
+
})}
|
|
68
|
+
<div className="flex items-center pb-9 mb-9 border-b border-main-divider">
|
|
69
|
+
{renderSubmitButton(button, 'mr-5')}
|
|
70
|
+
<Footnote link={link} />
|
|
71
|
+
</div>
|
|
72
|
+
<Heading
|
|
73
|
+
headingType="h6"
|
|
74
|
+
title="Или свяжитесь с нами удобным способом"
|
|
75
|
+
className="text-center mb-4"
|
|
76
|
+
/>
|
|
77
|
+
{renderContacts()}
|
|
78
|
+
</form>
|
|
79
|
+
);
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
interface RenderDataOrganizationProps {
|
|
83
|
+
fullName: string;
|
|
84
|
+
name: string;
|
|
85
|
+
phone: string;
|
|
86
|
+
mail: string;
|
|
87
|
+
handleChange: HandleFormStateChange<WedFormState>;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
const renderDataOrganization = ({
|
|
91
|
+
fullName,
|
|
92
|
+
name,
|
|
93
|
+
phone,
|
|
94
|
+
mail,
|
|
95
|
+
handleChange,
|
|
96
|
+
}: RenderDataOrganizationProps) => (
|
|
97
|
+
<div>
|
|
98
|
+
<div className="flex justify-between gap-5 mb-5">
|
|
99
|
+
<div className="w-1/2">
|
|
100
|
+
<Input
|
|
101
|
+
className="shrink-0 text-l w-full"
|
|
102
|
+
type="text"
|
|
103
|
+
aria-label="Наименование организации"
|
|
104
|
+
label="Наименование организации"
|
|
105
|
+
value={fullName}
|
|
106
|
+
onChange={(value) => handleChange({ fullName: value })}
|
|
107
|
+
/>
|
|
108
|
+
</div>
|
|
109
|
+
<div className="w-1/2">
|
|
110
|
+
<Input
|
|
111
|
+
className="shrink-0 text-l w-full"
|
|
112
|
+
type="text"
|
|
113
|
+
aria-label="ФИО"
|
|
114
|
+
label="ФИО"
|
|
115
|
+
value={name}
|
|
116
|
+
onChange={(value) => handleChange({ name: value })}
|
|
117
|
+
/>
|
|
118
|
+
</div>
|
|
119
|
+
</div>
|
|
120
|
+
<div className="flex justify-between gap-5 mb-7">
|
|
121
|
+
<div className="w-1/2">
|
|
122
|
+
<Input
|
|
123
|
+
className="shrink-0 text-l w-full"
|
|
124
|
+
type="text"
|
|
125
|
+
aria-label="Телефон"
|
|
126
|
+
label="Телефон"
|
|
127
|
+
value={phone}
|
|
128
|
+
onChange={(value) => handleChange({ phone: value })}
|
|
129
|
+
/>
|
|
130
|
+
</div>
|
|
131
|
+
<div className="w-1/2">
|
|
132
|
+
<Input
|
|
133
|
+
className="shrink-0 text-l w-full"
|
|
134
|
+
type="text"
|
|
135
|
+
aria-label="Электронная почта"
|
|
136
|
+
label="Электронная почта"
|
|
137
|
+
value={mail}
|
|
138
|
+
onChange={(value) => handleChange({ mail: value })}
|
|
139
|
+
/>
|
|
140
|
+
</div>
|
|
141
|
+
</div>
|
|
142
|
+
</div>
|
|
143
|
+
);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { LinkProps } from '../../model/LinkProps';
|
|
3
|
+
import { Button } from '../../ui-kit/Button/Button';
|
|
4
|
+
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
|
|
5
|
+
import { Text } from '../../ui-kit/Text/Text';
|
|
6
|
+
|
|
7
|
+
interface FootnoteProps {
|
|
8
|
+
link?: LinkProps;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const Footnote = JSX<FootnoteProps>(({ link }) => (
|
|
12
|
+
<Paragraph size="text-s-light" color="text-secondary-text">
|
|
13
|
+
<Text>Нажимая кнопку вы подтверждаете согласие с </Text>
|
|
14
|
+
{link ? (
|
|
15
|
+
<Button
|
|
16
|
+
href={link.href}
|
|
17
|
+
ariaLabel="условия передачи данных"
|
|
18
|
+
target={link.target}
|
|
19
|
+
className="text-primary-main"
|
|
20
|
+
>
|
|
21
|
+
<Text>{link.text}</Text>
|
|
22
|
+
</Button>
|
|
23
|
+
) : null}
|
|
24
|
+
</Paragraph>
|
|
25
|
+
));
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
3
|
+
import { Img } from '../../ui-kit/Img/Img';
|
|
4
|
+
import { Text } from '../../ui-kit/Text/Text';
|
|
5
|
+
|
|
6
|
+
interface ResponseNotificationProps {
|
|
7
|
+
responceType?: 'OK' | 'Fail';
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export const ResponseNotification = JSX<ResponseNotificationProps>(({ responceType }) => {
|
|
11
|
+
const responceOK = responceType === 'OK';
|
|
12
|
+
const backgroundColor = responceOK ? 'bg-responce-ok' : 'bg-responce-fail';
|
|
13
|
+
|
|
14
|
+
return (
|
|
15
|
+
<div className={`flex items-center mt-5 p-5 rounded-md ${backgroundColor}`}>
|
|
16
|
+
{responceOK ? (
|
|
17
|
+
<Img image={{ icon: 'ResponceOKIcon' }} width="42" height="42" className="mr-4" />
|
|
18
|
+
) : (
|
|
19
|
+
<Img image={{ icon: 'ResponceFailIcon' }} width="37" height="34" className="mr-4" />
|
|
20
|
+
)}
|
|
21
|
+
<div>
|
|
22
|
+
<Heading
|
|
23
|
+
headingType="h6"
|
|
24
|
+
title={responceOK ? 'Ваша заявка отправлена' : 'Не удалось отправить заявку'}
|
|
25
|
+
className="mb-1"
|
|
26
|
+
/>
|
|
27
|
+
<Text size="text-l-light" color="text-secondary-text">
|
|
28
|
+
{responceOK ? 'Совсем скоро мы с вами свяжемся' : 'Пожалуйста, повторите позднее'}
|
|
29
|
+
</Text>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
);
|
|
33
|
+
});
|